*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial,sans-serif;
}

body{
    margin:0;
    color:#fff;
    font-family:Arial,sans-serif;
    background:
        radial-gradient(circle at top,#173a73 0%,#0b1224 35%,#060b16 70%,#03050b 100%);
    background-attachment:fixed;
    overflow-x:hidden;
    line-height:1.7;
    scroll-behavior:smooth;
}

header{
    position:sticky;
    top:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:rgba(7,12,28,.88);
    backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(91,192,255,.15);
    box-shadow:0 8px 35px rgba(0,0,0,.35);
    z-index:1000;
    transition:.35s ease;
}

.logo{
    font-size:30px;
    font-weight:700;
    color:#FFD700;
    letter-spacing:.5px;
    text-shadow:0 0 15px rgba(255,215,0,.45);
}

nav{
display:flex;
gap:20px;
}


/* ===== CLEAN WRV BRANDING ===== */

.header-logo {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter:
        drop-shadow(0 0 5px rgba(0,220,255,.42))
        drop-shadow(0 0 12px rgba(0,180,255,.24));
}

.logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-logo,
.account-footer-brand img {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter:
        drop-shadow(0 0 5px rgba(0,220,255,.42))
        drop-shadow(0 0 12px rgba(0,180,255,.24));
}

.footer-brand,
.account-footer-brand {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 600px) {
    .header-logo,
    .footer-logo,
    .account-footer-brand img {
        width: 220px;
    }
}


nav a{
    color:#fff;
    text-decoration:none;
    font-size:16px;
    transition:.35s ease;
    position:relative;
}

nav a:hover{
    color:#5BC0FF;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:#5BC0FF;
    transition:.35s;
}

nav a:hover::after{
    width:100%;
}

.hero{
    position:relative;
    overflow:hidden;
    padding:110px 20px;
    text-align:center;
    background:
    linear-gradient(135deg,
    rgba(16,38,82,.95),
    rgba(7,14,32,.95));
    border-bottom:1px solid rgba(91,192,255,.12);
}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:
    radial-gradient(circle at top,
    rgba(91,192,255,.15),
    transparent 60%);

    pointer-events:none;

}

.hero h1{

    font-size:52px;

    font-weight:800;

    margin-bottom:18px;

    color:#fff;

    text-shadow:0 0 18px rgba(91,192,255,.35);

}

.hero p{

    max-width:760px;

    margin:0 auto 35px;

    font-size:20px;

    color:#d8e8ff;

}

.btn{
    display:inline-block;
    padding:16px 38px;
    border-radius:14px;
    text-decoration:none;
    font-weight:700;
    color:#fff;
    background:linear-gradient(135deg,#ff9800,#ff6a00);
    box-shadow:
        0 0 18px rgba(255,152,0,.35);
    transition:.35s ease;
}

.section{

    padding:90px 8%;

}

.section h2{

    font-size:42px;

    margin-bottom:28px;

    color:#fff;

}

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:25px;
}

.card{

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(18px);

    border:1px solid rgba(91,192,255,.12);

    border-radius:22px;

    overflow:hidden;

    transition:.45s ease;

    box-shadow:
    0 12px 40px rgba(0,0,0,.35);

}

.card:hover{

    transform:
    translateY(-12px)
    scale(1.02);

    box-shadow:
    0 0 25px rgba(91,192,255,.18),
    0 15px 45px rgba(0,0,0,.45);

}

.card img{

    width:100%;

    display:block;

    transition:.6s ease;

}

.card:hover img{

    transform:scale(1.05);

}

.btn:hover,
.buy:hover{

    filter:brightness(1.08);

}

.card-content{

    padding:24px;

}

.card-content h3{

    margin-bottom:12px;

    color:#ffffff;

    font-size:24px;

}

.price{
font-size:24px;
color:#FFD700;
margin:15px 0;
}

.buy{

    width:100%;

    padding:16px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    font-size:18px;

    font-weight:700;

    color:white;

    background:
    linear-gradient(135deg,#ff9800,#ff6a00);

    transition:.35s ease;

    box-shadow:
    0 0 20px rgba(255,152,0,.30);

}

.buy:hover{

    transform:
    translateY(-3px);

    box-shadow:
    0 0 25px rgba(255,152,0,.45);

}

.footer{

    margin-top:90px;

    padding:70px 8%;

    text-align:center;

    background:
    linear-gradient(180deg,#081120,#04070f);

    border-top:
    1px solid rgba(91,192,255,.12);

}

.footer h2{

    color:#FFD700;

    margin-bottom:15px;

}

.footer-tagline{

    color:#cfdfff;

    margin-bottom:35px;

}

.footer-links{

    display:flex;

    justify-content:center;

    gap:28px;

    flex-wrap:wrap;

    margin-bottom:30px;

}

.footer-links a{

    color:#ffffff;

    text-decoration:none;

    transition:.3s;

}

.footer-links a:hover{

    color:#5BC0FF;

}

.footer-powered{

    color:#9bcfff;

    margin-bottom:12px;

}

.footer-copy{

    color:#888;

}

@media(max-width:768px){

header{
flex-direction:column;
gap:15px;
}

.hero h1{
font-size:34px;
}

.hero p{
font-size:17px;
}

}

/* ==========================
   WRV PREMIUM ANIMATIONS
========================== */

html{

    scroll-behavior:smooth;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.hero{

    animation:fadeUp 1s ease;

}

.section{

    animation:fadeUp .9s ease both;

}

@keyframes floating{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-8px);

    }

    100%{

        transform:translateY(0);

    }

}

.card{

    animation:floating 6s ease-in-out infinite;

}

.section h2{

    text-shadow:

    0 0 18px rgba(91,192,255,.20);

}

/* ==========================
   WRV HOMEPAGE COMPONENTS
========================== */

.spinner{
    display:none;
    width:18px;
    height:18px;
    border:3px solid rgba(255,255,255,.35);
    border-top:3px solid white;
    border-radius:50%;
    animation:spin .8s linear infinite;
    margin-right:10px;
}

.buy.loading{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    pointer-events:none;
    opacity:.95;
}

.buy.loading .spinner{
    display:inline-block;
}

@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

.header-top{
    display:grid;
    grid-template-columns:70px 1fr;
    align-items:center;
    margin-top:10px;
    padding:0 15px;
}

.profile-container{
    display:flex;
    justify-content:flex-start;
    align-items:center;
}

.profile-pic{
    width:55px;
    height:55px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #ff9800;
    display:block;
}

.welcome-banner{
    width:100%;
    max-width:900px;
    height:auto;
    display:block;
    margin:25px auto;
    border-radius:18px;
    box-shadow:0 0 20px rgba(255,152,0,.35);
}

.social-menu{
    position:fixed;
    top:80px;
    left:15px;
    width:260px;
    background:rgba(15,22,40,.96);
    border:1px solid rgba(91,192,255,.25);
    border-radius:18px;
    padding:14px;
    display:none;
    flex-direction:column;
    gap:10px;
    z-index:1001;
    backdrop-filter:blur(20px);
    box-shadow:0 20px 50px rgba(0,0,0,.45);
}

.social-menu.show{
    display:flex;
}

.social-menu a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:12px;
    color:white;
    text-decoration:none;
    transition:.3s ease;
}

.social-menu a:hover{
    background:rgba(91,192,255,.12);
}

.social-menu img{
    width:32px;
    height:32px;
    border-radius:8px;
    object-fit:cover;
}

#overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:none;
    z-index:1000;
}

#overlay.show{
    display:block;
}

