/* =========================================================
   COMICVAULT
   PREMIUM CINEMATIC EDITORIAL UI
   FULL STYLESHEET — PART 1 OF 2
========================================================= */

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at 78% -10%,
            rgba(230, 91, 138, 0.055),
            transparent 27%
        ),
        radial-gradient(
            circle at 5% 45%,
            rgba(241, 144, 82, 0.025),
            transparent 22%
        ),
        #0e1012;
    color: #e7e8ea;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    height: 70px;
    width: 100%;
    background: rgba(14, 16, 18, 0.90);
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    display: flex;
    align-items: center;
    padding: 0 5.5%;
    gap: 42px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.16);
}

.logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.8px;
    white-space: nowrap;
}

.logo::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 5px;
    margin-bottom: -10px;
    border-radius: 50%;
    background: #e65b8a;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.main-nav a {
    position: relative;
    color: #858a91;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15px;
    transition:
        color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -26px;
    height: 2px;
    border-radius: 10px;
    background: #e65b8a;
    transform: scaleX(0);
    transform-origin: center;
    transition:
        transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}


/* =========================================================
   NAV RIGHT
========================================================= */

.nav-right {
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
}


/* =========================================================
   NAV SEARCH
========================================================= */

.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 6px;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.nav-search:focus-within {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.055);
}

.nav-search input {
    width: 185px;
    padding: 9px 12px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 12px;
}

.nav-search input::placeholder {
    color: #666c73;
}

.nav-search button {
    background: transparent;
    border: none;
    color: #777d84;
    padding: 0 11px;
    cursor: pointer;
    transition:
        color 0.2s ease;
}

.nav-search button:hover {
    color: #ffffff;
}


/* =========================================================
   NAVBAR ICON BUTTONS
========================================================= */

.discord-link,
.login-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #b8bdc3;
    background: #1b1e22;
    border: 1px solid #353a40;
    border-radius: 50%;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.discord-link i,
.login-btn i {
    font-size: 17px;
}

.discord-link:hover,
.login-btn:hover {
    color: #ffffff;
    background: #25292e;
    border-color: #4a4f55;
    transform: translateY(-1px);
}


/* =========================================================
   PROFILE MENU
========================================================= */

.profile-menu {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1100;
}

.profile-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    padding: 0 !important;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b1e22 !important;
    border: 1px solid #353a40 !important;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.profile-btn:hover {
    border-color: #4a4f55 !important;
    background: #25292e !important;
    transform: translateY(-1px);
}

.profile-btn img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}


/* =========================================================
   PROFILE DROPDOWN
========================================================= */

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    background: rgba(25, 28, 32, 0.98);
    border: 1px solid #30353b;
    border-radius: 14px;
    padding: 8px;
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

/* Keep the account menu anchored to the viewport edge so nav wrappers cannot clip it. */
.profile-dropdown {
    position: fixed !important;
    top: 56px !important;
    right: 12px !important;
    left: auto !important;
    width: min(300px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 72px) !important;
    overflow-y: auto !important;
    z-index: 120000 !important;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.dropdown-avatar {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    overflow: hidden !important;
    background: #1b1e22;
    border: 1px solid #353a40;
    border-radius: 50%;
    padding: 0 !important;
    margin: 0 !important;
    color: #b8bdc3;
    object-fit: cover;
}

.dropdown-avatar img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.dropdown-avatar i {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    transform: none !important;
}

.dropdown-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dropdown-user-info strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dropdown-user-info span {
    color: #858b92;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}

.dropdown-divider {
    height: 1px;
    background: #292e34;
    margin: 6px 4px;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 9px;
    color: #b8bec5;
    text-decoration: none;
    font-size: 14px;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: #858c94;
}

.dropdown-item:hover {
    background: #22272c;
    color: #ffffff;
}

.dropdown-item:hover i {
    color: #e65b8a;
}

.dropdown-logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #b8bec5;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.dropdown-logout i {
    width: 18px;
    text-align: center;
}

.dropdown-logout:hover {
    background: rgba(230, 91, 138, 0.08);
    color: #e66b8d;
}


/* =========================================================
   HERO — CINEMATIC
========================================================= */

.hero-cinematic {
    position: relative;
    min-height: 560px;
    padding: 70px 6%;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            ellipse at 73% 46%,
            rgba(230, 91, 138, 0.075),
            transparent 25%
        ),
        linear-gradient(
            105deg,
            #121416 0%,
            #141619 55%,
            #101214 100%
        );
    border-bottom:
        1px solid rgba(255, 255, 255, 0.075);
}


/* =========================================================
   HERO ATMOSPHERE
========================================================= */

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.hero-ambient {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(5px);
}

.hero-ambient-one {
    width: 620px;
    height: 620px;
    top: -230px;
    right: -130px;
    z-index: -3;
    background:
        radial-gradient(
            circle,
            rgba(230, 91, 138, 0.105),
            rgba(230, 91, 138, 0.025) 42%,
            transparent 70%
        );
}

.hero-ambient-two {
    width: 430px;
    height: 430px;
    left: -220px;
    bottom: -270px;
    z-index: -3;
    background:
        radial-gradient(
            circle,
            rgba(241, 144, 82, 0.045),
            transparent 68%
        );
}

.hero-lines {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.20;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 70px 70px;
    mask-image:
        radial-gradient(
            ellipse at 72% 50%,
            black,
            transparent 65%
        );
    -webkit-mask-image:
        radial-gradient(
            ellipse at 72% 50%,
            black,
            transparent 65%
        );
}


/* =========================================================
   HERO INNER
========================================================= */

.hero-inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(480px, 1.05fr);
    align-items: center;
    gap: 30px;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #e65b8a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero-eyebrow span {
    width: 22px;
    height: 1px;
    background: #e65b8a;
    opacity: 0.75;
}

.hero h1 {
    max-width: 700px;
    color: #f4f4f5;
    font-size: clamp(48px, 5.4vw, 68px);
    line-height: 0.99;
    letter-spacing: -3px;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero h1 em {
    color: #e65b8a;
    font-style: normal;
}

.hero-text {
    max-width: 500px;
    color: #858b91;
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   HERO SEARCH
========================================================= */

.search-box {
    display: flex;
    width: 100%;
    max-width: 610px;
    height: 50px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.22);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.search-box:focus-within {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28),
        0 0 0 3px rgba(230, 91, 138, 0.035);
}

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 0 17px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 12px;
}

.search-box input::placeholder {
    color: #666c73;
}

.search-box button {
    min-width: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: none;
    background:
        linear-gradient(
            135deg,
            #e65b8a,
            #d94d7c
        );
    color: #ffffff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}

.search-box button:hover {
    opacity: 0.93;
}

.search-box button i {
    font-size: 11px;
    transition:
        transform 0.25s ease;
}

.search-box button:hover i {
    transform: translateX(3px);
}


/* =========================================================
   HERO META
========================================================= */

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 15px;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #70767d;
    font-size: 9px;
}

.hero-meta i {
    color: #9a9fa5;
    font-size: 9px;
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
    position: relative;
    height: 455px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    --visual-x: 0px;
    --visual-y: 0px;
}


/* =========================================================
   HERO ORBIT
========================================================= */

.hero-orbit {
    position: absolute;
    width: 470px;
    height: 470px;
    right: 2%;
    top: -10px;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
    content: "";
    position: absolute;
    inset: 38px;
    border: 1px solid rgba(230, 91, 138, 0.055);
    border-radius: 50%;
}

.hero-orbit::after {
    inset: 95px;
    border-color: rgba(255, 255, 255, 0.025);
}


/* =========================================================
   HERO COVER BASE
========================================================= */

.hero-cover {
    position: absolute;
    overflow: hidden;
    border-radius: 10px;
    border:
        1px solid rgba(255, 255, 255, 0.12);
    background: #181b1f;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.42);
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-image-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(5, 7, 9, 0.62) 100%
        );
}


/* =========================================================
   HERO BACK COVER
========================================================= */

.hero-cover-back {
    width: 220px;
    height: 330px;
    right: 8%;
    top: 42px;
    opacity: 0.55;
    transform:
        translate3d(
            calc(var(--visual-x) * -0.55),
            calc(var(--visual-y) * -0.55),
            -80px
        )
        rotate(8deg);
    filter: saturate(0.75);
}


/* =========================================================
   HERO MAIN COVER
========================================================= */

.hero-cover-main {
    width: 245px;
    height: 365px;
    right: 27%;
    top: 40px;
    z-index: 4;
    transform:
        translate3d(
            var(--visual-x),
            var(--visual-y),
            30px
        )
        rotate(-2deg);
}

.hero-cover-main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            transparent 43%,
            rgba(5, 7, 9, 0.92) 100%
        );
}

.hero-cover-main .hero-image-shade {
    background:
        linear-gradient(
            120deg,
            rgba(230, 91, 138, 0.06),
            transparent 48%
        );
}

.hero-cover-info {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-cover-info span {
    color: #e65b8a;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-cover-info strong {
    color: #ffffff;
    font-size: 21px;
    line-height: 1.1;
}

.hero-cover-info small {
    color: #a5a9ae;
    font-size: 10px;
}


/* =========================================================
   HERO FLOATING COVER
========================================================= */

.hero-cover-float {
    width: 145px;
    height: 215px;
    right: 2%;
    bottom: 38px;
    z-index: 5;
    transform:
        translate3d(
            calc(var(--visual-x) * 1.35),
            calc(var(--visual-y) * 1.35),
            100px
        )
        rotate(7deg);
}

.hero-cover-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border:
        1px solid rgba(255, 255, 255, 0.08);
    border-radius: inherit;
    pointer-events: none;
}


/* =========================================================
   HERO FLOAT CARD
========================================================= */

.hero-float-card {
    position: absolute;
    left: 2%;
    top: 58px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    background:
        rgba(23, 26, 30, 0.92);
    border:
        1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform:
        translate3d(
            calc(var(--visual-x) * 1.6),
            calc(var(--visual-y) * 1.6),
            140px
        );
}

.hero-float-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(230, 91, 138, 0.10);
    color: #e65b8a;
    font-size: 13px;
}

.hero-float-card > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-float-card span {
    color: #777d84;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.hero-float-card strong {
    color: #e5e7e9;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   HERO CHAPTER BADGE
========================================================= */

.hero-chapter-badge {
    position: absolute;
    right: 11%;
    bottom: 32px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    background: #e65b8a;
    color: #ffffff;
    border-radius: 5px;
    box-shadow:
        0 12px 30px rgba(230, 91, 138, 0.20);
    transform:
        translate3d(
            calc(var(--visual-x) * 1.8),
            calc(var(--visual-y) * 1.8),
            180px
        );
}

.hero-chapter-badge span {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.75;
}

.hero-chapter-badge strong {
    font-size: 9px;
    font-weight: 800;
}


/* =========================================================
   HERO VERTICAL TEXT
========================================================= */

.hero-vertical-text {
    position: absolute;
    right: -2%;
    top: 48%;
    z-index: 2;
    color: rgba(255, 255, 255, 0.16);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
    transform:
        rotate(180deg);
    pointer-events: none;
}


/* =========================================================
   HERO BOTTOM
========================================================= */

.hero-bottom {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555b61;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.scroll-line {
    width: 42px;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            #e65b8a,
            transparent
        );
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.container {
    width: 89%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 62px 0 75px;
}


/* =========================================================
   SECTION KICKER
========================================================= */

.section-kicker {
    display: block;
    color: #e65b8a;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2.2px;
    margin-bottom: 7px;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 13px;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.065);
}

.section-heading h2 {
    color: #eeeeef;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.65px;
    font-weight: 750;
}

.section-heading h2 em {
    color: #e65b8a;
    font-style: normal;
}

.section-heading > a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #70767d;
    text-decoration: none;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition:
        color 0.2s ease;
}

.section-heading > a:hover {
    color: #ffffff;
}

.section-heading > a i {
    font-size: 8px;
    transition:
        transform 0.2s ease;
}

.section-heading > a:hover i {
    transform: translate(2px, -2px);
}


/* =========================================================
   TRENDING SECTION
========================================================= */

.trending-section {
    margin-bottom: 82px;
}

.cinematic-heading {
    align-items: flex-end;
}


/* =========================================================
   TRENDING LIST
========================================================= */

.trending-list {
    display: flex;
    flex-direction: column;
    border-top:
        1px solid rgba(255, 255, 255, 0.035);
}


/* =========================================================
   TRENDING ITEM
========================================================= */

.trending-item {
    position: relative;
    min-height: 96px;
    display: grid;
    grid-template-columns:
        42px
        60px
        minmax(0, 1fr)
        120px
        28px;
    align-items: center;
    gap: 15px;
    padding: 14px 10px;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);
    transition:
        background 0.25s ease,
        padding-left 0.25s ease,
        border-color 0.25s ease;
}

.trending-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    bottom: 17px;
    width: 2px;
    background:
        linear-gradient(
            180deg,
            transparent,
            #e65b8a,
            transparent
        );
    opacity: 0;
    transition:
        opacity 0.25s ease;
}

.trending-item:hover {
    background:
        linear-gradient(
            90deg,
            rgba(230, 91, 138, 0.045),
            transparent 75%
        );
    padding-left: 15px;
}

.trending-item:hover::before {
    opacity: 1;
}


/* =========================================================
   TREND NUMBER
========================================================= */

.trend-number {
    color: #444a50;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.8px;
    transition:
        color 0.2s ease;
}

.trending-item:first-child .trend-number {
    color: #e65b8a;
}

.trending-item:hover .trend-number {
    color: #ffffff;
}


/* =========================================================
   TREND COVER
========================================================= */

.trend-cover {
    width: 60px;
    height: 72px;
    overflow: hidden;
    border:
        1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    background: #191c20;
}

.trend-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 0.4s cubic-bezier(.2, .7, .2, 1);
}

.trending-item:hover .trend-cover img {
    transform: scale(1.045);
}


/* =========================================================
   TREND INFO
========================================================= */

.trend-info {
    min-width: 0;
}

.trend-type {
    display: block;
    color: #e65b8a;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 5px;
}

.trend-info h3 {
    color: #eeeeef;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.25px;
    margin-bottom: 5px;
}

.trend-info p {
    color: #70767d;
    font-size: 9px;
    line-height: 1.3;
}


/* =========================================================
   TREND CHAPTER
========================================================= */

.trend-chapter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.trend-chapter span {
    color: #575d63;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trend-chapter strong {
    color: #d9dbde;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
}


/* =========================================================
   TREND ARROW
========================================================= */

.trend-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555b61;
    border:
        1px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.trending-item:hover .trend-arrow {
    color: #ffffff;
    border-color:
        rgba(230, 91, 138, 0.28);
    background:
        rgba(230, 91, 138, 0.08);
    transform: translateX(3px);
}

.trend-arrow i {
    font-size: 9px;
}


/* =========================================================
   MOOD SECTION
========================================================= */

.mood-section {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(250px, 0.72fr)
        minmax(0, 1.28fr);
    gap: 55px;
    align-items: center;
    margin-bottom: 82px;
    padding: 58px 0;
    border-top:
        1px solid rgba(255, 255, 255, 0.065);
    border-bottom:
        1px solid rgba(255, 255, 255, 0.065);
}

.mood-section::before {
    content: "";
    position: absolute;
    left: -8%;
    top: 50%;
    width: 260px;
    height: 260px;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(230, 91, 138, 0.045),
            transparent 70%
        );
    pointer-events: none;
}


/* =========================================================
   MOOD INTRO
========================================================= */

.mood-intro {
    position: relative;
    z-index: 1;
}

.mood-intro h2 {
    max-width: 360px;
    color: #eeeeef;
    font-size: clamp(30px, 3.2vw, 43px);
    line-height: 0.98;
    letter-spacing: -1.8px;
    font-weight: 800;
}

.mood-intro h2 em {
    color: #e65b8a;
    font-style: normal;
}

.mood-intro p {
    max-width: 290px;
    margin-top: 18px;
    color: #70767d;
    font-size: 11px;
    line-height: 1.7;
}


/* =========================================================
   MOOD GRID
========================================================= */

.mood-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
}


/* =========================================================
   MOOD CARD
========================================================= */

.mood-card {
    position: relative;
    min-height: 132px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 18px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    background:
        linear-gradient(
            145deg,
            #1a1d21,
            #14171a
        );
    border:
        1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    isolation: isolate;
    transition:
        transform 0.3s cubic-bezier(.2, .7, .2, 1),
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.mood-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0;
    transition:
        opacity 0.3s ease;
}

.mood-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -45px;
    top: -45px;
    z-index: -1;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(230, 91, 138, 0.08),
            transparent 68%
        );
    transition:
        transform 0.4s ease;
}

.mood-card:hover {
    transform: translateY(-4px);
    border-color:
        rgba(255, 255, 255, 0.13);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.24);
}

.mood-card:hover::after {
    transform: scale(1.5);
}


/* =========================================================
   MOOD VARIATIONS
========================================================= */

.mood-chaos::before {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(230, 91, 138, 0.13),
            transparent 45%
        );
}

.mood-dark::before {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(115, 105, 160, 0.10),
            transparent 45%
        );
}

.mood-power::before {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(241, 144, 82, 0.10),
            transparent 45%
        );
}

.mood-emotion::before {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(230, 91, 138, 0.08),
            transparent 45%
        );
}

.mood-card:hover::before {
    opacity: 1;
}


/* =========================================================
   MOOD INDEX
========================================================= */

.mood-index {
    position: absolute;
    top: 13px;
    right: 15px;
    color: rgba(255, 255, 255, 0.18);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* =========================================================
   MOOD TEXT
========================================================= */

.mood-card > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mood-card small {
    color: #70767d;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.mood-card strong {
    color: #eeeeef;
    font-size: 15px;
    line-height: 1.05;
    letter-spacing: -0.3px;
}


/* =========================================================
   MOOD ICON
========================================================= */

.mood-card > i {
    color: #555b61;
    font-size: 15px;
    transition:
        color 0.25s ease,
        transform 0.3s ease;
}

.mood-card:hover > i {
    color: #e65b8a;
    transform:
        translate(2px, -2px)
        rotate(-8deg);
}


/* =========================================================
   CONTENT LAYOUT
========================================================= */

.content-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        330px;
    gap: 34px;
    align-items: start;
}

.main-content {
    min-width: 0;
}


/* =========================================================
   FEATURED SECTION
========================================================= */

.featured-section {
    min-width: 0;
}


/* =========================================================
   FEATURED GRID
========================================================= */

.featured-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 22px;
}


/* =========================================================
   FEATURED CARD
========================================================= */

.featured-card {
    position: relative;
    width: 100%;
    height: 222px;
    min-width: 0;
    display: flex;
    overflow: hidden;
    background:
        linear-gradient(
            125deg,
            #191c20,
            #15181b
        );
    border:
        1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    isolation: isolate;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.3s cubic-bezier(.22, .61, .36, 1),
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.3s ease;
}

.featured-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 2px;
    z-index: 5;
    background:
        linear-gradient(
            180deg,
            transparent,
            #e65b8a 30%,
            rgba(230, 91, 138, 0.35) 70%,
            transparent
        );
    opacity: 0.85;
}

.featured-card::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -180px;
    top: -130px;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            rgba(230, 91, 138, 0.035),
            transparent 67%
        );
}

.featured-card:hover {
    transform: translate3d(0, -5px, 0);
    border-color:
        rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(
            125deg,
            #1c1f23,
            #171a1d
        );
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.23);
}


/* =========================================================
   FEATURED COVER
========================================================= */

.featured-cover {
    position: relative;
    width: 126px;
    min-width: 126px;
    height: 222px;
    overflow: hidden;
    background: #151719;
    border-right:
        1px solid rgba(255, 255, 255, 0.06);
}

.featured-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 0.45s cubic-bezier(.2, .7, .2, 1);
}

.featured-card:hover .featured-cover img {
    transform: scale(1.045);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent 52%,
            rgba(8, 10, 11, 0.48)
        );
}

.featured-rank {
    position: absolute;
    left: 9px;
    bottom: 9px;
    padding: 4px 6px;
    color: #f1f1f2;
    background: rgba(10, 12, 14, 0.78);
    border:
        1px solid rgba(255, 255, 255, 0.10);
    border-radius: 3px;
    font-size: 6px;
    font-weight: 800;
    letter-spacing: 1.1px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* =========================================================
   FEATURED INFO
========================================================= */

.featured-info {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    padding: 16px 15px;
    display: flex;
    flex-direction: column;
}

.featured-info::after {
    content: "EDITOR'S PICK";
    position: absolute;
    top: 16px;
    right: 15px;
    color: #565c63;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.featured-info::before {
    position: absolute;
    right: 14px;
    bottom: 11px;
    color: rgba(255, 255, 255, 0.035);
    font-size: 31px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    pointer-events: none;
}

.featured-card:nth-child(1) .featured-info::before {
    content: "01";
}

.featured-card:nth-child(2) .featured-info::before {
    content: "02";
}

.featured-card:nth-child(3) .featured-info::before {
    content: "03";
}


/* =========================================================
   STATUS
========================================================= */

.comic-status {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #777d84;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.9px;
    margin-bottom: 8px;
}

.comic-status span {
    width: 4px;
    height: 4px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #777d84;
}

.comic-status.ongoing {
    color: #70b98a;
}

.comic-status.ongoing span {
    background: #70b98a;
}

.comic-status.completed {
    color: #999fa5;
}

.comic-status.completed span {
    background: #999fa5;
}

.comic-status.hiatus {
    color: #c99668;
}

.comic-status.hiatus span {
    background: #c99668;
}


/* =========================================================
   FEATURED TITLE
========================================================= */

.featured-info h3 {
    color: #f0f0f1;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.25px;
    font-weight: 700;
    margin-bottom: 5px;
    padding-right: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   COMIC TYPE
========================================================= */

.comic-type {
    color: #666d74;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}


/* =========================================================
   CHAPTER LIST
========================================================= */

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.chapter-box {
    width: 100%;
    min-width: 0;
    min-height: 27px;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background:
        rgba(255, 255, 255, 0.025);
    border:
        1px solid rgba(255, 255, 255, 0.065);
    border-radius: 4px;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.chapter-box:hover {
    background:
        rgba(230, 91, 138, 0.055);
    border-color:
        rgba(230, 91, 138, 0.18);
    transform:
        translateX(2px);
}


/* =========================================================
   ACTUAL CHAPTER NAME
========================================================= */

.chapter-box span {
    order: 1;
    color: #e4e5e7;
    font-size: 10px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}


/* =========================================================
   ACTUAL PUBLISH DATE
========================================================= */

.chapter-box small {
    order: 2;
    color: #737980;
    font-size: 7px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.15px;
    white-space: nowrap;
}


/* =========================================================
   OLD STRONG SELECTOR NEUTRALIZED
========================================================= */

.chapter-box strong {
    display: none;
}/* =========================================================
   PART 2 — CINEMATIC SECTIONS
========================================================= */


/* =========================================================
   HERO — CINEMATIC
========================================================= */

.hero-cinematic {

    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 45%, rgba(255, 92, 145, 0.10), transparent 30%),
        radial-gradient(circle at 20% 65%, rgba(255, 143, 70, 0.06), transparent 32%),
        #08090d;

}

.hero-cinematic::before {

    content: "";
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        linear-gradient(90deg, #08090d 0%, rgba(8, 9, 13, 0.94) 36%, rgba(8, 9, 13, 0.46) 70%, rgba(8, 9, 13, 0.84) 100%);

}

.hero-noise {

    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");

}

.hero-ambient {

    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    opacity: 0.32;
    z-index: -3;

}

.hero-ambient-one {

    width: 340px;
    height: 340px;
    top: 10%;
    right: 15%;
    background: rgba(255, 86, 139, 0.11);
    animation: heroAmbientOne 9s ease-in-out infinite alternate;

}

.hero-ambient-two {

    width: 280px;
    height: 280px;
    bottom: 4%;
    right: 35%;
    background: rgba(255, 139, 69, 0.07);
    animation: heroAmbientTwo 11s ease-in-out infinite alternate;

}

@keyframes heroAmbientOne {

    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-20px, 18px, 0) scale(1.08);
    }

}

@keyframes heroAmbientTwo {

    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(25px, -16px, 0) scale(1.12);
    }

}

.hero-lines {

    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.18;
    background:
        linear-gradient(115deg, transparent 0 56%, rgba(255,255,255,0.035) 56.1%, transparent 56.4%),
        linear-gradient(115deg, transparent 0 69%, rgba(255,255,255,0.025) 69.1%, transparent 69.35%);

}

.hero-inner {

    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    align-items: center;
    gap: 50px;
    padding: 80px 0 95px;

}

.hero-content {

    position: relative;
    z-index: 5;
    max-width: 680px;

}

.hero-eyebrow {

    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.54);

}

.hero-eyebrow::before {

    content: "";
    width: 28px;
    height: 1px;
    background: rgba(255, 113, 157, 0.8);

}

.hero-content h1 {

    margin: 0;
    max-width: 720px;
    font-size: clamp(48px, 6vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
    color: #f4f4f6;

}

.hero-content h1 em {

    display: block;
    font-style: normal;
    color: #ff7ca7;

}

.hero-text {

    max-width: 560px;
    margin: 28px 0 30px;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.58);

}

.hero-meta {

    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 22px;
    color: rgba(255,255,255,0.42);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.13em;

}

.hero-meta span {

    display: inline-flex;
    align-items: center;
    gap: 8px;

}

.hero-meta i {

    color: #ff7ca7;

}

.search-box {

    width: min(570px, 100%);
    min-height: 62px;
    display: flex;
    align-items: center;
    padding: 7px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    box-shadow: 0 18px 60px rgba(0,0,0,0.22);
    backdrop-filter: blur(16px);

}

.search-box input {

    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 17px;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font: inherit;

}

.search-box input::placeholder {

    color: rgba(255,255,255,0.35);

}

.search-box button {

    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    background: #ff6f9f;
    transition: transform 0.2s ease, background 0.2s ease;

}

.search-box button:hover {

    transform: translateY(-2px);
    background: #ff82ad;

}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {

    position: relative;
    height: min(690px, 72vh);
    min-height: 540px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.hero-orbit {

    position: absolute;
    width: min(560px, 90%);
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.065);
    border-radius: 50%;
    transform: rotate(-13deg);

}

.hero-orbit::before {

    content: "";
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(255,115,157,0.07);
    border-radius: 50%;

}

.hero-cover {

    position: absolute;
    overflow: hidden;
    border-radius: 13px;
    box-shadow:
        0 35px 80px rgba(0,0,0,0.55),
        0 12px 30px rgba(0,0,0,0.35);
    background: #11131a;

}

.hero-cover img {

    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.hero-cover-back {

    width: 220px;
    height: 325px;
    left: 5%;
    top: 16%;
    transform: rotate(-8deg);
    opacity: 0.72;

}

.hero-cover-main {

    width: 285px;
    height: 415px;
    left: 27%;
    top: 13%;
    z-index: 4;
    transform: rotate(1deg);

}

.hero-cover-float {

    width: 180px;
    height: 270px;
    right: 2%;
    bottom: 13%;
    z-index: 3;
    transform: rotate(8deg);
    opacity: 0.84;

}

.hero-image-shade {

    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5,6,9,0.78),
        transparent 48%
    );

}

.hero-cover-info {

    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 19px;
    z-index: 2;

}

.hero-cover-info strong {

    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    color: #fff;

}

.hero-cover-info span {

    font-size: 11px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;

}

.hero-float-card {

    position: absolute;
    right: 7%;
    top: 10%;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 13px;
    background: rgba(14,15,21,0.72);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.32);
    animation: floatCard 5s ease-in-out infinite;

}

.hero-float-icon {

    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,111,159,0.12);
    color: #ff7ca7;

}

.hero-float-card strong {

    display: block;
    font-size: 12px;
    color: #fff;

}

.hero-float-card span {

    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: rgba(255,255,255,0.42);

}

@keyframes floatCard {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

}

.hero-chapter-badge {

    position: absolute;
    left: 8%;
    bottom: 17%;
    z-index: 6;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(12,13,18,0.82);
    color: rgba(255,255,255,0.72);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);

}

.hero-vertical-text {

    position: absolute;
    right: -2%;
    top: 50%;
    transform: rotate(90deg) translateX(50%);
    transform-origin: right center;
    font-size: 9px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);

}

.hero-bottom {

    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 5;

}

.scroll-line {

    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);

}

.scroll-line::before {

    content: "";
    width: 38px;
    height: 1px;
    background: rgba(255,255,255,0.25);

}


/* =========================================================
   MAIN SECTION HEADINGS
========================================================= */

.cinematic-heading {

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;

}

.cinematic-heading h2,
.section-heading h2 {

    margin: 0;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #f4f4f6;

}

.section-kicker {

    display: block;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ff769f;

}

.section-heading {

    margin-bottom: 30px;

}


/* =========================================================
   TRENDING
========================================================= */

.trending-section {

    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
    padding: 105px 0 110px;

}

.trending-list {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;

}

.trending-item {

    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.065);
    border-radius: 18px;
    background: rgba(255,255,255,0.025);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;

}

.trending-item:hover {

    transform: translateY(-5px);
    border-color: rgba(255,120,159,0.18);
    background: rgba(255,255,255,0.04);

}

.trend-number {

    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.24);
    letter-spacing: 0.1em;

}

.trend-cover {

    width: 92px;
    height: 132px;
    flex: 0 0 92px;
    overflow: hidden;
    border-radius: 8px;
    background: #12141a;

}

.trend-cover img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}

.trend-info {

    min-width: 0;

}

.trend-info h3 {

    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.2;
    color: #f5f5f6;

}

.trend-type {

    display: inline-block;
    margin-bottom: 14px;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.36);

}

.trend-chapter {

    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.5);

}

.trend-arrow {

    position: absolute;
    right: 20px;
    bottom: 19px;
    color: rgba(255,255,255,0.22);
    transition: transform 0.2s ease, color 0.2s ease;

}

.trending-item:hover .trend-arrow {

    color: #ff7ca7;
    transform: translateX(4px);

}


/* =========================================================
   MOOD / GENRES
========================================================= */

.mood-section {

    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
    padding: 40px 0 120px;

}

.mood-intro {

    max-width: 580px;
    margin-bottom: 42px;

}

.mood-intro p {

    margin: 0;
    color: rgba(255,255,255,0.48);
    line-height: 1.75;
    font-size: 14px;

}

.mood-grid {

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;

}

.mood-card {

    position: relative;
    min-height: 235px;
    padding: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    background: #101116;
    isolation: isolate;
    transition: transform 0.25s ease, border-color 0.25s ease;

}

.mood-card::before {

    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.07), transparent 40%),
        linear-gradient(145deg, rgba(255,255,255,0.035), transparent);

}

.mood-card::after {

    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -45px;
    top: -45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.035);
    z-index: -1;

}

.mood-card:hover {

    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.14);

}

.mood-index {

    position: absolute;
    top: 20px;
    left: 22px;
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.15em;

}

.mood-card h3 {

    margin: 0 0 7px;
    font-size: 24px;
    color: #f5f5f6;
    letter-spacing: -0.03em;

}

.mood-card p {

    margin: 0;
    max-width: 220px;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255,255,255,0.42);

}

.mood-chaos {

    background:
        linear-gradient(145deg, rgba(255,99,145,0.08), transparent 60%),
        #101116;

}

.mood-dark {

    background:
        linear-gradient(145deg, rgba(130,105,255,0.08), transparent 60%),
        #101116;

}

.mood-power {

    background:
        linear-gradient(145deg, rgba(255,161,84,0.08), transparent 60%),
        #101116;

}

.mood-emotion {

    background:
        linear-gradient(145deg, rgba(91,177,255,0.07), transparent 60%),
        #101116;

}


/* =========================================================
   CONTENT LAYOUT
========================================================= */

.content-layout {

    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 44px;
    align-items: start;

}

.main-content {

    min-width: 0;

}


/* =========================================================
   FEATURED
========================================================= */

.featured-section {

    padding-bottom: 100px;

}

.featured-grid {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;

}

.featured-card {

    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.065);
    border-radius: 16px;
    background: #101116;
    transition: transform 0.25s ease, border-color 0.25s ease;

}

.featured-card:hover {

    transform: translateY(-6px);
    border-color: rgba(255,120,159,0.18);

}

.featured-cover {

    position: relative;
    height: 360px;
    overflow: hidden;

}

.featured-cover img {

    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #151719;
    transition: transform 0.45s ease;

}

.featured-card:hover .featured-cover img {

    transform: scale(1.035);

}

.featured-overlay {

    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.04),
        transparent 42%,
        rgba(7,8,11,0.82) 100%
    );

}

.featured-rank {

    position: absolute;
    top: 17px;
    left: 17px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(8,9,13,0.66);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);

}

.featured-info {

    padding: 20px 20px 21px;

}

.featured-info h3 {

    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
    color: #f5f5f6;

}

.featured-info p {

    margin: 0 0 16px;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255,255,255,0.42);

}

.comic-status {

    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 9px;
    font-size: 9px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #ff7ca7;

}

.comic-status::before {

    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;

}

.comic-type {

    font-size: 9px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);

}

.chapter-list {

    display: grid;
    gap: 7px;
    margin-top: 17px;

}

.chapter-box {

    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 8px;
    background: rgba(255,255,255,0.025);
    color: rgba(255,255,255,0.58);
    font-size: 11px;
    transition: border-color 0.2s ease, background 0.2s ease;

}

.chapter-box:hover {

    border-color: rgba(255,120,159,0.14);
    background: rgba(255,255,255,0.04);

}


/* =========================================================
   LATEST
========================================================= */

.latest-section {

    padding-bottom: 105px;

}

.latest-section .section-heading {

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;

}

.comic-grid {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;

}

.comic-card {

    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    transition: transform 0.23s ease, border-color 0.23s ease;

}

.comic-card:hover {

    transform: translateY(-4px);
    border-color: rgba(255,120,159,0.15);

}

.cover {

    position: relative;
    height: 260px;
    overflow: hidden;
    background: #11131a;

}

.cover img {

    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;

}

.comic-card:hover .cover img {

    transform: scale(1.025);

}

.card-number {

    position: absolute;
    top: 12px;
    left: 12px;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(8,9,13,0.72);
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(10px);

}

.card-content {

    padding: 16px;

}

.card-content h3 {

    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.25;
    color: #f3f3f5;

}

.card-content p {

    margin: 0;
    color: rgba(255,255,255,0.38);
    font-size: 10px;

}

.mini-chapters {

    display: flex;
    gap: 7px;
    margin-top: 14px;

}

.mini-chapters span {

    padding: 5px 7px;
    border-radius: 6px;
    background: rgba(255,255,255,0.045);
    color: rgba(255,255,255,0.48);
    font-size: 9px;

}


/* =========================================================
   POPULAR SIDEBAR
========================================================= */

.popular-sidebar {

    position: sticky;
    top: 95px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.065);
    border-radius: 17px;
    background: rgba(255,255,255,0.025);

}

.popular-header {

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);

}

.popular-header h2 {

    margin: 0;
    font-size: 20px;
    color: #f5f5f6;

}

.popular-header span {

    font-size: 9px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.12em;
    text-transform: uppercase;

}

.popular-list {

    display: grid;
    gap: 0;

}

.popular-item {

    position: relative;
    display: grid;
    grid-template-columns: 22px 53px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    min-height: 88px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: padding-left 0.2s ease;

}

.popular-item:hover {

    padding-left: 4px;

}

.rank {

    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.25);

}

.popular-cover {

    width: 53px;
    height: 67px;
    overflow: hidden;
    border-radius: 7px;
    background: #12141a;

}

.popular-cover img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}

.popular-info {

    min-width: 0;

}

.popular-info h3 {

    margin: 0 0 6px;
    font-size: 12px;
    line-height: 1.25;
    color: rgba(255,255,255,0.78);

}

.popular-info span {

    font-size: 9px;
    color: rgba(255,255,255,0.32);

}

.popular-arrow {

    color: rgba(255,255,255,0.2);
    font-size: 10px;
    transition: color 0.2s ease, transform 0.2s ease;

}

.popular-item:hover .popular-arrow {

    color: #ff7ca7;
    transform: translateX(3px);

}

.full-ranking {

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    min-height: 39px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 9px;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    transition: border-color 0.2s ease, color 0.2s ease;

}

.full-ranking:hover {

    color: #ff7ca7;
    border-color: rgba(255,120,159,0.18);

}


/* =========================================================
   AI DISCOVERY
========================================================= */

.ai-discovery {

    width: min(1380px, calc(100% - 80px));
    margin: 10px auto 110px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 50%, rgba(255,105,151,0.09), transparent 32%),
        linear-gradient(110deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));

}

.ai-discovery::before {

    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    top: -150px;
    border: 1px solid rgba(255,120,159,0.12);
    border-radius: 50%;

}

.ai-discovery-content {

    position: relative;
    z-index: 2;
    padding: 48px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

}

.ai-discovery-mark {

    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(255,120,159,0.2);
    border-radius: 14px;
    color: #ff7ca7;
    background: rgba(255,120,159,0.07);

}

.ai-discovery h2 {

    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 38px);
    letter-spacing: -0.04em;
    color: #f4f4f6;

}

.ai-discovery p {

    max-width: 600px;
    margin: 0;
    color: rgba(255,255,255,0.44);
    line-height: 1.7;
    font-size: 13px;

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    border-top: 1px solid rgba(255,255,255,0.06);
    background: #07080b;

}

.footer-top {

    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
    padding: 65px 0 55px;
    display: flex;
    justify-content: space-between;
    gap: 50px;

}

.footer-logo {

    color: #f5f5f6;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.04em;

}

.footer-links {

    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 25px;

}

.footer-links a {

    color: rgba(255,255,255,0.42);
    font-size: 11px;
    transition: color 0.2s ease;

}

.footer-links a:hover {

    color: #ff7ca7;

}

.footer-bottom {

    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255,255,255,0.25);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;

}


/* =========================================================
   NAVIGATION — CURRENT HTML
========================================================= */

.main-nav {

    display: flex;
    align-items: center;
    gap: 27px;

}

.main-nav a {

    position: relative;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 600;
    transition: color 0.2s ease;

}

.main-nav a:hover,
.main-nav a.active {

    color: rgba(255,255,255,0.9);

}

.main-nav a.active::after {

    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 4px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #ff7ca7;

}

.discord-link {

    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: rgba(255,255,255,0.42);
    transition: color 0.2s ease, background 0.2s ease;

}

.discord-link:hover {

    color: #fff;
    background: rgba(255,255,255,0.06);

}

.login-btn {

    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.62);
    background: rgba(255,255,255,0.025);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;

}

.login-btn:hover {

    color: #fff;
    border-color: rgba(255,120,159,0.2);
    background: rgba(255,120,159,0.06);

}


/* =========================================================
   RESPONSIVE — LARGE TABLET
========================================================= */

@media (max-width: 1180px) {

    .hero-inner {

        grid-template-columns: minmax(0, 0.95fr) minmax(370px, 1fr);
        gap: 20px;

    }

    .hero-cover-main {

        width: 250px;
        height: 365px;
        left: 29%;

    }

    .hero-cover-back {

        width: 190px;
        height: 285px;

    }

    .hero-cover-float {

        width: 155px;
        height: 235px;

    }

    .content-layout {

        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 25px;

    }

    .featured-grid {

        grid-template-columns: repeat(2, 1fr);

    }

    .trending-list {

        grid-template-columns: repeat(2, 1fr);

    }

    .mood-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .hero-inner {

        width: min(100% - 48px, 720px);
        grid-template-columns: 1fr;
        text-align: center;
        padding: 65px 0 95px;

    }

    .hero-content {

        max-width: 700px;
        margin: 0 auto;

    }

    .hero-eyebrow {

        justify-content: center;

    }

    .hero-text {

        margin-left: auto;
        margin-right: auto;

    }

    .search-box {

        margin-left: auto;
        margin-right: auto;

    }

    .hero-meta {

        justify-content: center;

    }

    .hero-visual {

        height: 500px;
        min-height: 500px;

    }

    .hero-vertical-text {

        display: none;

    }

    .content-layout {

        width: min(100% - 48px, 720px);
        grid-template-columns: 1fr;

    }

    .popular-sidebar {

        position: static;

    }

    .trending-section,
    .mood-section,
    .ai-discovery {

        width: min(100% - 48px, 720px);

    }

    .footer-top,
    .footer-bottom {

        width: min(100% - 48px, 720px);

    }

    .footer-top {

        flex-direction: column;

    }

    .footer-links {

        justify-content: flex-start;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .hero-cinematic {

        min-height: auto;

    }

    .hero-inner {

        width: calc(100% - 30px);
        min-height: auto;
        padding: 58px 0 78px;
        gap: 20px;

    }

    .hero-content h1 {

        font-size: clamp(40px, 12vw, 58px);
        line-height: 0.98;

    }

    .hero-text {

        margin-top: 20px;
        font-size: 13px;
        line-height: 1.7;

    }

    .search-box {

        min-height: 55px;
        border-radius: 13px;

    }

    .search-box input {

        height: 42px;
        font-size: 13px;

    }

    .search-box button {

        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 10px;

    }

    .hero-meta {

        flex-wrap: wrap;
        gap: 10px 17px;
        font-size: 9px;

    }

    .hero-visual {

        height: 390px;
        min-height: 390px;
        margin-top: 5px;

    }

    .hero-orbit {

        width: 330px;

    }

    .hero-cover-main {

        width: 180px;
        height: 270px;
        left: 50%;
        top: 11%;
        transform: translateX(-50%) rotate(1deg);

    }

    .hero-cover-back {

        width: 125px;
        height: 185px;
        left: 6%;
        top: 20%;

    }

    .hero-cover-float {

        width: 115px;
        height: 170px;
        right: 4%;
        bottom: 12%;

    }

    .hero-float-card {

        right: 0;
        top: 1%;
        padding: 9px 11px;

    }

    .hero-float-card span {

        display: none;

    }

    .hero-float-icon {

        width: 29px;
        height: 29px;

    }

    .hero-chapter-badge {

        left: 2%;
        bottom: 9%;
        padding: 7px 9px;
        font-size: 8px;

    }

    .hero-bottom {

        bottom: 20px;

    }

    .trending-section,
    .mood-section,
    .ai-discovery,
    .content-layout {

        width: calc(100% - 30px);

    }

    .trending-section {

        padding: 72px 0 78px;

    }

    .mood-section {

        padding: 15px 0 80px;

    }

    .cinematic-heading {

        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 25px;

    }

    .cinematic-heading h2,
    .section-heading h2 {

        font-size: 29px;

    }

    .trending-list {

        grid-template-columns: 1fr;
        gap: 11px;

    }

    .trending-item {

        min-height: 145px;
        padding: 15px;
        gap: 13px;

    }

    .trend-cover {

        width: 70px;
        height: 101px;
        flex-basis: 70px;

    }

    .trend-info h3 {

        font-size: 14px;

    }

    .trend-type {

        margin-bottom: 9px;

    }

    .mood-grid {

        grid-template-columns: 1fr 1fr;
        gap: 10px;

    }

    .mood-card {

        min-height: 190px;
        padding: 17px;

    }

    .mood-card h3 {

        font-size: 19px;

    }

    .mood-card p {

        font-size: 10px;

    }

    .featured-grid {

        grid-template-columns: 1fr;

    }

    .featured-cover {

        height: 390px;

    }

    .comic-grid {

        grid-template-columns: 1fr 1fr;
        gap: 10px;

    }

    .cover {

        height: 230px;

    }

    .card-content {

        padding: 12px;

    }

    .card-content h3 {

        font-size: 13px;

    }

    .mini-chapters {

        flex-wrap: wrap;

    }

    .popular-sidebar {

        padding: 17px;

    }

    .ai-discovery {

        margin-top: 0;
        margin-bottom: 75px;

    }

    .ai-discovery-content {

        padding: 32px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;

    }

    .ai-discovery h2 {

        font-size: 27px;

    }

    .footer-top,
    .footer-bottom {

        width: calc(100% - 30px);

    }

    .footer-top {

        padding: 48px 0 40px;
        gap: 30px;

    }

    .footer-links {

        gap: 16px 22px;

    }

    .footer-bottom {

        flex-direction: column;
        gap: 8px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .hero-content h1 {

        font-size: 39px;

    }

    .hero-visual {

        height: 350px;
        min-height: 350px;

    }

    .hero-cover-main {

        width: 155px;
        height: 235px;

    }

    .hero-cover-back {

        width: 105px;
        height: 160px;

    }

    .hero-cover-float {

        width: 100px;
        height: 150px;

    }

    .mood-grid {

        grid-template-columns: 1fr;

    }

    .mood-card {

        min-height: 150px;

    }

    .comic-grid {

        grid-template-columns: 1fr;

    }

    .cover {

        height: 310px;

    }

    .featured-cover {

        height: 340px;

    }

    .popular-item {

        grid-template-columns: 20px 50px minmax(0, 1fr) 15px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;

    }

}


/* =========================================================
   FINAL IMAGE SAFETY
========================================================= */

.hero-cover img,
.trend-cover img,
.featured-cover img,
.cover img,
.popular-cover img {

    image-rendering: auto;
    filter: none;

}/* =========================================================
   COMICVAULT — PAGE ENTRY ANIMATION
========================================================= */

#pageLoader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #08090d;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.65s ease,
        visibility 0.65s ease;
}

#pageLoader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.loader-logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.8px;
    opacity: 0;
    transform: translateY(8px);
    animation: loaderLogoIn 0.65s ease forwards;
}

.loader-line {
    width: 70px;
    height: 1px;
    overflow: hidden;
    background: rgba(255,255,255,0.10);
    position: relative;
}

.loader-line::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 45%;
    background: #e65b8a;
    transform: translateX(-120%);
    animation: loaderLine 1s ease-in-out infinite;
}

@keyframes loaderLogoIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loaderLine {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(280%);
    }
}

body {
    opacity: 1;
    transition: opacity 0.5s ease;
}

body:not(.page-ready) {
    overflow: hidden;
}

body.page-ready {
    opacity: 1;
}/* =========================================================
   FEATURED — 2 CARDS PER ROW
========================================================= */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}/* =========================================================
   COMICVAULT AI — HOMEPAGE ICON
========================================================= */

.ai-discovery-mark {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255,120,159,0.20);
    border-radius: 16px;
    background: #14161b;
}

.ai-discovery-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: none;
}/* =========================================================
   HERO — FLOATING ELEMENT POSITION FIX
========================================================= */

.hero-float-card {
    left: auto;
    right: 4%;
    top: 8%;
}

.hero-chapter-badge {
    right: 5%;
    bottom: 10%;
}

.hero-cover-float {
    right: 3%;
    bottom: 12%;
}

@media (max-width: 1180px) {
    .hero-float-card {
        right: 1%;
        top: 6%;
    }

    .hero-chapter-badge {
        right: 2%;
        bottom: 8%;
    }
}

@media (max-width: 900px) {
    .hero-float-card {
        right: 0;
        top: 4%;
    }

    .hero-chapter-badge {
        right: 2%;
        bottom: 6%;
    }
}

@media (max-width: 640px) {
    .hero-float-card {
        right: 0;
        top: 1%;
    }

    .hero-chapter-badge {
        right: auto;
        left: 2%;
        bottom: 8%;
    }
}/* =========================================================
   COMICVAULT AI — FLOATING ASSISTANT FIX
========================================================= */

#comicVaultAI {
    position: relative;
    z-index: 9990;
}

/* ---------- FLOATING AI BUTTON ---------- */

#comicVaultAI .cv-ai-float {
    position: fixed;
    right: 28px;
    bottom: 28px;

    width: 64px;
    height: 64px;

    padding: 0;
    margin: 0;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;

    background: #15171d;

    box-shadow:
        0 16px 40px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,105,151,0.05);

    cursor: pointer;

    overflow: visible;

    z-index: 9998;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

#comicVaultAI .cv-ai-float:hover {
    transform: translateY(-4px) scale(1.04);

    border-color: rgba(255,120,159,0.45);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.5),
        0 0 25px rgba(255,105,151,0.12);
}

#comicVaultAI .cv-ai-float:active {
    transform: scale(0.96);
}

#comicVaultAI .cv-ai-float img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    filter: none;

    pointer-events: none;
}

/* ---------- ONLINE STATUS ---------- */

#comicVaultAI .cv-ai-status {
    position: absolute;

    right: 2px;
    bottom: 3px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #62d991;

    border: 3px solid #15171d;

    z-index: 2;
}

/* ---------- NOTIFICATION ---------- */

#comicVaultAI .cv-ai-notification {
    position: fixed;

    right: 28px;
    bottom: 105px;

    display: flex;
    align-items: center;
    gap: 12px;

    width: 270px;

    padding: 14px 16px;

    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 15px;

    background: rgba(18,20,25,0.96);

    box-shadow:
        0 18px 50px rgba(0,0,0,0.45);

    backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    pointer-events: none;

    z-index: 9997;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

#comicVaultAI .cv-ai-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

#comicVaultAI .cv-ai-notification-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    overflow: hidden;

    border-radius: 50%;
}

#comicVaultAI .cv-ai-notification-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

#comicVaultAI .cv-ai-notification-text {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding-right: 12px;
}

#comicVaultAI .cv-ai-notification-text strong {
    font-size: 13px;
    color: #ffffff;
}

#comicVaultAI .cv-ai-notification-text span {
    font-size: 11px;
    color: rgba(255,255,255,0.48);
}

#comicVaultAI .cv-ai-notification-close {
    position: absolute;

    top: 7px;
    right: 8px;

    width: 20px;
    height: 20px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    background: transparent;

    color: rgba(255,255,255,0.45);

    cursor: pointer;

    font-size: 16px;
    line-height: 1;

    z-index: 2;
}

/* ---------- CHAT PANEL ---------- */

#comicVaultAI .cv-ai-panel {
    position: fixed;

    right: 28px;
    bottom: 105px;

    width: min(390px, calc(100vw - 30px));
    height: min(590px, calc(100vh - 140px));

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 20px;

    background: #111318;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.55);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(18px)
        scale(0.97);

    transform-origin: bottom right;

    z-index: 9996;

    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.28s ease;
}

#comicVaultAI .cv-ai-panel.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}

/* ---------- MOBILE ---------- */

@media (max-width: 640px) {

    #comicVaultAI .cv-ai-float {
        right: 18px;
        bottom: 18px;

        width: 58px;
        height: 58px;
    }

    #comicVaultAI .cv-ai-notification {
        right: 18px;
        bottom: 88px;

        width: calc(100vw - 36px);
    }

    #comicVaultAI .cv-ai-panel {
        right: 15px;
        bottom: 88px;

        width: calc(100vw - 30px);
        height: min(580px, calc(100vh - 120px));

        border-radius: 18px;
    }
}/* =========================================================
   COMICVAULT AI — COMPLETE CHAT UI
========================================================= */

/* ---------- AI ROOT ---------- */

#comicVaultAI {
    position: relative;
    z-index: 9990;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   FLOATING BUTTON
========================================================= */

#comicVaultAI .cv-ai-float {
    position: fixed;
    right: 28px;
    bottom: 28px;

    width: 64px;
    height: 64px;

    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;

    display: grid;
    place-items: center;

    background: #15171d;

    overflow: visible;
    cursor: pointer;

    z-index: 9998;

    box-shadow:
        0 16px 40px rgba(0,0,0,.45);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

#comicVaultAI .cv-ai-float:hover {
    transform: translateY(-4px) scale(1.04);

    border-color: rgba(255,120,159,.45);

    box-shadow:
        0 20px 50px rgba(0,0,0,.5),
        0 0 25px rgba(255,105,151,.12);
}

#comicVaultAI .cv-ai-float img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    filter: none;

    pointer-events: none;
}


/* ---------- STATUS DOT ---------- */

#comicVaultAI .cv-ai-status {
    position: absolute;

    right: 1px;
    bottom: 2px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #62d991;

    border: 3px solid #15171d;
}


/* =========================================================
   NOTIFICATION
========================================================= */

#comicVaultAI .cv-ai-notification {
    position: fixed;

    right: 28px;
    bottom: 105px;

    width: 275px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;

    background: rgba(18,20,25,.96);

    backdrop-filter: blur(18px);

    box-shadow:
        0 18px 50px rgba(0,0,0,.45);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(12px);

    z-index: 9997;

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease;
}

#comicVaultAI .cv-ai-notification.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}

#comicVaultAI .cv-ai-notification-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    overflow: hidden;

    border-radius: 50%;
}

#comicVaultAI .cv-ai-notification-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

#comicVaultAI .cv-ai-notification-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#comicVaultAI .cv-ai-notification-text strong {
    color: #fff;
    font-size: 13px;
}

#comicVaultAI .cv-ai-notification-text span {
    color: rgba(255,255,255,.48);
    font-size: 11px;
}

#comicVaultAI .cv-ai-notification-close {
    position: absolute;

    top: 6px;
    right: 7px;

    width: 22px;
    height: 22px;

    padding: 0;

    border: 0;
    background: transparent;

    color: rgba(255,255,255,.45);

    font-size: 17px;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   CHAT PANEL
========================================================= */

#comicVaultAI .cv-ai-panel {
    position: fixed;

    right: 28px;
    bottom: 105px;

    width: 390px;
    height: 590px;

    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 130px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;

    background: #111318;

    box-shadow:
        0 30px 90px rgba(0,0,0,.6);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(18px)
        scale(.97);

    transform-origin: bottom right;

    z-index: 9996;

    transition:
        opacity .28s ease,
        visibility .28s ease,
        transform .28s ease;
}

#comicVaultAI .cv-ai-panel.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   CHAT HEADER
========================================================= */

#comicVaultAI .cv-ai-header {
    min-height: 76px;

    flex: 0 0 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 16px;

    border-bottom: 1px solid rgba(255,255,255,.07);

    background: #14161b;
}

#comicVaultAI .cv-ai-header-left {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 0;
}

#comicVaultAI .cv-ai-header-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    overflow: hidden;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.1);
}

#comicVaultAI .cv-ai-header-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

#comicVaultAI .cv-ai-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}

#comicVaultAI .cv-ai-header-info strong {
    color: #fff;

    font-size: 13px;
    font-weight: 700;
}

#comicVaultAI .cv-ai-header-info span {
    color: rgba(255,255,255,.42);

    font-size: 10px;
}

#comicVaultAI .cv-ai-close {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;

    background: rgba(255,255,255,.035);

    color: rgba(255,255,255,.65);

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

#comicVaultAI .cv-ai-close:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}


/* =========================================================
   MESSAGES AREA
========================================================= */

#comicVaultAI .cv-ai-messages {
    flex: 1 1 auto;

    min-height: 0;

    padding: 18px 16px;

    overflow-y: auto;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    gap: 14px;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255,255,255,.16)
        transparent;
}

#comicVaultAI .cv-ai-messages::-webkit-scrollbar {
    width: 5px;
}

#comicVaultAI .cv-ai-messages::-webkit-scrollbar-track {
    background: transparent;
}

#comicVaultAI .cv-ai-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.16);
    border-radius: 10px;
}


/* =========================================================
   MESSAGE ROW
========================================================= */

#comicVaultAI .cv-ai-message {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    width: 100%;
}

#comicVaultAI .cv-ai-message-bot {
    justify-content: flex-start;
}

#comicVaultAI .cv-ai-message-user {
    justify-content: flex-end;
}


/* ---------- MESSAGE AVATAR ---------- */

#comicVaultAI .cv-ai-message-avatar {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    overflow: hidden;

    border-radius: 50%;

    margin-top: 2px;
}

#comicVaultAI .cv-ai-message-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   CHAT BUBBLE
========================================================= */

#comicVaultAI .cv-ai-bubble {
    max-width: 78%;

    padding: 11px 13px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;

    background: #191b21;

    color: rgba(255,255,255,.82);

    font-size: 12px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

#comicVaultAI .cv-ai-message-user .cv-ai-bubble {
    background: #e65b8a;

    border-color: transparent;

    color: #fff;

    border-radius: 13px 13px 4px 13px;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

#comicVaultAI .cv-ai-quick-actions {
    display: flex;

    flex-direction: column;

    gap: 8px;

    width: calc(100% - 39px);

    margin-left: 39px;
}

#comicVaultAI .cv-ai-quick-actions button {
    width: 100%;

    min-height: 42px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 10px 12px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;

    background: #15171c;

    color: rgba(255,255,255,.72);

    font-size: 11px;
    text-align: left;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        color .2s ease;
}

#comicVaultAI .cv-ai-quick-actions button:hover {
    transform: translateX(3px);

    border-color: rgba(255,120,159,.25);

    background: #1b1d24;

    color: #fff;
}

#comicVaultAI .cv-ai-quick-actions button i {
    width: 17px;

    color: #ff7ca7;

    font-size: 12px;

    flex: 0 0 17px;
}


/* =========================================================
   INPUT AREA
========================================================= */

#comicVaultAI .cv-ai-input-area {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 12px;

    border-top: 1px solid rgba(255,255,255,.07);

    background: #14161b;
}

#comicVaultAI .cv-ai-input-area input {
    min-width: 0;
    flex: 1;

    height: 43px;

    padding: 0 13px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;

    outline: none;

    background: #0f1115;

    color: #fff;

    font-size: 12px;
}

#comicVaultAI .cv-ai-input-area input::placeholder {
    color: rgba(255,255,255,.32);
}