@keyframes slideDown{
    from{
        opacity:0;
        transform:translateY(-15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.intro-section{
    text-align:center;
    max-width:900px;
    margin:auto;
}

.intro-text{
    font-size:26px;
    color:#FFD700;
    margin:20px 0;
}

.intro-description{
    color:#d5e5ff;
    font-size:18px;
    line-height:1.9;
}

.about-text{
    color:#d5e5ff;
    line-height:1.9;
    font-size:18px;
}

/* ==========================
   PAGE TRANSITIONS
========================== */

@keyframes pageFadeIn {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

body {

    animation: pageFadeIn .45s ease;

}

.page-exit{

    opacity:0;

    transform:translateY(-15px);

    transition:
    opacity .25s ease,
    transform .25s ease;

}

.page-loaded{

    opacity:1;

}

/* ==========================
   LIBRARY PAGE
========================== */

#library{

    max-width:1200px;

    margin:40px auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

    padding:20px;

}

#welcome{

    text-align:center;

    color:#FFD700;

    margin-bottom:15px;

}

#empty{

    text-align:center;

    color:#d5e5ff;

    padding:60px 20px;

}

.read{

    width:100%;

    padding:16px;

    border:none;

    border-radius:14px;

    background:linear-gradient(135deg,#ff9800,#ff6a00);

    color:white;

    font-size:18px;

    font-weight:700;

    cursor:pointer;

    transition:.35s ease;

    box-shadow:0 0 20px rgba(255,152,0,.25);

}

.read:hover{

    transform:translateY(-3px);

    box-shadow:0 0 28px rgba(255,152,0,.40);

}

/* ==========================
   GOOGLE SIGN-IN BUTTON
========================== */

.google-btn{

    width:100%;

    min-height:56px;

    padding:12px 18px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    background:#fff;

    color:#222;

    border:1px solid #d9d9d9;

    border-radius:10px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.25s ease;

    box-shadow:0 2px 8px rgba(0,0,0,.15);

}

.google-btn:hover{

    transform:translateY(-2px);

    box-shadow:0 6px 18px rgba(0,0,0,.20);

}

.card .google-icon{

    width:24px;

    height:24px;

    min-width:24px;

    object-fit:contain;

    display:block;

    border-radius:0;

}

.google-btn span{

    display:inline-block;

    white-space:nowrap;

}

/* =========================================================
   WRV COMICS — NEON CINEMATIC DESIGN SYSTEM
   Visual layer only — existing HTML/functionality preserved.
========================================================= */

:root{
    --wrv-bg:#03050d;
    --wrv-panel:rgba(10,15,30,.72);
    --wrv-blue:#5bc0ff;
    --wrv-cyan:#00e5ff;
    --wrv-violet:#9b5cff;
    --wrv-orange:#ff6a00;
    --wrv-gold:#ffd700;
    --wrv-white:#f7fbff;
}

/* ---------- GLOBAL ATMOSPHERE ---------- */

body{
    background:
        radial-gradient(circle at 15% 8%,rgba(0,229,255,.13),transparent 28%),
        radial-gradient(circle at 85% 18%,rgba(155,92,255,.12),transparent 30%),
        radial-gradient(circle at 50% 80%,rgba(255,106,0,.07),transparent 34%),
        linear-gradient(135deg,#02030a 0%,#07101f 45%,#03050d 100%);
    background-attachment:fixed;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:-1;
    background:
        radial-gradient(circle at 30% 30%,rgba(0,229,255,.055),transparent 22%),
        radial-gradient(circle at 70% 55%,rgba(155,92,255,.05),transparent 24%);
    filter:blur(35px);
    animation:wrvAmbient 14s ease-in-out infinite alternate;
}

@keyframes wrvAmbient{
    from{transform:translate3d(-2%,0,0) scale(1);}
    to{transform:translate3d(2%,-1%,0) scale(1.08);}
}

/* ---------- PREMIUM HEADER ---------- */

header{
    background:
        linear-gradient(
            180deg,
            rgba(3,7,18,.94),
            rgba(5,10,23,.78)
        );
    border-bottom:1px solid rgba(0,229,255,.22);
    box-shadow:
        0 8px 35px rgba(0,0,0,.45),
        0 1px 0 rgba(91,192,255,.08);
    backdrop-filter:blur(22px) saturate(150%);
}

.logo{
    color:var(--wrv-gold);
    text-shadow:
        0 0 8px rgba(255,215,0,.65),
        0 0 22px rgba(255,152,0,.28);
}

.profile-pic{
    border-color:var(--wrv-cyan);
    box-shadow:
        0 0 8px rgba(0,229,255,.7),
        0 0 22px rgba(0,229,255,.28);
    transition:transform .35s ease,box-shadow .35s ease;
}

.profile-pic:hover{
    transform:scale(1.06);
    box-shadow:
        0 0 12px rgba(0,229,255,.9),
        0 0 32px rgba(0,229,255,.42);
}

nav a:hover{
    color:var(--wrv-cyan);
    text-shadow:0 0 12px rgba(0,229,255,.6);
}

nav a::after{
    background:linear-gradient(
        90deg,
        var(--wrv-cyan),
        var(--wrv-violet)
    );
    box-shadow:0 0 10px rgba(0,229,255,.65);
}

/* ---------- HERO ---------- */

.hero{
    isolation:isolate;
    background:
        radial-gradient(circle at 50% 0%,rgba(0,229,255,.13),transparent 45%),
        radial-gradient(circle at 80% 70%,rgba(155,92,255,.10),transparent 38%),
        linear-gradient(135deg,rgba(4,10,24,.96),rgba(2,5,14,.98));
    border-bottom:1px solid rgba(0,229,255,.18);
}

.hero::before{
    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(0,229,255,.18),
            transparent 45%
        );
    animation:wrvHeroGlow 7s ease-in-out infinite alternate;
}

.hero::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255,255,255,.035) 45%,
            transparent 55%
        );
    transform:translateX(-100%);
    animation:wrvLightSweep 9s ease-in-out infinite;
}

@keyframes wrvHeroGlow{
    from{opacity:.55;transform:scale(.98);}
    to{opacity:1;transform:scale(1.04);}
}

@keyframes wrvLightSweep{
    0%,65%{transform:translateX(-100%);}
    85%,100%{transform:translateX(100%);}
}

.welcome-banner{
    position:relative;
    z-index:1;
    border:1px solid rgba(91,192,255,.28);
    box-shadow:
        0 0 0 1px rgba(0,229,255,.05),
        0 0 25px rgba(0,229,255,.18),
        0 20px 60px rgba(0,0,0,.55);
    transition:
        transform .5s ease,
        box-shadow .5s ease,
        border-color .5s ease;
}

.welcome-banner:hover{
    transform:translateY(-4px) scale(1.008);
    border-color:rgba(0,229,255,.5);
    box-shadow:
        0 0 0 1px rgba(0,229,255,.08),
        0 0 38px rgba(0,229,255,.28),
        0 25px 70px rgba(0,0,0,.62);
}

/* ---------- SECTIONS ---------- */

.section{
    position:relative;
}

.section h2{
    position:relative;
    display:inline-block;
    color:var(--wrv-white);
    text-shadow:
        0 0 10px rgba(91,192,255,.35),
        0 0 28px rgba(91,192,255,.12);
}

.section h2::after{
    content:"";
    display:block;
    width:55%;
    height:3px;
    margin-top:10px;
    border-radius:99px;
    background:linear-gradient(
        90deg,
        var(--wrv-cyan),
        var(--wrv-violet),
        transparent
    );
    box-shadow:0 0 12px rgba(0,229,255,.45);
}

.intro-section{
    position:relative;
}

.intro-text{
    color:var(--wrv-gold);
    text-shadow:
        0 0 8px rgba(255,215,0,.42),
        0 0 22px rgba(255,152,0,.18);
}

.intro-description,
.about-text{
    color:#dcecff;
}

/* ---------- PREMIUM CARDS ---------- */

.card{
    position:relative;
    background:
        linear-gradient(
            145deg,
            rgba(20,29,52,.76),
            rgba(6,10,22,.72)
        );
    border:1px solid rgba(91,192,255,.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.045),
        0 15px 45px rgba(0,0,0,.42),
        0 0 0 rgba(0,229,255,0);
    backdrop-filter:blur(20px) saturate(140%);
}

.card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius:inherit;
    background:
        linear-gradient(
            120deg,
            rgba(0,229,255,.12),
            transparent 32%,
            transparent 68%,
            rgba(155,92,255,.10)
        );
    opacity:.5;
}

.card:hover{
    transform:translateY(-12px) scale(1.025);
    border-color:rgba(0,229,255,.45);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 18px 55px rgba(0,0,0,.55),
        0 0 30px rgba(0,229,255,.16);
}

.card-content{
    position:relative;
    z-index:1;
}

.card-content h3{
    text-shadow:0 0 12px rgba(91,192,255,.18);
}

.card img{
    position:relative;
    z-index:1;
}

/* ---------- CTA BUTTONS ---------- */

.btn{
    position:relative;
    overflow:hidden;
    border:1px solid rgba(255,215,0,.45);
    background:
        linear-gradient(
            135deg,
            #ffd700 0%,
            #ffb300 45%,
            #ff6a00 100%
        );
    color:#07080d;
    box-shadow:
        0 0 12px rgba(255,183,0,.38),
        0 0 35px rgba(255,106,0,.18),
        inset 0 1px 0 rgba(255,255,255,.45);
}

.btn::before,
.buy::before,
.read::before{
    content:"";
    position:absolute;
    top:0;
    left:-120%;
    width:70%;
    height:100%;
    background:linear-gradient(
        100deg,
        transparent,
        rgba(255,255,255,.38),
        transparent
    );
    transform:skewX(-20deg);
    transition:left .65s ease;
    pointer-events:none;
}

.btn:hover::before,
.buy:hover::before,
.read:hover::before{
    left:150%;
}

.btn:hover{
    transform:translateY(-4px);
    box-shadow:
        0 0 18px rgba(255,215,0,.55),
        0 0 45px rgba(255,106,0,.26),
        inset 0 1px 0 rgba(255,255,255,.55);
}

/* ---------- PURCHASE / READ BUTTONS ---------- */

.buy,
.read{
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(
            135deg,
            #ff9800,
            #ff6a00,
            #e94b00
        );
    border:1px solid rgba(255,174,76,.35);
    box-shadow:
        0 0 16px rgba(255,106,0,.28),
        inset 0 1px 0 rgba(255,255,255,.12);
}

.buy:hover,
.read:hover{
    box-shadow:
        0 0 22px rgba(255,106,0,.45),
        0 0 42px rgba(255,106,0,.15),
        inset 0 1px 0 rgba(255,255,255,.16);
}

/* ---------- PRICE ---------- */

.price{
    color:var(--wrv-gold);
    text-shadow:
        0 0 8px rgba(255,215,0,.45),
        0 0 20px rgba(255,152,0,.16);
}

/* ---------- SOCIAL MENU ---------- */

.social-menu{
    background:
        linear-gradient(
            145deg,
            rgba(10,18,38,.96),
            rgba(5,8,19,.96)
        );
    border-color:rgba(0,229,255,.35);
    box-shadow:
        0 20px 60px rgba(0,0,0,.62),
        0 0 28px rgba(0,229,255,.10);
}

.social-menu a:hover{
    background:
        linear-gradient(
            90deg,
            rgba(0,229,255,.12),
            rgba(155,92,255,.08)
        );
    box-shadow:inset 0 0 18px rgba(0,229,255,.05);
}

.social-menu img{
    box-shadow:0 0 10px rgba(0,229,255,.18);
}

/* ---------- FOOTER ---------- */

.footer{
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(0,229,255,.08),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #071120,
            #02040b
        );
    border-top:1px solid rgba(0,229,255,.2);
}

.footer::before{
    content:"";
    position:absolute;
    top:0;
    left:10%;
    right:10%;
    height:1px;
    background:linear-gradient(
        90deg,
        transparent,
        var(--wrv-cyan),
        var(--wrv-violet),
        transparent
    );
    box-shadow:0 0 15px rgba(0,229,255,.55);
}

.footer h2{
    text-shadow:
        0 0 10px rgba(255,215,0,.45),
        0 0 25px rgba(255,152,0,.16);
}

.footer-links a:hover{
    color:var(--wrv-cyan);
    text-shadow:0 0 10px rgba(0,229,255,.55);
}

/* ---------- ACCESSIBILITY ---------- */

@media (prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        scroll-behavior:auto !important;
        transition-duration:.01ms !important;
    }

}

/* ---------- MOBILE POLISH ---------- */

@media(max-width:768px){

    body{
        background:
            radial-gradient(circle at 50% 0%,rgba(0,229,255,.10),transparent 32%),
            linear-gradient(160deg,#02030a,#07101f 50%,#03050b);
    }

    .section{
        padding:65px 20px;
    }

    .section h2{
        font-size:32px;
    }

    .welcome-banner{
        margin:18px auto;
        border-radius:14px;
    }

    .card{
        border-radius:18px;
    }

    .card:hover{
        transform:translateY(-6px);
    }

    .btn{
        padding:15px 28px;
    }

}


/* =========================================================
   WRV — SMOOTH PAGE TRANSITIONS + HERO BANNER POLISH
========================================================= */

/* Remove the old competing body animation. */
body{
    animation:none !important;
    opacity:1;
    transform:none;
}

/* Smooth initial page state. */
body.page-loaded{
    opacity:1;
    transform:translateY(0);
    transition:
        opacity .35s ease,
        transform .35s cubic-bezier(.22,1,.36,1);
}

/* Navigation exit. */
body.page-exit{
    opacity:0;
    transform:translateY(-8px);
    transition:
        opacity .22s ease,
        transform .22s ease;
}

/* Prevent the browser from showing a strange transition
   while restoring a page from its back/forward cache. */
@media (prefers-reduced-motion:reduce){

    body,
    body.page-loaded,
    body.page-exit{
        opacity:1 !important;
        transform:none !important;
        transition:none !important;
    }

}

/* =========================================================
   BOLD WRV WELCOME BANNER
========================================================= */

.hero{
    padding:32px 12px 42px !important;
}

.welcome-banner{
    width:min(1200px,96vw) !important;
    max-width:1200px !important;
    margin:20px auto 10px !important;

    border-radius:20px !important;

    border:2px solid rgba(0,229,255,.42) !important;

    box-shadow:
        0 0 0 1px rgba(0,229,255,.08),
        0 0 25px rgba(0,229,255,.22),
        0 0 65px rgba(0,229,255,.12),
        0 24px 70px rgba(0,0,0,.58) !important;

    transform:none !important;
}

.welcome-banner:hover{
    transform:translateY(-4px) scale(1.01) !important;

    border-color:rgba(0,229,255,.65) !important;

    box-shadow:
        0 0 0 1px rgba(0,229,255,.12),
        0 0 35px rgba(0,229,255,.34),
        0 0 75px rgba(155,92,255,.12),
        0 28px 80px rgba(0,0,0,.65) !important;
}

/* Mobile banner remains large and prominent. */
@media(max-width:768px){

    .hero{
        padding:20px 8px 30px !important;
    }

    .welcome-banner{
        width:96vw !important;
        max-width:none !important;
        margin:12px auto 8px !important;
        border-radius:15px !important;
    }

}


/* =========================================================
   WRV HOMEPAGE — FINAL FEATURED COMIC SHOWCASE
========================================================= */

#latest{
    position:relative;
    isolation:isolate;
    overflow:hidden;
}