#comicVaultAI .cv-ai-input-area input:focus {
    border-color: rgba(255,120,159,.35);
}

#comicVaultAI .cv-ai-input-area button {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 11px;

    background: #e65b8a;

    color: #fff;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}

#comicVaultAI .cv-ai-input-area button:hover {
    transform: translateY(-2px);

    background: #ef6a98;
}

#comicVaultAI .cv-ai-input-area button:disabled {
    opacity: .5;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   MOBILE AI
========================================================= */

@media (max-width: 640px) {

    #comicVaultAI .cv-ai-float {
        width: 58px;
        height: 58px;

        right: 18px;
        bottom: 18px;
    }

    #comicVaultAI .cv-ai-notification {
        width: calc(100vw - 36px);

        right: 18px;
        bottom: 88px;
    }

    #comicVaultAI .cv-ai-panel {
        right: 15px;
        bottom: 88px;

        width: calc(100vw - 30px);
        height: min(580px, calc(100vh - 120px));

        border-radius: 18px;
    }

    #comicVaultAI .cv-ai-bubble {
        max-width: 82%;
    }

}/* =========================================================
   FEATURED — RESTORE PORTRAIT CARD LAYOUT
   ========================================================= */

.featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.featured-card {
    height: 222px;
    display: flex;
    flex-direction: row;
}

.featured-cover {
    width: 126px;
    min-width: 126px;
    height: 222px;
    flex: 0 0 126px;
    overflow: hidden;
}

.featured-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.featured-info {
    flex: 1;
    min-width: 0;
    padding: 16px 15px;
}/* =========================================================
   LIVING COVER — PREMIUM DISCOVERY SECTION
   ========================================================= */

.living-cover-section {
    position: relative;
    margin-top: 110px;
    margin-bottom: 110px;
}

.living-cover-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.living-cover-header .section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.4px;
    color: rgba(255,255,255,.42);
}

.living-cover-header h2 {
    margin: 0;
    max-width: 700px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: .98;
    letter-spacing: -1.8px;
    color: #f5f5f7;
}

.living-cover-header h2 em {
    font-style: normal;
    color: rgba(255,255,255,.40);
}

.living-cover-counter {
    flex-shrink: 0;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.7px;
    color: rgba(255,255,255,.42);
}


/* MAIN */

.living-cover {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.45fr);
    min-height: 570px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 22px;
    overflow: hidden;
    background: #0c0d11;
}


/* =========================================================
   LEFT — RISING LIST
   ========================================================= */

.living-cover-list {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px 28px;
    border-right: 1px solid rgba(255,255,255,.065);
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.025),
            transparent 45%
        ),
        #0c0d11;
}

.living-item {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 92px;
    padding: 16px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background .3s ease,
        transform .3s ease;
}

.living-item:first-child {
    border-top: 1px solid rgba(255,255,255,.055);
}

.living-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background .3s ease;
}

.living-item:hover {
    background: rgba(255,255,255,.025);
}

.living-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.055),
            transparent
        );
}

.living-item.active::before {
    background: #e65b8a;
}

.living-number {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255,255,255,.25);
}

.living-item.active .living-number {
    color: rgba(255,255,255,.75);
}

.living-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.living-item-info strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    color: rgba(255,255,255,.82);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.living-item.active .living-item-info strong {
    color: #fff;
}

.living-item-info small {
    overflow: hidden;
    font-size: 10px;
    line-height: 1.3;
    color: rgba(255,255,255,.34);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.living-rise {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
    color: rgba(255,255,255,.35);
}

.living-rise i {
    font-size: 9px;
}

.living-item.active .living-rise {
    color: #e98aaa;
}


/* =========================================================
   RIGHT — LIVING STAGE
   ========================================================= */

.living-stage {
    position: relative;
    min-width: 0;
    min-height: 570px;
    overflow: hidden;
    isolation: isolate;
    background: #101116;
}

.living-stage-bg {
    position: absolute;
    inset: -8%;
    z-index: -3;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .18;
    filter: blur(20px);
    transform: scale(1.08);
    transition:
        background-image .5s ease,
        opacity .4s ease;
}

.living-stage-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .18;
    background-image:
        linear-gradient(
            rgba(255,255,255,.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.045) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 25%,
        #000 80%,
        transparent
    );
}

.living-stage-art {
    position: absolute;
    top: 0;
    right: 4%;
    bottom: 0;
    width: 63%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.living-stage-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            #101116 0%,
            rgba(16,17,22,.30) 28%,
            transparent 62%
        ),
        linear-gradient(
            0deg,
            #101116 0%,
            transparent 28%,
            transparent 78%,
            rgba(16,17,22,.55) 100%
        );
}

.living-stage-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: .86;
    transition:
        opacity .35s ease,
        transform .6s cubic-bezier(.2,.7,.2,1);
}

.living-stage-art img.living-changing {
    opacity: .25;
    transform: scale(1.025);
}

.living-stage-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 70% 48%,
            transparent 0%,
            rgba(8,9,13,.05) 45%,
            rgba(8,9,13,.72) 100%
        );
}

.living-stage-content {
    position: absolute;
    left: 42px;
    bottom: 42px;
    z-index: 5;
    width: min(430px, 55%);
}

.living-stage-content > span:first-child {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 2px;
    color: rgba(255,255,255,.45);
}

.living-stage-content h3 {
    margin: 0;
    font-size: clamp(36px, 4.5vw, 64px);
    line-height: .94;
    letter-spacing: -2.5px;
    color: #fff;
    text-wrap: balance;
}

.living-stage-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.48);
}

.living-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,.32);
}

.living-read {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 11px 15px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
    background: rgba(10,11,15,.55);
    color: rgba(255,255,255,.82);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.4px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.living-read i {
    font-size: 9px;
    transition: transform .25s ease;
}

.living-read:hover {
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.22);
    transform: translateY(-2px);
}

.living-read:hover i {
    transform: translateX(3px);
}

.living-stage-index {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.28);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .living-cover-section {
        margin-top: 85px;
        margin-bottom: 85px;
    }

    .living-cover {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .living-cover-list {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.065);
        padding: 12px 18px;
    }

    .living-item {
        min-height: 76px;
    }

    .living-stage {
        min-height: 500px;
    }

    .living-stage-content {
        left: 30px;
        bottom: 30px;
        width: 55%;
    }

    .living-stage-art {
        width: 70%;
        right: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .living-cover-section {
        margin-top: 65px;
        margin-bottom: 65px;
    }

    .living-cover-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 22px;
    }

    .living-cover-header h2 {
        font-size: 31px;
        letter-spacing: -1.2px;
    }

    .living-cover-counter {
        padding: 8px 11px;
    }

    .living-cover {
        border-radius: 16px;
    }

    .living-cover-list {
        padding: 5px 10px;
    }

    .living-item {
        grid-template-columns: 25px minmax(0,1fr) auto;
        gap: 9px;
        min-height: 70px;
        padding: 12px 7px;
    }

    .living-item-info strong {
        font-size: 12px;
    }

    .living-item-info small {
        font-size: 9px;
    }

    .living-rise {
        font-size: 8px;
    }

    .living-stage {
        min-height: 460px;
    }

    .living-stage-art {
        width: 100%;
        right: 0;
    }

    .living-stage-art::after {
        background:
            linear-gradient(
                90deg,
                #101116 0%,
                rgba(16,17,22,.35) 42%,
                transparent 85%
            ),
            linear-gradient(
                0deg,
                #101116 0%,
                transparent 35%,
                rgba(16,17,22,.5) 100%
            );
    }

    .living-stage-content {
        left: 22px;
        bottom: 25px;
        width: calc(100% - 44px);
    }

    .living-stage-content h3 {
        max-width: 80%;
        font-size: 42px;
        letter-spacing: -1.7px;
    }

    .living-stage-index {
        right: 20px;
        bottom: 20px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .living-item {
        grid-template-columns: 22px minmax(0,1fr);
    }

    .living-rise {
        display: none;
    }

    .living-stage {
        min-height: 410px;
    }

    .living-stage-content h3 {
        font-size: 36px;
    }

    .living-read {
        margin-top: 18px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .living-item,
    .living-read,
    .living-stage-art img,
    .living-stage-bg {
        transition: none !important;
    }
}/* =========================================================
   COMICVAULT — SCROLL REVEAL SYSTEM
   ========================================================= */

.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .75s ease,
        transform .75s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Slightly stagger cards */

.scroll-reveal-delay-1 {
    transition-delay: .08s;
}

.scroll-reveal-delay-2 {
    transition-delay: .16s;
}

.scroll-reveal-delay-3 {
    transition-delay: .24s;
}

.scroll-reveal-delay-4 {
    transition-delay: .32s;
}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}/* =========================================================
   LIVING COVER — SEAMLESS ARTWORK
   ========================================================= */

.living-stage {
    border: 0;
}

.living-stage-art {
    top: -2px;
    right: -2px;
    bottom: -2px;
    width: 66%;
}

.living-stage-art img {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    margin: -2px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.living-stage-art::after {
    left: -2px;
    right: -2px;
    top: -2px;
    bottom: -2px;
}

.living-stage-overlay {
    border: 0;
}/* =========================================================
   TOP POPULAR — COMPACT PREMIUM LIST
   ========================================================= */

.popular-sidebar {
    min-width: 0;
}

.popular-sidebar > h3 {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.4px;
    color: #f5f5f7;
}


/* Popular list */

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}


/* Individual card */

.popular-item {
    position: relative;
    display: grid;
    grid-template-columns: 30px 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 76px;
    padding: 9px 11px;

    border: 1px solid rgba(255,255,255,.055);
    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.008)
        );

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.popular-item:hover {
    transform: translateX(3px);
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.045);
}


/* Rank */

.popular-item > strong,
.popular-rank {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    font-size: 10px;
    font-weight: 850;
    letter-spacing: .5px;

    color: rgba(255,255,255,.38);
}


/* Cover */

.popular-cover {
    position: relative;
    width: 54px;
    height: 62px;

    flex: 0 0 54px;

    overflow: hidden;
    border-radius: 7px;

    background: #15161a;
}

.popular-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter: none !important;

    transition: transform .35s ease;
}

.popular-item:hover .popular-cover img {
    transform: scale(1.045);
}


/* Main information */

.popular-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.popular-info h4 {
    margin: 0;

    overflow: hidden;

    font-size: 13px;
    line-height: 1.25;
    font-weight: 750;

    color: rgba(255,255,255,.88);

    white-space: nowrap;
    text-overflow: ellipsis;
}

.popular-info p {
    margin: 0;

    overflow: hidden;

    font-size: 9px;
    line-height: 1.3;

    color: rgba(255,255,255,.34);

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* Status / chapter box */

.popular-meta {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 58px;
    padding: 6px 7px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px;

    background: rgba(255,255,255,.025);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .7px;

    color: rgba(255,255,255,.38);

    white-space: nowrap;
}


/* =========================================================
   IF YOUR EXISTING HTML USES DIRECT TEXT STRUCTURE
   ========================================================= */

.popular-item h4,
.popular-item h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 750;
    color: rgba(255,255,255,.88);
}

.popular-item small {
    display: block;
    margin-top: 5px;

    font-size: 9px;
    line-height: 1.3;
    color: rgba(255,255,255,.34);
}

.popular-item .popular-type,
.popular-item .popular-status {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-top: 5px;
    padding: 4px 6px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 5px;

    background: rgba(255,255,255,.025);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .6px;

    color: rgba(255,255,255,.38);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .popular-item {
        grid-template-columns: 26px 48px minmax(0,1fr) auto;
        gap: 9px;
        min-height: 68px;
        padding: 8px;
    }

    .popular-cover {
        width: 48px;
        height: 56px;
    }

    .popular-item > strong,
    .popular-rank {
        width: 26px;
        height: 26px;
        font-size: 9px;
    }

    .popular-info h4,
    .popular-item h4,
    .popular-item h3 {
        font-size: 12px;
    }

    .popular-info p,
    .popular-item small {
        font-size: 8px;
    }

    .popular-meta {
        min-width: 48px;
        padding: 5px;
        font-size: 7px;
    }
}/* =========================================================
   TOP POPULAR — FINAL POLISH
   ========================================================= */

.popular-sidebar {
    min-width: 0;
}

.popular-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.popular-header > div {
    min-width: 0;
}

.popular-header .section-kicker {
    display: block;
    margin-bottom: 7px;
}

.popular-header h2 {
    margin: 0;
    color: #f5f5f7;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.7px;
}

.popular-header > span {
    flex-shrink: 0;

    padding: 6px 8px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;

    background: rgba(255,255,255,.025);

    color: rgba(255,255,255,.38);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* =========================================================
   POPULAR LIST
   ========================================================= */

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}


/* =========================================================
   POPULAR CARD
   ========================================================= */

.popular-item {
    position: relative;

    display: grid;
    grid-template-columns: 25px 54px minmax(0,1fr) 18px;
    align-items: center;

    gap: 11px;

    width: 100%;
    min-height: 76px;

    padding: 8px 10px;

    box-sizing: border-box;

    border: 1px solid rgba(255,255,255,.055);
    border-radius: 11px;

    background:
        linear-gradient(
            105deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.008)
        );

    overflow: hidden;

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.popular-item:hover {
    transform: translateX(3px);

    background:
        linear-gradient(
            105deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.015)
        );

    border-color: rgba(255,255,255,.12);
}


/* =========================================================
   RANK
   ========================================================= */

.popular-item .rank {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    color: rgba(255,255,255,.28);

    font-size: 9px;
    font-weight: 850;
    letter-spacing: .5px;
}

.popular-item:first-child .rank {
    color: rgba(255,255,255,.72);
}


/* =========================================================
   COVER
   ========================================================= */

.popular-item .popular-cover {
    position: relative;

    width: 54px;
    height: 62px;

    flex: 0 0 54px;

    overflow: hidden;

    border-radius: 7px;

    background: #15161a;
}

.popular-item .popular-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter: none !important;

    transition: transform .35s ease;
}

.popular-item:hover .popular-cover img {
    transform: scale(1.05);
}


/* =========================================================
   TITLE + GENRE + STATUS
   ========================================================= */

.popular-item .popular-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 4px;
}

.popular-item .popular-info h3 {
    width: 100%;

    margin: 0;

    overflow: hidden;

    color: rgba(255,255,255,.88);

    font-size: 12px;
    line-height: 1.25;
    font-weight: 750;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.popular-item .popular-info p {
    width: 100%;

    margin: 0;

    overflow: hidden;

    color: rgba(255,255,255,.34);

    font-size: 9px;
    line-height: 1.2;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* THIS IS THE STATUS BOX */

.popular-item .popular-info > span {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-top: 2px;
    padding: 3px 6px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 4px;

    background: rgba(255,255,255,.025);

    color: rgba(255,255,255,.38);

    font-size: 7px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .7px;
}


/* =========================================================
   ARROW
   ========================================================= */

.popular-item .popular-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255,255,255,.20);

    font-size: 9px;

    transition:
        color .25s ease,
        transform .25s ease;
}

.popular-item:hover .popular-arrow {
    color: rgba(255,255,255,.65);
    transform: translate(2px,-2px);
}


/* =========================================================
   FULL RANKING
   ========================================================= */

.popular-sidebar .full-ranking {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 13px;
    padding: 12px 2px;

    border-top: 1px solid rgba(255,255,255,.06);

    color: rgba(255,255,255,.42);

    font-size: 8px;
    font-weight: 850;
    letter-spacing: 1.3px;

    text-decoration: none;

    transition: color .25s ease;
}

.popular-sidebar .full-ranking i {
    transition: transform .25s ease;
}

.popular-sidebar .full-ranking:hover {
    color: rgba(255,255,255,.82);
}

.popular-sidebar .full-ranking:hover i {
    transform: translateX(3px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .popular-header h2 {
        font-size: 21px;
    }

    .popular-item {
        grid-template-columns: 22px 48px minmax(0,1fr) 16px;
        gap: 9px;
        min-height: 70px;
        padding: 7px 8px;
    }

    .popular-item .rank {
        width: 22px;
        height: 22px;
        font-size: 8px;
    }

    .popular-item .popular-cover {
        width: 48px;
        height: 57px;
        flex-basis: 48px;
    }

    .popular-item .popular-info h3 {
        font-size: 11px;
    }

    .popular-item .popular-info p {
        font-size: 8px;
    }

    .popular-item .popular-info > span {
        font-size: 6.5px;
        padding: 3px 5px;
    }

    .popular-item .popular-arrow {
        font-size: 8px;
    }
}/* =========================================================
   TOP POPULAR — GENRE + STATUS TAGS
   ========================================================= */

.popular-item .popular-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}


/* TITLE */

.popular-item .popular-info h3 {
    width: 100%;
    margin: 0;

    overflow: hidden;

    color: rgba(255,255,255,.9);

    font-size: 12px;
    line-height: 1.2;
    font-weight: 750;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   GENRE BOX
   ========================================================= */

.popular-item .popular-genre {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    padding: 4px 7px;

    border: 1px solid rgba(255,255,255,.075);
    border-radius: 5px;

    background: rgba(255,255,255,.025);

    color: rgba(255,255,255,.42);

    font-size: 7.5px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .25px;

    white-space: nowrap;
}


/* =========================================================
   STATUS
   ========================================================= */

.popular-item .popular-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    width: fit-content;

    padding: 3px 6px;

    border: 1px solid rgba(255,255,255,.065);
    border-radius: 5px;

    background: rgba(255,255,255,.02);

    font-size: 7px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .7px;

    white-space: nowrap;
}


/* STATUS DOT */

.popular-item .popular-status i {
    display: block;

    width: 5px;
    height: 5px;

    flex: 0 0 5px;

    border-radius: 50%;
}


/* =========================================================
   STATUS COLORS
   ========================================================= */

/* GREEN — ONGOING */

.popular-item .status-ongoing {
    color: rgba(116,215,153,.78);
}

.popular-item .status-ongoing i {
    background: #55c982;
    box-shadow: 0 0 6px rgba(85,201,130,.35);
}


/* RED — COMPLETED */

.popular-item .status-completed {
    color: rgba(238,112,112,.78);
}

.popular-item .status-completed i {
    background: #e05d5d;
    box-shadow: 0 0 6px rgba(224,93,93,.3);
}


/* RED / MUTED — HIATUS */

.popular-item .status-hiatus {
    color: rgba(226,112,112,.72);
}

.popular-item .status-hiatus i {
    background: #d85d68;
}


/* ACCENT — POPULAR */

.popular-item .status-popular {
    color: rgba(232,150,175,.78);
}

.popular-item .status-popular i {
    background: #df7398;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .popular-item .popular-genre {
        font-size: 7px;
        padding: 4px 6px;
    }

    .popular-item .popular-status {
        font-size: 6.5px;
        padding: 3px 5px;
    }

    .popular-item .popular-status i {
        width: 4px;
        height: 4px;
        flex-basis: 4px;
    }
}/* =========================================================
   HERO — EDITORIAL TRAILER SEQUENCE
   ========================================================= */

.hero-cinematic .hero-content {
    opacity: 0;
    transform: translateY(24px);
    animation: heroEditorialText 0.65s cubic-bezier(.2,.75,.2,1) 1s forwards;
}

.hero-cinematic .hero-content h1 {
    opacity: 0;
    transform: translateY(18px);
    animation: heroEditorialHeadline 0.65s cubic-bezier(.2,.75,.2,1) 1.05s forwards;
}

/* Main visual enters first */
.hero-cinematic .hero-visual {
    opacity: 1;
}

/* Lookism = main cover */
.hero-cinematic .hero-visual img[alt="Lookism"] {
    opacity: 0;
    transform: translate3d(70px, 30px, 0) scale(.94);
    animation: heroMainCover 0.8s cubic-bezier(.16,.8,.2,1) 1.5s forwards;
}

/* Tower of God = deeper background layer */
.hero-cinematic .hero-visual img[alt="Tower of God"] {
    opacity: 0;
    transform: translate3d(-45px, 15px, 0) scale(.97);
    animation: heroBackCover 0.8s cubic-bezier(.16,.8,.2,1) 1.9s forwards;
}

/* Eleceed = foreground floating layer */
.hero-cinematic .hero-visual img[alt="Eleceed"] {
    opacity: 0;
    transform: translate3d(45px, 35px, 0) scale(.92);
    animation: heroFloatCover 0.75s cubic-bezier(.16,.8,.2,1) 2.05s forwards;
}

/* Hero metadata arrives last */
.hero-cinematic .hero-meta,
.hero-cinematic .hero-bottom {
    opacity: 0;
    transform: translateY(12px);
    animation: heroEditorialMeta .55s ease 2.5s forwards;
}


/* ---------- KEYFRAMES ---------- */

@keyframes heroEditorialText {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroEditorialHeadline {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroMainCover {
    from {
        opacity: 0;
        transform: translate3d(70px, 30px, 0) scale(.94);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes heroBackCover {
    from {
        opacity: 0;
        transform: translate3d(-45px, 15px, 0) scale(.97);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes heroFloatCover {
    from {
        opacity: 0;
        transform: translate3d(45px, 35px, 0) scale(.92);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes heroEditorialMeta {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    .hero-cinematic .hero-content,
    .hero-cinematic .hero-content h1,
    .hero-cinematic .hero-visual img[alt="Lookism"],
    .hero-cinematic .hero-visual img[alt="Tower of God"],
    .hero-cinematic .hero-visual img[alt="Eleceed"],
    .hero-cinematic .hero-meta,
    .hero-cinematic .hero-bottom {
        opacity: 1;
        transform: none;
        animation: none;
    }
}/* Editorial depth movement after entrance */

.hero-cinematic .hero-visual img[alt="Tower of God"] {
    --hero-depth-x: 0px;
    --hero-depth-y: 0px;
}

.hero-cinematic .hero-visual img[alt="Lookism"] {
    --hero-depth-x: 0px;
    --hero-depth-y: 0px;
}

.hero-cinematic .hero-visual img[alt="Eleceed"] {
    --hero-depth-x: 0px;
    --hero-depth-y: 0px;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-cinematic .hero-visual img[alt="Tower of God"] {
        transition: transform .15s ease-out;
    }

    .hero-cinematic .hero-visual img[alt="Lookism"] {
        transition: transform .15s ease-out;
    }

    .hero-cinematic .hero-visual img[alt="Eleceed"] {
        transition: transform .15s ease-out;
    }
}/* =========================================================
   HERO — RESTORE CURSOR ANTI-GRAVITY
   Keeps the existing editorial intro animation intact
   ========================================================= */

.hero-cinematic .hero-visual {
    --visual-x: 0px;
    --visual-y: 0px;
    perspective: 1200px;
}

/* BACK COVER */
.hero-cinematic .hero-cover-back {
    transform:
        translate3d(
            calc(var(--visual-x) * -0.55),
            calc(var(--visual-y) * -0.55),
            0
        )
        rotate(-8deg);
}

/* MAIN COVER */
.hero-cinematic .hero-cover-main {
    transform:
        translate3d(
            var(--visual-x),
            var(--visual-y),
            0
        )
        rotate(1deg);
}

/* FLOATING COVER */
.hero-cinematic .hero-cover-float {
    transform:
        translate3d(
            calc(var(--visual-x) * 1.35),
            calc(var(--visual-y) * 1.35),
            0
        )
        rotate(8deg);
}

/* Smooth 3D movement */
.hero-cinematic .hero-cover {
    transform-style: preserve-3d;
    will-change: transform;
}


/* =========================================================
   TABLET + MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .hero-cinematic .hero-cover-back {
        transform:
            translate3d(
                calc(var(--visual-x) * -0.45),
                calc(var(--visual-y) * -0.45),
                0
            )
            rotate(-8deg);
    }

    .hero-cinematic .hero-cover-main {
        transform:
            translate3d(
                calc(-50% + var(--visual-x)),
                var(--visual-y),
                0
            )
            rotate(1deg);
    }

    .hero-cinematic .hero-cover-float {
        transform:
            translate3d(
                calc(var(--visual-x) * 1.1),
                calc(var(--visual-y) * 1.1),
                0
            )
            rotate(8deg);
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .hero-cinematic .hero-cover-back {
        transform:
            translate3d(
                calc(var(--visual-x) * -0.35),
                calc(var(--visual-y) * -0.35),
                0
            )
            rotate(-8deg);
    }

    .hero-cinematic .hero-cover-main {
        transform:
            translate3d(
                calc(-50% + var(--visual-x)),
                var(--visual-y),
                0
            )
            rotate(1deg);
    }

    .hero-cinematic .hero-cover-float {
        transform:
            translate3d(
                calc(var(--visual-x) * 0.9),
                calc(var(--visual-y) * 0.9),
                0
            )
            rotate(8deg);
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-cinematic .hero-cover-back,
    .hero-cinematic .hero-cover-main,
    .hero-cinematic .hero-cover-float {
        transform: none;
    }

}/* =========================================================
COMICVAULT PROFILE — AVATAR
========================================================= */

.profile-avatar-wrap {
position: relative;
width: 110px;
height: 110px;
margin: 0 auto;
}

.profile-avatar-default {
width: 110px;
height: 110px;

display: flex;
align-items: center;
justify-content: center;

border-radius: 50%;

background:
    linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.025)
    );

border: 1px solid rgba(255, 255, 255, 0.12);

color: rgba(255, 255, 255, 0.72);

font-size: 42px;

box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

overflow: hidden;

}

.profile-avatar-edit {
position: absolute;

right: -3px;
bottom: -3px;

width: 34px;
height: 34px;

display: flex;
align-items: center;
justify-content: center;

border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 50%;

background: rgba(18, 18, 20, 0.95);
color: #ffffff;

cursor: pointer;

transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;

}

.profile-avatar-edit:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.10);
border-color: rgba(255, 255, 255, 0.28);
}

.profile-avatar-edit i {
font-size: 13px;
}

/* Uploaded avatar image support */

.profile-avatar-wrap img.profile-avatar {
width: 110px;
height: 110px;

display: block;

object-fit: cover;
border-radius: 50%;

border: 1px solid rgba(255, 255, 255, 0.12);

box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35);

}

/* Mobile */

@media (max-width: 600px) {

.profile-avatar-wrap,
.profile-avatar-default,
.profile-avatar-wrap img.profile-avatar {
    width: 96px;
    height: 96px;
}

.profile-avatar-default {
    font-size: 36px;
}

.profile-avatar-edit {
    width: 31px;
    height: 31px;
}

}/* =========================================================
   COMICVAULT PROFILE — PREMIUM / CINEMATIC
   ========================================================= */

.profile-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 5%, rgba(255, 90, 120, 0.06), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(255, 150, 70, 0.045), transparent 25%),
        #09090b;
    color: #f5f5f5;
    overflow: hidden;
}

/* =========================================================
   PROFILE HERO
   ========================================================= */

.profile-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(circle at 76% 45%, rgba(255, 255, 255, 0.035), transparent 28%),
        linear-gradient(135deg, #0d0d10 0%, #09090b 58%, #0b0b0d 100%);
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(9, 9, 11, 0.98) 0%,
            rgba(9, 9, 11, 0.84) 48%,
            rgba(9, 9, 11, 0.52) 100%
        );
}

.profile-hero::before {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -150px;
    top: -200px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.045);
    box-shadow:
        0 0 0 65px rgba(255, 255, 255, 0.012),
        0 0 0 130px rgba(255, 255, 255, 0.007);
    pointer-events: none;
}

.profile-hero::after {
    content: "PROFILE / 01";
    position: absolute;
    right: 32px;
    bottom: 24px;
    font-size: 9px;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.22);
    writing-mode: vertical-rl;
    pointer-events: none;
}

.profile-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 60px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    padding: 54px 0 50px;
}

/* =========================================================
   AVATAR
   ========================================================= */

.profile-avatar-area {
    display: flex;
    justify-content: center;
}

.profile-hero .profile-avatar-wrap {
    position: relative;
    margin: 0;
    width: 116px;
    height: 116px;
}

.profile-hero .profile-avatar-default,
.profile-hero .profile-avatar-wrap img.profile-avatar {
    width: 116px;
    height: 116px;
}

.profile-hero .profile-avatar-default {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.025)
        );
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.025),
        0 18px 45px rgba(0, 0, 0, 0.35);
}

.profile-hero .profile-avatar-default::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(255, 120, 110, 0.24);
    pointer-events: none;
}

.profile-hero .profile-avatar-default::after {
    content: "";
    position: absolute;
    inset: -11px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

/* =========================================================
   AVATAR EDIT
   ========================================================= */

.profile-avatar-edit {
    position: absolute;
    right: -4px;
    bottom: 1px;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: #151519;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.profile-avatar-edit:hover {
    transform: scale(1.08);
    background: #ffffff;
    color: #111114;
}

/* =========================================================
   PROFILE IDENTITY
   ========================================================= */

.profile-identity {
    min-width: 0;
}

.profile-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.42);
}