#latest::before{
    content:"";
    position:absolute;
    width:520px;
    height:520px;
    left:50%;
    top:45%;
    transform:translate(-50%,-50%);
    background:
        radial-gradient(
            circle,
            rgba(0,229,255,.09),
            rgba(155,92,255,.045) 35%,
            transparent 70%
        );
    filter:blur(25px);
    pointer-events:none;
    z-index:-1;
}

#latestComic{
    width:100%;
    max-width:1100px;
    margin:35px auto 0;
    padding:0;
    display:block;
}

/* Featured comic card */

#latestComic .card{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
    min-height:520px;
    overflow:hidden;

    border-radius:26px;

    background:
        linear-gradient(
            135deg,
            rgba(18,29,55,.88),
            rgba(5,9,20,.94)
        );

    border:1px solid rgba(0,229,255,.28);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 25px 70px rgba(0,0,0,.55),
        0 0 35px rgba(0,229,255,.12);

    backdrop-filter:blur(22px) saturate(145%);

    animation:wrvFeaturedFloat 7s ease-in-out infinite;
}

@keyframes wrvFeaturedFloat{
    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-5px);
    }
}

/* Animated glass reflection */

#latestComic .card::after{
    content:"";
    position:absolute;
    inset:0;
    width:45%;
    background:
        linear-gradient(
            110deg,
            transparent,
            rgba(255,255,255,.055),
            transparent
        );
    transform:translateX(-180%) skewX(-18deg);
    pointer-events:none;
    z-index:4;
    animation:wrvFeaturedSweep 8s ease-in-out infinite;
}

@keyframes wrvFeaturedSweep{
    0%,60%{
        transform:translateX(-180%) skewX(-18deg);
    }

    82%,100%{
        transform:translateX(320%) skewX(-18deg);
    }
}

/* Featured cover */

#latestComic .card > img{
    width:100%;
    height:100%;
    min-height:520px;
    object-fit:cover;
    object-position:center;

    border-radius:0;

    border-right:1px solid rgba(0,229,255,.18);

    filter:
        saturate(1.08)
        contrast(1.04);

    box-shadow:
        12px 0 40px rgba(0,0,0,.30);

    transition:
        transform .7s cubic-bezier(.22,1,.36,1),
        filter .5s ease;
}

#latestComic .card:hover > img{
    transform:scale(1.035);
    filter:
        saturate(1.18)
        contrast(1.06);
}


/* Featured information */

#latestComic .card .card-content{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;

    padding:55px 48px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(155,92,255,.12),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(12,20,40,.62),
            rgba(4,8,18,.82)
        );
}

/* Featured title */

#latestComic .card .card-content h3{
    font-size:38px;
    line-height:1.15;
    margin-bottom:20px;

    color:#fff;

    text-shadow:
        0 0 12px rgba(91,192,255,.28),
        0 0 28px rgba(0,229,255,.10);
}

/* Featured description */

#latestComic .card .card-content p{
    color:#cbdcf2;
    font-size:17px;
    line-height:1.8;
    margin-bottom:18px;
}

/* Featured price */

#latestComic .card .price{
    display:inline-flex;
    align-items:center;

    width:max-content;

    margin:8px 0 24px;
    padding:8px 16px;

    border-radius:999px;

    color:#ffd700;
    font-size:24px;
    font-weight:800;

    background:rgba(255,215,0,.06);

    border:1px solid rgba(255,215,0,.18);

    box-shadow:
        0 0 18px rgba(255,215,0,.08);
}

/* Featured purchase button */

#latestComic .card .buy{
    min-height:58px;

    font-size:18px;

    border-radius:16px;

    box-shadow:
        0 0 18px rgba(255,106,0,.30),
        0 0 40px rgba(255,106,0,.10),
        inset 0 1px 0 rgba(255,255,255,.14);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        filter .3s ease;
}

#latestComic .card .buy:hover{
    transform:translateY(-4px);

    box-shadow:
        0 0 25px rgba(255,106,0,.48),
        0 0 50px rgba(255,106,0,.15),
        inset 0 1px 0 rgba(255,255,255,.18);
}

/* Featured card neon edge */

#latestComic .card:hover{
    border-color:rgba(0,229,255,.48);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 28px 80px rgba(0,0,0,.62),
        0 0 45px rgba(0,229,255,.18);
}

/* =========================================================
   PREMIUM SECTION RHYTHM
========================================================= */

.section + .section{
    border-top:1px solid rgba(91,192,255,.055);
}

.section + .section::before{
    content:"";
    position:absolute;
    top:-1px;
    left:50%;
    width:min(260px,50%);
    height:1px;
    transform:translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0,229,255,.32),
            rgba(155,92,255,.25),
            transparent
        );

    box-shadow:
        0 0 12px rgba(0,229,255,.18);
}

/* =========================================================
   FINAL MICRO-POLISH
========================================================= */

a,
button{
    -webkit-tap-highlight-color:transparent;
}

button:focus-visible,
a:focus-visible{
    outline:2px solid var(--wrv-cyan);
    outline-offset:4px;

    box-shadow:
        0 0 0 4px rgba(0,229,255,.12),
        0 0 20px rgba(0,229,255,.25);
}

img{
    image-rendering:auto;
}

#latestComic img{
    background:
        linear-gradient(
            135deg,
            rgba(91,192,255,.06),
            rgba(155,92,255,.05)
        );
}

/* =========================================================
   MOBILE FEATURED COMIC
========================================================= */

@media(max-width:768px){

    #latestComic{
        margin-top:25px;
    }

    #latestComic .card{
        display:flex;
        flex-direction:column;
        min-height:0;
        border-radius:20px;
    }

    #latestComic .card > img{
        width:100%;
        height:auto;
        min-height:0;
        max-height:none;
        aspect-ratio:4 / 3;
        object-fit:cover;
        border-right:none;
        border-bottom:1px solid rgba(0,229,255,.18);
    }

    #latestComic .card .card-content{
        padding:30px 24px 28px;
    }

    #latestComic .card .card-content h3{
        font-size:30px;
    }

    #latestComic .card .card-content p{
        font-size:16px;
    }

    #latestComic .card .buy{
        min-height:54px;
    }

}

/* Respect reduced-motion preferences. */



/* =========================================================
   WRV HOMEPAGE — REMOVE EXCESS BOTTOM SPACE
========================================================= */

html,
body{
    min-height:100%;
}

body{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}

.footer{
    margin-bottom:0 !important;
    margin-top:45px !important;
    padding-bottom:35px !important;
}

.footer-copy{
    margin-bottom:0 !important;
}


/* =========================================================
   WRV HOMEPAGE — FINAL CLEAN PREMIUM SECTION POLISH
========================================================= */

.section{
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
}

.intro-section{
    max-width:1000px;
}

/* Clean glass panels for informational sections */

.section:not(#latest):not(.intro-section){
    position:relative;
}

.about-text,
.intro-description{
    max-width:900px;
}

/* Premium informational cards */

.section .grid .card{
    background:
        linear-gradient(
            145deg,
            rgba(48,32,24,.72),
            rgba(17,14,18,.78)
        );

    border:1px solid rgba(210,150,100,.16);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 18px 45px rgba(0,0,0,.32);

    backdrop-filter:blur(18px);
}

/* Keep the cards calm and elegant */

.section .grid .card:hover{
    border-color:rgba(0,229,255,.28);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 22px 55px rgba(0,0,0,.42),
        0 0 24px rgba(0,229,255,.10);
}

/* Better typography rhythm */

.section h2{
    margin-bottom:24px;
}

.section h3{
    margin-top:8px;
    margin-bottom:12px;
}

.section p{
    max-width:900px;
}

/* Creator section */

.section h2 + h3{
    color:#f5f7ff;
    font-size:28px;
}

/* CTA section */

.section[style*="text-align:center"]{
    max-width:1000px;
    margin-left:auto;
    margin-right:auto;
}

.section[style*="text-align:center"] p{
    margin-left:auto;
    margin-right:auto;
    color:#d7e3f2;
}

/* Footer — clean, compact ending */

.footer{
    width:100%;
    margin-top:45px !important;
    padding:55px 8% 30px !important;

    background:
        linear-gradient(
            180deg,
            rgba(22,16,19,.96),
            rgba(5,7,13,1)
        );

    border-top:1px solid rgba(0,229,255,.16);
}

.footer h2{
    font-size:30px;
    margin-bottom:10px;
}

.footer-tagline{
    margin-bottom:25px;
}

.footer-links{
    gap:22px;
    margin-bottom:22px;
}

.footer-powered{
    margin-bottom:8px;
}

.footer-copy{
    margin:0 !important;
}

/* Remove unnecessary bottom breathing room */

html,
body{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}

body{
    overflow-x:hidden;
}

/* Mobile */

@media(max-width:768px){

    .section{
        padding:55px 20px;
    }

    .section h2{
        font-size:30px;
    }

    .section .grid{
        gap:18px;
    }

    .section .grid .card{
        border-radius:18px;
    }

    .footer{
        margin-top:30px !important;
        padding:45px 20px 25px !important;
    }

    .footer-links{
        gap:15px;
    }

}

/* =========================================================
   WRV — STRICT VIEWPORT BOUNDARY
========================================================= */

html{
    width:100%;
    max-width:100%;
    overflow-x:clip;
}

body{
    width:100%;
    max-width:100%;
    overflow-x:clip;
}

header,
.hero,
.section,
.footer{
    width:100%;
    max-width:100%;
}

/* =========================================================
   WRV COMICS — COMIC BRAND LETTERING
========================================================= */

.logo{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    white-space:nowrap;
    line-height:1;
}

.logo-wrv{
    font-family:Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size:1.05em;
    font-weight:900;
    font-style:italic;
    letter-spacing:-1px;
    color:#ffd83d;
    -webkit-text-stroke:1px #111827;
    text-shadow:
        2px 2px 0 #111827,
        0 0 7px rgba(255,215,61,.45);
    transform:skewX(-5deg);
}

.logo-comics{
    font-family:Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size:.72em;
    font-weight:900;
    font-style:italic;
    letter-spacing:.5px;
    color:#49c8ff;
    -webkit-text-stroke:1px #111827;
    text-shadow:
        2px 2px 0 #111827,
        0 0 7px rgba(73,200,255,.35);
    transform:skewX(-5deg);
}

.footer .logo-wrv,
.footer .logo-comics{
    text-shadow:
        2px 2px 0 #111827,
        0 0 9px rgba(73,200,255,.30);
}

@media(max-width:768px){

    .logo{
        gap:5px;
    }

    .logo-wrv{
        font-size:1em;
    }

    .logo-comics{
        font-size:.68em;
    }

}

/* Footer comic brand alignment */
.footer-brand{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:7px;
    line-height:1;
}

.footer-brand .logo-wrv{
    font-size:1.05em;
}

.footer-brand .logo-comics{
    font-size:.72em;
}

@media(max-width:768px){
    .footer-brand{
        gap:5px;
    }

    .footer-brand .logo-wrv{
        font-size:1em;
    }

    .footer-brand .logo-comics{
        font-size:.68em;
    }
}

/* =========================================================
   WRV COMICS — CUSTOM HEADER LOGO
========================================================= */

.header-logo{
    display:block;
    width:150px;
    height:55px;
    object-fit:contain;
    object-position:center;
    border-radius:0;
    box-shadow:0 0 14px rgba(0,229,255,.18);
}

.logo{
    display:flex;
    align-items:center;
    justify-content:center;
}

@media(max-width:768px){

    .header-logo{
        width:125px;
        height:50px;
    }

}

/* =========================================================
   WRV COMICS — CUSTOM HEADER LOGO
========================================================= */

.header-logo{
    display:block;
    width:150px;
    height:55px;
    object-fit:contain;
    object-position:center;
    border-radius:0;
    box-shadow:0 0 14px rgba(0,229,255,.18);
}

.logo{
    display:flex;
    align-items:center;
    justify-content:center;
}

@media(max-width:768px){

    .header-logo{
        width:125px;
        height:50px;
    }

}

/* =========================================================
   WRV COMICS — FOOTER BRAND LOGO
========================================================= */

.footer-logo{
    display:block;
    width:270px;
    height:auto;
    margin:0 auto;
    object-fit:contain;
    object-position:center;
    border-radius:0;
    box-shadow:0 0 16px rgba(0,229,255,.16);
}

.footer-brand{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:15px;
}

@media(max-width:768px){
    .footer-logo{
        width:270px;
        height:auto;
    }
}

/* WRV COMICS — HEADER LOGO SIZE REFINEMENT */

.header-logo{
    width:190px;
    height:68px;
    object-fit:contain;
    object-position:center;
}

@media(max-width:768px){
    .header-logo{
        width:165px;
        height:62px;
    }
}

/* WRV COMICS — FINAL HEADER LOGO SCALE */

.header-logo{
    width:215px;
    height:75px;
    object-fit:contain;
    object-position:center;
}

@media(max-width:768px){
    .header-logo{
        width:185px;
        height:68px;
    }
}

/* =========================================================
   WRV COMICS — ACTIVE NAVIGATION
========================================================= */

nav a.active{
    color:#5BC0FF;
    text-shadow:
        0 0 8px rgba(91,192,255,.55),
        0 0 18px rgba(0,229,255,.22);
}

nav a.active::after{
    width:100%;
    background:#5BC0FF;
    box-shadow:
        0 0 7px rgba(91,192,255,.65),
        0 0 14px rgba(0,229,255,.25);
}

/* =========================================================
   WRV COMICS — SHARED SOCIAL MENU ANIMATION
========================================================= */

.social-menu{
    transform:translateX(-120%);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        opacity .25s ease,
        visibility 0s linear .35s;
}

.social-menu.show{
    transform:translateX(0);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        opacity .25s ease,
        visibility 0s linear 0s;
}

#overlay{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:
        opacity .30s ease,
        visibility 0s linear .30s;
}

#overlay.show{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transition:
        opacity .30s ease,
        visibility 0s linear 0s;
}

/* =========================================================
   WRV COMICS — SOCIAL MENU DISPLAY FIX
========================================================= */

.social-menu{
    display:flex;
}

.social-menu.show{
    display:flex;
}

#overlay{
    display:block;
}

#overlay.show{
    display:block;
}

/* =========================================================
   WRV COMICS — MOBILE HOMEPAGE BANNER SIZE REFINEMENT
========================================================= */