.profile-eyebrow > span {
    width: 22px;
    height: 1px;
    background: rgba(255, 120, 110, 0.8);
}

.profile-identity h1 {
    margin: 0;
    font-size: clamp(36px, 4.5vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 700;
    color: #ffffff;
}

.profile-identity > p:not(.profile-bio) {
    margin: 9px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.40);
}

.profile-bio {
    max-width: 520px;
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 15px;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.34);
}

.profile-meta i {
    color: rgba(255, 255, 255, 0.52);
}

.profile-meta strong {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
}

/* =========================================================
   HERO ACTIONS
   ========================================================= */

.profile-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 142px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.profile-primary-btn,
.profile-secondary-btn,
.profile-discover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.profile-primary-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #f2f2f2;
    color: #111114;
}

.profile-primary-btn:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

.profile-secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.68);
}

.profile-secondary-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* =========================================================
   PROFILE NAV
   ========================================================= */

.profile-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(9, 9, 11, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.profile-nav-inner {
    width: min(1180px, calc(100% - 60px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 27px;
    min-height: 52px;
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-nav-inner::-webkit-scrollbar {
    display: none;
}

.profile-nav-inner a {
    position: relative;
    flex: 0 0 auto;
    padding: 17px 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-nav-inner a:hover,
.profile-nav-inner a.active {
    color: #ffffff;
}

.profile-nav-inner a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.profile-content {
    width: min(1180px, calc(100% - 60px));
    margin: 0 auto;
}

.profile-section {
    position: relative;
    padding: 62px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.profile-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}

.profile-section-heading > div > span {
    display: block;
    margin-bottom: 7px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: rgba(255, 255, 255, 0.32);
}

.profile-section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.profile-section-heading > p {
    max-width: 330px;
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.34);
}

.profile-view-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-view-all:hover {
    color: #ffffff;
}

/* =========================================================
   STATS
   ========================================================= */

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.profile-stat-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.014)
        );
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.profile-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.022)
        );
}

.profile-stat-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.profile-stat-card strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
}

.profile-stat-card span {
    display: block;
    margin-top: 6px;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
}

/* =========================================================
   CONTINUE READING
   ========================================================= */

.profile-featured-reading {
    min-height: 165px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255, 255, 255, 0.045),
            transparent 35%
        ),
        rgba(255, 255, 255, 0.016);
    overflow: hidden;
}

.profile-reading-empty {
    width: 100%;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 27px;
}

.profile-empty-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.60);
    font-size: 17px;
}

.profile-reading-empty strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
}

.profile-reading-empty p {
    max-width: 560px;
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.34);
}

.profile-discover-btn {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.74);
}

.profile-discover-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

/* =========================================================
   LIBRARY
   ========================================================= */

.profile-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.profile-library-card {
    position: relative;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 23px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 11px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.profile-library-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -80px;
    bottom: -90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    pointer-events: none;
}

.profile-library-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.018)
        );
}

.profile-library-number {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.17);
}

.profile-library-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 19px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.60);
    font-size: 13px;
}

.profile-library-card h3 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
}

.profile-library-card p {
    margin: 5px 0 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.34);
}

.profile-library-card > .fa-arrow-up-right-from-square {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.23);
}

/* =========================================================
   HISTORY
   ========================================================= */

.profile-history-empty {
    min-height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: left;
    border: 1px dashed rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.01);
}

.profile-history-empty > i {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.25);
}

.profile-history-empty strong {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.profile-history-empty p {
    margin: 5px 0 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.32);
}

/* =========================================================
   FAVORITES
   ========================================================= */

.profile-favorites-empty {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.035),
            transparent 55%
        );
}

.profile-favorites-empty .profile-empty-icon {
    margin-bottom: 12px;
}

.profile-favorites-empty h3 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
}

.profile-favorites-empty p {
    margin: 6px 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.34);
}

/* =========================================================
   TEAMS
   ========================================================= */

.profile-team-panel {
    min-height: 250px;
    display: grid;
    grid-template-columns: 34% 66%;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    background:
        linear-gradient(
            105deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );
    overflow: hidden;
}

.profile-team-visual {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.055);
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.055),
            transparent 58%
        );
}

.profile-team-visual > i {
    position: relative;
    z-index: 2;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.64);
}

.profile-team-orbit {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 50%;
}

.profile-team-orbit::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
}

.profile-team-content {
    padding: 35px 40px;
}

.profile-team-content > span {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.32);
}

.profile-team-content h3 {
    margin: 9px 0 10px;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.profile-team-content p {
    max-width: 500px;
    margin: 0 0 19px;
    font-size: 11px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.37);
}

/* =========================================================
   UPLOADER
   ========================================================= */

.profile-status-label {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.42);
}

.profile-uploader-panel {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(255, 255, 255, 0.045),
            transparent 36%
        ),
        rgba(255, 255, 255, 0.016);
}

.profile-uploader-main {
    display: flex;
    align-items: center;
    gap: 19px;
}

.profile-uploader-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.62);
}

.profile-uploader-main > div:last-child > span {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.20em;
    color: rgba(255, 255, 255, 0.32);
}

.profile-uploader-main h3 {
    margin: 7px 0;
    font-size: clamp(23px, 3vw, 35px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.profile-uploader-main h3 em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.45);
}

.profile-uploader-main p {
    max-width: 530px;
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.34);
}

.profile-uploader-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-upload-stat {
    min-width: 62px;
}

.profile-upload-stat strong {
    display: block;
    font-size: 21px;
    color: #ffffff;
}

.profile-upload-stat span {
    display: block;
    margin-top: 3px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.29);
}

/* =========================================================
   SETTINGS
   ========================================================= */

.profile-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-setting-card {
    min-height: 88px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 12px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.016);
    text-decoration: none;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.profile-setting-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.032);
}

.profile-setting-card > i:first-child {
    color: rgba(255, 255, 255, 0.52);
}

.profile-setting-card strong {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.80);
}

.profile-setting-card span {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.29);
}

.profile-setting-card > i:last-child {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.22);
}

/* =========================================================
   FOOTER
   ========================================================= */

.profile-footer {
    width: min(1180px, calc(100% - 60px));
    margin: 0 auto;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-footer-logo {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.profile-footer > span {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.25);
}

.profile-footer > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.40);
    text-decoration: none;
}

.profile-footer > a:hover {
    color: #ffffff;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .profile-hero-inner {
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 25px;
    }

    .profile-hero-actions {
        grid-column: 2;
        flex-direction: row;
        min-width: 0;
    }

    .profile-hero .profile-avatar-wrap,
    .profile-hero .profile-avatar-default,
    .profile-hero .profile-avatar-wrap img.profile-avatar {
        width: 105px;
        height: 105px;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-team-panel {
        grid-template-columns: 35% 65%;
    }

    .profile-uploader-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-uploader-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .profile-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .profile-hero {
        min-height: auto;
    }

    .profile-hero::after {
        display: none;
    }

    .profile-hero-inner {
        width: calc(100% - 30px);
        grid-template-columns: 1fr;
        text-align: center;
        gap: 17px;
        padding: 42px 0 36px;
    }

    .profile-avatar-area {
        justify-content: center;
    }

    .profile-hero .profile-avatar-wrap {
        margin: 0;
    }

    .profile-identity {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-eyebrow {
        justify-content: center;
    }

    .profile-identity h1 {
        font-size: 39px;
    }

    .profile-bio {
        max-width: 300px;
        margin-top: 11px;
    }

    .profile-meta {
        justify-content: center;
        margin-top: 12px;
    }

    .profile-hero-actions {
        grid-column: auto;
        justify-content: center;
        width: 100%;
    }

    .profile-hero-actions button {
        flex: 1;
    }

    .profile-nav-inner {
        width: calc(100% - 30px);
        gap: 21px;
    }

    .profile-content {
        width: calc(100% - 30px);
    }

    .profile-section {
        padding: 48px 0;
    }

    .profile-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .profile-section-heading h2 {
        font-size: 29px;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .profile-stat-card {
        min-height: 108px;
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
    }

    .profile-stat-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .profile-reading-empty {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 21px;
    }

    .profile-library-grid {
        grid-template-columns: 1fr;
    }

    .profile-library-card {
        min-height: 140px;
        padding: 21px;
    }

    .profile-history-empty {
        min-height: 125px;
        padding: 20px;
        text-align: center;
        flex-direction: column;
    }

    .profile-favorites-empty {
        min-height: 150px;
    }

    .profile-team-panel {
        grid-template-columns: 1fr;
    }

    .profile-team-visual {
        height: 185px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    }

    .profile-team-content {
        padding: 27px 22px;
    }

    .profile-team-content h3 {
        font-size: 29px;
    }

    .profile-uploader-panel {
        padding: 23px;
    }

    .profile-uploader-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-uploader-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-upload-stat {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .profile-footer {
        width: calc(100% - 30px);
        min-height: 130px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .profile-identity h1 {
        font-size: 34px;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-hero-actions {
        flex-direction: column;
    }

    .profile-primary-btn,
    .profile-secondary-btn {
        width: 100%;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .profile-page *,
    .profile-page *::before,
    .profile-page *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}/* =========================================================
   COMICVAULT PROFILE — PREMIUM CINEMATIC OVERRIDE
   Paste at the VERY END of style.css
   Existing CSS stays untouched.
   ========================================================= */

/* ---------------------------------------------------------
   PROFILE — GLOBAL
   --------------------------------------------------------- */

.profile-page {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 92, 126, 0.08), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(255, 153, 77, 0.065), transparent 30%),
        radial-gradient(circle at 50% 65%, rgba(255, 255, 255, 0.018), transparent 35%),
        #070709 !important;
    overflow-x: hidden;
}

.profile-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255,255,255,0.018) 48%,
            transparent 50%
        );
    opacity: .45;
}

.profile-page > * {
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   PROFILE HERO — BIG CINEMATIC IDENTITY
   --------------------------------------------------------- */

.profile-hero {
    position: relative;
    min-height: 500px !important;
    display: flex;
    align-items: flex-end;
    padding: 80px 6vw 58px !important;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background:
        linear-gradient(
            180deg,
            rgba(7,7,9,.18) 0%,
            rgba(7,7,9,.55) 58%,
            #070709 100%
        );
}

.profile-hero::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -180px;
    top: -260px;
    border-radius: 50%;
    background: rgba(255, 82, 118, .07);
    filter: blur(100px);
    pointer-events: none;
}

.profile-hero::after {
    content: "COMICVAULT";
    position: absolute;
    right: 5vw;
    bottom: 30px;
    font-size: clamp(70px, 13vw, 190px);
    font-weight: 900;
    letter-spacing: -.08em;
    line-height: .8;
    color: rgba(255,255,255,.018);
    pointer-events: none;
}

.profile-hero-bg {
    position: absolute !important;
    inset: 0;
    pointer-events: none;
    opacity: .9;
}

.profile-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            #070709 0%,
            rgba(7,7,9,.93) 32%,
            rgba(7,7,9,.62) 65%,
            #070709 100%
        );
}

.profile-hero-inner {
    position: relative !important;
    z-index: 3;
    width: min(1380px, 100%);
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) auto;
    align-items: end;
    gap: 42px;
}


/* ---------------------------------------------------------
   AVATAR
   --------------------------------------------------------- */

.profile-avatar-section {
    position: relative;
    width: 210px;
    height: 210px;
    display: grid;
    place-items: center;
}

.profile-avatar-section::before {
    content: "";
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(255, 105, 135, .35);
    border-radius: 50%;
    animation: cvProfileOrbit 10s linear infinite;
}

.profile-avatar-section::after {
    content: "";
    position: absolute;
    inset: -25px;
    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 50%;
    animation: cvProfileOrbitReverse 18s linear infinite;
}

.profile-avatar {
    position: relative;
    z-index: 2;
    width: 190px !important;
    height: 190px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,.9) !important;
    box-shadow:
        0 0 0 8px rgba(255,255,255,.035),
        0 25px 70px rgba(0,0,0,.6),
        0 0 55px rgba(255,75,115,.15);
    background: #111116;
}

.profile-avatar-default {
    display: grid !important;
    place-items: center;
    font-size: 58px;
    color: rgba(255,255,255,.82);
}

#changeAvatarBtn {
    position: absolute !important;
    right: 3px;
    bottom: 10px;
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(18,18,22,.94);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
    cursor: pointer;
    transition: .3s ease;
}

#changeAvatarBtn:hover {
    transform: translateY(-3px) rotate(8deg);
    border-color: rgba(255,105,135,.65);
    background: #17171c;
}


/* ---------------------------------------------------------
   IDENTITY
   --------------------------------------------------------- */

.profile-identity {
    min-width: 0;
}

.profile-identity .profile-eyebrow,
.profile-hero .profile-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.48);
}

.profile-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: #ff6687;
}

#profileUsername {
    margin: 0 !important;
    font-size: clamp(42px, 5.5vw, 78px) !important;
    line-height: .92 !important;
    letter-spacing: -.055em;
    font-weight: 850 !important;
    color: #fff;
}

#profileEmail {
    margin-top: 12px !important;
    font-size: 14px;
    color: rgba(255,255,255,.48);
}

#profileBio {
    max-width: 650px;
    margin-top: 18px !important;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,.68);
}

.profile-meta,
.profile-member-info,
.profile-joined {
    color: rgba(255,255,255,.42);
    font-size: 12px;
}


/* ---------------------------------------------------------
   HERO ACTIONS
   --------------------------------------------------------- */

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 170px;
}

.profile-actions button,
.profile-actions a {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: .3s ease;
}

#editProfileBtn {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
    color: #fff;
    backdrop-filter: blur(14px);
}

#editProfileBtn:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.25);
    transform: translateY(-2px);
}

#logoutBtn {
    border: 1px solid rgba(255,80,110,.18);
    background: rgba(255,70,100,.045);
    color: rgba(255,255,255,.68);
}

#logoutBtn:hover {
    background: rgba(255,70,100,.1);
    border-color: rgba(255,90,120,.38);
    color: #fff;
}


/* ---------------------------------------------------------
   PROFILE NAV — EDITORIAL TABS
   --------------------------------------------------------- */

.profile-nav {
    position: sticky !important;
    top: 0;
    z-index: 20 !important;
    background: rgba(7,7,9,.82) !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    backdrop-filter: blur(22px);
}

.profile-nav-inner {
    width: min(1380px, 92%);
    margin: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-nav-inner::-webkit-scrollbar {
    display: none;
}

.profile-nav a,
.profile-nav button {
    position: relative;
    padding: 20px 18px !important;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.42);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: .25s ease;
}

.profile-nav a::after,
.profile-nav button::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    background: #ff6687;
    transform: scaleX(0);
    transform-origin: center;
    transition: .3s ease;
}

.profile-nav a:hover,
.profile-nav button:hover {
    color: #fff;
}

.profile-nav a:hover::after,
.profile-nav button:hover::after {
    transform: scaleX(1);
}


/* ---------------------------------------------------------
   CONTENT WRAPPER
   --------------------------------------------------------- */

.profile-content {
    width: min(1380px, 92%);
    margin: 0 auto;
    padding: 70px 0 110px !important;
}

.profile-section {
    position: relative;
    margin-bottom: 75px !important;
}

.profile-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px !important;
}

.profile-section-header h2 {
    margin: 0 !important;
    font-size: clamp(25px, 3vw, 38px) !important;
    line-height: 1;
    letter-spacing: -.045em;
    color: #fff;
}

.profile-section-header p {
    max-width: 430px;
    margin: 0 !important;
    color: rgba(255,255,255,.4);
    font-size: 13px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   STATS — NOT BORING BOXES
   --------------------------------------------------------- */

.profile-stats {
    position: relative;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 22px;
    background: rgba(255,255,255,.075);
}

.profile-stat {
    position: relative;
    min-height: 150px;
    padding: 30px 28px !important;
    background: #0c0c0f;
    overflow: hidden;
    transition: .35s ease;
}

.profile-stat::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -55px;
    bottom: -55px;
    border-radius: 50%;
    background: rgba(255,80,120,.07);
    filter: blur(20px);
    transition: .4s ease;
}

.profile-stat:hover {
    background: #101014;
    transform: translateY(-3px);
}

.profile-stat:hover::before {
    transform: scale(1.5);
}

.profile-stat .stat-number,
.profile-stat strong {
    position: relative;
    display: block;
    font-size: 42px !important;
    line-height: 1;
    letter-spacing: -.05em;
    color: #fff;
}

.profile-stat .stat-label,
.profile-stat span {
    position: relative;
    display: block;
    margin-top: 13px;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
}


/* ---------------------------------------------------------
   CONTENT CARDS
   --------------------------------------------------------- */

.profile-card,
.profile-panel,
.profile-empty,
.profile-library-card,
.profile-history-card,
.profile-favorite-card,
.profile-team-card,
.profile-uploader {
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.018)
        ) !important;
    box-shadow: 0 22px 70px rgba(0,0,0,.18);
    transition: .35s ease;
}

.profile-card:hover,
.profile-library-card:hover,
.profile-history-card:hover,
.profile-favorite-card:hover,
.profile-team-card:hover {
    border-color: rgba(255,255,255,.13) !important;
    transform: translateY(-4px);
}


/* ---------------------------------------------------------
   CONTINUE READING — HERO CARD
   --------------------------------------------------------- */

.profile-continue-reading {
    position: relative;
    min-height: 300px;
    padding: 38px !important;
    border-radius: 26px !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09) !important;
    background:
        radial-gradient(circle at 85% 30%, rgba(255,82,120,.12), transparent 30%),
        linear-gradient(135deg, #111116, #09090b) !important;
}

.profile-continue-reading::after {
    content: "CONTINUE";
    position: absolute;
    right: -8px;
    bottom: -18px;
    font-size: clamp(70px, 11vw, 160px);
    font-weight: 900;
    letter-spacing: -.08em;
    color: rgba(255,255,255,.025);
    pointer-events: none;
}

.profile-continue-reading .empty-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.75);
    font-size: 22px;
}

.profile-continue-reading h3 {
    margin: 22px 0 8px;
    font-size: 27px;
    letter-spacing: -.035em;
    color: #fff;
}

.profile-continue-reading p {
    max-width: 450px;
    color: rgba(255,255,255,.43);
    line-height: 1.7;
}


/* ---------------------------------------------------------
   LIBRARY
   --------------------------------------------------------- */

.profile-library-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px !important;
}

.profile-library-card {
    position: relative;
    min-height: 220px;
    padding: 27px !important;
    overflow: hidden;
}

.profile-library-card::after {
    content: attr(data-count);
    position: absolute;
    right: -5px;
    bottom: -30px;
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,.025);
    pointer-events: none;
}

.profile-library-card .library-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.8);
}

.profile-library-card h3 {
    margin-top: 42px;
    font-size: 21px;
    color: #fff;
}

.profile-library-card span {
    display: block;
    margin-top: 7px;
    color: rgba(255,255,255,.38);
    font-size: 12px;
}


/* ---------------------------------------------------------
   HISTORY / FAVORITES GRID
   --------------------------------------------------------- */

.profile-history-grid,
.profile-favorites-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px !important;
}

.profile-history-card,
.profile-favorite-card {
    min-height: 180px;
    padding: 25px !important;
}


/* ---------------------------------------------------------
   TEAMS — SHOWCASE
   --------------------------------------------------------- */

.profile-teams-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px !important;
}

.profile-team-card {
    position: relative;
    min-height: 230px;
    padding: 28px !important;
    overflow: hidden;
}

.profile-team-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: rgba(255,90,125,.08);
    filter: blur(30px);
}

.profile-team-card .team-logo {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.12);
}

.profile-team-card h3 {
    margin-top: 24px;
    font-size: 21px;
    color: #fff;
}

.profile-team-card p {
    margin-top: 8px;
    color: rgba(255,255,255,.4);
    font-size: 12px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   UPLOADER — CREATOR COMMAND CENTER
   --------------------------------------------------------- */

.profile-uploader-panel,
.uploader-panel {
    position: relative;
    padding: 38px !important;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 26px !important;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255,92,126,.1),
            transparent 35%
        ),
        linear-gradient(135deg, #111116, #09090b) !important;
}

.profile-uploader-panel::before,
.uploader-panel::before {
    content: "CREATOR";
    position: absolute;
    right: -10px;
    bottom: -35px;
    font-size: clamp(90px, 14vw, 190px);
    font-weight: 900;
    letter-spacing: -.08em;
    color: rgba(255,255,255,.025);
    pointer-events: none;
}

.profile-uploader-panel h2,
.uploader-panel h2 {
    position: relative;
    z-index: 2;
    font-size: 32px !important;
    letter-spacing: -.045em;
}

.profile-uploader-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 35px;
    margin: 30px 0;
}

.profile-uploader-stat strong {
    display: block;
    font-size: 30px;
    color: #fff;
}

.profile-uploader-stat span {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
}

#openUploaderBtn {
    position: relative;
    z-index: 3;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 13px;
    background: #f5f5f5;
    color: #09090b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: .3s ease;
}

#openUploaderBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,.35);
}


/* ---------------------------------------------------------
   ACCOUNT SETTINGS
   --------------------------------------------------------- */

.profile-settings {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 35px !important;
}

.profile-settings-item {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 5px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.profile-settings-item span {
    color: rgba(255,255,255,.42);
    font-size: 12px;
}

.profile-settings-item strong {
    color: rgba(255,255,255,.8);
    font-size: 13px;
}


/* ---------------------------------------------------------
   BUTTON SYSTEM
   --------------------------------------------------------- */

.profile-content button {
    cursor: pointer;
    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.profile-content button:hover {
    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   SECTION REVEAL
   --------------------------------------------------------- */

.profile-section {
    opacity: 1;
    transform: translateY(0);
}


/* ---------------------------------------------------------
   PREMIUM SCROLLBAR
   --------------------------------------------------------- */

.profile-page::-webkit-scrollbar {
    width: 7px;
}

.profile-page::-webkit-scrollbar-track {
    background: #070709;
}

.profile-page::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.14);
    border-radius: 20px;
}

.profile-page::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.25);
}


/* ---------------------------------------------------------
   ANIMATIONS
   --------------------------------------------------------- */

@keyframes cvProfileOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes cvProfileOrbitReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1050px) {

    .profile-hero {
        padding-left: 5vw !important;
        padding-right: 5vw !important;
    }

    .profile-hero-inner {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 30px;
    }

    .profile-avatar-section {
        width: 165px;
        height: 165px;
    }

    .profile-avatar {
        width: 150px !important;
        height: 150px !important;
    }

    .profile-actions {
        grid-column: 2;
        flex-direction: row;
    }

    .profile-library-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .profile-hero {
        min-height: auto !important;
        padding: 70px 20px 45px !important;
    }

    .profile-hero::after {
        font-size: 70px;
        right: -5px;
        bottom: 15px;
    }

    .profile-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 25px;
    }

    .profile-avatar-section {
        width: 150px;
        height: 150px;
    }

    .profile-avatar {
        width: 138px !important;
        height: 138px !important;
    }

    .profile-identity {
        width: 100%;
    }

    .profile-eyebrow {
        justify-content: center;
    }

    #profileUsername {
        font-size: 43px !important;
    }

    #profileBio {
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
    }

    .profile-actions {
        width: 100%;
        grid-column: auto;
        flex-direction: row;
    }

    .profile-actions button {
        flex: 1;
    }

    .profile-content {
        width: calc(100% - 32px);
        padding-top: 45px !important;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 18px;
    }

    .profile-stat {
        min-height: 125px;
        padding: 23px 20px !important;
    }

    .profile-stat .stat-number,
    .profile-stat strong {
        font-size: 34px !important;
    }

    .profile-section {
        margin-bottom: 55px !important;
    }

    .profile-section-header {
        display: block;
    }

    .profile-section-header h2 {
        font-size: 29px !important;
        margin-bottom: 10px !important;
    }

    .profile-library-grid,
    .profile-history-grid,
    .profile-favorites-grid,
    .profile-teams-grid {
        grid-template-columns: 1fr !important;
    }

    .profile-continue-reading,
    .profile-uploader-panel,
    .uploader-panel {
        padding: 27px !important;
        border-radius: 20px !important;
    }

    .profile-uploader-stats {
        gap: 22px;
        flex-wrap: wrap;
    }

    .profile-nav-inner {
        width: 100%;
        padding: 0 10px;
    }

    .profile-nav a,
    .profile-nav button {
        padding: 17px 13px !important;
        font-size: 9px;
    }
}


/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 430px) {

    .profile-hero {
        padding-top: 55px !important;
    }

    #profileUsername {
        font-size: 36px !important;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-stats {
        gap: 1px !important;
    }

    .profile-stat {
        min-height: 110px;
        padding: 20px 16px !important;
    }

    .profile-stat .stat-number,
    .profile-stat strong {
        font-size: 29px !important;
    }

    .profile-stat .stat-label,
    .profile-stat span {
        font-size: 8px !important;
    }
}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .profile-avatar-section::before,
    .profile-avatar-section::after {
        animation: none;
    }

    .profile-card,
    .profile-library-card,
    .profile-history-card,
    .profile-favorite-card,
    .profile-team-card,
    .profile-stat,
    #changeAvatarBtn,
    #openUploaderBtn {
        transition: none;
    }
}#changeAvatarBtn {
    display: none !important;
}/* =========================================================
   COMICVAULT PROFILE — PREMIUM IDENTITY SYSTEM
   PART 1 — HERO / IDENTITY / NAV / ACTIVITY
   Add at the VERY END of style.css
   ========================================================= */


/* =========================================================
   01 — PROFILE HERO
   ========================================================= */

.profile-page {
    background:
        radial-gradient(
            circle at 18% 5%,
            rgba(255, 77, 115, 0.075),
            transparent 32%
        ),
        radial-gradient(
            circle at 84% 12%,
            rgba(255, 157, 82, 0.055),
            transparent 28%
        ),
        #070709 !important;
}


/* Large cinematic identity area */

.profile-hero {
    position: relative !important;
    min-height: 570px !important;
    padding: 100px 6vw 62px !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: hidden !important;

    background:
        linear-gradient(
            180deg,
            rgba(7, 7, 9, 0.05) 0%,
            rgba(7, 7, 9, 0.25) 42%,
            #070709 100%
        ) !important;

    border-bottom: 1px solid rgba(255,255,255,.065) !important;
}


/* cinematic light */

.profile-hero::before {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    left: 8%;
    top: -470px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 84, 121, 0.11),
            transparent 68%
        );

    pointer-events: none;
}


/* giant editorial typography */

.profile-hero::after {
    content: "MEMBER";
    position: absolute;

    right: -18px;
    bottom: -18px;

    font-size: clamp(100px, 17vw, 250px);
    font-weight: 900;
    letter-spacing: -.09em;
    line-height: .72;

    color: rgba(255,255,255,.018);

    pointer-events: none;
    user-select: none;
}


/* background layer */

.profile-hero-bg {
    position: absolute !important;
    inset: 0 !important;
    overflow: hidden;
    pointer-events: none;
}

.profile-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            #070709 0%,
            rgba(7,7,9,.92) 28%,
            rgba(7,7,9,.62) 62%,
            rgba(7,7,9,.94) 100%
        );
}


/* =========================================================
   02 — HERO INNER
   ========================================================= */

.profile-hero-inner {
    position: relative !important;
    z-index: 3;

    width: min(1450px, 100%);
    margin: 0 auto;

    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: end;

    gap: 42px;
}


/* =========================================================
   03 — AVATAR
   ========================================================= */

.profile-avatar-section {
    position: relative;

    width: 205px !important;
    height: 205px !important;

    display: grid !important;
    place-items: center;

    flex-shrink: 0;
}


/* outer orbit */

.profile-avatar-section::before {
    content: "";

    position: absolute;
    inset: -13px;

    border-radius: 50%;
    border: 1px solid rgba(255,105,135,.27);

    transform: rotate(-18deg);

    transition:
        transform .8s cubic-bezier(.2,.8,.2,1),
        border-color .4s ease;
}


/* second orbit */

.profile-avatar-section::after {
    content: "";

    position: absolute;
    inset: -25px;

    border-radius: 50%;

    border: 1px dashed rgba(255,255,255,.07);

    transform: rotate(24deg);

    transition:
        transform .8s cubic-bezier(.2,.8,.2,1);
}

.profile-avatar-section:hover::before {
    transform: rotate(18deg) scale(1.035);
    border-color: rgba(255,105,135,.5);
}

.profile-avatar-section:hover::after {
    transform: rotate(-24deg) scale(1.02);
}


/* avatar itself */

.profile-avatar {
    position: relative !important;
    z-index: 3;

    width: 184px !important;
    height: 184px !important;

    border-radius: 50% !important;

    object-fit: cover;

    border: 4px solid rgba(255,255,255,.92) !important;

    background: #101014;

    box-shadow:
        0 0 0 8px rgba(255,255,255,.025),
        0 24px 80px rgba(0,0,0,.62),
        0 0 70px rgba(255,70,110,.11);

    transition:
        transform .5s cubic-bezier(.2,.8,.2,1),
        box-shadow .5s ease;
}

.profile-avatar-section:hover .profile-avatar {
    transform: translateY(-5px) scale(1.015);

    box-shadow:
        0 0 0 8px rgba(255,255,255,.035),
        0 30px 90px rgba(0,0,0,.68),
        0 0 90px rgba(255,70,110,.17);
}


/* hide floating gallery icon */

#changeAvatarBtn {
    display: none !important;
}


/* =========================================================
   04 — IDENTITY
   ========================================================= */

.profile-identity {
    min-width: 0;
    position: relative;
}


/* eyebrow */

.profile-identity::before {
    content: "COMICVAULT MEMBER";

    display: inline-flex;
    align-items: center;

    margin-bottom: 17px;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .24em;

    color: rgba(255,255,255,.43);
}

.profile-identity::after {
    content: "";

    display: block;

    width: 35px;
    height: 2px;

    margin-top: 20px;

    background:
        linear-gradient(
            90deg,
            #ff6687,
            transparent
        );
}


/* username */

#profileUsername {
    margin: 0 !important;

    font-size: clamp(48px, 6vw, 86px) !important;
    line-height: .88 !important;

    font-weight: 900 !important;
    letter-spacing: -.065em !important;

    color: #fff !important;

    text-wrap: balance;
}


/* email */

#profileEmail {
    margin-top: 15px !important;

    font-size: 13px !important;
    line-height: 1.5;

    color: rgba(255,255,255,.4) !important;
}


/* bio */

#profileBio {
    max-width: 620px;

    margin-top: 18px !important;

    font-size: 15px !important;
    line-height: 1.7;

    color: rgba(255,255,255,.61) !important;
}


/* member metadata */

.profile-member-info,
.profile-joined {
    margin-top: 17px;

    font-size: 10px !important;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;

    color: rgba(255,255,255,.32) !important;
}


/* =========================================================
   05 — HERO ACTIONS
   ========================================================= */

.profile-actions {
    display: flex !important;
    flex-direction: column;

    gap: 9px;

    min-width: 165px;
}


.profile-actions button {
    min-height: 47px;

    padding: 0 20px;

    border-radius: 12px;

    font-size: 9px !important;
    font-weight: 900 !important;

    letter-spacing: .14em;
    text-transform: uppercase;

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


/* edit */

#editProfileBtn {
    border: 1px solid rgba(255,255,255,.14) !important;

    background:
        rgba(255,255,255,.055) !important;

    color: #fff !important;

    backdrop-filter: blur(18px);
}

#editProfileBtn:hover {
    transform: translateY(-3px);

    background:
        rgba(255,255,255,.095) !important;

    border-color:
        rgba(255,255,255,.27) !important;

    box-shadow:
        0 16px 40px rgba(0,0,0,.3);
}


/* logout */

#logoutBtn {
    border: 1px solid rgba(255,255,255,.065) !important;

    background: transparent !important;

    color: rgba(255,255,255,.35) !important;
}

#logoutBtn:hover {
    color: rgba(255,255,255,.75) !important;

    border-color:
        rgba(255,90,120,.25) !important;

    background:
        rgba(255,70,100,.045) !important;
}


/* =========================================================
   06 — PROFILE NAV
   ========================================================= */

.profile-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;

    background:
        rgba(7,7,9,.78) !important;

    border-bottom:
        1px solid rgba(255,255,255,.065) !important;

    backdrop-filter: blur(24px) saturate(130%);
}


.profile-nav-inner {
    width: min(1450px, 92%) !important;
    margin: 0 auto !important;

    display: flex !important;
    align-items: center;

    gap: 2px;

    overflow-x: auto;

    scrollbar-width: none;
}

.profile-nav-inner::-webkit-scrollbar {
    display: none;
}


.profile-nav a,
.profile-nav button {
    position: relative;

    min-height: 58px;

    padding: 0 17px !important;

    display: inline-flex;
    align-items: center;

    border: 0 !important;
    background: transparent !important;

    color: rgba(255,255,255,.38) !important;

    font-size: 9px !important;
    font-weight: 900 !important;

    letter-spacing: .13em;
    text-transform: uppercase;

    white-space: nowrap;

    transition:
        color .25s ease;
}


.profile-nav a::after,
.profile-nav button::after {
    content: "";

    position: absolute;

    left: 17px;
    right: 17px;
    bottom: 0;

    height: 2px;

    background: #ff6687;

    transform: scaleX(0);
    transform-origin: center;

    transition:
        transform .3s cubic-bezier(.2,.8,.2,1);
}


.profile-nav a:hover,
.profile-nav button:hover {
    color: rgba(255,255,255,.9) !important;
}


.profile-nav a:hover::after,
.profile-nav button:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   07 — CONTENT
   ========================================================= */

.profile-content {
    width: min(1380px, 92%) !important;
    margin: 0 auto !important;

    padding-top: 78px !important;
    padding-bottom: 120px !important;
}


/* section spacing */

.profile-section {
    position: relative;

    margin-bottom: 82px !important;
}


/* section headings */

.profile-section-header {
    display: flex !important;
    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 26px !important;
}


.profile-section-header h2 {
    margin: 0 !important;

    font-size: clamp(27px, 3vw, 39px) !important;

    line-height: .95 !important;

    font-weight: 850 !important;

    letter-spacing: -.055em;

    color: #fff !important;
}


.profile-section-header p {
    max-width: 430px;

    margin: 0 !important;

    font-size: 12px;

    line-height: 1.65;

    color: rgba(255,255,255,.36);
}


/* =========================================================
   08 — ACTIVITY STRIP
   ========================================================= */

.profile-stats {
    position: relative;

    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 1px !important;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.075) !important;

    border-radius: 20px !important;

    background:
        rgba(255,255,255,.075) !important;

    box-shadow:
        0 25px 80px rgba(0,0,0,.22);
}


.profile-stat {
    position: relative;

    min-height: 145px;

    padding: 30px 28px !important;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #101014,
            #0a0a0d
        ) !important;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        background .35s ease;
}


.profile-stat::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: -85px;
    bottom: -90px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,85,120,.13),
            transparent 68%
        );

    transition:
        transform .5s ease;
}


.profile-stat:hover {
    z-index: 2;

    transform: translateY(-5px);

    background:
        linear-gradient(
            145deg,
            #131318,
            #0b0b0e
        ) !important;
}


.profile-stat:hover::before {
    transform: scale(1.45);
}


/* numbers */

.profile-stat strong,
.profile-stat .stat-number {
    position: relative;

    display: block;

    font-size: 43px !important;
    line-height: .9;

    font-weight: 850;

    letter-spacing: -.065em;

    color: #fff !important;
}


/* labels */

.profile-stat span,
.profile-stat .stat-label {
    position: relative;

    display: block;

    margin-top: 15px;

    font-size: 8px !important;
    font-weight: 900 !important;

    letter-spacing: .18em;
    text-transform: uppercase;

    color: rgba(255,255,255,.34) !important;
}


/* =========================================================
   09 — PREMIUM CARD BASE
   ========================================================= */

.profile-card,
.profile-panel,
.profile-empty,
.profile-library-card,
.profile-history-card,
.profile-favorite-card,
.profile-team-card,
.profile-uploader-panel,
.uploader-panel {
    border:
        1px solid rgba(255,255,255,.075) !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.015)
        ) !important;

    box-shadow:
        0 24px 70px rgba(0,0,0,.17);

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        border-color .35s ease,
        background .35s ease;
}


.profile-card:hover,
.profile-panel:hover,
.profile-library-card:hover,
.profile-history-card:hover,
.profile-favorite-card:hover,
.profile-team-card:hover {
    border-color:
        rgba(255,255,255,.13) !important;

    transform:
        translateY(-4px);
}


/* =========================================================
   10 — MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .profile-hero {
        min-height: auto !important;

        padding:
            90px 28px 55px !important;
    }

    .profile-hero-inner {
        grid-template-columns:
            170px minmax(0,1fr);

        gap: 28px;
    }

    .profile-avatar-section {
        width: 160px !important;
        height: 160px !important;
    }

    .profile-avatar {
        width: 145px !important;
        height: 145px !important;
    }

    .profile-actions {
        grid-column: 2;
        flex-direction: row;
    }

    .profile-actions button {
        flex: 1;
    }

    .profile-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 650px) {

    .profile-hero {
        padding:
            72px 20px 45px !important;
    }

    .profile-hero-inner {
        grid-template-columns: 1fr;

        justify-items: center;

        text-align: center;

        gap: 26px;
    }

    .profile-avatar-section {
        width: 145px !important;
        height: 145px !important;
    }

    .profile-avatar {
        width: 132px !important;
        height: 132px !important;
    }

    .profile-identity {
        width: 100%;
    }

    .profile-identity::before {
        justify-content: center;
    }

    .profile-identity::after {
        margin-left: auto;
        margin-right: auto;
    }

    #profileUsername {
        font-size: 43px !important;
    }

    #profileBio {
        margin-left: auto !important;
        margin-right: auto !important;

        font-size: 13px !important;
    }

    .profile-actions {
        width: 100%;
        grid-column: auto;

        flex-direction: row;
    }

    .profile-content {
        width: calc(100% - 30px) !important;

        padding-top: 52px !important;
    }

    .profile-section {
        margin-bottom: 60px !important;
    }

    .profile-section-header {
        display: block !important;
    }

    .profile-section-header h2 {
        margin-bottom: 10px !important;
    }

    .profile-nav-inner {
        width: 100% !important;
        padding: 0 7px;
    }

    .profile-nav a,
    .profile-nav button {
        min-height: 52px;
        padding: 0 13px !important;

        font-size: 8px !important;
    }
}


@media (max-width: 420px) {

    #profileUsername {
        font-size: 37px !important;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-stats {
        border-radius: 16px !important;
    }

    .profile-stat {
        min-height: 115px;
        padding: 23px 18px !important;
    }

    .profile-stat strong,
    .profile-stat .stat-number {
        font-size: 32px !important;
    }
}


/* =========================================================
   11 — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .profile-avatar-section::before,
    .profile-avatar-section::after {
        transform: none;
    }

    .profile-avatar,
    .profile-stat,
    .profile-card,
    .profile-panel,
    .profile-library-card,
    .profile-history-card,
    .profile-favorite-card,
    .profile-team-card {
        transition: none !important;
    }
}/* =====================================================
   PROFILE — EDIT PROFILE MODAL
===================================================== */
.profile-edit-overlay {

    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    z-index: 2147483647 !important;

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    padding: 24px;

    background: #08080b !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.profile-edit-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2147483647 !important;
}

.profile-edit-overlay.active .profile-edit-modal {
    position: relative !important;
    z-index: 2147483647 !important;
}


.profile-edit-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(255, 110, 130, 0.08),
            transparent 35%
        ),
        #111114;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.025);
    transform: translateY(18px) scale(0.97);
    transition: transform 0.35s ease;
}

.profile-edit-overlay.active .profile-edit-modal {
    transform: translateY(0) scale(1);
}

.profile-edit-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.profile-edit-close:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    transform: rotate(90deg);
}

.profile-edit-header {
    padding-right: 50px;
    margin-bottom: 30px;
}

.profile-edit-header > span {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 150, 170, 0.8);
}

.profile-edit-header h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.profile-edit-header p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
}

.profile-edit-avatar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.profile-edit-avatar-preview {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1a1a1f;
    color: rgba(255, 255, 255, 0.4);
    font-size: 25px;
}

.profile-edit-avatar strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.profile-edit-avatar p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 11px;
}

.profile-edit-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.profile-edit-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.16);
}

.profile-edit-fields {
    display: grid;
    gap: 20px;
}

.profile-edit-fields label {
    display: grid;
    gap: 9px;
}

.profile-edit-fields label > span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.45);
}

.profile-edit-fields input,
.profile-edit-fields textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    font: inherit;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.profile-edit-fields input {
    height: 48px;
    padding: 0 15px;
}

.profile-edit-fields textarea {
    min-height: 110px;
    padding: 13px 15px;
    resize: vertical;
}

.profile-edit-fields input:focus,
.profile-edit-fields textarea:focus {
    border-color: rgba(255, 120, 145, 0.45);
    background: rgba(255, 255, 255, 0.055);
}

.profile-edit-fields input::placeholder,
.profile-edit-fields textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.profile-edit-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-edit-cancel {
    height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    cursor: pointer;
}

.profile-edit-cancel:hover {
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
}

.profile-edit-footer .profile-primary-btn {
    min-height: 44px;
}

/* =====================================================
   PROFILE — EDIT MODAL MOBILE
===================================================== */

@media (max-width: 600px) {

    .profile-edit-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .profile-edit-modal {
        width: 100%;
        max-height: 92vh;
        padding: 25px 20px;
        border-radius: 22px 22px 16px 16px;
    }

    .profile-edit-header h2 {
        font-size: 27px;
    }

    .profile-edit-avatar {
        padding: 14px;
    }

    .profile-edit-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .profile-edit-cancel,
    .profile-edit-footer .profile-primary-btn {
        width: 100%;
    }
}/* =========================================================
   FEATURED — FINAL WORKING TITLE FIX
   ========================================================= */

.featured-card .featured-info {
    position: relative !important;
    z-index: 5 !important;
    flex: 1 !important;
    min-width: 0 !important;

    padding: 16px 15px !important;

    display: flex !important;
    flex-direction: column !important;
}

.featured-card .featured-info h3 {
    all: unset !important;

    display: block !important;
    position: relative !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 5px !important;
    padding: 0 !important;

    color: #f0f0f1 !important;
    background: transparent !important;

    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.25px !important;

    opacity: 1 !important;
    visibility: visible !important;

    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;

    z-index: 9999 !important;
}/* =========================================================
   PROFILE — USERNAME AVAILABILITY
========================================================= */

#usernameAvailability {
    padding-left: 2px;
    letter-spacing: 0.1px;
}

#usernameAvailability .fa-check {
    margin-right: 4px;
}

#usernameAvailability .fa-xmark {
    margin-right: 4px;
}

#saveProfileBtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}.profile-edit-avatar-preview-only {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px 0 22px;
}

.profile-edit-avatar-preview-only .profile-edit-avatar-preview {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.045);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.025),
        0 10px 30px rgba(0, 0, 0, 0.25);
}

.profile-edit-avatar-preview-only .profile-edit-avatar-preview i {
    font-size: 25px;
    color: rgba(255, 255, 255, 0.72);
}/* =========================================================
   COMICVAULT — PREMIUM REGISTER PAGE
   Scoped only to .auth-page
   ========================================================= */

.auth-page {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(236, 72, 153, 0.13),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(168, 85, 247, 0.12),
            transparent 34%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(244, 63, 94, 0.07),
            transparent 35%
        ),
        #08080b;

    color: #f4f4f5;
}

/* subtle ambient light */

.auth-page::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: -240px;
    top: -230px;
    border-radius: 50%;

    background: rgba(236, 72, 153, 0.10);
    filter: blur(100px);
    pointer-events: none;
}

.auth-page::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -240px;
    bottom: -250px;
    border-radius: 50%;

    background: rgba(139, 92, 246, 0.10);
    filter: blur(100px);
    pointer-events: none;
}


/* =========================================================
   AUTH CARD
   ========================================================= */

.auth-page .auth-box {
    width: min(100%, 470px);
    position: relative;
    z-index: 2;

    padding: 42px 42px 34px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);

    animation: authCardIn 0.65s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   BRAND
   ========================================================= */

.auth-page .auth-logo {
    margin-bottom: 28px;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;

    letter-spacing: 2.8px;
    text-transform: uppercase;

    opacity: 0.95;
}

.auth-page .auth-logo::after {
    content: "";
    display: block;

    width: 34px;
    height: 2px;

    margin-top: 10px;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #ec4899,
        #a855f7
    );
}


/* =========================================================
   HEADING
   ========================================================= */

.auth-page .auth-box h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(30px, 5vw, 38px);
    font-weight: 750;
    line-height: 1.05;

    letter-spacing: -1.3px;
}

.auth-page .auth-subtitle {
    margin: 11px 0 30px;

    color: rgba(255, 255, 255, 0.52);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.auth-page #registerForm {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-page #registerForm label {
    display: block;

    margin: 0 0 8px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 11px;
    font-weight: 750;

    letter-spacing: 1.15px;
    text-transform: uppercase;
}

.auth-page #registerForm input {
    width: 100%;
    height: 50px;

    margin: 0 0 19px;
    padding: 0 15px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    outline: none;

    background: rgba(0, 0, 0, 0.23);

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.auth-page #registerForm input::placeholder {
    color: rgba(255, 255, 255, 0.30);
}

.auth-page #registerForm input:hover {
    background: rgba(0, 0, 0, 0.30);
}

.auth-page #registerForm input:focus {
    border-color: rgba(236, 72, 153, 0.60);

    background: rgba(0, 0, 0, 0.34);

    box-shadow:
        0 0 0 3px rgba(236, 72, 153, 0.08),
        0 8px 25px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   CREATE ACCOUNT BUTTON
   ========================================================= */

.auth-page #registerForm .auth-btn {
    width: 100%;
    height: 52px;

    margin-top: 5px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;

    cursor: pointer;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ec4899,
            #a855f7
        );

    font-family: inherit;
    font-size: 14px;
    font-weight: 750;

    letter-spacing: 0.15px;

    box-shadow:
        0 12px 30px rgba(236, 72, 153, 0.16);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.auth-page #registerForm .auth-btn:hover {
    transform: translateY(-2px);

    filter: brightness(1.07);

    box-shadow:
        0 16px 38px rgba(236, 72, 153, 0.24);
}

.auth-page #registerForm .auth-btn:active {
    transform: translateY(0);
}


/* =========================================================
   LOGIN SWITCH
   ========================================================= */

.auth-page .auth-switch {
    margin: 23px 0 0;

    text-align: center;

    color: rgba(255, 255, 255, 0.42);

    font-size: 13px;
    line-height: 1.6;
}

.auth-page .auth-switch a {
    margin-left: 4px;

    color: #f472b6;

    font-weight: 700;
    text-decoration: none;

    transition: color 0.2s ease;
}

.auth-page .auth-switch a:hover {
    color: #f9a8d4;
}


/* =========================================================
   BACK HOME
   ========================================================= */

.auth-page .back-home {
    display: flex;
    width: fit-content;

    margin: 24px auto 0;

    color: rgba(255, 255, 255, 0.38);

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.auth-page .back-home:hover {
    color: rgba(255, 255, 255, 0.75);
    transform: translateX(-2px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .auth-page {
        padding: 22px 15px;
    }

    .auth-page .auth-box {
        padding: 32px 24px 27px;
        border-radius: 21px;
    }

    .auth-page .auth-logo {
        margin-bottom: 24px;
    }

    .auth-page .auth-box h1 {
        font-size: 31px;
    }

    .auth-page .auth-subtitle {
        margin-bottom: 26px;
    }

    .auth-page #registerForm input {
        height: 49px;
        margin-bottom: 17px;
    }

    .auth-page #registerForm .auth-btn {
        height: 51px;
    }
}

@media (max-width: 380px) {

    .auth-page .auth-box {
        padding: 28px 19px 24px;
    }

    .auth-page .auth-box h1 {
        font-size: 28px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .auth-page .auth-box {
        animation: none;
    }

    .auth-page #registerForm input,
    .auth-page #registerForm .auth-btn,
    .auth-page .auth-switch a,
    .auth-page .back-home {
        transition: none;
    }
}/* =========================================================
   COMICVAULT AUTH — LOGIN UI FIX
   Scoped only to login form
   ========================================================= */

.auth-page .auth-box {
    box-sizing: border-box;
}

.auth-page #loginForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-page #loginForm label {
    display: block !important;

    width: 100%;

    margin: 0 0 8px !important;

    color: rgba(255, 255, 255, 0.72) !important;

    font-family: Arial, sans-serif;
    font-size: 11px !important;
    font-weight: 700 !important;

    line-height: 1.2;
    letter-spacing: 1.1px;

    text-transform: uppercase;
}

.auth-page #loginForm input {
    box-sizing: border-box !important;

    display: block !important;

    width: 100% !important;
    height: 52px !important;

    margin: 0 0 20px !important;
    padding: 0 16px !important;

    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 14px !important;

    outline: none !important;

    background: rgba(255, 255, 255, 0.045) !important;

    color: #ffffff !important;

    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;

    -webkit-appearance: none;
    appearance: none;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 8px 25px rgba(0, 0, 0, 0.10) !important;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease !important;
}

.auth-page #loginForm input:hover {
    border-color: rgba(255, 255, 255, 0.17) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.auth-page #loginForm input:focus {
    border-color: rgba(236, 72, 153, 0.65) !important;

    background: rgba(255, 255, 255, 0.065) !important;

    box-shadow:
        0 0 0 3px rgba(236, 72, 153, 0.08),
        0 12px 30px rgba(0, 0, 0, 0.18) !important;
}

.auth-page #loginForm input::placeholder {
    color: rgba(255, 255, 255, 0.28) !important;
    opacity: 1 !important;
}


/* LOGIN BUTTON */

.auth-page #loginForm .auth-btn {
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100% !important;
    height: 53px !important;

    margin: 2px 0 0 !important;
    padding: 0 20px !important;

    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;

    outline: none;

    cursor: pointer;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #ec4899 0%,
            #c026d3 48%,
            #8b5cf6 100%
        ) !important;

    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 750 !important;

    letter-spacing: 0.2px;

    box-shadow:
        0 12px 32px rgba(236, 72, 153, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease !important;
}

.auth-page #loginForm .auth-btn:hover {
    transform: translateY(-2px) !important;

    filter: brightness(1.08);

    box-shadow:
        0 17px 40px rgba(236, 72, 153, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.auth-page #loginForm .auth-btn:active {
    transform: translateY(0) !important;
}


/* LOGIN MOBILE */

@media (max-width: 600px) {

    .auth-page #loginForm input {
        height: 50px !important;
    }

    .auth-page #loginForm .auth-btn {
        height: 51px !important;
    }
}/* =========================================================
   COMICVAULT // CINEMATIC LIQUID GLASS AUTH
   LOGIN + REGISTER
   ========================================================= */

.auth-page {
    --auth-pink: #ff3f9f;
    --auth-purple: #8b5cf6;
    --auth-white: rgba(255,255,255,.94);
    --auth-muted: rgba(255,255,255,.48);

    min-height: 100vh;
    width: 100%;
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 24px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 18% 30%,
            rgba(255, 35, 142, .15),
            transparent 30%
        ),
        radial-gradient(
            circle at 84% 68%,
            rgba(139, 92, 246, .16),
            transparent 34%
        ),
        radial-gradient(
            circle at 50% 0%,
            rgba(255,255,255,.035),
            transparent 28%
        ),
        #050507;

    color: white;
}


/* =========================================================
   CINEMATIC BACKGROUND ART
   Uses existing ComicVault artwork
   ========================================================= */

.auth-page::before {
    content: "";

    position: absolute;
    inset: -5%;

    z-index: -3;

    background:
        linear-gradient(
            90deg,
            rgba(5,5,7,.98) 0%,
            rgba(5,5,7,.78) 27%,
            rgba(5,5,7,.48) 52%,
            rgba(5,5,7,.82) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5,5,7,.15),
            rgba(5,5,7,.92)
        ),
        url("images/lookism.jpg");

    background-size: cover;
    background-position: center;

    opacity: .42;

    filter: saturate(.8) contrast(1.08);

    transform: scale(1.06);
}


/* second atmospheric artwork layer */

.auth-page::after {
    content: "";

    position: absolute;
    inset: -20%;

    z-index: -2;

    background:
        radial-gradient(
            ellipse at 20% 50%,
            rgba(255, 48, 151, .18),
            transparent 24%
        ),
        radial-gradient(
            ellipse at 80% 50%,
            rgba(124, 58, 237, .18),
            transparent 27%
        );

    filter: blur(60px);

    animation: authAmbient 9s ease-in-out infinite alternate;

    pointer-events: none;
}

@keyframes authAmbient {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }

    to {
        transform: translate3d(2%, 2%, 0) scale(1.06);
    }
}


/* =========================================================
   CINEMATIC GRID / LIGHT
   ========================================================= */

.auth-page .auth-box::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    pointer-events: none;

    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255,255,255,.055) 42%,
            transparent 54%
        );

    opacity: .55;

    animation: glassSweep 7s ease-in-out infinite;
}

@keyframes glassSweep {
    0%,
    55% {
        transform: translateX(-120%);
    }

    80%,
    100% {
        transform: translateX(120%);
    }
}


/* =========================================================
   GLASS CARD
   ========================================================= */

.auth-page .auth-box {
    width: min(100%, 480px);

    position: relative;
    z-index: 5;

    padding: 43px 43px 35px;

    overflow: hidden;

    border-radius: 28px;

    border: 1px solid rgba(255,255,255,.13);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.105),
            rgba(255,255,255,.038) 45%,
            rgba(255,255,255,.018)
        );

    backdrop-filter: blur(34px) saturate(135%);
    -webkit-backdrop-filter: blur(34px) saturate(135%);

    box-shadow:
        0 45px 110px rgba(0,0,0,.72),
        0 0 80px rgba(236,72,153,.07),
        inset 0 1px 0 rgba(255,255,255,.13),
        inset 0 -1px 0 rgba(255,255,255,.025);

    animation:
        authEnter .8s cubic-bezier(.16,1,.3,1) both;
}

.auth-page .auth-box::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: -90px;
    top: -100px;

    border-radius: 50%;

    background: rgba(255,255,255,.07);

    filter: blur(35px);

    pointer-events: none;
}

@keyframes authEnter {
    from {
        opacity: 0;
        transform:
            translateY(28px)
            scale(.965);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
        filter: blur(0);
    }
}


/* =========================================================
   BRAND
   ========================================================= */

.auth-page .auth-logo {
    position: relative;

    display: inline-flex;
    align-items: center;

    margin-bottom: 34px;

    color: rgba(255,255,255,.94);

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;

    letter-spacing: 3.4px;
    text-transform: uppercase;
}

.auth-page .auth-logo::before {
    content: "";

    width: 7px;
    height: 7px;

    margin-right: 9px;

    border-radius: 50%;

    background: var(--auth-pink);

    box-shadow:
        0 0 15px rgba(255,63,159,.65);
}

.auth-page .auth-logo::after {
    content: "";

    position: absolute;

    left: 16px;
    bottom: -11px;

    width: 34px;
    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--auth-pink),
            var(--auth-purple)
        );
}


/* =========================================================
   HEADING
   ========================================================= */

.auth-page .auth-box h1 {
    position: relative;

    margin: 0;

    color: #fff;

    font-family: Arial, sans-serif;
    font-size: clamp(34px, 5vw, 43px);
    font-weight: 800;

    line-height: .98;

    letter-spacing: -1.8px;
}

.auth-page .auth-subtitle {
    position: relative;

    margin: 13px 0 32px;

    color: rgba(255,255,255,.48);

    font-family: Arial, sans-serif;
    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.auth-page #loginForm,
.auth-page #registerForm {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
}

.auth-page #loginForm label,
.auth-page #registerForm label {
    display: block !important;

    margin: 0 0 8px !important;

    color: rgba(255,255,255,.62) !important;

    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 800 !important;

    letter-spacing: 1.4px !important;

    text-transform: uppercase;
}


/* =========================================================
   LIQUID GLASS INPUTS
   ========================================================= */

.auth-page #loginForm input,
.auth-page #registerForm input {
    width: 100% !important;
    height: 53px !important;

    box-sizing: border-box !important;

    margin: 0 0 19px !important;
    padding: 0 17px !important;

    border-radius: 15px !important;

    border: 1px solid rgba(255,255,255,.095) !important;

    outline: none !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.065),
            rgba(255,255,255,.025)
        ) !important;

    color: white !important;

    font-family: Arial, sans-serif !important;
    font-size: 14px !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.045),
        0 7px 25px rgba(0,0,0,.12) !important;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        .25s ease !important;
}

.auth-page #loginForm input::placeholder,
.auth-page #registerForm input::placeholder {
    color: rgba(255,255,255,.27) !important;
}

.auth-page #loginForm input:hover,
.auth-page #registerForm input:hover {
    border-color: rgba(255,255,255,.17) !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.078),
            rgba(255,255,255,.032)
        ) !important;
}

.auth-page #loginForm input:focus,
.auth-page #registerForm input:focus {
    border-color: rgba(255,63,159,.62) !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.085),
            rgba(255,255,255,.035)
        ) !important;

    box-shadow:
        0 0 0 3px rgba(255,63,159,.075),
        0 15px 35px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.06) !important;

    transform: translateY(-1px);
}


/* =========================================================
   MAIN CTA
   ========================================================= */