@media (max-width:768px){

    .welcome-banner{
        width:100%;
        max-width:100%;
        height:auto;
        min-height:340px;
        object-fit:cover;
        object-position:center;
    }

}

/* =========================================================
   WRV COMICS — FINAL MOBILE BANNER FIX
   Larger without cropping
========================================================= */

@media (max-width:768px){

    .welcome-banner{
        width:100%;
        max-width:100%;
        height:auto;
        min-height:0;
        object-fit:contain;
        object-position:center;
        display:block;
    }

}

/* =========================================================
   WRV COMICS — PREMIUM LIBRARY EXPERIENCE
========================================================= */

body:has(#library){

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(0,229,255,.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 18%,
            rgba(155,92,255,.11),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #02030a 0%,
            #07101f 48%,
            #03050d 100%
        );
}

/* Library hero */

body:has(#library) .hero{

    position:relative;
    padding:70px 20px 55px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(0,229,255,.10),
            transparent 55%
        );

    border-bottom:1px solid rgba(0,229,255,.12);

    overflow:hidden;
}

body:has(#library) .hero::after{

    content:"";

    position:absolute;
    left:50%;
    bottom:0;

    width:min(520px,70%);
    height:1px;

    transform:translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0,229,255,.55),
            rgba(155,92,255,.45),
            transparent
        );

    box-shadow:
        0 0 18px rgba(0,229,255,.25);
}

body:has(#library) .hero h1{

    position:relative;
    z-index:1;

    margin:0 0 14px;

    font-size:clamp(32px,5vw,52px);
    font-weight:900;

    letter-spacing:-.8px;

    color:#f7fbff;

    text-shadow:
        0 0 14px rgba(91,192,255,.25),
        0 0 35px rgba(0,229,255,.10);
}

body:has(#library) .hero p{

    position:relative;
    z-index:1;

    max-width:650px;

    margin:0 auto;

    color:#bcd0e8;

    font-size:17px;
    line-height:1.75;
}

/* Welcome panel */

body:has(#library) .section{

    max-width:1100px;
    margin:0 auto;

    padding:42px 24px 10px;
}

body:has(#library) #welcome{

    margin:0;

    font-size:clamp(28px,4vw,42px);
    font-weight:900;

    color:#ffffff;

    text-shadow:
        0 0 12px rgba(91,192,255,.30),
        0 0 30px rgba(0,229,255,.10);
}

body:has(#library) .section > p{

    margin:14px auto 0 !important;

    color:#9fb6d2 !important;

    font-size:15px;

    line-height:1.8;
}

/* Library grid */

body:has(#library) #library{

    max-width:1100px;

    margin:34px auto 70px;

    padding:0 24px;

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(270px,1fr)
        );

    gap:28px;
}

/* Library cards */

body:has(#library) #library .card{

    position:relative;

    overflow:hidden;

    display:flex;
    flex-direction:column;

    min-width:0;

    border-radius:22px;

    background:
        linear-gradient(
            145deg,
            rgba(18,29,52,.88),
            rgba(5,9,20,.94)
        );

    border:1px solid rgba(91,192,255,.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.045),
        0 18px 50px rgba(0,0,0,.48);

    backdrop-filter:blur(18px) saturate(140%);

    animation:none;

    transition:
        transform .4s cubic-bezier(.22,1,.36,1),
        border-color .4s ease,
        box-shadow .4s ease;
}

body:has(#library) #library .card::after{

    content:"";

    position:absolute;
    inset:0;

    pointer-events:none;

    background:
        linear-gradient(
            120deg,
            rgba(0,229,255,.08),
            transparent 35%,
            transparent 65%,
            rgba(155,92,255,.07)
        );

    opacity:.55;
}

/* Cover */

body:has(#library) #library .card > img{

    position:relative;
    z-index:1;

    width:100%;
    aspect-ratio:4 / 3;

    object-fit:cover;

    border-bottom:1px solid rgba(0,229,255,.15);

    filter:
        saturate(1.08)
        contrast(1.04);

    transition:
        transform .6s cubic-bezier(.22,1,.36,1),
        filter .4s ease;
}

body:has(#library) #library .card:hover > img{

    transform:scale(1.045);

    filter:
        saturate(1.16)
        contrast(1.06);
}

/* Card content */

body:has(#library) #library .card-content{

    position:relative;
    z-index:2;

    display:flex;
    flex-direction:column;

    flex:1;

    padding:24px 24px 22px;
}

body:has(#library) #library .card-content h2{

    margin:0 0 10px;

    color:#ffffff;

    font-size:24px;
    line-height:1.2;

    text-shadow:
        0 0 10px rgba(91,192,255,.18);
}

body:has(#library) #library .card-content p{

    margin:0 0 22px;

    color:#b8cbe1;

    font-size:15px;
    line-height:1.7;

    flex:1;
}

/* Library buttons */