.auth-page #loginForm .auth-btn,
.auth-page #registerForm .auth-btn {
    position: relative;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100% !important;
    height: 54px !important;

    overflow: hidden;

    margin: 4px 0 0 !important;
    padding: 0 20px !important;

    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 15px !important;

    color: white !important;

    background:
        linear-gradient(
            105deg,
            #ec4899,
            #d026d9 48%,
            #7c3aed
        ) !important;

    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;

    letter-spacing: .15px;

    cursor: pointer;

    box-shadow:
        0 15px 35px rgba(236,72,153,.20),
        inset 0 1px 0 rgba(255,255,255,.25) !important;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease !important;
}

.auth-page #loginForm .auth-btn::before,
.auth-page #registerForm .auth-btn::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 25%,
            rgba(255,255,255,.28) 50%,
            transparent 75%
        );

    transform: translateX(-120%);

    transition: transform .65s ease;
}

.auth-page #loginForm .auth-btn:hover::before,
.auth-page #registerForm .auth-btn:hover::before {
    transform: translateX(120%);
}

.auth-page #loginForm .auth-btn:hover,
.auth-page #registerForm .auth-btn:hover {
    transform: translateY(-2px);

    filter: brightness(1.08);

    box-shadow:
        0 20px 45px rgba(236,72,153,.30),
        inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.auth-page #loginForm .auth-btn:active,
.auth-page #registerForm .auth-btn:active {
    transform: translateY(0);
}


/* =========================================================
   BOTTOM LINKS
   ========================================================= */

.auth-page .auth-switch {
    position: relative;

    margin: 24px 0 0;

    color: rgba(255,255,255,.38);

    text-align: center;

    font-family: Arial, sans-serif;
    font-size: 12px;
}

.auth-page .auth-switch a {
    color: #f472b6 !important;

    font-weight: 800;

    text-decoration: none;

    transition: color .2s ease;
}

.auth-page .auth-switch a:hover {
    color: #f9a8d4 !important;
}

.auth-page .back-home {
    position: relative;

    display: flex;
    justify-content: center;

    width: fit-content;

    margin: 22px auto 0;

    color: rgba(255,255,255,.32) !important;

    font-family: Arial, sans-serif;
    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}

.auth-page .back-home:hover {
    color: rgba(255,255,255,.72) !important;

    transform: translateX(-3px);
}


/* =========================================================
   SMALL CINEMATIC LABEL
   ========================================================= */

.auth-page .auth-box h1::after {
    content: "COMICVAULT // ACCESS";

    display: block;

    margin-top: 13px;

    color: rgba(255,255,255,.18);

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 800;

    letter-spacing: 2.4px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .auth-page {
        min-height: 100svh;

        padding: 28px 15px;
    }

    .auth-page::before {
        background-position: 58% center;

        opacity: .30;
    }

    .auth-page .auth-box {
        width: 100%;

        padding: 34px 23px 28px;

        border-radius: 23px;

        backdrop-filter: blur(27px) saturate(125%);
        -webkit-backdrop-filter: blur(27px) saturate(125%);
    }

    .auth-page .auth-logo {
        margin-bottom: 29px;
    }

    .auth-page .auth-box h1 {
        font-size: 32px;
    }

    .auth-page .auth-subtitle {
        margin-bottom: 27px;
    }

    .auth-page #loginForm input,
    .auth-page #registerForm input {
        height: 51px !important;
    }

    .auth-page #loginForm .auth-btn,
    .auth-page #registerForm .auth-btn {
        height: 52px !important;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .auth-page {
        padding: 18px 12px;
    }

    .auth-page .auth-box {
        padding: 29px 19px 24px;

        border-radius: 21px;
    }

    .auth-page .auth-box h1 {
        font-size: 29px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .auth-page::after,
    .auth-page .auth-box,
    .auth-page .auth-box::before {
        animation: none !important;
    }

    .auth-page #loginForm input,
    .auth-page #registerForm input,
    .auth-page #loginForm .auth-btn,
    .auth-page #registerForm .auth-btn {
        transition: none !important;
    }
}/* =========================================================
   COMICVAULT — CINEMATIC SPLIT AUTH SYSTEM
   LOGIN + REGISTER
   ========================================================= */

.auth-page {
    --cv-pink: #ff3d9a;
    --cv-purple: #8b5cf6;
    --cv-white: rgba(255,255,255,.94);
    --cv-muted: rgba(255,255,255,.46);

    min-height: 100vh;
    width: 100%;

    position: relative;
    display: flex;

    overflow: hidden;
    isolation: isolate;

    background: #050507;
    color: #fff;
}


/* =========================================================
   LEFT CINEMATIC WORLD
   ========================================================= */

.auth-cinematic {
    position: relative;

    width: 58%;
    min-height: 100vh;

    overflow: hidden;

    display: flex;
    align-items: center;

    background: #070709;
}


/* Artwork */

.auth-cinematic-art {
    position: absolute;
    inset: 0;

    background-image:
        url("images/lookism.jpg");

    background-size: cover;
    background-position: center;

    transform: scale(1.06);

    filter:
        saturate(.82)
        contrast(1.08);

    animation: authArtwork 14s ease-in-out infinite alternate;
}

@keyframes authArtwork {

    from {
        transform: scale(1.06) translate3d(0,0,0);
    }

    to {
        transform: scale(1.12) translate3d(-1.2%,1%,0);
    }
}


/* Dark cinematic treatment */

.auth-cinematic-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4,4,6,.18) 0%,
            rgba(4,4,6,.30) 42%,
            rgba(4,4,6,.86) 100%
        ),
        linear-gradient(
            0deg,
            rgba(4,4,6,.82) 0%,
            transparent 48%,
            rgba(4,4,6,.25) 100%
        );
}


/* Pink atmospheric light */

.auth-cinematic::after {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    left: -180px;
    top: 18%;

    border-radius: 50%;

    background: rgba(255,61,154,.13);

    filter: blur(100px);

    pointer-events: none;
}


/* =========================================================
   CINEMATIC CONTENT
   ========================================================= */

.auth-cinematic-content {
    position: relative;
    z-index: 3;

    width: min(650px, 80%);

    margin-left: clamp(45px, 9vw, 130px);
    margin-top: 40px;
}


/* Brand */

.auth-brand-mark {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 65px;

    font-size: 12px;
    font-weight: 850;

    letter-spacing: 3.5px;

    color: rgba(255,255,255,.85);
}

.auth-brand-mark span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--cv-pink);

    box-shadow:
        0 0 18px rgba(255,61,154,.8);
}


/* Editorial label */

.auth-editorial-label {
    margin-bottom: 18px;

    color: rgba(255,255,255,.45);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2.6px;
}


/* Main statement */

.auth-cinematic-content h2 {
    margin: 0;

    max-width: 600px;

    font-family: Arial, sans-serif;

    font-size: clamp(58px, 7vw, 104px);
    font-weight: 800;

    line-height: .88;

    letter-spacing: -5px;

    color: #fff;

    text-shadow:
        0 20px 70px rgba(0,0,0,.45);
}

.auth-cinematic-content h2 em {
    font-style: normal;

    background:
        linear-gradient(
            100deg,
            #fff 0%,
            #ff8bc8 42%,
            #a78bfa 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* Description */

.auth-cinematic-content p {
    max-width: 410px;

    margin: 28px 0 0;

    color: rgba(255,255,255,.55);

    font-size: 14px;

    line-height: 1.75;
}


/* Meta */

.auth-cinematic-meta {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 35px;

    color: rgba(255,255,255,.46);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
}

.auth-cinematic-meta i {
    width: 20px;
    height: 1px;

    background: rgba(255,255,255,.22);
}


/* Bottom metadata */

.auth-cinematic-bottom {
    position: absolute;

    left: 0;
    bottom: -28vh;

    display: flex;
    gap: 30px;

    color: rgba(255,255,255,.26);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
}


/* =========================================================
   RIGHT AUTH SIDE
   ========================================================= */

.auth-side {
    position: relative;

    width: 42%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 7vw 50px 35px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,61,154,.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(139,92,246,.09),
            transparent 32%
        ),
        #07070a;
}


/* =========================================================
   GLASS AUTH CARD
   ========================================================= */

.auth-side .auth-box {
    width: min(100%, 430px);

    position: relative;

    padding: 38px;

    overflow: hidden;

    border-radius: 25px;

    border: 1px solid rgba(255,255,255,.105);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.025) 55%,
            rgba(255,255,255,.015)
        );

    backdrop-filter:
        blur(28px)
        saturate(135%);

    -webkit-backdrop-filter:
        blur(28px)
        saturate(135%);

    box-shadow:
        0 35px 100px rgba(0,0,0,.62),
        0 0 80px rgba(255,61,154,.045),
        inset 0 1px 0 rgba(255,255,255,.11);

    animation:
        authPanelIn .75s cubic-bezier(.16,1,.3,1) both;
}

@keyframes authPanelIn {

    from {
        opacity: 0;

        transform:
            translateX(35px)
            scale(.97);
    }

    to {
        opacity: 1;

        transform:
            translateX(0)
            scale(1);
    }
}


/* Glass reflection */

.auth-side .auth-box::before {
    content: "";

    position: absolute;

    top: -130px;
    right: -120px;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.075),
            transparent 67%
        );

    pointer-events: none;
}


/* Bottom pink edge */

.auth-side .auth-box::after {
    content: "";

    position: absolute;

    left: 12%;
    right: 12%;
    bottom: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,61,154,.55),
            rgba(139,92,246,.45),
            transparent
        );

    opacity: .75;
}


/* =========================================================
   MOBILE BRAND
   ========================================================= */

.auth-mobile-brand {
    display: none;

    margin-bottom: 25px;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 3px;
}


/* =========================================================
   TOPLINE
   ========================================================= */

.auth-topline {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 30px;

    color: rgba(255,255,255,.32);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.auth-status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #67e8a4;

    box-shadow:
        0 0 12px rgba(103,232,164,.7);
}


/* =========================================================
   HEADING
   ========================================================= */

.auth-side .auth-heading {
    position: relative;
    z-index: 2;
}

.auth-side .auth-logo {
    display: none;
}

.auth-side .auth-box h1 {
    margin: 0;

    color: #fff;

    font-family: Arial, sans-serif;

    font-size: 38px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: -1.6px;
}

.auth-side .auth-subtitle {
    margin: 12px 0 30px;

    color: rgba(255,255,255,.42);

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   INPUT LABELS
   ========================================================= */

.auth-side #loginForm label,
.auth-side #registerForm label {
    position: relative;
    z-index: 2;

    display: block !important;

    margin: 0 0 8px !important;

    color: rgba(255,255,255,.58) !important;

    font-size: 9px !important;
    font-weight: 800 !important;

    letter-spacing: 1.5px !important;

    text-transform: uppercase;
}


/* =========================================================
   INPUT WRAPPER
   ========================================================= */

.auth-input-wrap {
    position: relative;

    width: 100%;

    margin-bottom: 18px;
}

.auth-input-wrap > i:first-child {
    position: absolute;

    left: 16px;
    top: 50%;

    z-index: 3;

    transform: translateY(-50%);

    color: rgba(255,255,255,.32);

    font-size: 13px;

    pointer-events: none;

    transition: color .2s ease;
}


/* =========================================================
   INPUTS
   ========================================================= */

.auth-side #loginForm .auth-input-wrap input,
.auth-side #registerForm .auth-input-wrap input {
    width: 100% !important;
    height: 52px !important;

    box-sizing: border-box !important;

    margin: 0 !important;

    padding:
        0 45px 0 44px !important;

    border-radius: 14px !important;

    border: 1px solid rgba(255,255,255,.085) !important;

    outline: none !important;

    background:
        rgba(255,255,255,.035) !important;

    color: #fff !important;

    font-size: 13px !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 8px 25px rgba(0,0,0,.12) !important;

    transition: .25s ease !important;
}

.auth-side #loginForm .auth-input-wrap input::placeholder,
.auth-side #registerForm .auth-input-wrap input::placeholder {
    color: rgba(255,255,255,.24) !important;
}

.auth-side .auth-input-wrap:focus-within > i:first-child {
    color: var(--cv-pink);
}

.auth-side #loginForm .auth-input-wrap input:focus,
.auth-side #registerForm .auth-input-wrap input:focus {

    border-color:
        rgba(255,61,154,.52) !important;

    background:
        rgba(255,255,255,.055) !important;

    box-shadow:
        0 0 0 3px rgba(255,61,154,.055),
        0 12px 30px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.05) !important;
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.auth-password-toggle {
    position: absolute;

    right: 14px;
    top: 50%;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    transform: translateY(-50%);

    border: 0;
    outline: 0;

    background: transparent;

    color: rgba(255,255,255,.28);

    cursor: pointer;

    transition:
        color .2s ease,
        transform .2s ease;
}

.auth-password-toggle:hover {
    color: #fff;

    transform:
        translateY(-50%)
        scale(1.08);
}


/* =========================================================
   BUTTON
   ========================================================= */

.auth-side #loginForm .auth-btn,
.auth-side #registerForm .auth-btn {

    position: relative;

    display: flex !important;
    align-items: center;
    justify-content: space-between;

    width: 100% !important;
    height: 53px !important;

    margin: 7px 0 0 !important;

    padding: 0 17px 0 19px !important;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.15) !important;

    border-radius: 14px !important;

    color: white !important;

    background:
        linear-gradient(
            105deg,
            #ed3c99,
            #c62bcf 48%,
            #7549e9
        ) !important;

    font-size: 13px !important;
    font-weight: 800 !important;

    cursor: pointer;

    box-shadow:
        0 14px 32px rgba(236,72,153,.18),
        inset 0 1px 0 rgba(255,255,255,.22) !important;

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease !important;
}

.auth-side #loginForm .auth-btn span,
.auth-side #registerForm .auth-btn span {
    position: relative;
    z-index: 2;
}

.auth-side #loginForm .auth-btn i,
.auth-side #registerForm .auth-btn i {
    position: relative;
    z-index: 2;

    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(255,255,255,.12);

    font-size: 11px;

    transition: transform .22s ease;
}

.auth-side #loginForm .auth-btn:hover,
.auth-side #registerForm .auth-btn:hover {

    transform: translateY(-2px);

    filter: brightness(1.07);

    box-shadow:
        0 20px 45px rgba(236,72,153,.28),
        inset 0 1px 0 rgba(255,255,255,.25) !important;
}

.auth-side #loginForm .auth-btn:hover i,
.auth-side #registerForm .auth-btn:hover i {
    transform: translateX(3px);
}


/* Shine */

.auth-side #loginForm .auth-btn::before,
.auth-side #registerForm .auth-btn::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 20%,
            rgba(255,255,255,.22) 48%,
            transparent 72%
        );

    transform: translateX(-120%);

    transition: transform .65s ease;
}

.auth-side #loginForm .auth-btn:hover::before,
.auth-side #registerForm .auth-btn:hover::before {
    transform: translateX(120%);
}


/* =========================================================
   DIVIDER
   ========================================================= */

.auth-divider {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 23px 0 20px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: rgba(255,255,255,.065);
}

.auth-divider span {
    color: rgba(255,255,255,.23);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   SWITCH
   ========================================================= */

.auth-side .auth-switch {
    position: relative;
    z-index: 2;

    margin: 0;

    text-align: center;

    color: rgba(255,255,255,.34);

    font-size: 12px;
}

.auth-side .auth-switch a {
    margin-left: 4px;

    color: #f472b6 !important;

    font-weight: 800;

    text-decoration: none;

    transition: color .2s ease;
}

.auth-side .auth-switch a:hover {
    color: #f9a8d4 !important;
}


/* =========================================================
   BACK HOME
   ========================================================= */

.auth-side .back-home {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    width: fit-content;

    margin: 20px auto 0;

    color: rgba(255,255,255,.29) !important;

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}

.auth-side .back-home:hover {
    color: rgba(255,255,255,.68) !important;

    transform: translateX(-2px);
}


/* =========================================================
   SECURITY
   ========================================================= */

.auth-security {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 24px;

    color: rgba(255,255,255,.20);

    font-size: 9px;

    letter-spacing: .3px;
}

.auth-security i {
    color: rgba(103,232,164,.55);
}


/* =========================================================
   REGISTER — SLIGHTLY TIGHTER
   ========================================================= */

.auth-register-page .auth-side .auth-box {
    padding-top: 32px;
    padding-bottom: 28px;
}

.auth-register-page .auth-topline {
    margin-bottom: 22px;
}

.auth-register-page .auth-subtitle {
    margin-bottom: 23px;
}

.auth-register-page #registerForm .auth-input-wrap {
    margin-bottom: 13px;
}


/* =========================================================
   DESKTOP — CINEMATIC BALANCE
   ========================================================= */

@media (min-width: 1101px) {

    .auth-page {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
        min-height: 100dvh;
    }

    .auth-cinematic {
        width: 100%;
        min-height: 100dvh;
    }

    .auth-cinematic-art {
        background-position: center center;
    }

    .auth-cinematic-content {
        width: min(700px, 86%);
        padding: 58px 0 42px 7vw;
    }

    .auth-cinematic-content h2 {
        font-size: clamp(58px, 5.4vw, 94px);
        line-height: 0.91;
        letter-spacing: -4px;
        max-width: 650px;
    }

    .auth-cinematic-content p {
        max-width: 520px;
        font-size: 15px;
        line-height: 1.7;
    }

    .auth-side {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 42px 5vw 42px 3vw;
    }

    .auth-side .auth-box {
        width: min(455px, 100%);
        padding: 38px 38px 30px;
    }

}


/* =========================================================
   LARGE DESKTOP — MORE BREATHING ROOM
   ========================================================= */

@media (min-width: 1500px) {

    .auth-page {
        grid-template-columns: minmax(0, 1.2fr) minmax(470px, 0.8fr);
    }

    .auth-cinematic-content {
        padding-left: 8vw;
    }

    .auth-side {
        padding-right: 7vw;
    }

    .auth-side .auth-box {
        width: 470px;
        padding: 42px 42px 32px;
    }

}


/* =========================================================
   TABLET LANDSCAPE
   ========================================================= */

@media (min-width: 721px) and (max-width: 1100px) {

    .auth-page {
        display: grid;
        grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
        min-height: 100dvh;
    }

    .auth-cinematic {
        min-height: 100dvh;
    }

    .auth-cinematic-art {
        background-position: 42% center;
    }

    .auth-cinematic-content {
        width: 100%;
        padding: 42px 34px;
    }

    .auth-cinematic-content h2 {
        font-size: clamp(48px, 7vw, 72px);
        line-height: 0.94;
        letter-spacing: -3px;
    }

    .auth-cinematic-content p {
        max-width: 390px;
        font-size: 14px;
        line-height: 1.6;
    }

    .auth-cinematic-meta {
        gap: 10px;
    }

    .auth-cinematic-bottom {
        left: 34px;
        right: 34px;
    }

    .auth-side {
        padding: 30px 28px;
    }

    .auth-side .auth-box {
        width: min(430px, 100%);
        padding: 32px 30px 26px;
    }

    .auth-side .auth-box h1 {
        font-size: 34px;
    }

}


/* =========================================================
   TABLET PORTRAIT
   ========================================================= */

@media (min-width: 541px) and (max-width: 720px) {

    .auth-page {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .auth-cinematic {
        position: relative;
        width: 100%;
        min-height: 285px;
        height: 35dvh;
        max-height: 340px;
        flex: 0 0 auto;
    }

    .auth-cinematic-art {
        background-position: center 25%;
    }

    .auth-cinematic-content {
        width: 100%;
        padding: 30px 34px 28px;
    }

    .auth-brand-mark {
        font-size: 12px;
    }

    .auth-editorial-label {
        margin-top: 28px;
        font-size: 9px;
    }

    .auth-cinematic-content h2 {
        margin-top: 8px;
        font-size: clamp(42px, 9vw, 58px);
        line-height: 0.9;
        letter-spacing: -2.5px;
    }

    .auth-cinematic-content p {
        display: none;
    }

    .auth-cinematic-meta {
        margin-top: 18px;
    }

    .auth-cinematic-bottom {
        display: none;
    }

    .auth-side {
        width: 100%;
        min-height: 65dvh;
        padding: 28px 34px 38px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .auth-side .auth-box {
        width: min(500px, 100%);
        padding: 30px 30px 26px;
    }

}


/* =========================================================
   MOBILE — CINEMATIC BUT COMPACT
   ========================================================= */

@media (max-width: 540px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .auth-page {
        width: 100%;
        min-width: 0;
        min-height: 100dvh;
        height: auto;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* ---- Cinematic visual ---- */

    .auth-cinematic {
        position: relative;
        width: 100%;
        min-width: 0;
        height: 235px;
        min-height: 235px;
        max-height: 235px;
        flex: 0 0 235px;
        overflow: hidden;
    }

    .auth-cinematic-art {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-position: center 22%;
        transform: none;
    }

    .auth-cinematic-overlay {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                to bottom,
                rgba(5, 5, 8, 0.08) 0%,
                rgba(5, 5, 8, 0.18) 35%,
                rgba(5, 5, 8, 0.78) 82%,
                rgba(5, 5, 8, 1) 100%
            );
    }

    .auth-cinematic-content {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 23px 22px 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .auth-brand-mark {
        position: absolute;
        top: 22px;
        left: 22px;
        font-size: 10px;
        letter-spacing: 1.7px;
    }

    .auth-brand-mark span {
        width: 6px;
        height: 6px;
    }

    .auth-editorial-label {
        margin: 0 0 7px;
        font-size: 8px;
        letter-spacing: 1.8px;
    }

    .auth-cinematic-content h2 {
        margin: 0;
        max-width: 100%;
        font-size: clamp(39px, 12vw, 54px);
        line-height: 0.9;
        letter-spacing: -2.5px;
    }

    .auth-cinematic-content p {
        display: none;
    }

    .auth-cinematic-meta {
        margin-top: 14px;
        gap: 8px;
        font-size: 7px;
        letter-spacing: 1.2px;
    }

    .auth-cinematic-meta i {
        width: 3px;
        height: 3px;
    }

    .auth-cinematic-bottom {
        display: none;
    }


    /* ---- Form area ---- */

    .auth-side {
        width: 100%;
        min-width: 0;
        min-height: auto;
        flex: 1 1 auto;
        padding: 0 16px 24px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        background:
            radial-gradient(
                circle at 80% 0%,
                rgba(139, 92, 246, 0.08),
                transparent 38%
            ),
            #050508;
    }

    .auth-side .auth-box {
        width: 100%;
        max-width: 430px;
        min-width: 0;
        margin: 0;
        padding: 22px 18px 20px;
        border-radius: 0 0 20px 20px;
        border-top: 0;
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.34);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .auth-mobile-brand {
        display: block;
        margin-bottom: 18px;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 2.2px;
    }

    .auth-topline {
        margin-bottom: 18px;
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .auth-heading {
        margin-bottom: 21px;
    }

    .auth-side .auth-logo {
        display: none;
    }

    .auth-side .auth-box h1 {
        margin: 0;
        font-size: clamp(29px, 8vw, 37px);
        line-height: 1;
        letter-spacing: -1.5px;
    }

    .auth-side .auth-subtitle {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.5;
    }


    /* ---- Inputs ---- */

    .auth-side .auth-box form {
        width: 100%;
    }

    .auth-side .auth-box label {
        display: block;
        margin-bottom: 7px;
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .auth-input-wrap {
        width: 100%;
        min-width: 0;
        height: 48px;
        margin-bottom: 15px;
        border-radius: 11px;
    }

    .auth-input-wrap > i {
        flex: 0 0 18px;
        width: 18px;
        margin-left: 13px;
        font-size: 13px;
    }

    .auth-input-wrap input {
        min-width: 0;
        width: 100%;
        height: 100%;
        padding: 0 11px;
        font-size: 13px;
    }

    .auth-password-toggle {
        flex: 0 0 38px;
        width: 38px;
        height: 100%;
        margin-right: 2px;
    }


    /* ---- CTA ---- */

    .auth-side .auth-btn {
        width: 100%;
        min-width: 0;
        height: 49px;
        margin-top: 3px;
        border-radius: 11px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .auth-side .auth-btn i {
        font-size: 11px;
    }


    /* ---- Bottom area ---- */

    .auth-divider {
        margin: 19px 0 16px;
    }

    .auth-divider span {
        font-size: 8px;
    }

    .auth-switch {
        font-size: 11px;
        line-height: 1.5;
        text-align: center;
    }

    .back-home {
        justify-content: center;
        margin-top: 15px;
        font-size: 10px;
    }

    .auth-security {
        justify-content: center;
        margin-top: 18px;
        font-size: 8px;
    }

}


/* =========================================================
   SMALL PHONES — 390px AND BELOW
   ========================================================= */

@media (max-width: 390px) {

    .auth-cinematic {
        height: 215px;
        min-height: 215px;
        max-height: 215px;
        flex-basis: 215px;
    }

    .auth-cinematic-content {
        padding: 20px 18px 17px;
    }

    .auth-brand-mark {
        top: 19px;
        left: 18px;
    }

    .auth-cinematic-content h2 {
        font-size: 38px;
        letter-spacing: -2px;
    }

    .auth-cinematic-meta {
        margin-top: 11px;
    }

    .auth-side {
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 18px;
    }

    .auth-side .auth-box {
        padding: 20px 15px 18px;
        border-radius: 0 0 17px 17px;
    }

    .auth-topline {
        margin-bottom: 15px;
    }

    .auth-heading {
        margin-bottom: 18px;
    }

    .auth-side .auth-box h1 {
        font-size: 28px;
    }

    .auth-input-wrap {
        height: 46px;
        margin-bottom: 13px;
    }

    .auth-side .auth-btn {
        height: 47px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 340px) {

    .auth-cinematic {
        height: 195px;
        min-height: 195px;
        max-height: 195px;
        flex-basis: 195px;
    }

    .auth-cinematic-content h2 {
        font-size: 34px;
    }

    .auth-cinematic-meta {
        display: none;
    }

    .auth-side .auth-box h1 {
        font-size: 26px;
    }

    .auth-side .auth-subtitle {
        font-size: 11px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}/* =========================================================
   COMICVAULT AUTH — FINAL DESKTOP FIX
   ========================================================= */

@media (min-width: 1101px) {

    .auth-page {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(420px, 0.85fr) !important;

        width: 100%;
        min-height: 100dvh;
        height: 100dvh;

        overflow: hidden;
    }

    .auth-cinematic {
        position: relative !important;

        width: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;

        overflow: hidden;
    }

    .auth-cinematic-content {
        position: relative !important;
        z-index: 3;

        width: min(700px, 86%) !important;

        margin: 0 !important;
        padding: 58px 0 42px 7vw !important;
    }

    .auth-side {
        position: relative !important;

        width: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;

        box-sizing: border-box !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 42px 5vw 42px 3vw !important;
    }

    .auth-side .auth-box {
        width: min(455px, 100%) !important;
        max-width: 455px !important;

        margin: 0 !important;

        box-sizing: border-box !important;

        padding: 38px 38px 30px !important;
    }

}/* =========================================================
   AUTH — DESKTOP SCROLL / MOTION RESTORE
   ========================================================= */

@media (min-width: 1101px) {

    .auth-page {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .auth-cinematic {
        min-height: 100dvh;
    }

    .auth-side {
        min-height: 100dvh;
    }
}/* =========================================================
   REGISTER — LIVE USERNAME STATUS
========================================================= */

.register-username-status {
    min-height: 20px;
    margin-top: 7px;
    padding-left: 3px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.15px;
}

.register-username-status i {
    margin-right: 5px;
}

.username-status-available {
    color: #7ee2b8;
}

.username-status-taken {
    color: #ff7f96;
}

.username-status-invalid {
    color: #ff9b8f;
}

.username-status-checking {
    color: #aaaab4;
}

.auth-register-page #registerForm button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
} /* =====================================================
    AUTH ENTRY DROPDOWN — LIQUID GLASS
===================================================== */

.auth-entry-menu {
    position: relative;
    display: flex;
    align-items: center;
}


.auth-entry-btn {
    position: relative;
    z-index: 20;
}


/* DROPDOWN */

.auth-entry-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;

    width: 285px;
    padding: 8px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    background:
        linear-gradient(
            145deg,
            rgba(30, 24, 38, 0.94),
            rgba(13, 13, 18, 0.96)
        );

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;

    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.48),
        0 0 35px rgba(190, 70, 150, 0.08);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(-8px)
        scale(0.96);

    transform-origin: top right;

    transition:
        opacity 0.22s ease,
        transform 0.22s cubic-bezier(.2,.8,.2,1),
        visibility 0.22s ease;

    overflow: hidden;
}


/* subtle glass highlight */

.auth-entry-dropdown::before {
    content: "";

    position: absolute;
    top: -70px;
    right: -60px;

    width: 150px;
    height: 150px;

    background:
        radial-gradient(
            circle,
            rgba(236, 72, 153, 0.16),
            transparent 68%
        );

    pointer-events: none;
}


/* OPEN STATE */

.auth-entry-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}


/* ITEM */

.auth-entry-item {
    position: relative;
    z-index: 2;

    min-height: 68px;
    padding: 11px 12px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: #f1f1f3;
    text-decoration: none;

    border: 1px solid transparent;
    border-radius: 13px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.auth-entry-item:hover {
    background:
        linear-gradient(
            100deg,
            rgba(236, 72, 153, 0.11),
            rgba(168, 85, 247, 0.06)
        );

    border-color:
        rgba(236, 72, 153, 0.16);

    transform: translateX(3px);
}


/* ICON BOX */

.auth-entry-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.055);

    border: 1px solid
        rgba(255, 255, 255, 0.075);

    color: #f08bc4;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.auth-entry-item:hover .auth-entry-icon {
    background:
        rgba(236, 72, 153, 0.12);

    color: #ff9ed0;

    transform: scale(1.05);
}


/* TEXT */

.auth-entry-text {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.auth-entry-text strong {
    color: #f4f4f5;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -0.1px;
}


.auth-entry-text small {
    color: #85858d;

    font-size: 10.5px;
    font-weight: 500;

    line-height: 1.3;
}


/* RIGHT ARROW */

.auth-entry-arrow {
    color: #55555e;

    font-size: 10px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.auth-entry-item:hover .auth-entry-arrow {
    color: #ed72b4;

    transform: translateX(3px);
}


/* MOBILE */

@media (max-width: 640px) {

    .auth-entry-dropdown {
        width: min(
            285px,
            calc(100vw - 28px)
        );

        right: -6px;

        border-radius: 16px;
    }

}


@media (max-width: 430px) {

    .auth-entry-dropdown {
        width: min(
            270px,
            calc(100vw - 22px)
        );
    }

    .auth-entry-item {
        min-height: 64px;
        padding: 10px;
    }

    .auth-entry-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .auth-entry-dropdown,
    .auth-entry-item,
    .auth-entry-icon,
    .auth-entry-arrow {
        transition: none !important;
    }

}/* =====================================================
   AUTH ENTRY — FINAL PREMIUM POLISH
===================================================== */

.auth-entry-dropdown {
    isolation: isolate;
}

.auth-entry-dropdown::after {
    content: "";

    position: absolute;
    inset: 1px;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.055),
            transparent 32%,
            transparent 68%,
            rgba(236,72,153,0.035)
        );

    pointer-events: none;
    z-index: 0;
}


/* tiny top glass reflection */

.auth-entry-dropdown .auth-entry-item:first-child::before {
    content: "";

    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.12),
            transparent
        );

    opacity: 0;

    transition: opacity 0.2s ease;
}

.auth-entry-dropdown.show
.auth-entry-item:first-child::before {
    opacity: 1;
}


/* slightly more premium hover */

.auth-entry-item:hover .auth-entry-text strong {
    color: #ffffff;
}

.auth-entry-item:hover .auth-entry-text small {
    color: #a9a9b1;
}


/* active/click feel */

.auth-entry-item:active {
    transform: translateX(2px) scale(0.985);
}/* =====================================================
   PROFILE — LAST SEEN PREMIUM CONTROL
===================================================== */

.profile-last-seen-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 8px;
}

/* Last seen text */

.profile-last-seen-row .profile-last-seen {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.68);
}

/* Green activity dot */

.profile-last-seen-row .profile-last-seen-dot {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: #45d483;
    box-shadow: 0 0 0 3px rgba(69, 212, 131, 0.10);
    display: inline-block;
}

/* Control wrapper */

.profile-last-seen-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Explanation label */

.profile-last-seen-control::before {
    content: "Show your last seen activity on profile";
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
}

/* Toggle */

.profile-last-seen-row .profile-toggle-switch {
    position: relative;
    width: 34px;
    height: 19px;
    min-width: 34px;
    flex-shrink: 0;
    display: inline-block;
}

.profile-last-seen-row .profile-toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.profile-last-seen-row .profile-toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-last-seen-row .profile-toggle-slider::before {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.profile-last-seen-row
.profile-toggle-switch
input:checked
+ .profile-toggle-slider {
    background: rgba(217, 79, 138, 0.85);
    border-color: rgba(217, 79, 138, 0.55);
    box-shadow: 0 0 12px rgba(217, 79, 138, 0.16);
}

.profile-last-seen-row
.profile-toggle-switch
input:checked
+ .profile-toggle-slider::before {
    transform: translateX(15px);
}

/* OFF state */

.profile-last-seen-row
.profile-toggle-switch
input:not(:checked)
+ .profile-toggle-slider {
    background: rgba(255, 255, 255, 0.08);
}

/* Keyboard accessibility */

.profile-last-seen-row
.profile-toggle-switch
input:focus-visible
+ .profile-toggle-slider {
    outline: 2px solid rgba(217, 79, 138, 0.55);
    outline-offset: 3px;
}

/* Mobile */

@media (max-width: 600px) {

    .profile-last-seen-row {
        gap: 10px;
    }

    .profile-last-seen-control::before {
        display: none;
    }

}/* =====================================================
   REGISTER — PREMIUM USERNAME STATUS
===================================================== */

.register-username-status {
    min-height: 20px;

    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 7px;
    margin-bottom: 14px;
    padding-left: 2px;

    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;

    opacity: 0;

    transition:
        opacity 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.register-username-status:not(:empty) {
    opacity: 1;
    animation: registerUsernameStatusIn 0.22s ease;
}

.register-username-status i {
    width: 15px;
    height: 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 10px;

    transition:
        transform 0.2s ease;
}


/* AVAILABLE */

.register-username-status.username-available {
    color: #55d98a;
}

.register-username-status.username-available i {
    width: 16px;
    height: 16px;

    border: 1px solid rgba(85, 217, 138, 0.45);
    border-radius: 50%;

    background: rgba(85, 217, 138, 0.10);

    font-size: 9px;
}


/* TAKEN */

.register-username-status.username-taken {
    color: #ff6b7a;
}

.register-username-status.username-taken i {
    width: 16px;
    height: 16px;

    border: 1px solid rgba(255, 107, 122, 0.45);
    border-radius: 50%;

    background: rgba(255, 107, 122, 0.10);

    font-size: 9px;
}


/* INVALID */

.register-username-status.username-invalid {
    color: #ffb45c;
}

.register-username-status.username-invalid i {
    color: #ffb45c;
}


/* CHECKING */

.register-username-status.username-checking {
    color: rgba(255, 255, 255, 0.52);
}

.register-username-status.username-checking i {
    color: rgba(255, 255, 255, 0.62);
}


/* ERROR */

.register-username-status.username-error {
    color: #ff7d87;
}

.register-username-status.username-error i {
    color: #ff7d87;
}


/* STATUS ANIMATION */

@keyframes registerUsernameStatusIn {

    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =====================================================
   COMICVAULT — PREMIUM AUTH BUTTON OVERRIDE
===================================================== */

.auth-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    padding: 0 22px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.105),
            rgba(255, 255, 255, 0.045)
        );

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22);

    color: #ffffff;

    font-family:
        "Inter",
        "Segoe UI",
        sans-serif;

    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.025em;

    cursor: pointer;

    transition:
        transform 0.25s cubic-bezier(.2,.8,.2,1),
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


/* SOFT INNER LIGHT */

.auth-btn::before {
    content: "";

    position: absolute;
    inset: 1px;

    z-index: -1;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075),
            transparent 45%,
            rgba(255, 255, 255, 0.025)
        );

    pointer-events: none;
}


/* MOVING SHEEN */

.auth-btn::after {
    content: "";

    position: absolute;

    top: -80%;
    left: -45%;

    width: 38%;
    height: 260%;

    transform: rotate(22deg) translateX(-160%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.16),
            transparent
        );

    pointer-events: none;

    transition:
        transform 0.75s cubic-bezier(.2,.7,.2,1);
}


/* TEXT */

.auth-btn span {
    position: relative;
    z-index: 2;

    transform: translateX(2px);

    transition:
        transform 0.25s cubic-bezier(.2,.8,.2,1),
        letter-spacing 0.25s ease;
}


/* ARROW */

.auth-btn i {
    position: relative;
    z-index: 2;

    width: 27px;
    height: 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.065);

    font-size: 11px;

    transition:
        transform 0.3s cubic-bezier(.2,.8,.2,1),
        background 0.25s ease,
        border-color 0.25s ease;
}


/* HOVER */

.auth-btn:hover {
    transform: translateY(-2px);

    border-color:
        rgba(255, 255, 255, 0.24);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.135),
            rgba(255, 255, 255, 0.06)
        );

    box-shadow:
        0 17px 38px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(255, 255, 255, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}


.auth-btn:hover::after {
    transform:
        rotate(22deg)
        translateX(430%);
}


.auth-btn:hover span {
    transform: translateX(0);

    letter-spacing: 0.035em;
}


.auth-btn:hover i {
    transform: translateX(4px);

    border-color:
        rgba(255, 255, 255, 0.22);

    background:
        rgba(255, 255, 255, 0.10);
}


/* PRESS */

.auth-btn:active {
    transform: translateY(0) scale(0.985);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.25),
        inset 0 2px 5px rgba(0, 0, 0, 0.18);
}


/* DISABLED / CREATING ACCOUNT */

.auth-btn:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.20);
}


.auth-btn:disabled::after {
    display: none;
}


/* FOCUS */

.auth-btn:focus-visible {
    outline: none;

    border-color:
        rgba(255, 255, 255, 0.34);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.055),
        0 14px 32px rgba(0, 0, 0, 0.30);
}

/* =========================================================
   COMICVAULT — AUTH LAYOUT MASTER OVERRIDE
   Login + Register
   ========================================================= */

.auth-page {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    height: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(420px, 0.85fr);

    overflow-x: hidden;
    overflow-y: auto;

    box-sizing: border-box;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   LEFT — CINEMATIC SIDE
   ========================================================= */

.auth-page .auth-cinematic {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 100dvh;

    overflow: hidden;
}

.auth-page .auth-cinematic-content {
    position: relative;
    z-index: 3;

    width: min(700px, 86%);

    margin: 0;
}


/* =========================================================
   RIGHT — AUTH SIDE
   ========================================================= */

.auth-page .auth-side {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 42px 5vw 42px 3vw;

    overflow: visible;
}

.auth-page .auth-side .auth-box {
    position: relative;

    width: min(455px, 100%);
    max-width: 455px;

    margin: 0;

    flex: 0 1 auto;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.auth-page .auth-close-btn {
    position: fixed;
    z-index: 100;

    top: 24px;
    right: 24px;
}


/* =========================================================
   REGISTER + LOGIN — SAME FORM SYSTEM
   ========================================================= */

.auth-login-page .auth-side,
.auth-register-page .auth-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-login-page .auth-box,
.auth-register-page .auth-box {
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1101px) {

    .auth-page {
        display: grid;

        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(420px, 0.85fr);

        min-height: 100dvh;
        height: auto;

        overflow-x: hidden;
        overflow-y: auto;
    }

    .auth-cinematic {
        width: 100%;
        min-height: 100dvh;
    }

    .auth-side {
        width: 100%;
        min-height: 100dvh;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 42px 5vw 42px 3vw;
    }

    .auth-side .auth-box {
        width: min(455px, 100%);
        max-width: 455px;

        margin: 0;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 701px) and (max-width: 1100px) {

    .auth-page {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(360px, 0.85fr);

        min-height: 100dvh;
        height: auto;

        overflow-y: auto;
    }

    .auth-cinematic {
        min-height: 100dvh;
    }

    .auth-side {
        min-height: 100dvh;

        padding: 36px 30px;
    }

    .auth-side .auth-box {
        width: min(430px, 100%);
        max-width: 430px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .auth-page {
        display: flex;
        flex-direction: column;

        width: 100%;
        min-height: 100dvh;
        height: auto;

        overflow-x: hidden;
        overflow-y: auto;
    }

    .auth-cinematic {
        width: 100%;
        min-height: 235px;
        height: 235px;

        flex: 0 0 235px;
    }

    .auth-cinematic-content {
        width: 88%;
        margin: 0 auto;
        padding: 38px 0 30px;
    }

    .auth-side {
        width: 100%;
        min-height: auto;

        display: flex;
        align-items: flex-start;
        justify-content: center;

        padding: 32px 18px 42px;
    }

    .auth-side .auth-box {
        width: 100%;
        max-width: 455px;

        margin: 0 auto;
    }

    .auth-page .auth-close-btn {
        position: absolute;

        top: 18px;
        right: 18px;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .auth-cinematic {
        min-height: 210px;
        height: 210px;

        flex-basis: 210px;
    }

    .auth-cinematic-content {
        width: 90%;
        padding-top: 34px;
    }

    .auth-side {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* =========================================================
   COMICVAULT — NEW PREMIUM AUTH UI
   LOGIN + REGISTER
   VISUAL OVERRIDE ONLY
   ========================================================= */

.auth-page {
    --auth-bg: #09090b;
    --auth-panel: rgba(18, 18, 21, 0.82);
    --auth-border: rgba(255, 255, 255, 0.09);
    --auth-text: #f4f4f5;
    --auth-muted: rgba(244, 244, 245, 0.52);
    --auth-accent: #e85d9e;

    position: relative;

    display: grid !important;
    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(430px, 0.88fr) !important;

    width: 100%;
    min-height: 100dvh;
    height: auto !important;

    background: var(--auth-bg);

    overflow-x: hidden !important;
    overflow-y: auto !important;

    isolation: isolate;
}


/* =========================================================
   PAGE ATMOSPHERE
   ========================================================= */

.auth-page::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -3;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(232, 93, 158, 0.10),
            transparent 34%
        ),
        radial-gradient(
            circle at 88% 75%,
            rgba(255, 122, 72, 0.07),
            transparent 30%
        ),
        #09090b;
}

.auth-page::after {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -2;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.018) 50%,
            transparent 100%
        );

    opacity: 0.7;
}


/* =========================================================
   LEFT CINEMATIC AREA
   ========================================================= */

.auth-page .auth-cinematic {
    position: relative;

    width: 100%;
    min-height: 100dvh;

    overflow: hidden;

    background: #0b0b0e;
}

.auth-page .auth-cinematic-art {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(8, 8, 10, 0.18),
            rgba(8, 8, 10, 0.48)
        ),
        linear-gradient(
            180deg,
            rgba(8, 8, 10, 0.12),
            rgba(8, 8, 10, 0.72)
        ),
        url("images/lookism.jpg");

    background-size: cover;
    background-position: center;

    transform: scale(1.015);

    filter: saturate(0.82) contrast(1.05);

    opacity: 0.88;
}

.auth-page .auth-cinematic-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8, 8, 10, 0.10) 0%,
            rgba(8, 8, 10, 0.30) 52%,
            rgba(8, 8, 10, 0.82) 100%
        ),
        linear-gradient(
            180deg,
            rgba(8, 8, 10, 0.04),
            rgba(8, 8, 10, 0.74)
        );
}

.auth-page .auth-cinematic-content {
    position: relative;

    z-index: 5;

    width: min(650px, 82%);

    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 70px 0 70px 7vw;
}


/* =========================================================
   BRAND
   ========================================================= */

.auth-page .auth-brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 34px;

    color: rgba(255, 255, 255, 0.92);

    font-family:
        "Inter",
        "Segoe UI",
        sans-serif;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.18em;
}

.auth-page .auth-brand-mark span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--auth-accent);

    box-shadow:
        0 0 0 4px rgba(232, 93, 158, 0.08);
}

.auth-page .auth-editorial-label {
    margin-bottom: 16px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.22em;
}

.auth-page .auth-cinematic-content h2 {
    margin: 0;

    max-width: 580px;

    color: #ffffff;

    font-family:
        "Inter",
        "Segoe UI",
        sans-serif;

    font-size: clamp(52px, 6vw, 88px);
    font-weight: 700;

    line-height: 0.94;

    letter-spacing: -0.055em;
}

.auth-page .auth-cinematic-content h2 em {
    color: rgba(255, 255, 255, 0.52);

    font-style: normal;
}

.auth-page .auth-cinematic-content > p {
    max-width: 430px;

    margin: 27px 0 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 14px;
    line-height: 1.75;
}

.auth-page .auth-cinematic-meta {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-top: 30px;

    color: rgba(255, 255, 255, 0.46);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.18em;
}

.auth-page .auth-cinematic-meta i {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.3);
}

.auth-page .auth-cinematic-bottom {
    position: absolute;

    left: 7vw;
    right: 7vw;
    bottom: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: rgba(255, 255, 255, 0.30);

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 0.14em;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.auth-page .auth-side {
    position: relative;

    width: 100%;
    min-height: 100dvh;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 54px 5vw 54px 3vw;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.012),
            rgba(255, 255, 255, 0)
        );
}

.auth-page .auth-box {
    position: relative;

    width: min(450px, 100%);
    max-width: 450px;

    margin: 0 !important;

    padding: 38px 38px 30px !important;

    border: 1px solid var(--auth-border);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        ),
        var(--auth-panel);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}


/* =========================================================
   TOPLINE
   ========================================================= */

.auth-page .auth-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.38);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.18em;
}

.auth-page .auth-status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #55d98a;

    box-shadow:
        0 0 0 4px rgba(85, 217, 138, 0.07);
}


/* =========================================================
   HEADING
   ========================================================= */

.auth-page .auth-heading {
    margin-bottom: 29px;
}

.auth-page .auth-heading .auth-logo {
    display: none;
}

.auth-page .auth-heading h1 {
    margin: 0;

    color: var(--auth-text);

    font-family:
        "Inter",
        "Segoe UI",
        sans-serif;

    font-size: 30px;
    font-weight: 650;

    line-height: 1.1;

    letter-spacing: -0.035em;
}