body:has(#library) #library .buy,
body:has(#library) #library .read{

    width:100%;

    min-height:54px;

    margin-top:auto;

    border-radius:14px;

    font-size:16px;
    font-weight:800;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        filter .3s ease;
}

body:has(#library) #library .buy:hover,
body:has(#library) #library .read:hover{

    transform:translateY(-3px);
}

/* Card hover */

body:has(#library) #library .card:hover{

    transform:translateY(-8px);

    border-color:rgba(0,229,255,.42);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 25px 65px rgba(0,0,0,.58),
        0 0 28px rgba(0,229,255,.13);
}

/* Empty state */

body:has(#library) #empty{

    max-width:700px;

    margin:30px auto 80px;

    padding:55px 25px;

    border:1px solid rgba(91,192,255,.15);
    border-radius:22px;

    background:rgba(10,16,32,.55);

    box-shadow:
        0 20px 50px rgba(0,0,0,.35);
}

/* Back button */

body:has(#library) > div[style*="text-align:center"]{

    margin:20px 0 70px !important;
}

/* Mobile Library */

@media(max-width:768px){

    body:has(#library) .hero{

        padding:48px 18px 38px;
    }

    body:has(#library) .hero h1{

        font-size:34px;
    }

    body:has(#library) .hero p{

        font-size:15px;
    }

    body:has(#library) .section{

        padding:34px 18px 8px;
    }

    body:has(#library) #library{

        grid-template-columns:1fr;

        padding:0 16px;

        gap:22px;

        margin-top:28px;
    }

    body:has(#library) #library .card > img{

        aspect-ratio:16 / 10;
    }

    body:has(#library) #library .card-content{

        padding:22px 20px 20px;
    }

    body:has(#library) #library .card-content h2{

        font-size:22px;
    }

}

/* =========================================================
   LIBRARY — ATOMIC PAGE RENDER
   Keep the page hidden until all library data is ready.
========================================================= */

body.library-loading{
    visibility:hidden;
}

body.library-ready{
    visibility:visible;
}

/* =========================================================
   WRV LIBRARY — PAGE ENTRY ANIMATION
   Match the homepage/account entrance motion.
========================================================= */

@keyframes wrvLibrarySlideIn{
    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

body.library-ready header,
body.library-ready .hero,
body.library-ready #welcome,
body.library-ready #library,
body.library-ready #empty,
body.library-ready > div[style*="text-align:center"]{
    animation:wrvLibrarySlideIn .9s ease both;
}


/* =========================================================
   LIBRARY — NO BLANK SCREEN ON ENTRY
   Keep the page visible while data initializes.
========================================================= */

body.library-loading{
    visibility:visible;
}


/* Library enters immediately — data loads without blocking the animation. */

body.library-loading header,
body.library-loading .hero,
body.library-loading #welcome,
body.library-loading #library,
body.library-loading #empty,
body.library-loading > div[style*="text-align:center"]{
    animation:wrvLibrarySlideIn .9s ease both;
}

/* =========================================================
   WRV COMICS — PREMIUM ACCOUNT EXPERIENCE
========================================================= */

body:has(#accountContent) .section{
    min-height:520px;
    display:flex;
    align-items:center;
    justify-content:center;
}

body:has(#accountContent) .section > .card{
    width:100%;
    max-width:760px !important;
    margin:auto !important;
    border-radius:28px;
    border:1px solid rgba(91,192,255,.22);
    background:
        linear-gradient(
            145deg,
            rgba(20,29,52,.86),
            rgba(5,9,20,.82)
        );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 25px 70px rgba(0,0,0,.48),
        0 0 40px rgba(0,229,255,.07);
}

body:has(#accountContent) .card-content{
    padding:46px;
}

.account-heading{
    margin-bottom:30px;
}

.account-kicker{
    display:block;
    margin-bottom:12px;
    color:var(--wrv-cyan);
    font-size:12px;
    font-weight:800;
    letter-spacing:3px;
    text-transform:uppercase;
}

.account-heading h2{
    margin:0;
    color:#fff;
    font-size:42px;
    line-height:1.12;
    letter-spacing:-1px;
}

.account-accent{
    width:180px;
    height:3px;
    margin-top:20px;
    border-radius:999px;
    background:
        linear-gradient(
            90deg,
            var(--wrv-cyan),
            var(--wrv-violet),
            transparent
        );
    box-shadow:
        0 0 14px rgba(0,229,255,.45);
}

.account-status{
    color:#e8f4ff;
    font-size:19px;
    margin:0 0 18px;
}

.account-description{
    color:#b9cbe0;
    font-size:16px;
    line-height:1.8;
    margin:0 0 34px;
}

.account-actions{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.account-action{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:62px;
    padding:0 22px 0 25px;
    box-sizing:border-box;
    border:1px solid rgba(91,192,255,.20);
    border-radius:16px;
    background:
        linear-gradient(
            135deg,
            rgba(16,28,50,.92),
            rgba(6,12,26,.92)
        );
    color:#fff;
    text-decoration:none;
    font-size:15px;
    font-weight:800;
    letter-spacing:1.1px;
    cursor:pointer;
    overflow:hidden;
    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}

.account-action::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            100deg,
            transparent 20%,
            rgba(255,255,255,.10),
            transparent 80%
        );
    transform:translateX(-110%);
    transition:transform .6s ease;
}

.account-action:hover::before{
    transform:translateX(110%);
}

.account-action:hover{
    transform:translateY(-3px);
    border-color:rgba(0,229,255,.48);
    box-shadow:
        0 12px 30px rgba(0,0,0,.35),
        0 0 24px rgba(0,229,255,.12);
}

.account-action-primary{
    background:
        linear-gradient(
            135deg,
            #ffd700 0%,
            #ffb300 45%,
            #ff6a00 100%
        );
    color:#07080d;
    border-color:rgba(255,215,0,.55);
    box-shadow:
        0 0 22px rgba(255,174,0,.20);
}

.account-action-primary:hover{
    border-color:rgba(255,215,0,.85);
    box-shadow:
        0 12px 35px rgba(0,0,0,.38),
        0 0 30px rgba(255,174,0,.28);
}

.account-arrow{
    position:relative;
    z-index:1;
    font-size:24px;
    line-height:1;
    transition:transform .3s ease;
}

.account-action:hover .account-arrow{
    transform:translateX(5px);
}

.account-signout{
    margin-top:10px;
    background:
        linear-gradient(
            135deg,
            rgba(255,106,0,.16),
            rgba(12,18,34,.95)
        );
    border-color:rgba(255,106,0,.30);
}

.account-signout:hover{
    border-color:rgba(255,106,0,.58);
    box-shadow:
        0 12px 30px rgba(0,0,0,.35),
        0 0 25px rgba(255,106,0,.12);
}

.account-signout:disabled{
    opacity:.65;
    cursor:wait;
    transform:none;
}

.account-delete{
    margin-top:80px;
    background:
        linear-gradient(
            135deg,
            rgba(180,35,35,.18),
            rgba(12,18,34,.95)
        );
    border-color:rgba(220,70,70,.34);
}

.account-delete:hover{
    border-color:rgba(255,90,90,.70);
    box-shadow:
        0 12px 30px rgba(0,0,0,.35),
        0 0 25px rgba(255,70,70,.14);
}

.account-delete:disabled{
    opacity:.65;
    cursor:wait;
    transform:none;
}

.account-google-btn{
    margin-top:10px;
}

.account-footer{
    margin-top:45px;
    padding-top:55px;
    padding-bottom:55px;
}

.account-footer-brand{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin-bottom:30px;
}

.account-footer-brand img{
    width:270px;
    height:auto;
    object-fit:contain;
    display:block;
    margin-bottom:16px;
}

.account-footer-brand p{
    margin:0;
    color:#9db4ce;
    font-size:14px;
    letter-spacing:.6px;
}

.account-footer .footer-copy{
    margin-top:25px;
    color:#78899d;
    font-size:13px;
}


/* ---------- ACCOUNT MOBILE ---------- */

@media(max-width:768px){

    body:has(#accountContent) .section{
        min-height:0;
        padding-top:45px;
        padding-bottom:45px;
    }

    body:has(#accountContent) .card-content{
        padding:30px 22px;
    }

    .account-heading h2{
        font-size:32px;
    }

    .account-status{
        font-size:17px;
    }

    .account-action{
        min-height:58px;
        padding-left:19px;
        padding-right:18px;
        font-size:13px;
    }

    .account-footer-brand img{
        width:min(240px,76vw);
        height:auto;
    }

}

/* =========================================================
   ACCOUNT — AUTH STATE HANDOFF
   Prevent the signed-out UI from flashing while Firebase
   restores an existing session.
========================================================= */

.account-content-loading{
    position:relative;
    min-height:420px;
}

/* =========================================================
   WRV LIBRARY — FINAL ENTRY POSITION
   The library enters once and remains stationary.
========================================================= */

body.library-ready header,
body.library-ready .hero,
body.library-ready #welcome,
body.library-ready #library,
body.library-ready #empty,
body.library-ready > div[style*="text-align:center"]{
    animation:wrvLibrarySlideIn .9s ease both;
}

/* Prevent the library section from receiving a second
   transform/animation from competing page-entry rules. */
body.library-ready .section{
    animation:none;
    transform:none;
}

/* Once the entrance animation has completed, keep every
   library element locked at its natural document position. */
body.library-ready header,
body.library-ready .hero,
body.library-ready #welcome,
body.library-ready #library,
body.library-ready #empty,
body.library-ready > div[style*="text-align:center"]{
    animation-fill-mode:both;
}

/* =========================================================
   WRV COMICS — ANIMATION LINK
========================================================= */

.animation-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:18px 0;
    padding:13px 16px;
    border:1px solid rgba(91,192,255,.28);
    border-radius:12px;
    background:
        linear-gradient(
            135deg,
            rgba(0,229,255,.08),
            rgba(155,92,255,.08)
        );
    color:#dff7ff;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    letter-spacing:1.2px;
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.animation-link span{
    font-size:20px;
    line-height:1;
    color:#5BC0FF;
    transition:transform .25s ease;
}

.animation-link:hover{
    transform:translateY(-2px);
    border-color:rgba(91,192,255,.65);
    background:
        linear-gradient(
            135deg,
            rgba(0,229,255,.14),
            rgba(155,92,255,.12)
        );
    box-shadow:
        0 8px 25px rgba(0,0,0,.28),
        0 0 18px rgba(0,229,255,.10);
}

.animation-link:hover span{
    transform:translateX(4px);
}


/* =========================================================
   WRV COMICS — FINAL PREMIUM HEADER LOGO
   One authoritative rule for Home / Library / Account.
========================================================= */

header .header-top{
    position:relative;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:clamp(12px, 3vw, 28px);
}

header .profile-container{
    flex:0 0 auto;
    position:relative;
    z-index:5;
}

header .logo{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    z-index:4;
}

header .header-logo{
    display:block;

    /* Large, but still safely contained between the controls. */
    width:clamp(250px, 42vw, 560px);
    max-width:100%;
    height:auto;

    object-fit:contain;

    /* Premium controlled glow — not an excessive neon effect. */
    filter:
        drop-shadow(0 0 5px rgba(0, 220, 255, .42))
        drop-shadow(0 0 12px rgba(0, 180, 255, .24));

    transition:
        filter .35s ease,
        transform .35s ease;
}

header .header-logo:hover{
    filter:
        drop-shadow(0 0 6px rgba(0, 220, 255, .55))
        drop-shadow(0 0 16px rgba(0, 180, 255, .30));
}

/* Keep the logo visually dominant without colliding with
   the profile/menu controls on phones. */
@media (max-width:700px){

    header .header-top{
        gap:10px;
    }

    header .header-logo{
        width:clamp(225px, 68vw, 400px);
    }

}

/* Very narrow phones. */
@media (max-width:390px){

    header .header-top{
        gap:7px;
    }

    header .header-logo{
        width:clamp(205px, 65vw, 300px);
    }

}

/* Prevent the logo from becoming oversized on desktop. */
@media (min-width:1000px){

    header .header-logo{
        width:min(560px, 42vw);
    }

}

/* =========================
   WRV COMICS DELETE MODAL
========================= */

.wrv-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.wrv-delete-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.wrv-delete-dialog {
    width: min(100%, 570px);
    max-height: calc(100dvh - 28px);
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(24, 38, 58, 0.98),
            rgba(8, 17, 32, 0.99)
        );
    border: 1px solid rgba(126, 211, 255, 0.38);
    border-radius: 24px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(0, 180, 255, 0.12);
    padding: 18px 22px 20px;
    transform: translateY(90px);
    transition:
        transform 0.38s cubic-bezier(.22, 1, .36, 1);
}

.wrv-delete-modal.active .wrv-delete-dialog {
    transform: translateY(0);
}

.wrv-delete-handle {
    width: 72px;
    height: 6px;
    margin: 0 auto 24px;
    border-radius: 20px;
    background: rgba(220, 230, 240, 0.65);
}

.wrv-delete-logo {
    display: block;
    width: min(78%, 360px);
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.wrv-delete-title {
    margin: 0 auto 20px;
    max-width: 470px;
    text-align: center;
    color: #fff;
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.25;
    font-weight: 700;
}

.wrv-delete-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 4px 15px;
    color: rgba(245, 248, 252, 0.9);
    font-size: 16px;
    line-height: 1.45;
}

.wrv-delete-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 55, 80, 0.65);
    border-radius: 50%;
    color: #ff6475;
    font-size: 21px;
    background: rgba(255, 30, 55, 0.07);
}