.auth-page .auth-subtitle {
    margin: 9px 0 0;

    color: var(--auth-muted);

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   FORM
   ========================================================= */

.auth-page form {
    width: 100%;
}

.auth-page form > label {
    display: block;

    margin: 0 0 8px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-page .auth-input-wrap {
    position: relative;

    width: 100%;

    margin-bottom: 18px;
}

.auth-page .auth-input-wrap > i {
    position: absolute;

    left: 15px;
    top: 50%;

    z-index: 3;

    color: rgba(255, 255, 255, 0.28);

    font-size: 12px;

    transform: translateY(-50%);

    pointer-events: none;
}

.auth-page .auth-input-wrap input {
    width: 100%;
    height: 50px;

    padding: 0 46px 0 43px !important;

    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-radius: 13px !important;

    outline: none !important;

    background: rgba(255, 255, 255, 0.035) !important;

    color: #ffffff !important;

    font-family:
        "Inter",
        "Segoe UI",
        sans-serif;

    font-size: 13px !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;

    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.auth-page .auth-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-page .auth-input-wrap:focus-within > i {
    color: rgba(232, 93, 158, 0.82);
}

.auth-page .auth-input-wrap:focus-within input {
    border-color: rgba(232, 93, 158, 0.34) !important;

    background: rgba(255, 255, 255, 0.048) !important;

    box-shadow:
        0 0 0 3px rgba(232, 93, 158, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}


/* =========================================================
   PASSWORD EYE
   ========================================================= */

.auth-page .auth-password-toggle {
    position: absolute;

    right: 11px;
    top: 50%;

    z-index: 5;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: rgba(255, 255, 255, 0.28);

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.auth-page .auth-password-toggle:hover {
    color: rgba(255, 255, 255, 0.82);

    transform:
        translateY(-50%)
        scale(1.06);
}


/* =========================================================
   USERNAME STATUS
   ========================================================= */

.auth-page .register-username-status {
    min-height: 18px;

    display: flex;
    align-items: center;

    margin-top: -10px;
    margin-bottom: 14px;
    padding-left: 2px;

    font-size: 11px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.auth-page .auth-btn {
    position: relative;

    width: 100%;
    min-height: 54px;

    margin-top: 4px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(232, 93, 158, 0.95),
            rgba(210, 77, 133, 0.92)
        );

    color: #ffffff;

    box-shadow:
        0 14px 32px rgba(232, 93, 158, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    cursor: pointer;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.auth-page .auth-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            100deg,
            transparent,
            rgba(255, 255, 255, 0.16),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.6s ease;
}

.auth-page .auth-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 38px rgba(232, 93, 158, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

    filter: brightness(1.04);
}

.auth-page .auth-btn:hover::before {
    left: 145%;
}

.auth-page .auth-btn:active {
    transform: translateY(0);
}

.auth-page .auth-btn span {
    position: relative;
    z-index: 2;

    font-family:
        "Inter",
        "Segoe UI",
        sans-serif;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.auth-page .auth-btn > i {
    position: relative;
    z-index: 2;

    margin-left: 10px;

    font-size: 11px;
}


/* =========================================================
   DIVIDER + LINKS
   ========================================================= */

.auth-page .auth-divider {
    position: relative;

    width: 100%;

    margin: 24px 0 19px;

    text-align: center;
}

.auth-page .auth-divider::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: 50%;

    height: 1px;

    background: rgba(255, 255, 255, 0.065);
}

.auth-page .auth-divider span {
    position: relative;

    padding: 0 12px;

    background: #17171a;

    color: rgba(255, 255, 255, 0.28);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.15em;
}

.auth-page .auth-switch {
    margin: 0;

    color: rgba(255, 255, 255, 0.38);

    font-size: 11px;

    text-align: center;
}

.auth-page .auth-switch a {
    margin-left: 4px;

    color: rgba(255, 255, 255, 0.78);

    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.auth-page .auth-switch a:hover {
    color: var(--auth-accent);
}

.auth-page .back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 18px;

    color: rgba(255, 255, 255, 0.32);

    font-size: 10px;

    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.auth-page .back-home:hover {
    gap: 9px;

    color: rgba(255, 255, 255, 0.72);
}

.auth-page .back-home i {
    font-size: 9px;
}


/* =========================================================
   SECURITY
   ========================================================= */

.auth-page .auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 21px;

    color: rgba(255, 255, 255, 0.22);

    font-size: 9px;

    letter-spacing: 0.04em;
}

.auth-page .auth-security i {
    font-size: 9px;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.auth-page .auth-close-btn {
    position: fixed;

    top: 22px;
    right: 24px;

    z-index: 1000;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    background: rgba(10, 10, 12, 0.48);

    color: rgba(255, 255, 255, 0.46);

    text-decoration: none;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.auth-page .auth-close-btn:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 255, 255, 0.15);

    transform: rotate(4deg);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .auth-page {
        display: flex !important;
        flex-direction: column;

        min-height: 100dvh;
        height: auto !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .auth-page .auth-cinematic {
        width: 100%;
        min-height: 255px;
        height: 255px;

        flex: 0 0 255px;
    }

    .auth-page .auth-cinematic-content {
        width: 88%;
        min-height: 255px;

        margin: 0 auto;

        justify-content: flex-end;

        padding: 34px 0 34px;
    }

    .auth-page .auth-brand-mark {
        margin-bottom: 15px;
    }

    .auth-page .auth-editorial-label {
        margin-bottom: 9px;
    }

    .auth-page .auth-cinematic-content h2 {
        font-size: 47px;
    }

    .auth-page .auth-cinematic-content > p {
        display: none;
    }

    .auth-page .auth-cinematic-meta {
        margin-top: 16px;
    }

    .auth-page .auth-cinematic-bottom {
        display: none;
    }

    .auth-page .auth-side {
        width: 100%;
        min-height: auto;

        padding: 28px 17px 40px;

        align-items: flex-start !important;
    }

    .auth-page .auth-box {
        width: 100%;
        max-width: 455px;

        padding: 31px 23px 27px !important;

        border-radius: 21px;
    }

    .auth-page .auth-close-btn {
        position: absolute;

        top: 17px;
        right: 17px;
    }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 390px) {

    .auth-page .auth-cinematic {
        min-height: 225px;
        height: 225px;

        flex-basis: 225px;
    }

    .auth-page .auth-cinematic-content {
        min-height: 225px;
    }

    .auth-page .auth-cinematic-content h2 {
        font-size: 42px;
    }

    .auth-page .auth-box {
        padding: 28px 19px 24px !important;
    }

    .auth-page .auth-heading h1 {
        font-size: 27px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   COMICVAULT — AUTH CINEMATIC REFINEMENT
   Full artwork / no AI-slop motion
   ========================================================= */

.auth-page .auth-cinematic {
    position: relative !important;

    min-height: 100dvh !important;
    height: 100dvh !important;

    overflow: hidden !important;

    background: #09090b !important;
}


/* Full cinematic artwork */

.auth-page .auth-cinematic-art {
    position: absolute !important;

    inset: -2% !important;

    width: 104% !important;
    height: 104% !important;

    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;

    transform: scale(1) !important;

    filter:
        saturate(0.78)
        contrast(1.06)
        brightness(0.78) !important;

    opacity: 0.92 !important;

    animation: authCinematicDrift 18s ease-in-out infinite alternate !important;
}


/* Almost invisible movement.
   No floating/glowing AI-looking animation. */

@keyframes authCinematicDrift {
    from {
        transform: scale(1.015);
    }

    to {
        transform: scale(1.035);
    }
}


/* Premium cinematic grading */

.auth-page .auth-cinematic-overlay {
    position: absolute !important;

    inset: 0 !important;

    z-index: 2 !important;

    background:
        linear-gradient(
            90deg,
            rgba(7, 7, 9, 0.10) 0%,
            rgba(7, 7, 9, 0.16) 38%,
            rgba(7, 7, 9, 0.48) 73%,
            rgba(7, 7, 9, 0.94) 100%
        ),
        linear-gradient(
            180deg,
            rgba(7, 7, 9, 0.18) 0%,
            transparent 35%,
            rgba(7, 7, 9, 0.82) 100%
        ) !important;
}


/* Very subtle cinematic edge */

.auth-page .auth-cinematic::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 3;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 78%,
            rgba(232, 93, 158, 0.035) 100%
        );

    opacity: 0.8;
}


/* Keep content above artwork */

.auth-page .auth-cinematic-content {
    position: relative !important;

    z-index: 5 !important;

    min-height: 100dvh !important;

    display: flex !important;
    flex-direction: column !important;

    justify-content: center !important;

    width: min(650px, 82%) !important;

    padding-top: 70px !important;
    padding-bottom: 70px !important;
}


/* Don't let the large title feel AI-generated */

.auth-page .auth-cinematic-content h2 {
    text-shadow:
        0 8px 35px rgba(0, 0, 0, 0.30);

    animation: none !important;
}


/* Static editorial elements */

.auth-page .auth-brand-mark,
.auth-page .auth-editorial-label,
.auth-page .auth-cinematic-meta,
.auth-page .auth-cinematic-bottom {
    animation: none !important;
}


/* =========================================================
   LOGIN CARD BALANCE
   ========================================================= */

.auth-login-page .auth-box {
    transform: translateY(0) !important;
}


/* Login card gets slightly more breathing room */

.auth-login-page .auth-side {
    align-items: center !important;

    padding-top: 42px !important;
    padding-bottom: 42px !important;
}


/* =========================================================
   REGISTER CARD BALANCE
   ========================================================= */

.auth-register-page .auth-side {
    align-items: center !important;

    padding-top: 42px !important;
    padding-bottom: 42px !important;
}


/* =========================================================
   REMOVE OLD CINEMATIC EFFECTS
   ========================================================= */

.auth-page .auth-cinematic-art::before,
.auth-page .auth-cinematic-art::after,
.auth-page .auth-cinematic-overlay::before,
.auth-page .auth-cinematic-overlay::after {
    content: none !important;

    animation: none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .auth-page .auth-cinematic {
        height: 255px !important;
        min-height: 255px !important;
    }

    .auth-page .auth-cinematic-art {
        inset: -3% !important;

        width: 106% !important;
        height: 106% !important;

        background-position: center center !important;

        animation-duration: 24s !important;
    }

    .auth-page .auth-cinematic-content {
        min-height: 255px !important;

        width: 88% !important;

        padding-top: 30px !important;
        padding-bottom: 32px !important;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .auth-page .auth-cinematic-art {
        animation: none !important;
    }
}

/* =========================================================
   COMICVAULT — FINAL AUTH COMPOSITION BALANCE
   ========================================================= */

/* ---------------------------------------------------------
   LEFT — ARTWORK
   --------------------------------------------------------- */

.auth-page .auth-cinematic-art {
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    /*
       Keep the artwork centered while reducing aggressive
       edge cropping.
    */
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: 50% 50% !important;

    transform: scale(1.018) !important;

    animation: authArtworkMotion 22s ease-in-out infinite alternate !important;
}

@keyframes authArtworkMotion {
    from {
        transform: scale(1.018);
    }

    to {
        transform: scale(1.032);
    }
}


/* ---------------------------------------------------------
   LEFT — TEXT COMPOSITION
   --------------------------------------------------------- */

.auth-page .auth-cinematic-content {
    width: min(620px, 78%) !important;

    padding-left: 7vw !important;
    padding-right: 20px !important;
}


/* ---------------------------------------------------------
   RIGHT — PANEL
   --------------------------------------------------------- */

.auth-page .auth-side {
    min-height: 100dvh !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding:
        40px
        clamp(35px, 5vw, 75px)
        40px
        clamp(30px, 4vw, 65px) !important;
}


/* Don't force a huge card */

.auth-page .auth-box {
    width: min(450px, 100%) !important;
    max-width: 450px !important;

    margin: 0 auto !important;
}


/* ---------------------------------------------------------
   LOGIN — USE AVAILABLE SPACE BETTER
   --------------------------------------------------------- */

.auth-login-page .auth-box {
    padding-top: 34px !important;
    padding-bottom: 27px !important;
}


/* ---------------------------------------------------------
   REGISTER — KEEP THE LARGER FORM COMPACT ENOUGH
   --------------------------------------------------------- */

.auth-register-page .auth-box {
    padding-top: 32px !important;
    padding-bottom: 27px !important;
}


/* ---------------------------------------------------------
   REMOVE ARTIFICIAL EMPTY SPACE
   --------------------------------------------------------- */

.auth-page .auth-mobile-brand {
    display: none !important;
}


/* ---------------------------------------------------------
   DESKTOP VISUAL CENTER
   --------------------------------------------------------- */

@media (min-width: 1101px) {

    .auth-page {
        grid-template-columns:
            minmax(0, 1.10fr)
            minmax(450px, 0.90fr) !important;
    }

    .auth-page .auth-cinematic {
        min-height: 100dvh !important;
    }

    .auth-page .auth-side {
        min-height: 100dvh !important;
    }

    .auth-page .auth-box {
        position: relative !important;

        top: 0 !important;
        left: 0 !important;

        transform: none !important;
    }
}


/* ---------------------------------------------------------
   MEDIUM DESKTOP
   --------------------------------------------------------- */

@media (min-width: 1101px) and (max-width: 1350px) {

    .auth-page {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(420px, 0.88fr) !important;
    }

    .auth-page .auth-cinematic-content {
        width: 82% !important;

        padding-left: 5vw !important;
    }

    .auth-page .auth-side {
        padding-left: 28px !important;
        padding-right: 42px !important;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .auth-page .auth-cinematic-art {
        background-position: center center !important;

        transform: scale(1.015) !important;

        animation: authArtworkMobile 24s ease-in-out infinite alternate !important;
    }

    @keyframes authArtworkMobile {

        from {
            transform: scale(1.015);
        }

        to {
            transform: scale(1.028);
        }
    }

    .auth-page .auth-cinematic-content {
        width: 88% !important;

        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .auth-page .auth-side {
        padding:
            28px
            17px
            40px !important;
    }

    .auth-page .auth-box {
        width: 100% !important;
        max-width: 455px !important;
    }
}


/* ---------------------------------------------------------
   NO MOTION WHEN USER DISABLES ANIMATION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .auth-page .auth-cinematic-art {
        animation: none !important;

        transform: scale(1.018) !important;
    }
} 
/* =========================================================
   COMICVAULT — LOGIN SIZE + CINEMATIC SCALE FIX
   ========================================================= */


/* =========================================================
   COVER ART — MAKE THE IMAGE LARGER
   ========================================================= */

.auth-page .auth-cinematic-art {
    inset: -6% !important;

    width: 112% !important;
    height: 112% !important;

    background-size: cover !important;
    background-position: center center !important;

    transform: scale(1.035) !important;
}


/* Keep the enlargement subtle */

@keyframes authArtworkMotion {

    from {
        transform: scale(1.035);
    }

    to {
        transform: scale(1.055);
    }
}


/* =========================================================
   LOGIN PANEL — MAKE IT TALLER / MORE SUBSTANTIAL
   ========================================================= */

.auth-login-page .auth-box {
    width: min(450px, 100%) !important;
    max-width: 450px !important;

    min-height: 560px !important;

    padding:
        45px
        40px
        36px !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}


/* Login content spacing */

.auth-login-page .auth-topline {
    margin-bottom: 34px !important;
}

.auth-login-page .auth-heading {
    margin-bottom: 34px !important;
}

.auth-login-page .auth-heading h1 {
    font-size: 32px !important;
}

.auth-login-page .auth-subtitle {
    margin-top: 11px !important;
}


/* Login inputs slightly taller */

.auth-login-page .auth-input-wrap input {
    height: 53px !important;
}

.auth-login-page .auth-input-wrap {
    margin-bottom: 20px !important;
}


/* Login button gets matching height */

.auth-login-page .auth-btn {
    min-height: 56px !important;
}


/* Give lower section some breathing room */

.auth-login-page .auth-divider {
    margin-top: 27px !important;
    margin-bottom: 21px !important;
}

.auth-login-page .back-home {
    margin-top: 20px !important;
}

.auth-login-page .auth-security {
    margin-top: 23px !important;
}


/* =========================================================
   REGISTER — DON'T CHANGE ITS CURRENT SIZE
   ========================================================= */

.auth-register-page .auth-box {
    min-height: unset !important;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1101px) {

    .auth-login-page .auth-box {
        min-height: 560px !important;
    }

    .auth-page .auth-cinematic-art {
        inset: -6% !important;

        width: 112% !important;
        height: 112% !important;
    }
}


/* =========================================================
   MOBILE — DON'T MAKE LOGIN CARD HUGE
   ========================================================= */

@media (max-width: 700px) {

    .auth-login-page .auth-box {
        min-height: unset !important;

        padding:
            31px
            23px
            27px !important;
    }

    .auth-page .auth-cinematic-art {
        inset: -4% !important;

        width: 108% !important;
        height: 108% !important;
    }
}

/* =========================================================
   COMICVAULT — AUTH HARD RESET
   FINAL CASCADE OVERRIDE
   ========================================================= */

html:has(.auth-page),
body:has(.auth-page) {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

body:has(.auth-page) {
    background: #09090b !important;
}


/* =========================================================
   MASTER AUTH CANVAS
   ========================================================= */

body:has(.auth-page) .auth-page.auth-login-page,
body:has(.auth-page) .auth-page.auth-register-page {
    position: relative !important;

    display: grid !important;

    grid-template-columns:
        minmax(0, 58%)
        minmax(0, 42%) !important;

    width: 100% !important;
    min-width: 0 !important;

    min-height: 100vh !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    background: #09090b !important;

    box-sizing: border-box !important;
}

body:has(.auth-page) .auth-page.auth-login-page *,
body:has(.auth-page) .auth-page.auth-register-page * {
    box-sizing: border-box !important;
}


/* =========================================================
   LEFT ARTWORK — TRUE FULL PANEL
   ========================================================= */

body:has(.auth-page) .auth-cinematic {
    position: relative !important;

    grid-column: 1 !important;

    width: 100% !important;
    min-width: 0 !important;

    height: 100vh !important;
    min-height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    background: #08080a !important;
}

body:has(.auth-page) .auth-cinematic-art {
    position: absolute !important;

    top: -7% !important;
    right: -7% !important;
    bottom: -7% !important;
    left: -7% !important;

    width: 114% !important;
    height: 114% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;

    background-size: cover !important;
    background-repeat: no-repeat !important;

    background-position: center center !important;

    transform: none !important;

    animation: none !important;

    opacity: 1 !important;

    filter:
        saturate(.78)
        contrast(1.05)
        brightness(.78) !important;
}


/* =========================================================
   ARTWORK GRADING
   ========================================================= */

body:has(.auth-page) .auth-cinematic-overlay {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    z-index: 2 !important;

    pointer-events: none !important;

    background:
        linear-gradient(
            90deg,
            rgba(7,7,9,.08) 0%,
            rgba(7,7,9,.12) 42%,
            rgba(7,7,9,.42) 72%,
            rgba(7,7,9,.94) 100%
        ),
        linear-gradient(
            180deg,
            rgba(7,7,9,.10) 0%,
            transparent 42%,
            rgba(7,7,9,.78) 100%
        ) !important;
}


/* Kill inherited pseudo effects */

body:has(.auth-page) .auth-cinematic::before,
body:has(.auth-page) .auth-cinematic::after,
body:has(.auth-page) .auth-cinematic-art::before,
body:has(.auth-page) .auth-cinematic-art::after,
body:has(.auth-page) .auth-cinematic-overlay::before,
body:has(.auth-page) .auth-cinematic-overlay::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

body:has(.auth-page) .auth-cinematic-content {
    position: relative !important;

    z-index: 5 !important;

    width: min(650px, 82%) !important;

    min-height: 100vh !important;

    margin: 0 !important;

    padding:
        70px 0 70px 7vw !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}


/* =========================================================
   RIGHT AUTH AREA
   ========================================================= */

body:has(.auth-page) .auth-side {
    position: relative !important;

    grid-column: 2 !important;

    width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 100vh !important;

    margin: 0 !important;

    padding:
        45px
        clamp(35px, 5vw, 75px)
        45px
        clamp(30px, 4vw, 65px) !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    overflow: visible !important;

    background: #09090b !important;
}


/* =========================================================
   AUTH CARD — LOGIN
   ========================================================= */

body:has(.auth-login-page) .auth-login-page .auth-side .auth-box {
    position: relative !important;

    width: 100% !important;
    max-width: 455px !important;

    min-height: 560px !important;

    height: auto !important;

    margin: 0 auto !important;

    padding:
        44px 40px 34px !important;

    transform: none !important;

    overflow: visible !important;
}


/* =========================================================
   AUTH CARD — REGISTER
   ========================================================= */

body:has(.auth-register-page) .auth-register-page .auth-side .auth-box {
    position: relative !important;

    width: 100% !important;
    max-width: 455px !important;

    height: auto !important;

    min-height: 0 !important;

    margin: 0 auto !important;

    transform: none !important;

    overflow: visible !important;
}


/* =========================================================
   REMOVE FAKE TOP SPACE
   ========================================================= */

body:has(.auth-page) .auth-mobile-brand {
    display: none !important;

    height: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}

body:has(.auth-page) .auth-close-btn {
    position: fixed !important;

    top: 22px !important;
    right: 24px !important;

    z-index: 9999 !important;

    width: 38px !important;
    height: 38px !important;

    margin: 0 !important;
}


/* =========================================================
   LOGIN INTERNAL SPACING
   ========================================================= */

body:has(.auth-login-page) .auth-login-page .auth-topline {
    margin-bottom: 34px !important;
}

body:has(.auth-login-page) .auth-login-page .auth-heading {
    margin-bottom: 32px !important;
}

body:has(.auth-login-page) .auth-login-page .auth-input-wrap {
    margin-bottom: 20px !important;
}

body:has(.auth-login-page) .auth-login-page .auth-input-wrap input {
    height: 53px !important;
}

body:has(.auth-login-page) .auth-login-page .auth-btn {
    min-height: 56px !important;
}


/* =========================================================
   ARTWORK + CARD — LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    body:has(.auth-page) .auth-page.auth-login-page,
    body:has(.auth-page) .auth-page.auth-register-page {
        grid-template-columns:
            minmax(0, 60%)
            minmax(0, 40%) !important;
    }

    body:has(.auth-page) .auth-cinematic-art {
        top: -9% !important;
        right: -9% !important;
        bottom: -9% !important;
        left: -9% !important;

        width: 118% !important;
        height: 118% !important;
    }
}


/* =========================================================
   MEDIUM DESKTOP
   ========================================================= */

@media (min-width: 1101px) and (max-width: 1399px) {

    body:has(.auth-page) .auth-page.auth-login-page,
    body:has(.auth-page) .auth-page.auth-register-page {
        grid-template-columns:
            minmax(0, 56%)
            minmax(0, 44%) !important;
    }

    body:has(.auth-page) .auth-cinematic-content {
        width: 84% !important;

        padding-left: 5vw !important;
    }

    body:has(.auth-page) .auth-side {
        padding-left: 28px !important;
        padding-right: 42px !important;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 701px) and (max-width: 1100px) {

    body:has(.auth-page) .auth-page.auth-login-page,
    body:has(.auth-page) .auth-page.auth-register-page {
        grid-template-columns:
            minmax(0, 52%)
            minmax(0, 48%) !important;
    }

    body:has(.auth-page) .auth-cinematic {
        height: 100vh !important;
        min-height: 100vh !important;
    }

    body:has(.auth-page) .auth-cinematic-content {
        width: 84% !important;

        padding:
            50px 20px 50px 5vw !important;
    }

    body:has(.auth-page) .auth-side {
        padding:
            36px 28px !important;
    }

    body:has(.auth-page) .auth-side .auth-box {
        max-width: 430px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body:has(.auth-page) .auth-page.auth-login-page,
    body:has(.auth-page) .auth-page.auth-register-page {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;

        min-height: 100vh !important;
        height: auto !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body:has(.auth-page) .auth-cinematic {
        order: 1 !important;

        width: 100% !important;

        height: 255px !important;
        min-height: 255px !important;

        flex: 0 0 255px !important;
    }

    body:has(.auth-page) .auth-cinematic-art {
        top: -5% !important;
        right: -5% !important;
        bottom: -5% !important;
        left: -5% !important;

        width: 110% !important;
        height: 110% !important;
    }

    body:has(.auth-page) .auth-cinematic-content {
        width: 88% !important;

        min-height: 255px !important;

        margin: 0 auto !important;

        padding:
            32px 0 !important;

        justify-content: flex-end !important;
    }

    body:has(.auth-page) .auth-side {
        order: 2 !important;

        width: 100% !important;

        min-height: auto !important;

        padding:
            28px 17px 40px !important;
    }

    body:has(.auth-page) .auth-side .auth-box,
    body:has(.auth-login-page) .auth-login-page .auth-side .auth-box {
        width: 100% !important;

        max-width: 455px !important;

        min-height: 0 !important;

        padding:
            31px 23px 27px !important;
    }

    body:has(.auth-page) .auth-close-btn {
        position: absolute !important;

        top: 17px !important;
        right: 17px !important;
    }
}


/* =========================================================
   HARD DISABLE UNWANTED AUTH ANIMATIONS
   ========================================================= */

body:has(.auth-page) .auth-page,
body:has(.auth-page) .auth-page *,
body:has(.auth-page) .auth-page *::before,
body:has(.auth-page) .auth-page *::after {
    animation-delay: 0s !important;
}

body:has(.auth-page) .auth-cinematic-art {
    animation: none !important;
}

.profile-home-btn {
    position: fixed !important;

    top: 22px !important;
    right: 24px !important;

    z-index: 99999 !important;

    width: 40px !important;
    height: 40px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 50% !important;

    background: rgba(15, 15, 18, 0.72) !important;

    color: rgba(255, 255, 255, 0.55) !important;

    text-decoration: none !important;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease !important;
}

.profile-home-btn:hover {
    color: #fff !important;

    background: rgba(255, 255, 255, 0.09) !important;

    border-color: rgba(255, 255, 255, 0.16) !important;

    transform: scale(1.06) !important;
}

.profile-home-btn i {
    font-size: 14px !important;
}
/* =====================================================
   GLOBAL PREMIUM NOTIFICATION SYSTEM
===================================================== */

.global-notification-container {

    position: fixed;

    top: 24px;
    right: 24px;

    width: min(
        390px,
        calc(100vw - 32px)
    );

    display: flex;

    flex-direction: column;

    gap: 12px;

    z-index: 999999;

    pointer-events: none;
}


/* -----------------------------------------------------
   NOTIFICATION
----------------------------------------------------- */

.global-notification {

    position: relative;

    display: flex;

    align-items: center;

    gap: 13px;

    width: 100%;

    min-height: 64px;

    padding: 13px 14px;

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 15px;

    background:
        rgba(
            18,
            18,
            23,
            0.94
        );

    box-shadow:
        0 18px 45px
        rgba(
            0,
            0,
            0,
            0.35
        ),

        inset 0 1px 0
        rgba(
            255,
            255,
            255,
            0.04
        );

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    color: #f5f5f7;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    opacity: 0;

    transform:
        translateX(30px)
        scale(0.97);

    transition:
        opacity 0.28s ease,
        transform 0.28s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

    pointer-events: auto;

    overflow: hidden;
}


/* -----------------------------------------------------
   VISIBLE
----------------------------------------------------- */

.global-notification.notification-visible {

    opacity: 1;

    transform:
        translateX(0)
        scale(1);
}


/* -----------------------------------------------------
   CLOSING
----------------------------------------------------- */

.global-notification.notification-closing {

    opacity: 0;

    transform:
        translateX(25px)
        scale(0.97);
}


/* -----------------------------------------------------
   ICON
----------------------------------------------------- */

.notification-icon {

    width: 36px;

    height: 36px;

    flex: 0 0 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    background:
        rgba(
            255,
            255,
            255,
            0.06
        );

    font-size: 16px;
}


/* -----------------------------------------------------
   CONTENT
----------------------------------------------------- */

.notification-content {

    flex: 1;

    min-width: 0;
}


.notification-message {

    font-size: 14px;

    line-height: 1.45;

    font-weight: 500;

    letter-spacing:
        -0.01em;
}


/* -----------------------------------------------------
   CLOSE BUTTON
----------------------------------------------------- */

.notification-close {

    width: 30px;

    height: 30px;

    flex: 0 0 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color:
        rgba(
            255,
            255,
            255,
            0.45
        );

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.notification-close:hover {

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );

    color:
        rgba(
            255,
            255,
            255,
            0.9
        );

    transform:
        scale(1.05);
}


/* -----------------------------------------------------
   TYPES
----------------------------------------------------- */

.notification-success .notification-icon {

    color: #72d69b;
}


.notification-error .notification-icon {

    color: #ff6b7a;
}


.notification-warning .notification-icon {

    color: #f4c76b;
}


.notification-info .notification-icon {

    color: #8fa8ff;
}


/* -----------------------------------------------------
   MOBILE
----------------------------------------------------- */

@media (
    max-width: 600px
) {

    .global-notification-container {

        top: 14px;

        right: 16px;

        left: 16px;

        width: auto;
    }


    .global-notification {

        min-height: 60px;

        padding: 12px;
    }


    .notification-message {

        font-size: 13px;
    }

}
/* =========================================================
   PROFILE — PREMIUM / AESTHETIC USERNAME CHECKER
========================================================= */

#profileUsernameAvailability {
    position: relative;

    min-height: 22px;
    margin-top: 9px;
    padding: 5px 10px 5px 7px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    max-width: 100%;

    border: 1px solid transparent;
    border-radius: 7px;

    font-family: inherit;
    font-size: 11.5px;
    line-height: 17px;
    font-weight: 500;
    letter-spacing: 0.015em;

    background: transparent;

    opacity: 0;
    transform: translateY(-4px) scale(0.985);

    transition:
        opacity 200ms ease,
        transform 220ms cubic-bezier(.22, 1, .36, 1),
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

/* Reveal */
#profileUsernameAvailability:not(:empty) {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================================
   ICON
========================================================= */

#profileUsernameAvailability::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    width: 17px;
    height: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 10px;

    border-radius: 50%;

    transition:
        color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

/* =========================================================
   AVAILABLE
========================================================= */

#profileUsernameAvailability[data-state="available"] {
    color: #83e6aa;

    background:
        linear-gradient(
            90deg,
            rgba(94, 220, 145, 0.075),
            rgba(94, 220, 145, 0.025)
        );

    border-color: rgba(94, 220, 145, 0.12);

    box-shadow:
        0 4px 18px rgba(50, 190, 110, 0.045);
}

#profileUsernameAvailability[data-state="available"]::before {
    content: "\f058";

    color: #8af0b1;

    background: rgba(94, 220, 145, 0.11);

    box-shadow:
        0 0 0 3px rgba(94, 220, 145, 0.025);
}

/* =========================================================
   TAKEN
========================================================= */

#profileUsernameAvailability[data-state="taken"] {
    color: #ff8585;

    background:
        linear-gradient(
            90deg,
            rgba(255, 91, 91, 0.075),
            rgba(255, 91, 91, 0.025)
        );

    border-color: rgba(255, 91, 91, 0.12);

    box-shadow:
        0 4px 18px rgba(220, 70, 70, 0.04);
}

#profileUsernameAvailability[data-state="taken"]::before {
    content: "\f057";

    color: #ff8585;

    background: rgba(255, 91, 91, 0.11);

    box-shadow:
        0 0 0 3px rgba(255, 91, 91, 0.025);
}

/* =========================================================
   INVALID
========================================================= */

#profileUsernameAvailability[data-state="invalid"] {
    color: #ff8585;

    background:
        linear-gradient(
            90deg,
            rgba(255, 91, 91, 0.075),
            rgba(255, 91, 91, 0.025)
        );

    border-color: rgba(255, 91, 91, 0.12);
}

#profileUsernameAvailability[data-state="invalid"]::before {
    content: "\f06a";

    color: #ff8585;

    background: rgba(255, 91, 91, 0.11);
}

/* =========================================================
   CHECKING
========================================================= */

#profileUsernameAvailability[data-state="checking"] {
    color: #b2b2bd;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    border-color: rgba(255, 255, 255, 0.07);
}

#profileUsernameAvailability[data-state="checking"]::before {
    content: "\f110";

    color: #c5c5ce;

    background: rgba(255, 255, 255, 0.07);

    animation:
        usernameCheckerSpin 0.8s linear infinite;
}

/* =========================================================
   ERROR / 28-DAY COOLDOWN
========================================================= */

#profileUsernameAvailability[data-state="error"] {
    color: #ffc07d;

    background:
        linear-gradient(
            90deg,
            rgba(255, 174, 92, 0.075),
            rgba(255, 174, 92, 0.025)
        );

    border-color: rgba(255, 174, 92, 0.12);

    box-shadow:
        0 4px 18px rgba(255, 160, 70, 0.035);
}

#profileUsernameAvailability[data-state="error"]::before {
    content: "\f071";

    color: #ffc07d;

    background: rgba(255, 174, 92, 0.11);
}

/* =========================================================
   UNCHANGED / INFO
========================================================= */

#profileUsernameAvailability[data-state="unchanged"] {
    color: #aaaab5;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );

    border-color: rgba(255, 255, 255, 0.055);
}

#profileUsernameAvailability[data-state="unchanged"]::before {
    content: "\f05a";

    color: #b5b5bf;

    background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   SUCCESS
========================================================= */

#profileUsernameAvailability[data-state="success"] {
    color: #83e6aa;

    background:
        linear-gradient(
            90deg,
            rgba(94, 220, 145, 0.075),
            rgba(94, 220, 145, 0.025)
        );

    border-color: rgba(94, 220, 145, 0.12);
}

#profileUsernameAvailability[data-state="success"]::before {
    content: "\f058";

    color: #8af0b1;

    background: rgba(94, 220, 145, 0.11);
}

/* =========================================================
   MICRO INTERACTION
========================================================= */

#profileUsernameAvailability:hover {
    filter: brightness(1.06);
}

/* =========================================================
   LOADING ANIMATION
========================================================= */

@keyframes usernameCheckerSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   LOGIN — CINEMATIC VERIFICATION NOTICE
========================================================= */

#loginNotice.auth-notice {
    position: relative;

    width: 100%;
    box-sizing: border-box;

    margin: 0 0 24px;
    padding: 15px 16px 15px 48px;

    display: none;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );

    color: #c8c8ce;

    font-family: inherit;
    font-size: 12px;
    line-height: 19px;
    font-weight: 400;
    letter-spacing: 0.01em;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    overflow: hidden;

    animation: loginNoticeReveal 260ms cubic-bezier(.22, 1, .36, 1);
}


/* ─────────────────────────────────────────
   LEFT ACCENT
───────────────────────────────────────── */

#loginNotice.auth-notice::after {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 2px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 183, 102, 0.9),
            rgba(255, 183, 102, 0.18)
        );

    box-shadow:
        0 0 14px rgba(255, 183, 102, 0.12);
}


/* ─────────────────────────────────────────
   ICON CONTAINER
───────────────────────────────────────── */

#loginNotice.auth-notice::before {
    content: "\f2f6";

    position: absolute;

    left: 16px;
    top: 50%;

    width: 21px;
    height: 21px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 183, 102, 0.13);
    border-radius: 6px;

    background: rgba(255, 183, 102, 0.055);

    color: #e6ad70;

    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


/* ─────────────────────────────────────────
   MESSAGE
───────────────────────────────────────── */

#loginNotice.auth-notice {
    overflow-wrap: anywhere;
}


/* ─────────────────────────────────────────
   EMPHASIS INSIDE MESSAGE
───────────────────────────────────────── */

#loginNotice.auth-notice strong {
    display: block;

    margin-bottom: 2px;

    color: #ededf0;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.005em;
}


/* ─────────────────────────────────────────
   LINKS
───────────────────────────────────────── */

#loginNotice.auth-notice a {
    color: #e6ad70;

    font-weight: 500;

    text-decoration: none;

    transition:
        color 160ms ease,
        opacity 160ms ease;
}

#loginNotice.auth-notice a:hover {
    color: #f4c48e;
}


/* ─────────────────────────────────────────
   ERROR STATE
───────────────────────────────────────── */

#loginNotice.auth-notice.notice-error {
    border-color: rgba(255, 103, 103, 0.10);

    background:
        linear-gradient(
            135deg,
            rgba(255, 103, 103, 0.045),
            rgba(255, 255, 255, 0.015)
        );
}

#loginNotice.auth-notice.notice-error::before {
    content: "\f071";

    color: #e98282;

    border-color: rgba(255, 103, 103, 0.12);
    background: rgba(255, 103, 103, 0.045);
}

#loginNotice.auth-notice.notice-error::after {
    background:
        linear-gradient(
            180deg,
            rgba(233, 130, 130, 0.85),
            rgba(233, 130, 130, 0.12)
        );
}


/* ─────────────────────────────────────────
   SUCCESS STATE
───────────────────────────────────────── */

#loginNotice.auth-notice.notice-success {
    border-color: rgba(112, 215, 150, 0.10);

    background:
        linear-gradient(
            135deg,
            rgba(112, 215, 150, 0.04),
            rgba(255, 255, 255, 0.015)
        );
}

#loginNotice.auth-notice.notice-success::before {
    content: "\f058";

    color: #7ed9a0;

    border-color: rgba(112, 215, 150, 0.12);
    background: rgba(112, 215, 150, 0.045);
}

#loginNotice.auth-notice.notice-success::after {
    background:
        linear-gradient(
            180deg,
            rgba(126, 217, 160, 0.85),
            rgba(126, 217, 160, 0.12)
        );
}


/* ─────────────────────────────────────────
   MOBILE
───────────────────────────────────────── */

@media (max-width: 600px) {

    #loginNotice.auth-notice {
        margin-bottom: 20px;
        padding: 14px 14px 14px 45px;

        font-size: 11.5px;
        line-height: 18px;
    }

    #loginNotice.auth-notice::before {
        left: 14px;
    }
}


/* ─────────────────────────────────────────
   REVEAL
───────────────────────────────────────── */

@keyframes loginNoticeReveal {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

 /* =====================================================
    REGISTER — EMAIL TYPO SUGGESTION
 ===================================================== */

.register-email-suggestion {
    display: none;
    align-items: center;
    gap: 8px;

    margin-top: 8px;
    padding: 8px 10px;

    font-size: 11px;
    line-height: 16px;
    color: #b9b9c1;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 7px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 8px 24px rgba(0, 0, 0, 0.12);
}

.register-email-suggestion.show {
    display: flex;

    animation:
        registerEmailSuggestionReveal
        220ms cubic-bezier(.22, 1, .36, 1);
}

.register-email-suggestion > i {
    flex: 0 0 auto;

    color: #d8a85d;

    font-size: 11px;
}

.register-email-suggestion span {
    flex: 1;

    min-width: 0;
}

.register-email-suggestion button {
    flex: 0 0 auto;

    border: 0;
    padding: 0;

    background: transparent;

    color: #e5b96f;

    font-family: inherit;
    font-size: 11px;
    font-weight: 500;

    cursor: pointer;

    transition:
        color 160ms ease,
        opacity 160ms ease;
}

.register-email-suggestion button:hover {
    color: #ffffff;
}

.register-email-suggestion button:active {
    opacity: 0.7;
}

@keyframes registerEmailSuggestionReveal {

    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* LOGIN — RESEND VERIFICATION BUTTON */

.login-resend-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #e5b96f;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
    cursor: pointer;
    transition:
        color 160ms ease,
        opacity 160ms ease;
}

.login-resend-btn:hover {
    color: #ffffff;
}

.login-resend-btn:active {
    opacity: 0.7;
}

.login-resend-btn:disabled {
    cursor: default;
    opacity: 0.55;
}