.wrv-delete-divider {
    height: 1px;
    margin: 20px 0;
    background: rgba(180, 210, 235, 0.2);
}

.wrv-delete-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.wrv-delete-cancel,
.wrv-delete-confirm {
    min-height: 58px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        box-shadow 0.18s ease;
}

.wrv-delete-cancel {
    color: #fff;
    background: rgba(10, 22, 40, 0.7);
    border: 1px solid rgba(130, 190, 230, 0.35);
}

.wrv-delete-confirm {
    color: #fff;
    background: linear-gradient(135deg, #ff3030, #e3131f);
    border: 1px solid rgba(255, 120, 120, 0.45);
    box-shadow: 0 8px 25px rgba(230, 20, 30, 0.22);
}

.wrv-delete-cancel:hover,
.wrv-delete-confirm:hover {
    transform: translateY(-2px);
}

.wrv-delete-confirm:disabled,
.wrv-delete-cancel:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.wrv-account-deleted-dialog {
    text-align: center;
}

.wrv-account-deleted-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(80, 220, 150, 0.55);
    border-radius: 50%;
    background: rgba(40, 190, 120, 0.10);
    color: #63e6a3;
    font-size: 30px;
    font-weight: 800;
    box-shadow:
        0 0 25px rgba(60, 220, 150, 0.12);
}

.wrv-account-deleted-description {
    max-width: 470px;
    margin: 0 auto;
    color: #a9bfd5;
    font-size: 14px;
    line-height: 1.65;
}

.wrv-account-deleted-actions {
    grid-template-columns: 1fr;
}

.wrv-account-deleted-actions .wrv-delete-confirm {
    width: 100%;
}

@media (max-width: 520px) {

    .wrv-account-deleted-message {
        font-size: 14px;
    }

    .wrv-account-deleted-description {
        font-size: 13px;
    }

}


@media (max-width: 520px) {

    .wrv-delete-modal {
        padding: 10px;
    }

    .wrv-delete-dialog {
        width: min(100%, 570px);
        max-height: calc(100dvh - 20px);
        padding: 13px 15px 15px;
        border-radius: 22px;
    }

    .wrv-delete-handle {
        width: 58px;
        height: 5px;
        margin-bottom: 15px;
    }

    .wrv-delete-logo {
        width: 72%;
        max-height: 62px;
        margin-bottom: 12px;
    }

    .wrv-delete-title {
        margin-bottom: 13px;
        font-size: 20px;
        line-height: 1.2;
    }

    .wrv-delete-warning {
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 1.35;
        gap: 9px;
    }

    .wrv-delete-divider {
        margin: 13px 0;
    }

    .wrv-delete-actions {
        gap: 10px;
    }

    .wrv-delete-cancel,
    .wrv-delete-confirm {
        min-height: 52px;
        font-size: 14px;
    }

    .wrv-delete-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .wrv-delete-actions {
        gap: 10px;
    }

    .wrv-delete-cancel,
    .wrv-delete-confirm {
        min-height: 54px;
        font-size: 14px;
    }
}

/* =========================
   WRV SIGN-OUT TRANSITION
========================= */

.wrv-signout-transition {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at center,
            rgba(24, 38, 58, 0.98),
            rgba(4, 10, 20, 1) 72%
        );
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

.wrv-signout-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wrv-signout-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transform: translateY(12px);
    opacity: 0;
    transition:
        transform 0.45s ease,
        opacity 0.45s ease;
}

.wrv-signout-transition.active
.wrv-signout-content {
    transform: translateY(0);
    opacity: 1;
}

.wrv-signout-spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: rgba(255, 255, 255, 0.95);
    animation:
        wrvSignoutSpin 0.8s linear infinite;
}

.wrv-signout-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.92);
}

@keyframes wrvSignoutSpin {

    to {
        transform: rotate(360deg);
    }

}

@media (prefers-reduced-motion: reduce) {

    .wrv-signout-transition,
    .wrv-signout-content {
        transition: none;
    }

    .wrv-signout-spinner {
        animation: none;
    }

}

/* =========================================================
   WRV COMICS — REMOVE FINAL BOTTOM SPACE
========================================================= */

.footer {
    padding-bottom:0 !important;
}

.footer-copy {
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}

.account-footer {
    padding-bottom:0 !important;
}
