@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #060609;
    --bg-elevated: #0e0e14;
    --surface: rgba(18, 18, 26, 0.96);
    --surface-soft: rgba(26, 26, 36, 0.90);
    --surface-glass: rgba(14, 14, 22, 0.76);
    --card: linear-gradient(180deg, rgba(22, 22, 32, 0.97), rgba(12, 12, 20, 0.99));
    --card-solid: #111119;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.13);
    --primary: #ff4b3e;
    --primary-strong: #ff6350;
    --primary-soft: rgba(255, 75, 62, 0.16);
    --gold: #ffd36a;
    --gold-deep: #c8922c;
    --gold-soft: rgba(255, 211, 106, 0.16);
    --text: #f5f5f8;
    --muted: #8e8e98;
    --muted-strong: #c0c0ca;
    --ok: #34d494;
    --danger: #ff7070;
    --shadow: 0 32px 72px rgba(0, 0, 0, 0.52);
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.30);
    --shadow-xs: 0 4px 16px rgba(0, 0, 0, 0.22);
    --radius-xl: 32px;
    --radius-lg: 26px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --radius-xs: 10px;
    --app-width: 480px;
    --watch-width: 430px;
    --nav-height: 80px;
    --nav-safe-area: env(safe-area-inset-bottom);
    --nav-total-height: calc(var(--nav-height) + var(--nav-safe-area));
    --nav-content-gap: 34px;
    --font-sans: "Inter", "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    /* Native-app spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;

    /* Transitions */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 0.14s;
    --dur-normal: 0.22s;
    --dur-slow: 0.36s;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html:not(.admin-page) {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 100, 60, 0.10) 0%, transparent 38%),
        radial-gradient(ellipse at 80% 0%, rgba(255, 211, 106, 0.07) 0%, transparent 28%),
        radial-gradient(ellipse at 50% 100%, rgba(80, 40, 140, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0c0c12 0%, #07070d 40%, #060609 100%);
    color: var(--text);
    font-family: var(--font-sans);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1;
}

body {
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% -8%, rgba(255, 211, 106, 0.07), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 20%);
    z-index: 0;
}

html.admin-page,
html.admin-page body {
    background-color: #000;
}

body.admin-screen {
    min-height: 100dvh;
    overscroll-behavior-y: none;
}

body.admin-screen::before {
    background: none;
}

html.show-app-splash,
html.show-app-splash body {
    overflow: hidden;
}

.app-splash {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: none;
    place-items: center;
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(255, 75, 62, 0.16) 0%, transparent 36%),
        linear-gradient(24deg, rgba(255, 211, 106, 0.10) 0%, transparent 34%),
        linear-gradient(180deg, #101016 0%, #07070c 48%, #020204 100%);
    color: #fff;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease;
}

html.show-app-splash .app-splash {
    display: grid;
}

.app-splash::before,
.app-splash::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
}

.app-splash::before {
    background:
        linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.08) 42%, transparent 60%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 72px);
    opacity: 0.5;
    transform: translateX(-18%) rotate(-8deg);
    animation: splashLightSweep 1.95s var(--ease-out) infinite;
}

.app-splash::after {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.035) 50%, transparent);
    opacity: 0.38;
    transform: translateY(-48%);
    animation: splashScan 2.35s ease-in-out infinite;
}

.app-splash.is-leaving {
    opacity: 0;
    transform: scale(1.018);
    filter: blur(7px);
    pointer-events: none;
}

.app-splash-stage {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 22px;
    width: min(100%, 360px);
    transform: translateY(10px) scale(0.96);
    opacity: 0;
    animation: splashStageIn 0.72s var(--ease-spring) forwards;
}

.app-splash-ring {
    position: absolute;
    top: -44px;
    width: min(78vw, 280px);
    aspect-ratio: 1;
    border-radius: 999px;
    border: 1px solid rgba(255, 211, 106, 0.16);
    box-shadow:
        inset 0 0 42px rgba(255, 75, 62, 0.06),
        0 0 64px rgba(255, 211, 106, 0.07);
    opacity: 0.85;
    animation: splashRing 1.8s ease-in-out infinite;
}

.app-splash-light {
    position: absolute;
    display: block;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 211, 106, 0.78), transparent);
    opacity: 0;
    filter: drop-shadow(0 0 12px rgba(255, 211, 106, 0.42));
}

.app-splash-light-one {
    top: 78px;
    width: min(64vw, 250px);
    animation: splashLineOne 1.8s ease-in-out infinite 0.22s;
}

.app-splash-light-two {
    top: 170px;
    width: min(52vw, 190px);
    animation: splashLineTwo 1.8s ease-in-out infinite 0.5s;
}

.app-splash-icon-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
        rgba(12, 12, 17, 0.82);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.44),
        0 0 0 8px rgba(255, 255, 255, 0.018);
    overflow: hidden;
    animation: splashIconFloat 1.85s ease-in-out infinite;
}

.app-splash-icon-wrap::after {
    content: "";
    position: absolute;
    inset: -45%;
    background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.32) 50%, transparent 62%);
    transform: translateX(-62%) rotate(8deg);
    animation: splashIconSheen 1.95s ease-in-out infinite 0.26s;
}

.app-splash-icon {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    object-fit: cover;
    transform: scale(0.86);
    animation: splashLogoPop 0.74s var(--ease-spring) forwards 0.18s;
}

.app-splash-logo {
    width: min(248px, 68vw);
    height: auto;
    opacity: 0;
    transform: translateY(10px);
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.42));
    animation: splashLogoWord 0.58s ease forwards 0.42s;
}

.app-splash-progress {
    position: relative;
    width: min(188px, 54vw);
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.app-splash-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    box-shadow: 0 0 18px rgba(255, 211, 106, 0.44);
    animation: splashProgress 1.22s ease-in-out infinite;
}

@keyframes splashStageIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes splashLogoPop {
    0% {
        transform: scale(0.86);
    }
    62% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

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

@keyframes splashIconFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes splashIconSheen {
    0%,
    28% {
        transform: translateX(-62%) rotate(8deg);
    }
    72%,
    100% {
        transform: translateX(62%) rotate(8deg);
    }
}

@keyframes splashRing {
    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.58;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes splashLineOne {
    0%,
    100% {
        opacity: 0;
        transform: translateX(-32px) scaleX(0.72);
    }
    42%,
    68% {
        opacity: 0.86;
        transform: translateX(0) scaleX(1);
    }
}

@keyframes splashLineTwo {
    0%,
    100% {
        opacity: 0;
        transform: translateX(28px) scaleX(0.66);
    }
    44%,
    70% {
        opacity: 0.58;
        transform: translateX(0) scaleX(1);
    }
}

@keyframes splashLightSweep {
    0% {
        transform: translateX(-24%) rotate(-8deg);
    }
    100% {
        transform: translateX(24%) rotate(-8deg);
    }
}

@keyframes splashScan {
    0%,
    100% {
        transform: translateY(-48%);
    }
    50% {
        transform: translateY(42%);
    }
}

@keyframes splashProgress {
    0% {
        transform: translateX(-112%);
    }
    54% {
        transform: translateX(70%);
    }
    100% {
        transform: translateX(248%);
    }
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-touch-callout: none;
}

img {
    max-width: 100%;
    display: block;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-select: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
[role="button"],
.poster-card,
.continue-card,
.media-row,
.home-poster,
.home-featured-card,
.home-rank-card,
.profile-menu-row,
.profile-quick-card {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

input,
textarea,
select,
[contenteditable="true"],
.legal-copy,
.policy-content,
.admin-form {
    -webkit-touch-callout: default;
    -webkit-user-select: text;
    user-select: text;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.app-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex: 0 0 auto;
}

.nav-icon {
    width: 1.22rem;
    height: 1.22rem;
    display: block;
}

.app-shell {
    --shell-gutter: 16px;
    --shell-gutter-offset: -16px;
    position: relative;
    z-index: 1;
    width: min(100%, var(--app-width));
    margin: 0 auto;
    min-height: 100dvh;
    padding: calc(env(safe-area-inset-top) + 16px) var(--shell-gutter) calc(var(--nav-total-height) + var(--nav-content-gap));
}

.app-shell.watch-shell {
    --watch-screen-height: 100vh;
    width: min(100%, var(--watch-width));
    max-width: var(--watch-width);
    margin: 0 auto;
    padding: 0;
    height: var(--watch-screen-height);
    min-height: var(--watch-screen-height);
    overflow: hidden;
    background: #000;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
    contain: layout paint size;
}

@supports (height: 100svh) {
    .app-shell.watch-shell {
        --watch-screen-height: 100svh;
    }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 50;
    margin: calc(-16px - env(safe-area-inset-top)) var(--shell-gutter-offset) 14px;
    padding: calc(env(safe-area-inset-top) + 13px) var(--shell-gutter) 13px;
    background: #08080d;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.page-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc((env(safe-area-inset-top) + 16px) * -1);
    height: calc(env(safe-area-inset-top) + 16px);
    background: #08080d;
    box-shadow: none;
    pointer-events: none;
}

.page-header + .section,
.page-header + main,
.page-header + .page-content,
.page-header + .support-layout,
.page-header + .settings-form,
.page-header + .billing-overview {
    margin-top: 8px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.brand-lockup > div {
    min-width: 0;
}

.brand-avatar,
.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.36);
    transition: transform var(--dur-fast) var(--ease-spring);
}

.brand-avatar:active,
.brand-logo:active {
    transform: scale(0.92);
}

.brand-logo {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 211, 106, 0.95), rgba(255, 138, 89, 0.95));
    color: #241a0d;
    font-size: 1.16rem;
    font-weight: 700;
}

.brand-logo img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    flex: 0 0 24px;
}

.brand-logo.rank-badge-logo {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-logo.rank-badge-logo img {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
}

.reward-page-header {
    padding-bottom: 10px;
}

.reward-page-header .brand-lockup {
    gap: 9px;
}

.reward-page-header .page-title {
    font-size: clamp(1.12rem, 3.15vw, 1.52rem);
}

.brand-splash {
    width: min(184px, 52vw);
    height: auto;
    border-radius: 18px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.brand-overline {
    margin: 0 0 4px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 211, 106, 0.78);
}

.page-title,
.brand-title {
    margin: 0;
    font-size: clamp(1.32rem, 3.8vw, 1.86rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.page-header .page-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 14px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    box-shadow: var(--shadow-xs);
    transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
    white-space: nowrap;
    flex: 0 0 auto;
}

.header-action[aria-label="Geri"] > .app-icon,
.watch-back[aria-label="Geri"] > .app-icon {
    width: 1.3rem;
    height: 1.3rem;
}

.header-action:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.08);
}

.reward-gold-action {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.reward-gold-action:active,
.header-action.icon-only-asset:active {
    background: transparent;
}

.header-action.icon-only-asset {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.header-action span {
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
}

.section {
    margin-top: 18px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.section-head h2,
.section-head h3 {
    margin: 0;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.section-link {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.section-panel {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(18, 18, 26, 0.94), rgba(10, 10, 16, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
}

.section-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.section-panel.tight {
    padding: 10px;
}

.muted {
    color: var(--muted);
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 14px;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
}

.card + .card {
    margin-top: 12px;
}

.glass-card {
    background: linear-gradient(180deg, rgba(22, 22, 31, 0.86), rgba(10, 10, 16, 0.92));
    backdrop-filter: blur(12px);
}

.vip-glow,
.best-offer-card,
.vip-funnel-card {
    border-color: rgba(255, 211, 106, 0.34);
    box-shadow: 0 22px 44px rgba(201, 145, 43, 0.12);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted-strong);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.tag.primary {
    background: rgba(255, 75, 62, 0.15);
    border-color: rgba(255, 75, 62, 0.26);
    color: #ffb4ac;
}

.tag.gold {
    background: rgba(255, 211, 106, 0.12);
    border-color: rgba(255, 211, 106, 0.24);
    color: #ffe6a8;
}

.tag.green {
    background: rgba(52, 212, 148, 0.14);
    border-color: rgba(52, 212, 148, 0.24);
    color: #c9ffe9;
}

.premium-inline-icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.premium-lock-tag img {
    display: block;
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    flex: 0 0 20px;
}

.premium-inline-icon img,
.premium-lock-tag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(235, 161, 54, 0.34));
}

.premium-lock-tag {
    padding-left: 8px;
    border-color: rgba(255, 211, 106, 0.32);
    background: linear-gradient(135deg, rgba(255, 224, 148, 0.18), rgba(255, 75, 62, 0.12));
}

.btn,
button,
input[type="submit"] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    min-height: 46px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) ease, opacity var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn:hover,
button:hover {
    background: rgba(255, 255, 255, 0.09);
}

.btn:active,
button:active,
input[type="submit"]:active {
    transform: scale(0.96);
    opacity: 0.92;
}

.btn:disabled,
button:disabled,
input[type="submit"]:disabled {
    opacity: 0.46;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn.primary {
    background: linear-gradient(145deg, var(--primary-strong), var(--primary));
    color: #fff;
    box-shadow: 0 12px 28px rgba(255, 75, 62, 0.30);
}

.btn.primary:hover {
    box-shadow: 0 16px 36px rgba(255, 75, 62, 0.40);
}

.btn.gold {
    background: linear-gradient(145deg, #ffe9b0, #dfb24e);
    color: #281900;
    box-shadow: 0 12px 28px rgba(220, 170, 70, 0.28);
    font-weight: 700;
}

.btn.gold:hover {
    box-shadow: 0 16px 36px rgba(220, 170, 70, 0.38);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--muted-strong);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.btn.is-wide {
    width: 100%;
    justify-content: center;
}

.input,
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 13px 16px;
    outline: none;
    font-size: 0.93rem;
    color-scheme: dark;
    transition: border-color var(--dur-normal) ease, background var(--dur-normal) ease, box-shadow var(--dur-normal) ease;
}

select option,
select optgroup {
    background-color: #171720;
    color: var(--text);
}

select option:checked {
    background-color: #5f5233;
    color: #fff8df;
}

select option:disabled {
    color: rgba(255, 255, 255, 0.42);
}

input[type="date"],
input[type="datetime-local"] {
    min-height: 50px;
    color-scheme: dark;
}

input[type="date"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit {
    color: var(--text);
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.72;
    filter: invert(1) sepia(0.08) saturate(1.8) hue-rotate(350deg);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.30);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(255, 211, 106, 0.40);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.08);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.top-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box input {
    height: 50px;
    padding-left: 44px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.44);
    display: inline-flex;
    font-size: 1rem;
}

.tabs,
.filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.tabs::-webkit-scrollbar,
.filters::-webkit-scrollbar,
.poster-rail::-webkit-scrollbar,
.plans-strip::-webkit-scrollbar {
    display: none;
}

.tab,
.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--muted-strong);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
    -webkit-tap-highlight-color: transparent;
}

.tab:active,
.filter-chip:active {
    transform: scale(0.94);
}

.tab.active,
.filter-chip.active {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 75, 62, 0.16));
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 75, 62, 0.16), inset 0 1px 0 rgba(255,255,255,0.10);
}

.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(21, 21, 30, 0.9), rgba(7, 7, 11, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(4, 4, 8, 0.88)),
        radial-gradient(circle at top right, rgba(255, 211, 106, 0.2), transparent 28%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: #f4f1ea;
}

.collapsible-text {
    display: grid;
    gap: 6px;
}

.collapsible-content {
    display: block;
    overflow: visible;
}

.collapsible-text.is-collapsed .collapsible-content {
    overflow: hidden;
    max-height: calc(var(--collapsed-lines, 3) * var(--collapsed-line-height, 1.45) * 1em);
}

@supports (-webkit-line-clamp: 1) {
    .collapsible-text.is-collapsed .collapsible-content {
        display: -webkit-box;
        max-height: none;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: var(--collapsed-lines, 3);
    }
}

.collapsible-text.is-expanded .collapsible-content {
    display: block;
    max-height: none;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.text-toggle-btn {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffd7a0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.hero-description-wrap .text-toggle-btn {
    margin-top: 2px;
}

.hero-description-wrap {
    --collapsed-line-height: 1.5;
}

.watch-desc-wrap {
    --collapsed-line-height: 1.38;
    margin-top: 6px;
}

.watch-desc-wrap .watch-desc {
    margin-top: 0;
}

.watch-text-toggle {
    color: #ffe0b0;
    justify-self: start;
    min-height: 24px;
    padding: 2px 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 0.74rem;
    -webkit-tap-highlight-color: transparent;
}

.poster-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(136px, 40vw);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.poster-grid {
    padding: 4px 0;
}

.poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #111117;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
    min-width: 0;
    isolation: isolate;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.poster-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 68%;
    background: linear-gradient(180deg, transparent, rgba(3, 3, 6, 0.96));
    pointer-events: none;
}

.poster-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
    z-index: 1;
    pointer-events: none;
}

.poster-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.poster-stats {
    position: absolute;
    right: 8px;
    bottom: 58px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(10, 10, 16, 0.72);
    font-size: 0.68rem;
    font-weight: 600;
}

.poster-meta {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 12px 10px 11px;
}

.poster-title {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poster-sub {
    margin: 7px 0 0;
    color: #d5d5dc;
    font-size: 0.68rem;
    line-height: 1.32;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-row {
    display: grid;
    gap: 12px;
}

.continue-card {
    display: grid;
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 12px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(26, 26, 35, 0.96), rgba(11, 11, 17, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.continue-card img {
    width: 100%;
    height: 100%;
    min-height: 132px;
    object-fit: cover;
}

.continue-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 14px 14px 0;
}

.progress-track {
    margin-top: 10px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #ff6f58, #ffd36a);
}

.list-stack {
    display: grid;
    gap: 12px;
}

.simple-list {
    display: grid;
    gap: 0;
}

.simple-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.simple-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.simple-row:first-child {
    padding-top: 0;
}

.simple-row-label {
    min-width: 0;
    flex: 1;
}

.simple-row-title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
}

.simple-row-sub {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.list-row,
.sheet-item,
.task-item,
.media-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.media-row {
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.media-thumb {
    width: 82px;
    height: 112px;
    flex: 0 0 82px;
    border-radius: 18px;
    object-fit: cover;
}

.media-body {
    min-width: 0;
    flex: 1;
}

.media-title {
    margin: 0;
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.18;
}

.media-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.chip-cloud {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.reward-balance {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 211, 106, 0.24), transparent 35%),
        linear-gradient(145deg, #482111, #7d2f18 38%, #25120d 100%);
    border: 1px solid rgba(255, 211, 106, 0.22);
    box-shadow: 0 24px 46px rgba(74, 32, 14, 0.44);
}

.reward-balance::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 211, 106, 0.26), transparent 70%);
}

.task-list {
    display: grid;
    gap: 10px;
}

.task-item {
    padding: 15px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
    align-items: flex-start;
}

.task-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.task-logo.telegram {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 10px 20px rgba(34, 158, 217, 0.24);
}

.plans-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.plan-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(61, 30, 16, 0.98), rgba(24, 12, 9, 0.98));
    border: 1px solid rgba(255, 211, 106, 0.22);
    box-shadow: 0 18px 42px rgba(74, 32, 14, 0.28);
    min-height: 206px;
}

.plan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 211, 106, 0.18), transparent 30%);
    pointer-events: none;
}

.profile-hero {
    display: grid;
    gap: 14px;
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-avatar {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.metric-card {
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.18rem;
}

.episode-list {
    display: grid;
    gap: 10px;
}

.episode-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(24, 24, 33, 0.96), rgba(12, 12, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-soft);
}

.episode-thumb {
    width: 74px;
    height: 98px;
    border-radius: 18px;
    object-fit: cover;
}

.episode-copy {
    min-width: 0;
}

.episode-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.26;
}

.episode-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.42;
}

.episode-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
}

.seriesx-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 286px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.seriesx-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seriesx-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 12, 0.08) 0%, rgba(8, 8, 12, 0.68) 58%, rgba(8, 8, 12, 0.92) 100%);
}

.seriesx-hero-overlay {
    position: relative;
    z-index: 1;
    min-height: 286px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
}

.seriesx-hero-top {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.seriesx-title {
    margin: 0;
    max-width: 92%;
    font-size: clamp(1.18rem, 4vw, 1.48rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.seriesx-subline {
    margin: 0;
    color: #d5d8de;
    font-size: 0.78rem;
}

.seriesx-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.seriesx-hero-actions .btn {
    min-width: 0;
    min-height: 48px;
    padding: 11px 12px;
    border-radius: 16px;
    font-size: 0.88rem;
    white-space: nowrap;
}

.seriesx-hero-actions .btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seriesx-hero-actions .seriesx-watch-btn {
    grid-column: 1 / -1;
    min-height: 54px;
    font-size: 0.94rem;
}

.seriesx-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.seriesx-stat-card {
    min-width: 0;
    padding: 12px 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(20, 20, 29, 0.96), rgba(12, 12, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.seriesx-stat-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.25;
}

.seriesx-stat-card strong {
    display: block;
    margin-top: 7px;
    font-size: 0.98rem;
    line-height: 1.1;
}

.seriesx-stat-card span {
    display: block;
    margin-top: 5px;
    color: #c7cad0;
    font-size: 0.66rem;
    line-height: 1.3;
}

.seriesx-about-card {
    padding: 14px;
    border-radius: 18px;
}

.seriesx-copy p {
    margin: 0;
    color: #d5d9de;
    font-size: 0.84rem;
    line-height: 1.5;
}

.seriesx-copy p + p {
    margin-top: 10px;
}

.seriesx-chip-cloud {
    margin-top: 12px;
}

.series-shell {
    padding-top: calc(env(safe-area-inset-top) + 10px);
}

.series-page-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    margin: -10px -16px 12px;
    padding: 8px 16px;
    top: 0;
    background: rgba(8, 8, 12, 0.94);
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.series-page-header .header-action {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.series-page-header .page-title {
    grid-column: 2;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seriesx-copy {
    position: relative;
    overflow: hidden;
}

.seriesx-copy.is-collapsed {
    max-height: 4.55em;
}

.seriesx-copy.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.2em;
    background: linear-gradient(180deg, rgba(18, 18, 26, 0), rgba(18, 18, 26, 0.98));
    pointer-events: none;
}

.seriesx-summary-toggle {
    min-height: 30px;
    margin-top: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #ffb4ac;
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 800;
}

.seriesx-summary-toggle:hover {
    background: transparent;
}

.seriesx-episodes-shell {
    display: grid;
    gap: 12px;
}

.seriesx-controls {
    display: grid;
    gap: 10px;
}

.seriesx-filter-row {
    display: flex;
    gap: 8px;
    overflow: auto;
    scrollbar-width: none;
}

.seriesx-filter-row::-webkit-scrollbar {
    display: none;
}

.seriesx-filter {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #ced3db;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 700;
}

.seriesx-filter.active {
    background: rgba(255, 75, 62, 0.18);
    border-color: rgba(255, 75, 62, 0.42);
    color: #ffb4ac;
}

.seriesx-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 0 12px;
}

.seriesx-search-wrap input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    min-height: 40px;
}

.seriesx-search-wrap input::placeholder {
    color: #8f96a2;
}

.seriesx-episode-list {
    display: grid;
    gap: 10px;
}

.seriesx-episode-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(21, 21, 30, 0.95), rgba(10, 10, 16, 0.98));
    box-shadow: var(--shadow-soft);
}

.seriesx-episode-link {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
}

.seriesx-episode-thumb {
    width: 86px;
    height: 116px;
    border-radius: 18px;
    object-fit: cover;
}

.seriesx-episode-main {
    min-width: 0;
}

.seriesx-episode-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.seriesx-episode-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
}

.seriesx-episode-head span {
    color: #b9bfca;
    font-size: 0.78rem;
    white-space: nowrap;
}

.seriesx-episode-main p {
    margin: 7px 0 0;
    color: #b8bdc6;
    font-size: 0.8rem;
    line-height: 1.45;
}

.seriesx-episode-chips {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.seriesx-episode-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    min-height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e9edf4;
    font-size: 0.76rem;
    font-weight: 800;
}

.seriesx-episode-cta.locked {
    padding-left: 8px;
    background: linear-gradient(135deg, rgba(255, 211, 106, 0.16), rgba(255, 75, 62, 0.1));
    border-color: rgba(255, 211, 106, 0.22);
    color: #ffe7ad;
}

.seriesx-episode-cta.locked .premium-inline-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
}

.seriesx-empty {
    margin: 6px 0 0;
    color: #a8afba;
    font-size: 0.9rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 44px 82px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-index {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    font-size: 0.84rem;
    font-weight: 800;
    color: #fff0cb;
}

.rank-index img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain;
}

.auth-screen {
    min-height: 100dvh;
    display: block;
    background-image:
        linear-gradient(180deg,
            rgba(6, 4, 10, 0.10) 0%,
            rgba(6, 4, 10, 0.36) 28%,
            rgba(5, 3, 9, 0.88) 70%,
            rgba(5, 3, 9, 0.98) 100%),
        var(--auth-bg-image);
    background-position: center, center 15%;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-color: #060409;
}

.login-wrap {
    width: min(100%, 560px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top) + 28px) 20px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-visual {
    position: relative;
    flex: 0 0 auto;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.auth-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    padding-top: 6px;
    text-align: center;
}

.auth-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
    width: 100%;
}

.auth-logo-row img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

/* Hide the splash wordmark — keep only app icon */
.auth-logo-row .auth-wordmark {
    display: none;
}

.auth-logo-row .auth-app-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

/* App name label next to icon */
.auth-app-name {
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.auth-copy {
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 14px;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.login-panel {
    border-radius: 32px;
    background: linear-gradient(180deg,
        rgba(14, 14, 22, 0.98),
        rgba(8, 8, 14, 1.00));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 -24px 60px rgba(0, 0, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 24px 22px calc(20px + env(safe-area-inset-bottom));
    margin-bottom: calc(18px + env(safe-area-inset-bottom));
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    animation: panel-slide-up 0.42s var(--ease-spring) both;
}

@keyframes panel-slide-up {
    from {
        transform: translateY(32px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-panel::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    margin: -12px auto 20px;
}

.admin-login-screen .login-wrap {
    justify-content: center;
    padding-bottom: calc(env(safe-area-inset-bottom) + 28px);
}

.admin-auth-visual {
    margin-bottom: 18px;
}

.admin-auth-copy {
    padding-bottom: 0;
}

.admin-auth-copy .page-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
}

.admin-auth-copy .page-subtitle {
    margin-top: 8px;
}

.admin-login-panel {
    width: 100%;
}

.admin-remember-control {
    margin-top: 12px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.58);
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 18px;
    padding: 5px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-tabs .tab {
    width: 100%;
    border-radius: 13px;
    min-height: 38px;
}

.social-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.94rem;
    padding: 0 18px;
    transition: transform var(--dur-fast) var(--ease-spring), opacity var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
}

.social-btn:active {
    transform: scale(0.97);
}

.social-btn.facebook {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.28);
}

.social-btn.google {
    background: #fff;
    color: #1a1a1f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
}

.social-btn.apple {
    background: #fff;
    color: #1a1a1f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
}

.social-btn.demo {
    opacity: 0.94;
}

.social-icon-image {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
    object-fit: contain;
    flex: 0 0 auto;
}

.asset-inline-icon {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    object-fit: contain;
    flex: 0 0 16px;
}

.reward-image-icon {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    pointer-events: none;
}

.reward-image-btn {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.reward-image-btn:active {
    transform: scale(0.92);
}

.reward-action-icon {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    flex-basis: 24px;
}

.center-orb .asset-inline-icon,
.gift-orb .asset-inline-icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-basis: 20px;
}

.section-kicker > .asset-inline-icon,
.hero-stat > .asset-inline-icon {
    width: 15px;
    height: 15px;
    max-width: 15px;
    max-height: 15px;
    flex-basis: 15px;
}

.header-action > .asset-inline-icon {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    flex-basis: 30px;
    transform: scale(1.28);
    transform-origin: center;
}

.reward-page-header .header-action > .asset-inline-icon {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    flex-basis: 24px;
    transform: scale(1.08);
}

.referral-earnings {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.referral-gold-icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
    flex: 0 0 20px;
    margin-left: 1px;
    filter: drop-shadow(0 2px 5px rgba(255, 211, 106, 0.22));
}

.header-action > .reward-action-icon {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    flex-basis: 22px;
    transform: none;
}

.vip-funnel-icon,
.reward-orb-icon {
    display: inline-block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    flex: 0 0 auto;
}

.vip-funnel-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
}

.reward-orb-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
}

.form-actions {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.84rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.legal-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.84rem;
    line-height: 1.5;
}

.alert {
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: opacity 0.24s ease, transform 0.24s ease, max-height 0.24s ease, margin 0.24s ease, padding 0.24s ease, border-width 0.24s ease;
    overflow: hidden;
}

.alert.is-dismissing {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    pointer-events: none;
}

.alert.error {
    background: rgba(255, 107, 107, 0.14);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #ffcbcb;
}

.alert.success {
    background: rgba(56, 216, 158, 0.15);
    border: 1px solid rgba(56, 216, 158, 0.18);
    color: #c7ffe8;
}

.vip-funnel-bar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 10px);
    z-index: 79;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 211, 106, 0.36);
    background: linear-gradient(135deg, rgba(255, 211, 106, 0.22), rgba(255, 75, 62, 0.16));
    color: #fff0c7;
    font-size: 0.68rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform var(--dur-fast) var(--ease-spring);
}

.vip-funnel-bar:active {
    transform: scale(0.97);
}

.vip-funnel-bar span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(100%, var(--app-width));
    height: var(--nav-total-height);
    padding-bottom: var(--nav-safe-area);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(7, 7, 12, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    z-index: 80;
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.34);
}

.bottom-nav a {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 6px 8px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-align: center;
    transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.bottom-nav a:active {
    opacity: 0.82;
    transform: translateY(1px) scale(0.96);
}

.bottom-nav .nav-icon {
    width: 1.28rem;
    height: 1.28rem;
    transition: transform var(--dur-fast) var(--ease-spring), color var(--dur-fast) ease;
    position: relative;
    z-index: 1;
}

.bottom-nav a span {
    position: relative;
    z-index: 1;
}

.bottom-nav a.active {
    color: var(--primary);
}

.is-standalone-pwa .bottom-nav {
    background: rgba(8, 8, 13, 0.92);
}

/* Thin top-line indicator */
.bottom-nav a.active::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    right: auto;
    width: 34px;
    height: 24px;
    border-radius: 999px;
    background: var(--primary-soft);
    transform: translateX(-50%);
    z-index: 0;
}

.bottom-nav a.active .nav-icon {
    transform: scale(1.08);
}

/* Pulse badge */
.bottom-nav .pulse::before {
    content: "";
    position: absolute;
    top: 8px;
    right: calc(50% - 16px);
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--primary);
    border: 1.5px solid rgba(7, 7, 12, 0.97);
    z-index: 1;
}

/* Center orb — Ödüller */
.bottom-nav .is-center {
    transform: none;
}

.bottom-nav .center-orb {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: transparent;
    color: #fff;
    box-shadow: none;
    transition: transform var(--dur-fast) var(--ease-spring);
}

.bottom-nav .is-center:active .center-orb {
    transform: scale(0.90);
}

.bottom-nav .is-center.active::after {
    display: none;
}

.bottom-nav .is-center.active .center-orb {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.floating-reward {
    position: fixed;
    right: 14px;
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px);
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9562, #ff5a45);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(255, 75, 62, 0.32);
}

.floating-reward .gift-orb {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.urgency-banner,
.today-free-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 18px;
    padding: 12px 14px;
    padding-right: 46px;
    font-size: 0.84rem;
    font-weight: 800;
    position: relative;
}

.urgency-banner {
    border: 1px solid rgba(255, 75, 62, 0.3);
    background: linear-gradient(135deg, rgba(255, 75, 62, 0.22), rgba(125, 18, 11, 0.18));
    color: #ffd7d2;
    animation: urgency-flash 1.1s ease-in-out infinite alternate;
}

.today-free-banner {
    border: 1px solid rgba(255, 211, 106, 0.26);
    background: linear-gradient(135deg, rgba(255, 211, 106, 0.14), rgba(173, 126, 42, 0.16));
    color: #ffe8b2;
}

.banner-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: inherit;
}

.watch-urgency,
.watch-free-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    z-index: 89;
}

.watch-urgency {
    top: calc(env(safe-area-inset-top) + 60px);
}

.watch-free-banner {
    top: calc(env(safe-area-inset-top) + 112px);
}

.live-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0 4px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #ffad9a;
}

.live-now::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ff5c53;
    box-shadow: 0 0 0 5px rgba(255, 92, 83, 0.14);
}

.social-proof-line {
    margin: 8px 0 10px;
    font-size: 0.82rem;
    color: #ffd7a0;
}

.countdown-line {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffc1b9;
}

.countdown-finished {
    color: #ffe2a2;
}

@keyframes urgency-flash {
    0% {
        box-shadow: 0 0 0 rgba(255, 75, 62, 0.08);
        opacity: 0.92;
    }

    100% {
        box-shadow: 0 0 24px rgba(255, 75, 62, 0.18);
        opacity: 1;
    }
}

.watch-page {
    position: relative;
    background: #000;
    width: 100%;
    max-width: var(--watch-width);
    margin: 0 auto;
    height: var(--watch-screen-height, 100svh);
    min-height: var(--watch-screen-height, 100svh);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: pan-y;
}

.watch-topbar {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 10px);
    left: 50%;
    right: auto;
    width: min(calc(100% - 28px), calc(var(--watch-width) - 28px));
    transform: translateX(-50%);
    z-index: 92;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    pointer-events: none;
}

.watch-topbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.watch-back,
.watch-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.44);
    border: 0;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.watch-back {
    width: 46px;
    min-height: 46px;
    padding: 0;
    pointer-events: auto;
    border-radius: 999px;
}

.watch-top-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.watch-brand-mini {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.watch-brand-mini img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    object-fit: cover;
}

.watch-brand-mini span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-feed {
    height: var(--watch-screen-height, 100svh);
    min-height: var(--watch-screen-height, 100svh);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    background: #000;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.watch-feed::-webkit-scrollbar {
    display: none;
}

.watch-item {
    position: relative;
    width: 100%;
    height: var(--watch-screen-height, 100svh);
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: grid;
    place-items: center;
    background: #000;
    contain: layout paint size;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.watch-item.is-speed-boosting::after {
    content: "2x";
    position: absolute;
    top: 50%;
    right: max(22px, calc(env(safe-area-inset-right) + 22px));
    z-index: 8;
    min-width: 58px;
    min-height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
    pointer-events: none;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.watch-video-backdrop {
    position: absolute;
    inset: -28px;
    z-index: 0;
    background-position: center;
    background-size: cover;
    filter: blur(9px) saturate(1.06) brightness(0.82);
    transform: scale(1.035);
}

.watch-video-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
}

.watch-watermark {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: space-around;
    gap: 44px 20px;
    padding: 56px 20px;
    opacity: 0.16;
    pointer-events: none;
    transform: rotate(-18deg) scale(1.15);
    mix-blend-mode: screen;
}

.watch-watermark span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.watch-brand-overlay {
    position: absolute;
    z-index: 4;
    width: 88px;
    height: 58px;
    display: grid;
    place-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 58%, rgba(0, 0, 0, 0.20)),
        rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    opacity: 0.74;
    pointer-events: none;
    transform: translateZ(0) scale(1);
    transition: opacity 0.22s ease, transform 0.22s ease;
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.watch-brand-overlay.is-top-left {
    top: calc(env(safe-area-inset-top) + 82px);
    left: max(18px, calc(env(safe-area-inset-left) + 18px));
}

.watch-brand-overlay.is-bottom-right {
    right: max(76px, calc(env(safe-area-inset-right) + 76px));
    bottom: calc(118px + env(safe-area-inset-bottom));
}

.watch-brand-overlay.is-hidden {
    opacity: 0;
    transform: translateZ(0) scale(0.94);
}

.watch-brand-overlay img {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 14px;
    object-fit: cover;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.38));
}

.watch-capture-shield {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 28px;
    text-align: center;
    background: rgba(0, 0, 0, 0.96);
    color: #fff;
}

.watch-capture-shield[hidden] {
    display: none;
}

.watch-capture-shield strong {
    font-size: 1.15rem;
}

.watch-capture-shield span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.watch-page.is-capture-guarded .watch-feed,
.watch-page.is-capture-guarded .watch-ui-layer {
    filter: blur(18px) brightness(0.35);
}

.watch-video,
.watch-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: block;
    margin: auto;
    object-fit: contain;
    object-position: 50% 50%;
    background: #000;
    transform: translateZ(0);
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

@media print {
    body * {
        visibility: hidden !important;
    }

    body::after {
        content: "Korunan içerik - çıktı alma kapalı";
        visibility: visible !important;
        position: fixed;
        inset: 0;
        display: grid;
        place-items: center;
        background: #000;
        color: #fff;
        font: 700 18px/1.4 sans-serif;
    }
}

.watch-locked-poster {
    filter: saturate(0.72) brightness(0.68);
}

.watch-locked-panel {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: calc(104px + env(safe-area-inset-bottom));
    z-index: 28;
    display: grid;
    justify-items: center;
    gap: 8px;
    max-width: 390px;
    margin: 0 auto;
    padding: 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-locked-panel[hidden] {
    display: none;
}

.watch-locked-panel h3 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.15;
}

.watch-locked-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.watch-locked-panel .lock-coins-cta {
    min-width: 142px;
}

.watch-lock-actions {
    width: 100%;
    display: grid;
    gap: 8px;
}

.watch-lock-actions .btn {
    width: 100%;
}

.premium-shine-btn {
    position: relative;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    font-size: 0.96rem;
    box-shadow: 0 14px 34px rgba(255, 186, 73, 0.26);
}

.premium-shine-icon {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(74, 42, 0, 0.2));
}

.premium-shine-btn span {
    position: relative;
    z-index: 1;
}

.premium-shine-btn::after {
    content: "";
    position: absolute;
    inset: -45% auto -45% -35%;
    width: 34%;
    pointer-events: none;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
    animation: premium-shine 2.4s ease-in-out infinite;
}

@keyframes premium-shine {
    0% {
        left: -40%;
    }
    48%,
    100% {
        left: 125%;
    }
}

.preview-badge {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 66px);
    left: 16px;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    background: rgba(255, 75, 62, 0.88);
    color: #fff;
}

.watch-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 20%, transparent 58%, rgba(0, 0, 0, 0.68)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 32%, rgba(0, 0, 0, 0.15));
    pointer-events: none;
}

.watch-play-state {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 7;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transform: translate(-50%, -50%) scale(1);
    backdrop-filter: blur(10px);
}

.watch-play-state[hidden] {
    display: none;
}

.watch-play-state.is-playing-idle {
    opacity: 0;
}

.watch-item:hover .watch-play-state.is-playing-idle,
.watch-play-state.is-playing-idle:focus-visible {
    opacity: 1;
}

.watch-play-state .app-icon {
    width: 1.8rem;
    height: 1.8rem;
}

.watch-content {
    position: absolute;
    left: 14px;
    right: 86px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 5;
    max-width: min(68vw, 360px);
}

.watch-title {
    margin: 0;
    font-size: clamp(1rem, 2.4vw, 1.26rem);
    line-height: 1.14;
    font-weight: 850;
}

.watch-meta-line {
    margin: 4px 0 0;
    color: #ffd7a0;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
}

.watch-desc {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    line-height: 1.38;
}

.watch-actions {
    position: absolute;
    right: 14px;
    bottom: calc(132px + env(safe-area-inset-bottom));
    z-index: 12;
    display: grid;
    justify-items: center;
    width: 48px;
    gap: 10px;
}

.watch-progress-control {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 7;
    display: grid;
    gap: 7px;
    color: #fff;
    pointer-events: auto;
    touch-action: none;
}

.watch-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 16px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.84);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
}

.watch-seek {
    --seek-progress: 0%;
    width: 100%;
    height: 22px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    touch-action: none;
}

.watch-seek:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.82);
    outline-offset: 4px;
    border-radius: 999px;
}

.watch-seek::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff4b3e 0 var(--seek-progress), rgba(255, 255, 255, 0.34) var(--seek-progress) 100%);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.46);
}

.watch-seek::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
    margin-top: -6px;
    border: 2px solid #fff;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    background: #ff4b3e;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48);
}

.watch-seek::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.46);
}

.watch-seek::-moz-range-progress {
    height: 5px;
    border-radius: 999px;
    background: #ff4b3e;
}

.watch-seek::-moz-range-thumb {
    width: 17px;
    height: 17px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ff4b3e;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48);
}

.icon-btn {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(7, 7, 11, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
}

.icon-btn .app-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.icon-btn.active {
    background: rgba(255, 75, 62, 0.22);
    border-color: rgba(255, 75, 62, 0.42);
    color: #fff0ee;
}

.watch-episodes-trigger {
    position: relative;
    z-index: 18;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: rgba(7, 7, 11, 0.62);
    border-color: rgba(255, 255, 255, 0.22);
    touch-action: manipulation;
}

.watch-episodes-trigger::before {
    content: "";
    position: absolute;
    inset: -8px;
}

.watch-actions .reward-image-btn {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.watch-ui-layer {
    transition: opacity 0.22s ease, transform 0.22s ease;
    will-change: opacity, transform;
}

.app-shell.watch-shell.watch-ui-hidden .watch-ui-layer {
    opacity: 0;
    pointer-events: none;
}

.app-shell.watch-shell.watch-ui-hidden .watch-topbar.watch-ui-layer,
.app-shell.watch-shell.watch-ui-hidden .watch-urgency.watch-ui-layer,
.app-shell.watch-shell.watch-ui-hidden .watch-free-banner.watch-ui-layer {
    transform: translateY(-8px);
}

.app-shell.watch-shell.watch-ui-hidden .watch-content.watch-ui-layer,
.app-shell.watch-shell.watch-ui-hidden .watch-actions.watch-ui-layer,
.app-shell.watch-shell.watch-ui-hidden .watch-progress-control.watch-ui-layer,
.app-shell.watch-shell.watch-ui-hidden .preview-badge.watch-ui-layer {
    transform: translateY(10px);
}

.app-shell.watch-shell.watch-ui-hidden .watch-play-state.watch-ui-layer {
    transform: translate(-50%, -50%) scale(0.96);
}

.lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 8;
    background: rgba(5, 5, 8, 0.76);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 20px calc(108px + env(safe-area-inset-bottom));
}

.lock-box {
    width: min(380px, 100%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.98), rgba(11, 11, 16, 0.98));
    padding: 20px 18px;
    text-align: center;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.lock-actions {
    gap: 9px;
}

.lock-premium-cta {
    order: -10;
    min-height: 54px;
    border: 1px solid rgba(255, 237, 176, 0.46);
    box-shadow:
        0 16px 34px rgba(220, 170, 70, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.lock-premium-cta img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    object-fit: contain;
    filter: drop-shadow(0 3px 7px rgba(117, 69, 0, 0.22));
}

.lock-coins-cta {
    min-height: 46px;
    color: #ffe6a8;
    border-color: rgba(255, 211, 106, 0.18);
    background: rgba(255, 211, 106, 0.07);
}

.vip-watch-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 88;
    min-height: 52px;
    border-radius: 20px;
    border: 1px solid rgba(255, 211, 106, 0.3);
    background: linear-gradient(135deg, rgba(255, 211, 106, 0.2), rgba(255, 75, 62, 0.18));
    color: #ffe9b7;
    font-size: 0.86rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.34);
}

.episode-end-overlay {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
}

.episode-end-overlay.open,
.modal.open {
    display: flex;
}

.episode-end-card,
.modal-card {
    width: min(100%, var(--watch-width));
    max-width: var(--watch-width);
    margin: 0 auto;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.98), rgba(10, 10, 15, 0.98));
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.42);
}

.episode-end-card {
    max-height: min(86vh, 720px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.premium-alert-card {
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 211, 106, 0.13), transparent 38%),
        linear-gradient(180deg, rgba(20, 20, 30, 0.99), rgba(9, 9, 15, 0.99));
}

.premium-alert-crown {
    display: block;
    width: 86px;
    height: 86px;
    object-fit: contain;
    margin: 0 auto 8px;
    filter: drop-shadow(0 12px 24px rgba(236, 165, 59, 0.28));
}

.premium-alert-title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
    background: linear-gradient(135deg, #fff5cf 0%, #ffd36a 48%, #f0a83f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.premium-alert-copy {
    margin: 8px auto 18px;
    max-width: 340px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.45;
}

.end-recommendations {
    margin: 14px -6px 14px;
}

.end-recommendations[hidden] {
    display: none;
}

.end-recommendations-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 0 6px 10px;
}

.end-recommendations-head strong {
    color: #fff;
    font-size: 0.96rem;
    line-height: 1.2;
}

.end-recommendations-head span {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    font-weight: 700;
}

.end-recommendations-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 0 6px 8px;
    scrollbar-width: none;
}

.end-recommendations-row::-webkit-scrollbar {
    display: none;
}

.end-recommendation-card {
    flex: 0 0 118px;
    min-width: 118px;
    color: #fff;
    scroll-snap-align: start;
}

.end-recommendation-card img {
    width: 118px;
    aspect-ratio: 3 / 4;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.end-recommendation-title,
.end-recommendation-meta {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.end-recommendation-title {
    margin-top: 7px;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.25;
    font-weight: 850;
}

.end-recommendation-meta {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
}

.telegram-invite {
    position: fixed;
    inset: 0;
    z-index: 155;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 16px calc(74px + env(safe-area-inset-bottom));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.telegram-invite.show {
    opacity: 1;
    pointer-events: auto;
}

.telegram-invite-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.54);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.telegram-invite-card {
    position: relative;
    width: min(100%, 390px);
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(160deg, rgba(18, 24, 32, 0.98), rgba(11, 12, 18, 0.99) 58%, rgba(18, 16, 18, 0.98));
    padding: 24px 20px 22px;
    text-align: center;
    box-shadow: 0 30px 82px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(61, 178, 255, 0.08) inset;
    transform: translateY(18px) scale(0.96);
    transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.22, 1.1);
}

.telegram-invite.show .telegram-invite-card {
    transform: translateY(0) scale(1);
}

.telegram-invite-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%);
    pointer-events: none;
}

.telegram-invite-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #c9efff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.telegram-invite-icon-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 18px auto 12px;
    border-radius: 26px;
    background: linear-gradient(145deg, #39b8ff, #1878bd);
    box-shadow: 0 18px 34px rgba(38, 169, 234, 0.34);
}

.telegram-invite-icon {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.telegram-invite h2 {
    position: relative;
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: 0;
}

.telegram-invite p {
    position: relative;
    margin: 10px auto 16px;
    max-width: 315px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.46;
}

.telegram-invite-perks {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.telegram-invite-perks span {
    min-height: 30px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
    font-weight: 800;
}

.telegram-invite-join,
.telegram-invite-later {
    position: relative;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
}

.telegram-invite-join {
    color: #06131c;
    background: linear-gradient(135deg, #6bd9ff, #ffde7a);
    box-shadow: 0 14px 26px rgba(51, 183, 241, 0.24);
}

.telegram-invite-later {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.07);
}

.telegram-invite-close {
    position: absolute;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(18, 20, 27, 0.86);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
    transform: translateX(-50%) translateY(10px) scale(0.92);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease, background 0.18s ease;
}

.telegram-invite.show .telegram-invite-close {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

.telegram-invite-later:active,
.telegram-invite-join:active {
    transform: scale(0.98);
}

.telegram-invite.show .telegram-invite-close:active {
    transform: translateX(-50%) translateY(0) scale(0.96);
}

.ui-confirm {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ui-confirm.open {
    display: flex;
}

.ui-confirm-card {
    width: min(100%, 430px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 211, 106, 0.13), transparent 36%),
        linear-gradient(180deg, rgba(24, 24, 34, 0.99), rgba(10, 10, 16, 0.99));
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.46);
    text-align: center;
}

.ui-confirm-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ffe4a5;
    background: rgba(255, 211, 106, 0.14);
}

.ui-confirm-icon.danger {
    color: #ff8a8a;
    background: rgba(255, 112, 112, 0.14);
}

.ui-confirm-card h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.ui-confirm-card p {
    margin: 10px auto 18px;
    max-width: 340px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.45;
}

.ui-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn.danger {
    color: #fff;
    background: linear-gradient(145deg, #ff6a6a, #d92735);
    box-shadow: 0 16px 30px rgba(217, 39, 53, 0.28);
}

.btn.danger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.delete-confirm-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: left;
}

.delete-confirm-check input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    accent-color: #ff4b3e;
}

.account-danger-panel {
    margin-top: 18px;
    padding: 22px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 112, 112, 0.18);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 112, 112, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(24, 20, 25, 0.98), rgba(10, 10, 16, 0.99));
    text-align: center;
}

.account-danger-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #ff8a8a;
    background: rgba(255, 112, 112, 0.14);
}

.account-danger-panel h2 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 0;
}

.account-danger-panel p {
    margin: 10px auto 18px;
    max-width: 360px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.account-danger-actions {
    display: grid;
    gap: 10px;
}

.streak-card {
    border-top: 2px solid rgba(255, 211, 106, 0.5);
    animation: streak-pop 0.45s ease;
}

.streak-bonus {
    margin: 10px 0 14px;
    color: #ffe8af;
    font-weight: 800;
}

@keyframes streak-pop {
    0% {
        transform: translateY(18px) scale(0.97);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: min(100%, var(--app-width));
    z-index: 91;
    max-height: 74dvh;
    overflow: auto;
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(16, 16, 23, 0.98), rgba(9, 9, 14, 0.98));
    transform: translate(-50%, 110%);
    transition: transform 0.24s ease;
    box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.38);
}

.sheet.open {
    transform: translate(-50%, 0);
}

.sheet-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sheet-item:last-child {
    border-bottom: 0;
}

.watch-episode-sheet {
    max-height: 84dvh;
    padding-top: 14px;
}

.watch-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.watch-sheet-series-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 12px;
}

.watch-sheet-series-card img {
    width: 62px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
}

.watch-sheet-series-copy strong {
    display: block;
    font-size: 0.96rem;
    line-height: 1.3;
}

.watch-sheet-series-copy .muted {
    margin: 6px 0 0;
    font-size: 0.78rem;
}

.watch-sheet-follow-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 800;
}

.watch-sheet-follow-btn.active {
    background: rgba(255, 75, 62, 0.22);
    border-color: rgba(255, 75, 62, 0.44);
    color: #ffd1cb;
}

.watch-sheet-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.watch-sheet-tab {
    min-height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #bfc6d1;
    font-size: 0.88rem;
    font-weight: 800;
}

.watch-sheet-tab.active {
    background: rgba(255, 75, 62, 0.2);
    border-color: rgba(255, 75, 62, 0.44);
    color: #ffd1cb;
}

.watch-sheet-pane {
    display: none;
}

.watch-sheet-pane.active {
    display: block;
}

.watch-sheet-pane p {
    margin: 0 0 10px;
    color: #d4d8e0;
    line-height: 1.52;
}

.watch-episode-ranges {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: 12px;
    scrollbar-width: none;
}

.watch-episode-ranges::-webkit-scrollbar {
    display: none;
}

.watch-episode-range {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: #c2c8d1;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.watch-episode-range.active {
    background: rgba(255, 75, 62, 0.2);
    border-color: rgba(255, 75, 62, 0.44);
    color: #ffd2cc;
}

.watch-episode-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.watch-episode-chip[hidden] {
    display: none !important;
}

.watch-episode-chip {
    position: relative;
    min-height: 58px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.07);
    color: #f2f5fa;
    font-size: 0.98rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.watch-episode-chip .app-icon {
    width: 0.86rem;
    height: 0.86rem;
}

.episode-lock-badge {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #fff4f2;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 218, 190, 0.45), transparent 34%),
        linear-gradient(145deg, #ff5a4a 0%, #a92b31 100%);
    border: 1px solid rgba(255, 132, 111, 0.58);
    box-shadow:
        0 8px 16px rgba(255, 75, 62, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.watch-episode-chip .episode-lock-badge .app-icon {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

.watch-episode-chip.active {
    border-color: rgba(255, 75, 62, 0.5);
    background: linear-gradient(135deg, rgba(255, 75, 62, 0.9), rgba(255, 90, 67, 0.82));
    color: #fff;
}

.watch-episode-chip.locked {
    color: #c7ccd4;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.035));
    border-color: rgba(255, 255, 255, 0.12);
}

.watch-for-you-head {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.watch-for-you-head h3 {
    margin: 0;
    font-size: 1rem;
}

.watch-for-you-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.watch-for-you-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.watch-for-you-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 11px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-for-you-media {
    min-width: 0;
}

.watch-for-you-media img {
    width: 92px;
    height: 126px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-for-you-copy {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 7px;
}

.watch-for-you-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.watch-for-you-title-row strong {
    min-width: 0;
    color: #fff;
    font-size: 0.96rem;
    line-height: 1.25;
}

.watch-for-you-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.watch-for-you-tags span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #d9dbe2;
    font-size: 0.68rem;
    font-weight: 700;
}

.watch-for-you-copy p {
    margin: 0;
    color: #c9cbd3;
    font-size: 0.76rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watch-start-series-btn,
.watch-for-you-cta {
    min-height: 38px;
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.watch-start-series-btn .app-icon,
.watch-for-you-cta .app-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.watch-start-series-btn {
    min-height: 36px;
    margin-top: 7px;
    padding: 0 13px;
    background: linear-gradient(135deg, var(--primary), #ff8a3d);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 24px rgba(255, 73, 97, 0.2);
    font-size: 0.78rem;
}

.watch-for-you-cta {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: 0.78rem;
}

.watch-start-series-btn span,
.watch-for-you-cta span {
    min-width: 0;
    line-height: 1.2;
}

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.48);
    transition: opacity 0.2s ease;
}

.sheet-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.ui-toast-stack {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px);
    z-index: 160;
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.ui-toast {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 14px 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.97), rgba(10, 10, 15, 0.98));
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
    pointer-events: auto;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.ui-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.ui-toast.success {
    border-color: rgba(56, 216, 158, 0.26);
}

.ui-toast.error {
    border-color: rgba(255, 125, 125, 0.24);
}

.ui-toast.info {
    border-color: rgba(255, 211, 106, 0.24);
}

.ui-toast-copy {
    min-width: 0;
}

.ui-toast-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
}

.ui-toast-text {
    margin: 5px 0 0;
    color: #d7d7de;
    font-size: 0.79rem;
    line-height: 1.45;
}

.ui-toast-close {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.push-prompt {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 16px);
    z-index: 175;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    max-width: 520px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 211, 106, 0.22);
    background: linear-gradient(180deg, rgba(22, 22, 30, 0.98), rgba(8, 8, 13, 0.99));
    color: #fff;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.44);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.push-prompt.show {
    transform: translateY(0);
    opacity: 1;
}

.push-prompt-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 211, 106, 0.14);
    color: #ffd36a;
}

.push-prompt-copy {
    min-width: 0;
}

.push-prompt-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 850;
}

.push-prompt-text {
    margin: 5px 0 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    line-height: 1.45;
}

.push-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.push-prompt-actions .btn {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.78rem;
}

.ui-loader {
    position: fixed;
    inset: 0;
    z-index: 245;
    display: grid;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    background: rgba(5, 5, 9, 0.68);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    opacity: 1;
    transition: opacity 0.16s ease;
}

.ui-loader[hidden] {
    display: none !important;
}

.app-shell.app-shell-navigating {
    pointer-events: none;
}

.is-standalone-pwa body {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.is-standalone-pwa {
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
}

.is-desktop-mode-mobile-pwa,
.is-desktop-mode-mobile-pwa body {
    width: 100vw;
    max-width: none;
    overflow-x: hidden;
}

.is-standalone-pwa input,
.is-standalone-pwa textarea,
.is-standalone-pwa [contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
}

.is-standalone-pwa .app-shell:not(.watch-shell) {
    height: 100dvh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(env(safe-area-inset-top) + 12px);
}

.is-standalone-pwa .app-shell.vip-shell {
    padding-top: 0;
}

.is-desktop-mode-mobile-pwa .app-shell,
.is-desktop-mode-mobile-pwa .bottom-nav {
    width: 100vw;
    max-width: none;
}

.is-desktop-mode-mobile-pwa .app-shell:not(.watch-shell) {
    margin: 0;
}

.is-desktop-mode-mobile-pwa .app-shell.watch-shell {
    width: 100vw;
    max-width: none;
}

.is-pwa-navigating .bottom-nav {
    pointer-events: none;
}

.is-pressing {
    transition-duration: 0.08s !important;
}

a.is-pressing,
button.is-pressing,
[role="button"].is-pressing {
    filter: brightness(1.08);
}

.pull-refresh {
    --pull-progress: 0;
    --pull-distance: 0px;
    --pull-y: 0px;
    --pull-scale: 0.9;
    --pull-rotation: 0deg;
    --pull-flare-scale: 0.78;
    --pull-flare-rotate: 0deg;
    --pull-glow-alpha: 0.10;
    position: fixed;
    top: calc(env(safe-area-inset-top) + 10px);
    left: 50%;
    z-index: 155;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    min-width: 160px;
    padding: 7px 15px 7px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 129, 73, 0.30);
    background:
        linear-gradient(135deg, rgba(255, 75, 62, 0.28), rgba(255, 145, 69, 0.18) 48%, rgba(255, 211, 106, 0.16)),
        rgba(13, 13, 18, 0.88);
    color: #fff;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.38),
        0 0 34px rgba(255, 83, 54, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-22px + var(--pull-y))) scale(var(--pull-scale));
    transition: opacity 0.16s ease, transform 0.18s var(--ease-out), border-color 0.16s ease, box-shadow 0.16s ease;
}

.pull-refresh.visible {
    opacity: 1;
}

.pull-refresh::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.pull-refresh-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    line-height: 1.12;
}

.pull-refresh strong {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.pull-refresh small {
    color: rgba(255, 236, 216, 0.70);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.pull-refresh.ready {
    color: #fff;
    border-color: rgba(255, 190, 92, 0.62);
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.42),
        0 0 42px rgba(255, 92, 47, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pull-refresh-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 211, 106, 0.24), transparent 54%),
        rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.pull-refresh-spinner {
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: #ff4b3e;
    border-right-color: #ffb052;
    transform: rotate(var(--pull-rotation));
    box-shadow: 0 0 16px rgba(255, 93, 54, var(--pull-glow-alpha));
}

.pull-refresh-flare {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #ffd36a;
    filter: drop-shadow(0 0 8px rgba(255, 128, 67, 0.50));
    transform: scale(var(--pull-flare-scale)) rotate(var(--pull-flare-rotate));
}

.pull-refresh-flare .app-icon {
    width: 15px;
    height: 15px;
}

.pull-refresh.refreshing .pull-refresh-spinner {
    animation: ui-spin 0.7s linear infinite;
}

.pull-refresh.refreshing .pull-refresh-flare {
    animation: pull-flare 0.86s ease-in-out infinite;
}

.is-pulling-refresh .app-shell:not(.watch-shell) {
    transform: none;
    transition: transform 0.18s var(--ease-out);
}

.is-pull-refreshing .app-shell:not(.watch-shell) {
    transition-duration: 0.28s;
}

@keyframes pull-flare {
    0%,
    100% {
        opacity: 0.82;
        transform: scale(0.88) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.08) rotate(18deg);
    }
}

.app-install-sheet {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: grid;
    align-items: end;
    pointer-events: none;
}

.app-install-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.44);
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.22s ease;
}

.app-install-panel {
    position: relative;
    width: min(100%, var(--app-width));
    margin: 0 auto;
    padding: 10px 16px calc(env(safe-area-inset-bottom) + 16px);
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-bottom: 0;
    background:
        linear-gradient(180deg, rgba(26, 26, 36, 0.98), rgba(8, 8, 13, 0.99));
    box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    transform: translateY(100%);
    transition: transform 0.32s var(--ease-spring);
    pointer-events: auto;
}

.app-install-sheet.show .app-install-scrim {
    opacity: 1;
}

.app-install-sheet.show .app-install-panel {
    transform: translateY(0);
}

.app-install-handle {
    display: block;
    width: 42px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.app-install-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 38px;
    gap: 12px;
    align-items: center;
}

.app-install-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.app-install-copy {
    min-width: 0;
}

.app-install-copy strong {
    display: block;
    font-size: 1rem;
    line-height: 1.18;
    font-weight: 850;
}

.app-install-copy span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
    line-height: 1.42;
}

.app-install-close {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.app-install-steps {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.app-install-step {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.8rem;
    font-weight: 700;
}

.app-install-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 16px;
}

.app-install-actions .btn {
    min-height: 44px;
    border-radius: 15px;
}

.ui-loader-card {
    position: relative;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: rgba(13, 13, 19, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 24px 58px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.ui-loader-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.ui-loader-copy strong {
    font-size: 0.92rem;
}

.ui-loader-copy span {
    color: var(--muted);
    font-size: 0.8rem;
}

.ui-loader-spinner {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background:
        conic-gradient(from 0deg,
            transparent 0deg 72deg,
            rgba(255, 255, 255, 0.16) 72deg 150deg,
            #ff4b3e 150deg 292deg,
            #ffd36a 292deg 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    filter: drop-shadow(0 0 14px rgba(255, 104, 72, 0.28));
    animation: ui-material-spin 0.82s linear infinite;
}

.ui-loader-progress {
    display: none;
}

.ui-loader-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #ffe29f, #ff8d55);
    animation: ui-progress 1s ease-in-out infinite;
}

@keyframes ui-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ui-material-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes ui-progress {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(240%);
    }
}

.vip-showcase {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    padding: 22px;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(5, 5, 9, 0.14), rgba(5, 5, 9, 0.84)),
        radial-gradient(circle at top right, rgba(255, 211, 106, 0.22), transparent 30%),
        linear-gradient(145deg, rgba(51, 27, 15, 0.96), rgba(18, 12, 13, 0.98));
    border: 1px solid rgba(255, 211, 106, 0.22);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.34);
}

.vip-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%);
    pointer-events: none;
}

.vip-showcase-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.vip-stat-strip,
.vip-benefit-grid {
    display: grid;
    gap: 10px;
}

.vip-stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vip-stat {
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
}

.vip-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vip-benefit {
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.vip-benefit strong {
    display: block;
    margin-top: 10px;
    font-size: 0.92rem;
}

.vip-benefit p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.42;
}

.app-shell.vip-shell {
    padding-bottom: calc(var(--nav-total-height) + 158px);
}

.vip-page-header {
    align-items: center;
}

.vip-page-header .brand-lockup {
    align-items: center;
    gap: 10px;
}

.vip-page-header .vip-title-icon {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    object-fit: contain;
    transform: translateY(1px);
    filter: drop-shadow(0 6px 9px rgba(0, 0, 0, 0.28));
}

.vip-page-header .vip-gradient-title {
    line-height: 1;
}

.vip-history-action {
    min-width: 42px;
    width: 42px;
    padding: 0;
    border-color: rgba(255, 211, 106, 0.18);
    background: rgba(255, 211, 106, 0.08);
    color: #ffe5a3;
}

.vip-history-action.icon-only-asset {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.vip-history-action .app-icon {
    width: 1.16rem;
    height: 1.16rem;
}

.vip-gradient-title {
    background: linear-gradient(135deg, #fff3c7 0%, #ffd36a 48%, #ff9c52 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vip-paywall-shell {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46)),
        radial-gradient(circle at 12% -10%, rgba(255, 211, 106, 0.38), transparent 34%),
        radial-gradient(circle at 92% -14%, rgba(255, 96, 61, 0.42), transparent 40%),
        linear-gradient(145deg, #5e1d0f 0%, #2f130e 48%, #140d11 100%);
    border: 1px solid rgba(255, 211, 106, 0.24);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.40);
}

.vip-paywall-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%);
}

.vip-paywall-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.vip-paywall-title {
    margin: 4px 0 0;
    font-size: clamp(1.16rem, 3.8vw, 1.46rem);
    line-height: 1.18;
    letter-spacing: 0;
}

.vip-paywall-sub {
    margin: 6px 0 0;
    color: #efd9a8;
    font-size: 0.82rem;
    line-height: 1.38;
}

.vip-paywall-art-stack {
    position: relative;
    width: min(128px, 34vw);
    height: 68px;
}

.vip-paywall-art {
    position: absolute;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.32));
}

.vip-paywall-art-main {
    right: 0;
    top: 50%;
    width: 128px;
    height: 62px;
    transform: translateY(-50%);
}

.vip-benefit-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 12px 0 0;
}

.vip-benefit-pill {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 58px;
    padding: 8px 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    color: #f7ecce;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
}

.vip-benefit-pill img,
.vip-benefit-pill .app-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    color: #ffe4a3;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.vip-benefit-pill img.is-wide {
    width: 36px;
    height: 18px;
}

.vip-plan-section {
    margin-top: 10px;
}

.vip-plan-book-heading {
    display: grid;
    gap: 3px;
    margin: 8px 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 211, 106, 0.13);
    background: rgba(255, 255, 255, 0.045);
}

.vip-plan-book-heading strong {
    color: #fff4d9;
    font-size: 0.95rem;
    line-height: 1.2;
}

.vip-plan-book-heading span {
    color: rgba(255, 231, 188, 0.72);
    font-size: 0.73rem;
    line-height: 1.35;
}

.vip-plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    padding: 0 0 8px;
    margin-bottom: 0;
}

.vip-plan-grid::-webkit-scrollbar {
    display: none;
}

.vip-plan-option {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 12px;
    min-height: 0;
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid rgba(255, 211, 106, 0.18);
    background:
        linear-gradient(180deg, rgba(53, 24, 14, 0.94), rgba(21, 12, 11, 0.98));
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.30);
    text-align: left;
    transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
}

.vip-plan-option:hover {
    background:
        linear-gradient(180deg, rgba(53, 24, 14, 0.94), rgba(21, 12, 11, 0.98));
}

.vip-plan-option:active {
    transform: scale(0.98);
    opacity: 1;
}

.vip-plan-option.is-selected {
    border-color: rgba(255, 228, 166, 0.9);
    box-shadow: 0 22px 46px rgba(255, 150, 74, 0.24);
    background:
        linear-gradient(180deg, rgba(109, 55, 25, 0.95), rgba(36, 18, 14, 0.98));
}

.vip-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffdd9f;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    grid-column: 2;
    grid-row: 1;
    max-width: 132px;
    justify-self: end;
    text-align: center;
    white-space: nowrap;
}

.vip-plan-badge img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.vip-plan-badge.is-popular {
    background: linear-gradient(145deg, #ff684f, #ff3f2e);
    color: #fff3df;
}

.vip-plan-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-top: 2px;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.32));
}

.vip-plan-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-plan-name {
    display: block;
    margin-top: 0;
    color: #efe1bf;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.16;
}

.vip-plan-price-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-plan-price {
    color: #fff7e5;
    font-size: 1.72rem;
    line-height: 1;
    letter-spacing: 0;
}

.vip-plan-meta {
    display: block;
    margin-top: 4px;
    color: #f2d8a2;
    font-size: 0.74rem;
    font-weight: 600;
}

.vip-plan-daily {
    flex: 0 0 auto;
    color: rgba(255, 231, 188, 0.74);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.vip-plan-features {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.vip-plan-features span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 244, 220, 0.86);
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.2;
}

.vip-plan-features .app-icon {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    color: #ffd36a;
}

.vip-native-checkout {
    position: fixed;
    left: 50%;
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);
    transform: translateX(-50%);
    z-index: 79;
    width: min(calc(100% - 18px), calc(var(--app-width) - 10px));
    padding: 10px 12px calc(9px + env(safe-area-inset-bottom) * 0.1);
    border-radius: 18px;
    border: 1px solid rgba(255, 224, 158, 0.24);
    background:
        linear-gradient(180deg, rgba(60, 24, 12, 0.98), rgba(26, 13, 11, 0.99));
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.vip-checkout-button {
    min-height: 48px;
    border-radius: 13px;
}

.vip-checkout-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.vip-checkout-note {
    margin: 7px 4px 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.7rem;
    text-align: center;
}

.billing-shell {
    padding-bottom: calc(var(--nav-total-height) + var(--nav-content-gap));
}

.billing-page-header {
    align-items: center;
}

.billing-header-sub {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.25;
}

.billing-summary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 211, 106, 0.22);
    background:
        radial-gradient(circle at 95% 4%, rgba(255, 211, 106, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(58, 26, 13, 0.98), rgba(14, 12, 18, 0.99));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.36);
}

.billing-summary-card h2 {
    margin: 12px 0 5px;
    color: #fff3cf;
    font-size: 1.42rem;
    letter-spacing: 0;
}

.billing-summary-card p {
    margin: 0;
    color: #d9c498;
    font-size: 0.82rem;
    line-height: 1.4;
}

.billing-summary-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.34));
}

.billing-subscription-card .section-head {
    margin-bottom: 12px;
}

.billing-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.billing-detail-grid div {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.billing-detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    margin-bottom: 5px;
}

.billing-detail-grid strong {
    display: block;
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.28;
}

.billing-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.billing-cancel-button {
    margin-top: 12px;
    border-color: rgba(255, 112, 112, 0.28);
    color: #ffb5b5;
}

.billing-list {
    display: grid;
    gap: 10px;
}

.billing-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(22, 22, 32, 0.94), rgba(11, 11, 18, 0.98));
    box-shadow: var(--shadow-xs);
}

.billing-row-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 211, 106, 0.10);
    color: #ffd981;
}

.billing-row-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.billing-row-icon .app-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.billing-row-main {
    min-width: 0;
}

.billing-row-main strong {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.billing-row-main span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.billing-row-amount {
    color: #ffe3a1;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.billing-row-amount.is-negative {
    color: #ffb0a8;
}

.table-wrap {
    overflow: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font-size: 0.83rem;
}

.table tr.is-deleted-user td {
    background: rgba(255, 75, 62, 0.08);
}

.table tr.is-deleted-user td:not(:last-child),
.table tr.is-deleted-user td:not(:last-child) * {
    color: #ff7a70;
    font-weight: 800;
}

.admin-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    min-height: 100dvh;
    padding: 14px;
    background: #000;
}

.admin-side {
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 211, 106, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(20, 20, 30, 0.98), rgba(12, 12, 19, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    position: sticky;
    top: 14px;
    height: calc(100dvh - 28px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-brand-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #ff9966, #ff5b43);
    color: #fff7e5;
    box-shadow: 0 14px 28px rgba(255, 91, 67, 0.22);
}

.admin-brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
}

.admin-material-icon {
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-family: "Material Symbols Rounded";
    font-size: 20px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    word-wrap: normal;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "liga";
    font-variation-settings:
        "FILL" 0,
        "wght" 500,
        "GRAD" 0,
        "opsz" 24;
}

.admin-brand-mark .admin-material-icon {
    font-size: 23px;
    font-variation-settings:
        "FILL" 1,
        "wght" 600,
        "GRAD" 0,
        "opsz" 24;
}

.section-kicker > .admin-material-icon {
    font-size: 1rem;
}

.admin-brand-card strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
}

.admin-brand-card p {
    margin: 4px 0 0;
    font-size: 0.74rem;
}

.admin-nav-section {
    display: grid;
    gap: 6px;
}

.admin-nav-section-bottom {
    margin-top: auto;
}

.admin-nav-caption {
    margin: 0 0 4px;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-nav-link {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 50px;
    padding: 8px 10px;
    color: #d5d5dd;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateX(1px);
}

.admin-nav-link.active {
    background: linear-gradient(135deg, rgba(255, 75, 62, 0.18), rgba(255, 211, 106, 0.1));
    border-color: rgba(255, 211, 106, 0.16);
    color: #fff;
    box-shadow: 0 14px 26px rgba(255, 75, 62, 0.12);
}

.admin-nav-link.active::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(255, 211, 106, 0.12);
}

.admin-nav-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
}

.admin-nav-link.active .admin-nav-icon {
    background: linear-gradient(180deg, rgba(255, 228, 168, 0.24), rgba(255, 95, 72, 0.2));
    border-color: rgba(255, 211, 106, 0.18);
    color: #fff2cd;
}

.admin-nav-link.active .admin-material-icon {
    font-variation-settings:
        "FILL" 1,
        "wght" 600,
        "GRAD" 0,
        "opsz" 24;
}

.admin-nav-text {
    font-size: 0.86rem;
    font-weight: 600;
}

.admin-nav-link-logout {
    color: #ffd2d2;
}

.admin-nav-link-logout .admin-nav-icon {
    color: #ffd2d2;
}

.admin-main {
    border-radius: 18px;
    background: #101018;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.kpi {
    border-radius: 16px;
    background: #171721;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
}

.admin-dashboard-kpis .kpi {
    position: relative;
    min-height: 122px;
    display: grid;
    align-content: start;
    gap: 6px;
    overflow: hidden;
}

.admin-dashboard-kpis .kpi-feature {
    background:
        radial-gradient(circle at top right, rgba(255, 211, 106, 0.16), transparent 36%),
        linear-gradient(135deg, rgba(255, 75, 62, 0.2), rgba(23, 23, 33, 0.98));
    border-color: rgba(255, 211, 106, 0.18);
}

.admin-dashboard-kpis .admin-monitor-kpi {
    background:
        linear-gradient(180deg, rgba(67, 215, 255, 0.08), rgba(23, 23, 33, 0.98));
    border-color: rgba(67, 215, 255, 0.16);
}

.admin-dashboard-kpis .admin-monitor-kpi.has-alert {
    background:
        linear-gradient(180deg, rgba(255, 75, 62, 0.1), rgba(23, 23, 33, 0.98));
    border-color: rgba(255, 75, 62, 0.2);
}

.admin-kpi-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: #fff0cb;
    background: rgba(255, 211, 106, 0.11);
    border: 1px solid rgba(255, 211, 106, 0.14);
}

.admin-kpi-icon .admin-material-icon {
    font-size: 21px;
    font-variation-settings:
        "FILL" 1,
        "wght" 600,
        "GRAD" 0,
        "opsz" 24;
}

.kpi strong {
    display: block;
    margin-top: 8px;
    font-size: 1.3rem;
}

.kpi small {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.45;
}

.admin-monitor-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
}

.admin-monitor-mini span,
.admin-monitor-path {
    min-width: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    line-height: 1.35;
}

.admin-monitor-mini span {
    padding: 6px 8px;
}

.admin-monitor-path {
    padding: 7px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: 14px;
    align-items: start;
}

.admin-status-pill {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-status-pill.is-approved,
.admin-status-pill.is-paid,
.admin-status-pill.is-completed,
.admin-status-pill.is-success {
    background: rgba(52, 212, 148, 0.12);
    border-color: rgba(52, 212, 148, 0.22);
    color: #b9ffe4;
}

.admin-status-pill.is-pending {
    background: rgba(255, 211, 106, 0.12);
    border-color: rgba(255, 211, 106, 0.2);
    color: #ffe4a1;
}

.admin-status-pill.is-rejected,
.admin-status-pill.is-canceled,
.admin-status-pill.is-failed {
    background: rgba(255, 112, 112, 0.12);
    border-color: rgba(255, 112, 112, 0.22);
    color: #ffc3c3;
}

.admin-sales-breakdown {
    display: grid;
    gap: 10px;
}

.admin-sales-breakdown div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-sales-breakdown .admin-kpi-icon {
    grid-row: span 3;
}

.admin-sales-breakdown p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-sales-breakdown strong {
    display: block;
    font-size: 1rem;
}

.admin-sales-breakdown small {
    color: var(--muted);
    font-size: 0.72rem;
}

.admin-ref-text {
    display: inline-block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.admin-visit-card {
    overflow: hidden;
}

.admin-visit-summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 30px;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.admin-visit-summary::-webkit-details-marker {
    display: none;
}

.admin-visit-summary::after {
    content: 'expand_more';
    display: grid;
    grid-column: 4;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted-strong);
    font-family: 'Material Symbols Rounded';
    font-size: 1.2rem;
    transition: transform 0.18s ease, background 0.18s ease;
}

.admin-visit-dropdown[open] .admin-visit-summary::after {
    transform: rotate(180deg);
    background: rgba(255, 211, 106, 0.13);
    color: #ffe3a1;
}

.admin-visit-summary strong {
    display: block;
    font-size: 1rem;
}

.admin-visit-summary small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.4;
}

.admin-visit-summary .tag {
    justify-self: end;
}

.admin-visit-empty {
    margin: 16px 0 0;
}

.admin-visit-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-top: 16px;
}

.admin-visit-filter .admin-field {
    min-width: 220px;
    max-width: 340px;
    flex: 1;
}

.admin-visit-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.admin-visit-metrics div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-visit-metrics span {
    display: block;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 700;
}

.admin-visit-metrics strong {
    display: block;
    margin-top: 6px;
    font-size: 1.1rem;
}

.admin-visit-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
    margin-top: 18px;
}

.admin-sales-filter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (min-width: 981px) {
    .admin-sales-filter-grid .admin-date-field {
        grid-column: span 3;
    }

    .admin-sales-filter-grid .admin-field:not(.admin-date-field):not(.admin-field-wide) {
        grid-column: span 2;
    }
}

.admin-date-field {
    position: relative;
}

.admin-date-input-wrap {
    position: relative;
    display: block;
    width: 100%;
    color: var(--text);
}

.admin-date-field input[type="date"],
.admin-date-field input[type="datetime-local"] {
    min-height: 58px;
    padding: 16px 58px 16px 48px;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.105);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
        rgba(19, 19, 28, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    font-size: 0.96rem;
    font-weight: 650;
    letter-spacing: 0;
}

.admin-date-field input[type="date"]:hover,
.admin-date-field input[type="datetime-local"]:hover {
    border-color: rgba(255, 211, 106, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 211, 106, 0.075), rgba(255, 255, 255, 0.035)),
        rgba(21, 21, 31, 0.98);
}

.admin-date-field input[type="date"]:focus,
.admin-date-field input[type="datetime-local"]:focus {
    border-color: rgba(255, 211, 106, 0.46);
    box-shadow:
        0 0 0 3px rgba(255, 211, 106, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.admin-date-field input[type="date"]::-webkit-calendar-picker-indicator,
.admin-date-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.admin-date-field .admin-date-field-icon,
.admin-date-field .admin-date-field-picker-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    font-size: 20px;
    line-height: 1;
    font-variation-settings:
        "FILL" 1,
        "wght" 600,
        "GRAD" 0,
        "opsz" 24;
}

.admin-date-field .admin-date-field-icon {
    left: 16px;
    color: #ffdf95;
}

.admin-date-field .admin-date-field-picker-icon {
    right: 15px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-settings-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
    gap: 14px;
    align-items: stretch;
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 211, 106, 0.11), transparent 42%),
        linear-gradient(180deg, rgba(23, 23, 33, 0.96), rgba(13, 13, 20, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.admin-settings-hero h2 {
    margin: 8px 0 0;
    font-size: clamp(1.3rem, 2.1vw, 2rem);
    line-height: 1.12;
}

.admin-settings-hero p {
    max-width: 680px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.admin-settings-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: center;
}

.admin-settings-status {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-settings-status.is-on {
    border-color: rgba(52, 212, 148, 0.22);
    background: rgba(52, 212, 148, 0.10);
    color: #c9ffe9;
}

.admin-settings-status.is-off {
    border-color: rgba(255, 112, 112, 0.20);
    background: rgba(255, 112, 112, 0.09);
    color: #ffd0d0;
}

.admin-settings-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.admin-settings-group {
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(22, 22, 32, 0.95), rgba(12, 12, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: var(--shadow-soft);
}

.admin-settings-group-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 15px;
}

.admin-settings-group-head > .admin-material-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 211, 106, 0.12);
    border: 1px solid rgba(255, 211, 106, 0.20);
    color: #ffdf95;
    font-size: 22px;
    font-variation-settings:
        "FILL" 1,
        "wght" 650,
        "GRAD" 0,
        "opsz" 24;
}

.admin-settings-group-head h3 {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.25;
}

.admin-settings-group-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.admin-settings-grid .admin-field {
    min-width: 0;
}

.admin-settings-grid .admin-field > span:first-child {
    color: #d7d7df;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.admin-settings-grid input,
.admin-settings-grid select,
.admin-settings-grid textarea {
    min-height: 52px;
}

.admin-settings-grid input[readonly] {
    opacity: 0.58;
    cursor: not-allowed;
}

.admin-settings-grid .admin-date-field input[type="date"],
.admin-settings-grid .admin-date-field input[type="datetime-local"] {
    min-height: 52px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.admin-field-checkbox {
    justify-content: start;
}

.admin-check-row {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f2f2f7;
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-check-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    accent-color: var(--primary);
}

.admin-settings-note {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 13px;
    border-radius: 15px;
    background: rgba(255, 211, 106, 0.08);
    border: 1px solid rgba(255, 211, 106, 0.15);
    color: #ffe6ab;
    font-size: 0.8rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.admin-settings-note .admin-material-icon {
    color: #ffdf95;
}

.admin-settings-savebar {
    position: sticky;
    bottom: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(14, 14, 21, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
}

.admin-settings-savebar strong,
.admin-settings-savebar span {
    display: block;
}

.admin-settings-savebar strong {
    font-size: 0.9rem;
}

.admin-settings-savebar span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.76rem;
}

.admin-settings-savebar .btn.primary .admin-material-icon {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    font-variation-settings:
        "FILL" 1,
        "wght" 700,
        "GRAD" 0,
        "opsz" 24;
}

.admin-settings-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.admin-settings-key-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-settings-key-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.52fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.065);
}

.admin-settings-key-row strong {
    color: var(--muted-strong);
    font-size: 0.75rem;
    font-weight: 800;
}

.admin-settings-key-row span {
    min-width: 0;
    color: var(--text);
    font-size: 0.77rem;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.admin-overview-card {
    padding: 15px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(23, 23, 33, 0.96), rgba(13, 13, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.admin-overview-label {
    display: inline-block;
    color: var(--muted);
    font-size: 0.73rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-overview-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.32rem;
    font-weight: 700;
}

.admin-overview-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.admin-toolbar-card,
.admin-editor-card,
.admin-side-card,
.admin-series-item {
    border-radius: 22px;
}

.admin-toolbar-card,
.admin-editor-card,
.admin-side-card {
    overflow: visible;
}

.admin-filter-grid,
.admin-form-grid {
    display: grid;
    gap: 12px;
}

.admin-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-field {
    display: grid;
    gap: 7px;
}

.admin-field span {
    color: var(--muted-strong);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.admin-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.admin-select {
    position: relative;
    width: 100%;
    z-index: 1;
}

.admin-select.is-open {
    z-index: 80;
}

.admin-select-button {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(33, 33, 45, 0.98), rgba(20, 20, 29, 0.98)),
        rgba(255, 255, 255, 0.05);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    cursor: pointer;
    text-align: left;
    transition: border-color var(--dur-normal) ease, background var(--dur-normal) ease, box-shadow var(--dur-normal) ease, transform var(--dur-fast) ease;
}

.admin-select-button:hover {
    border-color: rgba(255, 211, 106, 0.25);
    background:
        linear-gradient(180deg, rgba(39, 39, 52, 0.98), rgba(22, 22, 31, 0.98)),
        rgba(255, 255, 255, 0.06);
}

.admin-select-button:focus-visible,
.admin-select.is-open .admin-select-button {
    border-color: rgba(255, 211, 106, 0.44);
    box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    outline: none;
}

.admin-select.is-disabled .admin-select-button {
    cursor: not-allowed;
    opacity: 0.55;
}

.admin-select-value {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-select-chevron {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.35rem;
    letter-spacing: 0;
    line-height: 1;
    transition: transform var(--dur-fast) ease, color var(--dur-fast) ease;
}

.admin-select.is-open .admin-select-chevron {
    color: var(--gold);
    transform: rotate(180deg);
}

.admin-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(280px, 52vh);
    padding: 6px;
    overflow: auto;
    border: 1px solid rgba(255, 211, 106, 0.28);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(30, 30, 41, 0.99), rgba(15, 15, 23, 0.99));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.045) inset;
}

.admin-select-menu[hidden] {
    display: none;
}

.admin-select-menu::-webkit-scrollbar {
    width: 8px;
}

.admin-select-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.admin-select-option {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-select-option:hover,
.admin-select-option.is-active {
    background: rgba(255, 211, 106, 0.12);
    color: #fff7dc;
}

.admin-select-option.is-selected {
    background: linear-gradient(135deg, rgba(255, 211, 106, 0.22), rgba(255, 75, 62, 0.10));
    color: #fff6d8;
}

.admin-select-option.is-disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.36);
}

.admin-select-option.is-selected::after {
    content: "check";
    flex: 0 0 auto;
    color: var(--gold);
    font-family: "Material Symbols Rounded";
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1;
}

.admin-filter-actions,
.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.admin-series-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.85fr);
    gap: 14px;
    align-items: start;
    margin-top: 16px;
}

.admin-series-form {
    display: grid;
    gap: 14px;
}

.admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-field-full,
.admin-field-wide {
    grid-column: 1 / -1;
}

.admin-form-note {
    margin: 6px 0 0;
    font-size: 0.8rem;
}

.admin-video-upload-status {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.admin-video-upload-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-size: 0.82rem;
}

.admin-video-upload-row strong {
    font-size: 0.82rem;
}

.admin-video-upload-track {
    width: 100%;
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.admin-video-upload-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #ffd36a);
    transition: width 0.2s ease;
}

.admin-form-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 16px;
}

.admin-form-summary div {
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-form-summary span,
.admin-field small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.admin-form-summary strong {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    line-height: 1.25;
}

.admin-episode-builder {
    display: grid;
    gap: 14px;
}

.admin-form-block {
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-form-block-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    margin-bottom: 14px;
}

.admin-form-block-head h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.25;
}

.admin-form-block-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.admin-step-badge {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 75, 62, 0.16);
    border: 1px solid rgba(255, 75, 62, 0.28);
    color: #ffcac4;
    font-weight: 800;
    font-size: 0.84rem;
}

.admin-file-field input[type="file"] {
    width: 100%;
    min-height: 56px;
    padding: 9px 12px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.035);
    color: var(--muted-strong);
    font-size: 0.82rem;
    cursor: pointer;
}

.admin-file-field input[type="file"]::file-selector-button {
    min-height: 36px;
    margin-right: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #ff8a3d);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 75, 62, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.admin-file-field input[type="file"]:hover {
    border-color: rgba(255, 75, 62, 0.32);
    background:
        linear-gradient(180deg, rgba(255, 75, 62, 0.085), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.04);
}

.admin-file-field input[type="file"]:hover::file-selector-button {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 12px 24px rgba(255, 75, 62, 0.24);
}

.admin-file-field input[type="file"]:focus-visible {
    outline: 2px solid rgba(255, 75, 62, 0.5);
    outline-offset: 2px;
}

.admin-upload-field {
    min-width: 0;
}

.admin-upload-control {
    position: relative;
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.admin-upload-control:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 75, 62, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 75, 62, 0.09), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.045);
}

.admin-upload-control input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.admin-upload-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.admin-upload-copy strong {
    color: #fff;
    font-size: 0.86rem;
    line-height: 1.2;
}

.admin-upload-copy small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.admin-upload-name {
    max-width: 190px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #ff8a3d);
    color: #fff !important;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 10px 20px rgba(255, 75, 62, 0.18);
}

.admin-upload-control:focus-within {
    outline: 2px solid rgba(255, 75, 62, 0.5);
    outline-offset: 2px;
}

.admin-decision-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.admin-option-card {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.065);
}

.admin-option-card.is-active {
    background: rgba(255, 211, 106, 0.08);
    border-color: rgba(255, 211, 106, 0.22);
}

.admin-option-card span {
    display: block;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
}

.admin-option-card strong {
    display: block;
    margin-top: 5px;
    font-size: 0.82rem;
    line-height: 1.32;
}

.admin-option-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.admin-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.admin-preview-meta span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.065);
    color: var(--muted-strong);
    font-size: 0.68rem;
    font-weight: 700;
}

.admin-step-list {
    counter-reset: admin-step;
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-step-list li {
    counter-increment: admin-step;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-step-list li::before {
    content: counter(admin-step);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted-strong);
    font-size: 0.74rem;
    font-weight: 800;
}

.admin-step-list span {
    color: var(--muted-strong);
    font-size: 0.78rem;
    line-height: 1.45;
}

.admin-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.admin-check-chip {
    position: relative;
    display: inline-flex;
}

.admin-check-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-check-chip span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #d8d8e0;
    font-size: 0.76rem;
    transition: all 0.18s ease;
}

.admin-check-chip input:checked + span {
    background: rgba(255, 75, 62, 0.16);
    border-color: rgba(255, 75, 62, 0.28);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 75, 62, 0.14);
}

.admin-series-side {
    display: grid;
    gap: 14px;
}

.admin-poster-preview {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.admin-poster-preview img {
    width: 86px;
    height: 122px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.admin-poster-copy strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
}

.admin-poster-copy p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.admin-compact-form {
    display: grid;
    gap: 12px;
}

.admin-series-list {
    display: grid;
    gap: 12px;
}

.admin-series-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(19, 19, 28, 0.98), rgba(11, 11, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.admin-series-media img {
    width: 92px;
    height: 128px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.admin-series-body {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.admin-series-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-series-heading {
    min-width: 0;
}

.admin-series-heading strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.admin-series-tags,
.admin-series-chip-row,
.admin-series-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-series-slug {
    margin: -2px 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.74rem;
}

.admin-series-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.79rem;
    line-height: 1.52;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-series-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-series-metrics div {
    padding: 10px 11px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-series-metrics span {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
}

.admin-series-metrics strong {
    display: block;
    margin-top: 5px;
    font-size: 0.88rem;
    font-weight: 700;
}

.admin-danger-btn {
    background: rgba(255, 125, 125, 0.1);
    color: #ffcccc;
    border: 1px solid rgba(255, 125, 125, 0.16);
}

.admin-upload-note {
    display: grid;
    gap: 10px;
}

.admin-upload-note div {
    padding: 11px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-upload-note span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
}

.admin-upload-note strong {
    display: block;
    margin-top: 5px;
    font-size: 0.86rem;
    font-weight: 700;
}

.admin-episode-list {
    display: grid;
    gap: 12px;
}

.admin-episode-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(19, 19, 28, 0.98), rgba(11, 11, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.admin-episode-media img {
    width: 112px;
    height: 148px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.admin-episode-body {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.admin-episode-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-episode-heading strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
}

.admin-episode-heading p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
}

.admin-episode-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
    word-break: break-word;
}

.admin-episode-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-episode-metrics div {
    padding: 10px 11px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-episode-metrics span {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
}

.admin-episode-metrics strong {
    display: block;
    margin-top: 5px;
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 980px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-side {
        position: static;
        height: auto;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-overview-grid,
    .admin-filter-grid,
    .admin-sales-filter-grid,
    .admin-form-grid,
    .admin-form-summary,
    .admin-decision-grid,
    .admin-series-metrics,
    .admin-episode-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-series-layout,
    .admin-dashboard-grid,
    .admin-visit-grid {
        grid-template-columns: 1fr;
    }

    .admin-settings-hero,
    .admin-settings-grid,
    .admin-settings-key-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .split,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .seriesx-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .watch-content {
        right: 82px;
        max-width: none;
    }

    .watch-for-you-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .watch-for-you-media img {
        width: 82px;
        height: 116px;
    }

    .poster-title {
        font-size: 0.92rem;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .admin-overview-grid,
    .admin-filter-grid,
    .admin-sales-filter-grid,
    .admin-form-grid,
    .admin-settings-status-grid,
    .admin-form-summary,
    .admin-visit-metrics,
    .admin-decision-grid,
    .admin-series-metrics,
    .admin-episode-metrics {
        grid-template-columns: 1fr;
    }

    .admin-visit-summary {
        grid-template-columns: 42px minmax(0, 1fr) 30px;
    }

    .admin-visit-summary .tag {
        grid-column: 2 / 3;
        grid-row: 2;
        justify-self: start;
        width: fit-content;
    }

    .admin-visit-summary::after {
        grid-column: 3;
        grid-row: 1;
    }

    .admin-series-item {
        grid-template-columns: 1fr;
    }

    .admin-upload-control {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-upload-name {
        max-width: none;
        width: 100%;
    }

    .admin-episode-item {
        grid-template-columns: 1fr;
    }

    .admin-settings-hero,
    .admin-settings-group {
        padding: 14px;
        border-radius: 18px;
    }

    .admin-settings-group-head {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .admin-settings-group-head > .admin-material-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .admin-settings-savebar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-settings-savebar .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-settings-key-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .admin-settings-key-row span {
        text-align: left;
    }

    .admin-series-media img {
        width: 100%;
        height: 220px;
    }

    .admin-episode-media img {
        width: 100%;
        height: 220px;
    }

    .admin-series-top {
        flex-direction: column;
    }

    .admin-episode-top {
        flex-direction: column;
    }

    .admin-filter-actions {
        justify-content: stretch;
    }

    .admin-filter-actions .btn,
    .admin-form-actions .btn,
    .admin-series-actions .btn,
    .admin-series-actions form,
    .admin-series-actions form .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .task-item,
    .simple-row {
        flex-direction: column;
        align-items: stretch;
    }

    .task-item .btn,
    .simple-row .tag {
        width: 100%;
    }

    .rank-row {
        grid-template-columns: 44px 68px minmax(0, 1fr);
    }

    .rank-row .tag {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .media-thumb {
        width: 68px;
        height: 94px;
        flex-basis: 68px;
    }

    .episode-card {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .episode-thumb {
        width: 62px;
        height: 86px;
    }

    .episode-state {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 0;
    }

    .seriesx-episode-link {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .seriesx-episode-thumb {
        width: 74px;
        height: 102px;
    }

    .seriesx-episode-cta {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .vip-stat-strip,
    .vip-benefit-grid {
        grid-template-columns: 1fr;
    }

    .vip-paywall-top {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .vip-paywall-art {
        justify-self: end;
    }

    .vip-paywall-art-stack {
        width: min(112px, 32vw);
        height: 60px;
    }

    .vip-paywall-art-main {
        width: 112px;
        height: 54px;
    }

    .vip-plan-grid {
        grid-template-columns: 1fr;
    }

    .vip-native-checkout {
        width: min(calc(100% - 14px), calc(var(--app-width) - 6px));
        bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 6px);
        border-radius: 21px;
        padding-inline: 12px;
    }
}

@media (max-width: 430px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bottom-nav a span:last-child {
        font-size: 0.56rem;
    }

    .watch-topbar {
        width: calc(100% - 20px);
    }

    .watch-urgency {
        top: calc(env(safe-area-inset-top) + 58px);
    }

    .watch-free-banner {
        top: calc(env(safe-area-inset-top) + 108px);
    }

    .app-shell.vip-shell {
        padding-bottom: calc(var(--nav-total-height) + 158px);
    }

    .vip-plan-grid {
        grid-template-columns: 1fr;
    }

    .vip-plan-option {
        padding: 12px;
    }

    .vip-plan-price {
        font-size: 1.56rem;
    }

    .vip-benefit-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vip-benefit-pill {
        min-height: 58px;
        grid-template-columns: 42px minmax(0, 1fr);
        justify-items: start;
        text-align: left;
        padding: 9px 10px;
        font-size: 0.74rem;
    }

    .vip-plan-badge {
        max-width: 118px;
        padding-inline: 8px;
        font-size: 0.6rem;
    }

    .vip-plan-features {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .vip-plan-features span {
        min-height: 32px;
        font-size: 0.7rem;
    }
}

/* =====================================================
   NATIVE APP ENHANCEMENTS
   ===================================================== */

/* Smooth scrolling & overscroll native feel */
html {
    scroll-behavior: smooth;
}

* {
    -webkit-overflow-scrolling: touch;
}

/* Poster card spring interactions */
.poster-card {
    transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) ease;
    will-change: transform;
}

.poster-card:active {
    transform: scale(0.94);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Continue card interactions */
.continue-card {
    transition: transform var(--dur-fast) var(--ease-spring);
}

.continue-card:active {
    transform: scale(0.97);
}

/* Episode card interactions */
.episode-card,
.seriesx-episode-card,
.media-row {
    transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) ease;
}

.episode-card:active,
.seriesx-episode-card:active,
.media-row:active {
    transform: scale(0.98);
}

/* Profile hero redesign */
.profile-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 0;
    background: linear-gradient(180deg,
        rgba(38, 22, 48, 0.90),
        rgba(14, 10, 22, 0.96));
    border: 1px solid rgba(160, 100, 220, 0.18);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(160, 80, 220, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 100%, rgba(255, 75, 62, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.profile-head {
    position: relative;
    z-index: 1;
    padding: 22px 20px 8px;
    gap: 16px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

/* Profile avatar ring for VIP */
.vip-avatar-ring .profile-avatar {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 211, 106, 0.20), 0 12px 32px rgba(0, 0, 0, 0.42);
}

.metric-grid {
    position: relative;
    z-index: 1;
    padding: 12px 16px 18px;
    gap: 8px;
}

.metric-card {
    padding: 14px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform var(--dur-fast) var(--ease-spring);
}

.metric-card:active {
    transform: scale(0.96);
}

.metric-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

/* Settings-style list rows (iOS feel) */
.settings-group {
    border-radius: 20px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row:active {
    background: rgba(255, 255, 255, 0.04);
}

.settings-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    font-size: 1rem;
}

.settings-row-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.settings-row-label strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-row-label span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
}

.settings-row-chevron {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.8rem;
}

/* Hero banner improvements */
.hero-banner {
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.52);
    border-color: rgba(255, 255, 255, 0.07);
}

/* VIP funnel bar modernization */
.vip-funnel-bar {
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg,
        rgba(255, 211, 106, 0.26),
        rgba(255, 75, 62, 0.18));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
    transition: transform var(--dur-fast) var(--ease-spring), opacity var(--dur-fast) ease;
}

.vip-funnel-bar:active {
    transform: scale(0.97);
}

/* Floating reward button improvement */
.floating-reward {
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(255, 75, 62, 0.36);
    transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) ease;
}

.floating-reward:active {
    transform: scale(0.95);
    box-shadow: 0 6px 18px rgba(255, 75, 62, 0.28);
}

/* Shimmer loading skeleton */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton {
    border-radius: 12px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.055) 25%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.055) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.05s ease-in-out infinite;
}

/* Card hover improvements (desktop) */
@media (hover: hover) {
    .poster-card:hover {
        transform: scale(1.02);
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48);
    }

    .continue-card:hover {
        transform: scale(1.01);
    }

    .vip-funnel-bar:hover {
        opacity: 1;
    }
}

/* Improved section panel */
.section-panel {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(16, 16, 24, 0.96), rgba(9, 9, 15, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
}

/* Modal drag handle */
.modal-card,
.episode-end-card {
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

.modal-card::before,
.episode-end-card::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    margin: 0 auto 18px;
}

/* Better toast notifications */
.ui-toast {
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Support center */
.support-shell {
    padding-bottom: calc(var(--nav-total-height) + var(--nav-content-gap));
}

.support-shell.support-chat-page {
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: calc(var(--nav-total-height) + 18px);
}

.support-page-header {
    align-items: center;
    margin: 0;
    padding: 6px 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.support-page-header .header-action {
    width: auto;
    min-width: 42px;
    height: 42px;
    border-radius: 15px;
    box-shadow: none;
}

.support-header-tickets {
    gap: 7px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.support-header-tickets .app-icon {
    width: 17px;
    height: 17px;
}

.support-header-tickets span {
    display: inline-block;
}

.support-bg-panel {
    margin: 0 0 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.support-bg-panel .page-title {
    font-size: 1rem;
    font-weight: 720;
}

.support-start,
.support-chat-shell,
.support-ticket-list-page {
    display: grid;
    gap: 12px;
}

.support-start-agent {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(22, 22, 32, 0.94), rgba(12, 12, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xs);
}

.support-agent-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    object-fit: cover;
    object-position: center;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(52, 212, 148, 0.42), rgba(94, 168, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #eafff7;
    font-size: 1rem;
    font-weight: 760;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.support-agent-avatar.is-mini {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 0.95rem;
}

.support-start-agent h2 {
    margin: 7px 0 0;
    font-size: 0.96rem;
    font-weight: 680;
    letter-spacing: 0;
}

.support-form-compact {
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.96), rgba(11, 11, 18, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.support-chat-shell {
    height: calc(100svh - var(--nav-height) - 112px);
    min-height: 0;
    overflow: hidden;
    gap: 10px;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.support-chat-page .support-chat-shell {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

.support-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(22, 22, 32, 0.96), rgba(12, 12, 20, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xs);
}

.support-agent-mini {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}

.support-agent-mini strong,
.support-agent-mini span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-agent-mini strong {
    font-size: 0.84rem;
    font-weight: 680;
}

.support-agent-mini span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.7rem;
}

.support-chat-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.support-new-mini {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 760;
}

.support-status-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 760;
}

.support-status-pill.is-open {
    background: rgba(255, 211, 106, 0.14);
    color: #ffe6a8;
}

.support-status-pill.is-reviewing {
    background: rgba(94, 168, 255, 0.14);
    color: #cfe5ff;
}

.support-status-pill.is-answered {
    background: rgba(52, 212, 148, 0.14);
    color: #c9ffe9;
}

.support-status-pill.is-closed {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
}

.support-thread {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.support-ticket-topic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding: 9px 11px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.support-ticket-topic > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-ticket-topic strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 680;
}

.support-ticket-topic span {
    color: var(--muted);
    font-size: 0.7rem;
    flex: 0 0 auto;
}

.support-topic-close {
    flex: 0 0 auto;
}

.support-topic-close button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 59, 48, 0.24);
    border-radius: 999px;
    background: rgba(255, 59, 48, 0.14);
    color: #ffc9c9;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 720;
    cursor: pointer;
}

.support-topic-close .app-icon {
    width: 14px;
    height: 14px;
}

.support-chat-shell .support-messages {
    max-height: none;
    min-height: 0;
    height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding: 12px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.06);
    align-content: end;
}

.support-chat-composer {
    display: grid;
    gap: 0;
    padding: 8px;
    border-radius: 18px;
    background: rgba(15, 15, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xs);
}

.support-reply-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.support-reply-form textarea {
    min-height: 46px;
    max-height: 96px;
    resize: none;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    padding: 12px 13px;
    font: inherit;
    line-height: 1.4;
    outline: none;
}

.support-reply-form .btn {
    min-height: 46px;
    border-radius: 15px;
    padding: 0 18px;
}

.support-locked-note {
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(255, 211, 106, 0.10);
    border: 1px solid rgba(255, 211, 106, 0.15);
    color: #ffe7ad;
    font-size: 0.78rem;
    font-weight: 680;
    line-height: 1.4;
}

.support-ticket-list-page {
    padding-bottom: 12px;
}

.support-ticket-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(22, 22, 32, 0.96), rgba(12, 12, 20, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.support-ticket-list-row div {
    min-width: 0;
}

.support-ticket-list-row strong,
.support-ticket-list-row span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-ticket-list-row strong {
    font-size: 0.88rem;
}

.support-ticket-list-row span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
}

.support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 14px;
    align-items: stretch;
    min-height: 178px;
    margin: 12px 0 16px;
    overflow: hidden;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(52, 212, 148, 0.16), rgba(255, 211, 106, 0.07) 48%, rgba(255, 75, 62, 0.12)),
        linear-gradient(180deg, rgba(24, 24, 34, 0.98), rgba(12, 12, 20, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-soft);
}

.support-hero-copy {
    min-width: 0;
    padding: 18px 0 18px 18px;
}

.support-live-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(52, 212, 148, 0.13);
    color: #c8ffe8;
    border: 1px solid rgba(52, 212, 148, 0.24);
    font-size: 0.72rem;
    font-weight: 700;
}

.support-live-chip span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d494;
    box-shadow: 0 0 0 5px rgba(52, 212, 148, 0.12);
}

.support-hero h2 {
    margin: 12px 0 0;
    max-width: 330px;
    font-size: 1.36rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.support-hero p {
    margin: 10px 0 0;
    max-width: 360px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    line-height: 1.5;
}

.support-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.support-layout {
    display: grid;
    gap: 14px;
}

.support-panel {
    border-radius: 24px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.96), rgba(11, 11, 18, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.support-panel-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.support-panel-head h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0;
}

.support-panel-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.support-panel-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.support-form,
.admin-support-reply {
    display: grid;
    gap: 12px;
}

.support-form label,
.admin-support-reply label {
    display: grid;
    gap: 7px;
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.support-form input,
.support-form select,
.support-form textarea,
.admin-support-reply textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    padding: 13px 14px;
    font: inherit;
    letter-spacing: 0;
    outline: none;
}

.support-form textarea,
.admin-support-reply textarea {
    min-height: 122px;
    resize: vertical;
    line-height: 1.5;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus,
.admin-support-reply textarea:focus {
    border-color: rgba(255, 211, 106, 0.46);
    box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.08);
}

.support-submit {
    min-height: 50px;
}

.support-ticket-tabs {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.support-ticket-tabs a,
.admin-support-ticket-list a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 17px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
    text-decoration: none;
}

.admin-support-ticket-list a {
    align-content: start;
    min-height: 88px;
    padding: 11px;
}

.admin-support-ticket-list .admin-status-pill {
    width: fit-content;
    justify-self: start;
}

.support-ticket-tabs a.active,
.admin-support-ticket-list a.active {
    border-color: rgba(255, 211, 106, 0.30);
    background: rgba(255, 211, 106, 0.08);
}

.support-ticket-tabs strong,
.admin-support-ticket-list strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
}

.support-ticket-tabs span,
.admin-support-ticket-list small {
    color: var(--muted);
    font-size: 0.73rem;
}

.support-thread-status {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 13px;
    margin-bottom: 12px;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
}

.support-thread-status > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.support-thread-status span:first-child {
    color: #c8ffe8;
    font-size: 0.72rem;
    font-weight: 900;
}

.support-thread-status strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.support-thread-status small {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.support-thread-status.is-answered {
    border-color: rgba(52, 212, 148, 0.24);
    background: rgba(52, 212, 148, 0.08);
}

.support-eta {
    flex: 0 0 auto;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
}

.support-messages,
.admin-support-messages {
    display: grid;
    gap: 10px;
}

.support-message {
    width: min(86%, 560px);
    display: grid;
    gap: 5px;
    padding: 11px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.support-message.is-user {
    justify-self: end;
    background: rgba(255, 75, 62, 0.14);
    border-color: rgba(255, 75, 62, 0.20);
}

.support-message.is-admin {
    justify-self: start;
    background: rgba(52, 212, 148, 0.11);
    border-color: rgba(52, 212, 148, 0.20);
}

.support-message.is-system {
    width: 100%;
    justify-self: center;
    background: rgba(255, 211, 106, 0.10);
    border-color: rgba(255, 211, 106, 0.16);
}

.support-message-author {
    color: var(--muted-strong);
    font-size: 0.7rem;
    font-weight: 650;
}

.support-message p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.86rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.support-message time {
    color: var(--muted);
    font-size: 0.68rem;
}

.support-empty {
    display: grid;
    gap: 5px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted);
}

.support-empty strong {
    color: #fff;
}

.admin-support-title-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-support-stat-chip {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px 4px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.admin-support-stat-chip .admin-material-icon {
    font-size: 0.95rem;
    font-variation-settings:
        "FILL" 1,
        "wght" 600,
        "GRAD" 0,
        "opsz" 20;
}

.admin-support-stat-chip strong {
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.admin-support-stat-chip.is-open {
    background: rgba(255, 211, 106, 0.11);
    border-color: rgba(255, 211, 106, 0.18);
    color: #ffe7a8;
}

.admin-support-stat-chip.is-reviewing {
    background: rgba(94, 168, 255, 0.11);
    border-color: rgba(94, 168, 255, 0.18);
    color: #cfe5ff;
}

.admin-support-stat-chip.is-answered {
    background: rgba(52, 212, 148, 0.12);
    border-color: rgba(52, 212, 148, 0.20);
    color: #c9ffe9;
}

.admin-support-stat-chip.is-closed {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.09);
    color: var(--muted-strong);
}

.admin-support-filter-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
}

.admin-support-search-line {
    display: grid;
    grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.admin-support-search-line select {
    min-height: 48px;
}

.admin-support-search-line .btn {
    min-height: 48px;
    border-radius: 16px;
    white-space: nowrap;
}

.admin-support-search-line .btn.gold .admin-material-icon {
    color: #141217;
    font-size: 1.28rem;
    font-weight: 700;
}

.admin-support-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    height: calc(100svh - 224px);
    min-height: 0;
}

.admin-support-list,
.admin-support-detail {
    min-width: 0;
}

.admin-support-list {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.admin-support-chat {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.admin-support-ticket-list {
    display: grid;
    gap: 9px;
    min-height: 0;
    max-height: none;
    overflow: auto;
    align-content: start;
    grid-auto-rows: min-content;
    padding-right: 4px;
}

.admin-support-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
}

.admin-support-detail-head h2 {
    margin: 5px 0 0;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.admin-support-detail-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-support-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
}

.admin-support-meta span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.76rem;
}

.admin-support-meta strong {
    color: #fff;
}

.admin-support-messages {
    min-height: 0;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    max-height: none;
    overflow: auto;
    align-content: end;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

.admin-support-chat .admin-support-messages {
    height: 100%;
}

.admin-support-composer-panel {
    display: grid;
    gap: 6px;
    padding-top: 2px;
}

.admin-support-chat .admin-support-reply {
    position: static;
    padding-top: 0;
    background: transparent;
}

.admin-support-chat .admin-support-reply label {
    gap: 6px;
}

.admin-support-chat .admin-support-reply textarea {
    min-height: 56px;
    max-height: 68px;
    padding-block: 10px;
    resize: none;
    overflow: auto;
}

.admin-support-actions {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(128px, auto) minmax(94px, auto);
    gap: 8px;
    align-items: center;
}

.admin-support-actions .btn {
    min-height: 36px;
    border-radius: 12px;
    padding: 0 12px;
    justify-content: center;
    white-space: nowrap;
}

.admin-support-actions .btn.gold {
    min-width: 0;
}

.admin-support-side-form {
    display: none;
}

@media (max-width: 760px) {
    .admin-support-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-support-search-line {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-support-search-line .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-support-list,
    .admin-support-chat {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .admin-support-ticket-list {
        max-height: 360px;
    }

    .admin-support-chat .admin-support-messages {
        min-height: 360px;
        height: 52svh;
    }

    .admin-support-actions {
        grid-template-columns: 1fr;
    }
}

.admin-nav-link {
    position: relative;
    grid-template-columns: 38px minmax(0, 1fr) auto;
}

.admin-support-count {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    display: none;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.13);
}

.admin-support-count.show {
    display: grid;
}

.admin-nav-link.has-support-alert {
    border-color: rgba(255, 59, 48, 0.24);
}

.admin-support-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    width: min(360px, calc(100vw - 36px));
    display: grid;
    gap: 5px;
    padding: 14px 15px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(28, 28, 38, 0.98), rgba(13, 13, 20, 0.99));
    border: 1px solid rgba(255, 59, 48, 0.28);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.46);
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.2s var(--ease-out), opacity 0.2s ease;
}

.admin-support-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.admin-support-toast strong {
    font-size: 0.92rem;
}

.admin-support-toast span {
    color: var(--muted-strong);
    font-size: 0.8rem;
    line-height: 1.4;
}

.admin-header-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-title-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-support-email-btn {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 13px;
    font-size: 0.78rem;
}

.admin-support-email-modal[hidden] {
    display: none;
}

.admin-support-email-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(14px);
}

.admin-support-email-dialog {
    width: min(620px, 100%);
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(22, 22, 32, 0.98), rgba(12, 12, 20, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.admin-support-email-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.admin-support-email-form textarea {
    min-height: 160px;
    resize: vertical;
}

body.admin-modal-open {
    overflow: hidden;
}

.admin-status-pill.is-open,
.admin-status-pill.is-reviewing,
.admin-status-pill.is-answered,
.admin-status-pill.is-closed {
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.admin-status-pill.is-open {
    background: rgba(255, 211, 106, 0.14);
    color: #ffe6a8;
}

.admin-status-pill.is-reviewing {
    background: rgba(94, 168, 255, 0.14);
    color: #cfe5ff;
}

.admin-status-pill.is-answered {
    background: rgba(52, 212, 148, 0.14);
    color: #c9ffe9;
}

.admin-status-pill.is-closed {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
}

@media (max-width: 900px) {
    .admin-support-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .support-hero {
        grid-template-columns: minmax(0, 1fr) 112px;
    }

    .support-hero-copy {
        padding: 15px 0 15px 15px;
    }

    .support-hero h2 {
        font-size: 1.12rem;
    }

    .support-hero p {
        font-size: 0.76rem;
    }

    .support-thread-status {
        display: grid;
    }

    .support-eta {
        width: max-content;
    }
}

/* Improved search box */
.search-box input {
    height: 46px;
    border-radius: 14px;
    padding-left: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

/* Page subtitle refinement */
.page-subtitle {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

/* Brand overline refinement */
.brand-overline {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: rgba(255, 211, 106, 0.72);
    font-weight: 600;
}

/* Page title refinement */
.page-title,
.brand-title {
    letter-spacing: -0.03em;
    font-weight: 700;
}

/* Card refinement */
.card {
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

/* Simple row refinement */
.simple-row {
    transition: background var(--dur-fast) ease;
    border-radius: 10px;
    margin: 0 -8px;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.simple-row:active {
    background: rgba(255, 255, 255, 0.04);
}

/* Poster rail smoothness */
.poster-rail {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

/* Rank row improvements */
.rank-row {
    border-radius: 20px;
    transition: transform var(--dur-fast) var(--ease-spring);
}

#daily-modal {
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.daily-checkin-card {
    position: relative;
    width: min(100%, 420px);
    overflow: hidden;
    border-radius: 24px;
    background: #f7f7f9;
    color: #17171d;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.58);
    animation: streak-pop 0.34s ease;
}

.daily-checkin-hero {
    position: relative;
    min-height: 148px;
    padding: 26px 22px 24px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.26) 0 56px, transparent 57px),
        radial-gradient(circle at 100% 0%, rgba(190, 0, 150, 0.18) 0 86px, transparent 87px),
        radial-gradient(circle at 28% 100%, rgba(255, 255, 255, 0.20) 0 62px, transparent 63px),
        linear-gradient(135deg, #ff755d 0%, #ff3a87 100%);
}

.daily-checkin-hero h3 {
    margin: 18px 0 8px;
    font-size: 1.55rem;
    letter-spacing: 0;
}

.daily-checkin-hero p {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    opacity: 0.9;
}

.daily-checkin-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.daily-checkin-close {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #ff776a;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(150, 20, 60, 0.18);
}

.daily-checkin-close .app-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 18px;
}

.daily-reward-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
}

.daily-reward-tile {
    min-height: 86px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    border-radius: 8px;
    background: #ececf0;
    color: #777d86;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.daily-reward-tile span,
.daily-reward-tile small {
    font-size: 0.74rem;
    font-weight: 700;
}

.daily-reward-tile strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 1.35rem;
    line-height: 1;
    color: #5e646e;
}

.daily-gold-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.daily-reward-tile.active .daily-gold-icon {
    filter: drop-shadow(0 3px 7px rgba(80, 20, 20, 0.24));
}

.daily-reward-tile.active {
    color: #fff;
    background: linear-gradient(135deg, #ff805b 0%, #ff177e 100%);
    box-shadow: 0 12px 24px rgba(255, 43, 123, 0.24);
}

.daily-reward-tile.active strong,
.daily-reward-tile.active small {
    color: #fff;
}

.daily-reward-tile.done {
    background: #f3f3f5;
    color: #a2a7af;
}

.daily-reward-tile.wide {
    grid-column: 1 / -1;
    min-height: 92px;
}

.daily-checkin-action {
    width: calc(100% - 84px);
    min-height: 52px;
    margin: 10px 42px 12px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff2c69, #ea61d9);
    box-shadow: 0 14px 28px rgba(239, 44, 124, 0.25);
}

.daily-checkin-link {
    display: block;
    margin: 0 0 20px;
    color: #8b8d98;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.daily-rewards-page {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 77, 132, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(26, 26, 38, 0.98), rgba(13, 13, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-soft);
}

.daily-rewards-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 4px;
}

.daily-rewards-top h2 {
    margin: 10px 0 6px;
    font-size: 1.28rem;
    letter-spacing: 0;
}

.daily-rewards-top p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.daily-mini-claim {
    min-width: 76px;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    color: #21150c;
    background: linear-gradient(135deg, #ffe79d, #f0bd44);
    font-weight: 900;
}

.daily-mini-claim:disabled {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.10);
}

.daily-reward-grid.page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 14px;
}

.daily-rewards-page .daily-reward-tile {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted-strong);
    border-color: rgba(255, 255, 255, 0.06);
}

.daily-rewards-page .daily-reward-tile strong {
    color: #fff;
}

.daily-rewards-page .daily-reward-tile.active {
    color: #fff;
    background: linear-gradient(135deg, #ff805b 0%, #ff177e 100%);
    border-color: rgba(255, 255, 255, 0.14);
}

.daily-rewards-page .daily-reward-tile.done {
    color: rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.04);
}

.daily-confetti {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 48%;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.daily-confetti.in-page {
    top: 58%;
}

.daily-confetti i {
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 13px;
    border-radius: 3px;
    background: var(--c);
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: daily-confetti-pop 1.25s cubic-bezier(0.16, 0.9, 0.24, 1) var(--d) forwards;
}

.daily-win-note {
    position: absolute;
    z-index: 6;
    left: 50%;
    top: 50%;
    width: min(78%, 280px);
    transform: translate(-50%, -50%);
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    color: #17171d;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    animation: daily-win-note 1.35s ease forwards;
}

.daily-win-note strong {
    font-size: 1.08rem;
}

.daily-win-note span {
    color: #757984;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: center;
}

@keyframes daily-confetti-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
    }

    14% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--x)), -190px) scale(1) rotate(var(--r));
    }
}

@keyframes daily-win-note {
    0% {
        opacity: 0;
        transform: translate(-50%, -44%) scale(0.92);
    }

    16%,
    78% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -58%) scale(0.98);
    }
}

@media (max-width: 380px) {
    .daily-checkin-action {
        width: calc(100% - 36px);
        margin-left: 18px;
        margin-right: 18px;
    }
}

.rank-row:active {
    transform: scale(0.98);
}

/* PWA install prompt native-like */
.install-prompt {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--nav-height) + 20px + env(safe-area-inset-bottom));
    z-index: 75;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(22, 22, 32, 0.96), rgba(14, 14, 22, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(20px);
    animation: panel-slide-up 0.38s var(--ease-spring) both;
}

.install-prompt-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    flex: 0 0 46px;
}

.install-prompt-copy {
    flex: 1;
    min-width: 0;
}

.install-prompt-copy strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
}

.install-prompt-copy span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
}

/* Notify badge on nav icons */
.nav-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--primary);
    border: 2px solid rgba(10, 10, 16, 0.88);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    padding: 0 3px;
}

/* Auth form enter animation */
.auth-form {
    animation: fade-in 0.28s ease both;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero banner parallax hint */
.hero-banner img {
    transition: transform 0.6s ease;
}

/* Section head improvements */
.section-head {
    margin-bottom: 14px;
}

.section-kicker {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Auth divider improvement */
.auth-divider {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.28);
    margin: 16px 0;
}

/* Legal copy improvement */
.legal-copy {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: center;
}

/* Alert improvements */
.alert {
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Progress track improvement */
.progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
    background: linear-gradient(90deg, #ff7a5a, #ffc85e);
}

/* Responsive: small screens */
@media (max-width: 380px) {
    :root {
        --nav-height: 72px;
    }

    .login-panel::before {
        margin-top: -10px;
    }

    .auth-logo-row img {
        width: 44px;
        height: 44px;
    }
}

/* =====================================================
   PROFILE PAGE — App-Style Layout
   ===================================================== */

/* Full-bleed profile cover top section */
.profile-app-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 22px;
    text-align: center;
    background: linear-gradient(180deg,
        rgba(50, 20, 70, 0.70) 0%,
        rgba(14, 10, 22, 0.95) 100%);
    border-radius: 24px;
    border: 1px solid rgba(160, 80, 220, 0.14);
    margin-bottom: 18px;
    overflow: hidden;
}

.profile-app-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 0%, rgba(180, 80, 240, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 100%, rgba(255, 75, 62, 0.10) 0%, transparent 55%);
    pointer-events: none;
}

/* Avatar centered */
.profile-app-avatar {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.52);
    margin-bottom: 14px;
}

.profile-app-avatar-vip {
    border-color: var(--gold);
    box-shadow: 0 0 0 5px rgba(255, 211, 106, 0.18), 0 12px 36px rgba(0, 0, 0, 0.52);
}

.profile-app-name {
    position: relative;
    z-index: 1;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 4px;
}

.profile-app-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 14px;
}

/* User ID copy row */
.profile-id-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.78rem;
    color: var(--muted-strong);
    cursor: pointer;
    transition: background var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
}

.profile-id-row:active {
    background: rgba(255, 255, 255, 0.11);
}

.profile-id-label {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 500;
    margin-right: 2px;
}

.profile-id-value {
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    flex: 1;
}

.profile-id-copy-icon {
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.72rem;
    flex: 0 0 auto;
}

/* Stat strip below avatar */
.profile-stat-strip {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin-top: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.profile-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    gap: 3px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-stat-item:last-child {
    border-right: none;
}

.profile-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.profile-stat-label {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Menu section label */
.profile-menu-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0 4px;
    margin: 20px 0 8px;
}

/* Menu group — iOS Settings style */
.profile-menu-group {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.96), rgba(12, 12, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 12px;
}

/* Each menu row — 55dp height */
.profile-menu-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 55px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.profile-menu-form {
    margin: 0;
}

button.profile-menu-row {
    width: 100%;
    border: 0;
    font: inherit;
    text-align: left;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
}

.profile-menu-row:last-child {
    border-bottom: none;
}

.profile-menu-form:last-child .profile-menu-row {
    border-bottom: none;
}

.profile-menu-row:active {
    background: rgba(255, 255, 255, 0.05);
}

/* Icon badge on the left */
.profile-menu-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    font-size: 1rem;
    color: #fff;
}

.profile-menu-icon.orange  { background: linear-gradient(145deg, #ff9a64, #ff5a30); }
.profile-menu-icon.reward  { background: linear-gradient(145deg, #ff9a64, #ff5a30); }
.profile-menu-icon.gold    { background: linear-gradient(145deg, #ffe080, #d4a020); color: #3d2000; }
.profile-menu-icon.purple  { background: linear-gradient(145deg, #b87aff, #7e40d0); }
.profile-menu-icon.blue    { background: linear-gradient(145deg, #5ea8ff, #2d6edd); }
.profile-menu-icon.green   { background: linear-gradient(145deg, #5fdb9a, #27a866); }
.profile-menu-icon.red     { background: linear-gradient(145deg, #ff7070, #e03030); }
.profile-menu-icon.pink    { background: linear-gradient(145deg, #ff7eb3, #e03580); }
.profile-menu-icon.rank    { background: transparent; }
.profile-menu-icon.telegram { background: transparent; }
.profile-menu-icon.premium {
    background:
        radial-gradient(circle at 34% 20%, rgba(255, 210, 120, 0.22), transparent 38%),
        linear-gradient(145deg, #4a271a 0%, #8a4525 58%, #2a1714 100%);
    border: 1px solid rgba(255, 211, 106, 0.18);
}

.profile-menu-icon.rank img,
.profile-menu-icon.telegram img,
.profile-menu-icon.premium img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    object-position: center;
    transform: translateY(1px);
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.42));
}

.profile-menu-icon.telegram img {
    width: 34px;
    height: 34px;
    transform: none;
    filter: drop-shadow(0 7px 10px rgba(34, 158, 217, 0.26));
}

.profile-menu-icon.reward img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.24));
}

.profile-menu-row-body {
    flex: 1;
    min-width: 0;
}

.profile-menu-row-title {
    font-size: 0.93rem;
    font-weight: 600;
    display: block;
    line-height: 1.18;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-row-sub {
    font-size: 0.73rem;
    color: var(--muted);
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right side: value + chevron */
.profile-menu-row-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.activity-summary-grid {
    margin-top: 8px;
}

.activity-list .profile-menu-row {
    min-height: 68px;
}

.activity-amount-earn {
    color: var(--ok);
}

.activity-amount-spend {
    color: var(--primary);
}

.profile-support-status.is-available,
.profile-support-status.is-answered {
    background: rgba(52, 212, 148, 0.14);
    border-color: rgba(52, 212, 148, 0.24);
    color: #c9ffe9;
}

.profile-support-status.is-open {
    background: rgba(255, 211, 106, 0.14);
    border-color: rgba(255, 211, 106, 0.24);
    color: #ffe6a8;
}

.profile-support-status.is-reviewing {
    background: rgba(94, 168, 255, 0.14);
    border-color: rgba(94, 168, 255, 0.24);
    color: #cfe5ff;
}

.profile-menu-chevron {
    width: 16px;
    height: 16px;
    opacity: 0.38;
}

/* Danger/logout row */
.profile-menu-row.danger {
    color: var(--danger);
}

.profile-menu-row.danger .profile-menu-icon {
    background: rgba(255, 112, 112, 0.16);
    color: var(--danger);
}

.profile-menu-row.is-static {
    cursor: default;
}

.profile-menu-icon.coin {
    background: transparent;
}

.profile-menu-icon.coin img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.26));
}

.profile-cover {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 78% 2%, rgba(255, 211, 106, 0.22), transparent 35%),
        radial-gradient(circle at 8% 12%, rgba(255, 88, 66, 0.18), transparent 36%),
        linear-gradient(160deg, rgba(42, 18, 20, 0.98), rgba(14, 12, 18, 0.98) 58%, rgba(8, 8, 13, 0.99));
    border: 1px solid rgba(255, 211, 106, 0.18);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.profile-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%);
}

.profile-identity,
.profile-wallet {
    position: relative;
    z-index: 1;
}

.profile-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 0;
}

.profile-portrait-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
    max-width: 88px;
    max-height: 88px;
    aspect-ratio: 1 / 1;
    flex: 0 0 88px;
    border-radius: 50%;
    overflow: visible;
}

.profile-portrait-hit {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    min-width: 78px;
    min-height: 78px;
    max-width: 78px;
    max-height: 78px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.profile-portrait {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    border: 3px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.46);
}

.profile-portrait-wrap.is-vip .profile-portrait-hit {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
}

.profile-portrait-wrap.is-vip .profile-portrait {
    width: 70px;
    height: 70px;
    border: 0;
    box-shadow: none;
}

.profile-premium-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 104px;
    height: 104px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.profile-identity h1 {
    margin: 0 0 7px;
    font-size: 1.26rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.profile-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.profile-meta-row .tag {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 0.68rem;
    line-height: 1;
}

.profile-id-chip {
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    line-height: 1;
}

.profile-avatar-actions {
    display: block;
    margin: 0;
}

.profile-avatar-actions.is-busy {
    opacity: 0.72;
}

.profile-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.profile-avatar-corner-action {
    position: absolute;
    right: 3px;
    bottom: 3px;
    z-index: 4;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(145deg, #ff6b54, #d92f2f);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32), 0 0 0 2px rgba(255, 255, 255, 0.16);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.profile-avatar-corner-action .app-icon {
    grid-area: 1 / 1;
    width: 17px;
    height: 17px;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.profile-avatar-trash-icon {
    opacity: 0;
    transform: scale(0.72);
}

.profile-avatar-corner-action.is-delete {
    background: linear-gradient(145deg, #ff5f5f, #c72020);
}

.profile-avatar-corner-action.is-delete .profile-avatar-camera-icon {
    opacity: 0;
    transform: scale(0.72);
}

.profile-avatar-corner-action.is-delete .profile-avatar-trash-icon {
    opacity: 1;
    transform: scale(1);
}

.profile-portrait-hit:disabled,
.profile-avatar-corner-action:disabled {
    cursor: wait;
}

.profile-avatar-corner-action:disabled {
    opacity: 0.68;
}

.profile-portrait-hit:focus-visible,
.profile-avatar-corner-action:focus-visible {
    outline: 2px solid rgba(255, 211, 106, 0.9);
    outline-offset: 3px;
}

.profile-wallet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 13px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-wallet span {
    display: block;
    color: rgba(255, 236, 194, 0.72);
    font-size: 0.74rem;
    font-weight: 600;
}

.profile-wallet strong {
    display: block;
    margin-top: 2px;
    font-size: 1.34rem;
    line-height: 1;
}

.profile-wallet img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.profile-wallet .btn {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
}

.profile-vip-perks {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-vip-perk {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0;
    min-width: 0;
    text-align: center;
}

.profile-vip-perk-badge {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    padding: 5px;
    margin-bottom: 5px;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    border-radius: 15px;
    background:
        radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.44), transparent 25%),
        linear-gradient(145deg, rgba(255, 238, 182, 0.95) 0%, rgba(238, 178, 72, 0.88) 50%, rgba(116, 59, 22, 0.86) 100%);
    border: 1px solid rgba(255, 230, 171, 0.68);
    box-shadow:
        0 9px 16px rgba(255, 174, 68, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -7px 12px rgba(84, 39, 9, 0.16);
}

.profile-vip-perk-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    box-sizing: border-box;
    display: block;
    width: 34px;
    height: 34px;
    padding: 7px;
    object-fit: contain;
    object-position: center;
    border-radius: 7px;
    opacity: 0.78;
    mix-blend-mode: luminosity;
    filter: sepia(0.25) saturate(0.75) brightness(1.42) contrast(0.86) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.18));
    transform: translate(-50%, -50%);
}

.profile-vip-perk strong {
    margin: 0;
    color: rgba(255, 244, 222, 0.88);
    font-size: 0.66rem;
    line-height: 1.16;
    font-weight: 800;
}

.profile-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.profile-quick-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
    min-height: 66px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: none;
}

.profile-quick-card strong {
    grid-column: 2;
    align-self: end;
    min-width: 0;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.05;
    white-space: nowrap;
}

.profile-quick-card span:last-child {
    grid-column: 2;
    align-self: start;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}

.profile-quick-card .profile-menu-icon {
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    flex-basis: 28px;
}

.profile-quick-card .profile-menu-icon.reward {
    background: transparent;
}

.profile-quick-card .profile-menu-icon img,
.profile-quick-card .profile-menu-icon.rank img,
.profile-quick-card .profile-menu-icon.reward img {
    width: 20px;
    height: 20px;
}

.profile-quick-card .profile-menu-icon.reward img {
    width: 28px;
    height: 28px;
}

.profile-empty-row {
    padding: 18px 16px;
    color: var(--muted);
    font-size: 0.86rem;
}

.coin-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 84% 10%, rgba(255, 232, 170, 0.34), transparent 34%),
        linear-gradient(145deg, #5a2a10, #20100c 52%, #0d0c12);
    border: 1px solid rgba(255, 211, 106, 0.24);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

.coin-hero p,
.coin-hero h2,
.coin-hero span {
    position: relative;
    z-index: 1;
}

.coin-hero p {
    margin: 0;
    color: #f6d796;
    font-size: 0.8rem;
    font-weight: 700;
}

.coin-hero h2 {
    margin: 8px 0 6px;
    font-size: 2.35rem;
    line-height: 1;
}

.coin-hero span {
    display: block;
    max-width: 260px;
    color: rgba(255, 241, 211, 0.72);
    font-size: 0.82rem;
    line-height: 1.45;
}

.coin-hero img {
    position: relative;
    z-index: 1;
    width: 104px;
    height: 104px;
    object-fit: contain;
    filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.34));
}

.coin-package-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.coin-package {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(22, 22, 32, 0.98), rgba(11, 11, 18, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xs);
}

.coin-package.is-best {
    border-color: rgba(255, 211, 106, 0.38);
    background:
        radial-gradient(circle at 94% 0%, rgba(255, 211, 106, 0.20), transparent 34%),
        linear-gradient(180deg, rgba(46, 30, 17, 0.98), rgba(15, 12, 17, 0.99));
}

.coin-best-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 211, 106, 0.14);
    border: 1px solid rgba(255, 211, 106, 0.28);
    color: #ffe6a8;
    font-size: 0.66rem;
    font-weight: 800;
}

.coin-package-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-right: 92px;
}

.coin-package-main img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.coin-package-main h2 {
    margin: 0;
    font-size: 1.08rem;
    letter-spacing: 0;
}

.coin-package-main p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.coin-package-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.coin-package-meta span {
    color: var(--muted);
    font-size: 0.76rem;
}

.coin-package-meta strong {
    font-size: 1.32rem;
    line-height: 1;
}

.settings-profile-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 211, 106, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(22, 22, 32, 0.96), rgba(12, 12, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xs);
}

.settings-profile-card img {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
}

.settings-profile-card strong,
.settings-profile-card span {
    display: block;
}

.settings-profile-card strong {
    font-size: 1rem;
}

.settings-profile-card div > span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pro-settings .settings-row-icon.material3 {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(255, 211, 106, 0.18), rgba(255, 157, 91, 0.10));
    border: 1px solid rgba(255, 211, 106, 0.14);
    color: #ffd36a;
    box-shadow: none;
}

.pro-settings .settings-row-icon.material3 .app-icon {
    width: 21px;
    height: 21px;
}

.pro-settings .settings-row-icon.material3 .app-icon path {
    fill: currentColor;
}

.pro-settings .settings-row-icon.m3-coral {
    color: #ffca8a;
}

.pro-settings .settings-row-icon.m3-blue {
    color: #ffd36a;
}

.pro-settings .settings-row-icon.m3-green {
    color: #ffe08a;
}

.pro-settings .settings-row-icon.m3-gold {
    color: #ffe082;
}

.settings-switch {
    appearance: none;
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
    border-radius: 999px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    cursor: pointer;
    transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.settings-switch::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.30);
    transition: transform var(--dur-fast) var(--ease-spring);
}

.settings-switch:checked {
    background: linear-gradient(145deg, var(--primary-strong), var(--primary));
    border-color: rgba(255, 255, 255, 0.14);
}

.settings-switch:checked::before {
    transform: translateX(20px);
}

.app-shell.settings-shell {
    padding-bottom: calc(var(--nav-total-height) + 92px);
    scroll-padding-bottom: calc(var(--nav-total-height) + 24px);
}

.app-shell.profile-shell {
    padding-bottom: calc(var(--nav-total-height) + 92px);
    scroll-padding-bottom: calc(var(--nav-total-height) + 24px);
}

.app-shell.coins-shell {
    padding-bottom: calc(var(--nav-total-height) + 132px);
}

.settings-page-header .page-title,
.coins-page-header .page-title {
    background: linear-gradient(135deg, #fff5cf 0%, #ffd36a 45%, #ff8d55 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.settings-hero {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 211, 106, 0.24), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(255, 88, 66, 0.16), transparent 38%),
        linear-gradient(160deg, rgba(40, 18, 18, 0.98), rgba(13, 12, 18, 0.99));
    border: 1px solid var(--user-accent, #ff4b3e);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.30);
}

body.user-style-ruby .settings-hero,
body.user-style-ruby .profile-cover {
    background:
        radial-gradient(circle at 86% 0%, rgba(255, 84, 120, 0.26), transparent 34%),
        linear-gradient(160deg, rgba(51, 11, 24, 0.98), rgba(12, 10, 16, 0.99));
}

body.user-style-ocean .settings-hero,
body.user-style-ocean .profile-cover {
    background:
        radial-gradient(circle at 88% 0%, rgba(87, 168, 255, 0.24), transparent 34%),
        linear-gradient(160deg, rgba(11, 28, 48, 0.98), rgba(9, 11, 18, 0.99));
}

body.user-style-forest .settings-hero,
body.user-style-forest .profile-cover {
    background:
        radial-gradient(circle at 88% 0%, rgba(95, 219, 154, 0.24), transparent 34%),
        linear-gradient(160deg, rgba(14, 40, 27, 0.98), rgba(9, 12, 15, 0.99));
}

.settings-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%);
}

.settings-hero-user {
    position: relative;
    z-index: 1;
}

.settings-hero-user {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.settings-hero-avatar-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
}

.settings-hero-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 221, 148, 0.28);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
}

.settings-hero-avatar-wrap.is-vip .settings-hero-avatar {
    width: 54px;
    height: 54px;
    border: 0;
    box-shadow: none;
}

.settings-hero-premium-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 84px;
    height: 84px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.settings-hero-copy h2 {
    margin: 8px 0 0;
    font-size: 1.22rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.settings-hero-premium {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.32));
}

.pro-settings {
    background:
        linear-gradient(180deg, rgba(20, 20, 30, 0.98), rgba(11, 11, 18, 0.99));
    box-shadow: var(--shadow-xs);
}

.pro-settings .settings-row {
    min-height: 60px;
}

.pro-settings .settings-row-icon.gold {
    background: linear-gradient(145deg, #ffe49b, #ff9b58);
}

.pro-settings .settings-row-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25));
}

.coin-hero {
    min-height: 148px;
    padding: 16px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 86% 10%, rgba(255, 232, 170, 0.38), transparent 34%),
        radial-gradient(circle at 0% 90%, rgba(255, 91, 67, 0.16), transparent 42%),
        linear-gradient(145deg, #6a3212, #24100c 52%, #0b0b11);
}

.coin-hero-copy {
    position: relative;
    z-index: 1;
}

.coin-hero h2 {
    font-size: 2.35rem;
    letter-spacing: 0;
}

.coin-hero-art {
    position: relative;
    z-index: 1;
    width: 118px;
    height: 118px;
}

.coin-hero .coin-hero-coin,
.coin-hero .coin-hero-premium {
    position: absolute;
    object-fit: contain;
    filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.34));
}

.coin-hero .coin-hero-coin {
    right: 0;
    bottom: 0;
    width: 98px;
    height: 98px;
}

.coin-hero .coin-hero-premium {
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
}

.coin-package-grid {
    gap: 10px;
    margin-top: 14px;
}

.coin-package {
    cursor: pointer;
    outline: none;
    border-radius: 20px;
    transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
}

.coin-package:active {
    transform: scale(0.98);
}

.coin-package.is-selected {
    border-color: rgba(255, 226, 158, 0.9);
    box-shadow: 0 14px 30px rgba(255, 167, 76, 0.18);
}

.coin-best-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.coin-best-badge img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.coin-package-price {
    display: inline-flex;
    justify-content: center;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 232, 170, 0.18), rgba(255, 123, 84, 0.10));
    border: 1px solid rgba(255, 211, 106, 0.16);
    color: #ffe6aa;
    font-size: 0.88rem;
    font-weight: 900;
}

.coin-package-main {
    padding-right: 74px;
}

.coin-native-checkout {
    position: fixed;
    left: 50%;
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);
    transform: translateX(-50%);
    z-index: 79;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: min(calc(100% - 18px), calc(var(--app-width) - 10px));
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 224, 158, 0.24);
    background: linear-gradient(180deg, rgba(54, 24, 12, 0.98), rgba(20, 12, 11, 0.99));
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.coin-native-checkout div {
    min-width: 0;
}

.coin-native-checkout span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coin-native-checkout strong {
    display: block;
    margin-top: 2px;
    color: #ffe6aa;
    font-size: 1.06rem;
}

.coin-checkout-button {
    min-height: 46px;
    border-radius: 15px;
    padding-inline: 14px;
}

.coin-checkout-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.app-shell.coins-shell {
    padding-top: calc(env(safe-area-inset-top) + 12px);
    padding-bottom: calc(var(--nav-total-height) + 92px);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 83, 62, 0.13), transparent 130px),
        linear-gradient(180deg, rgba(25, 14, 15, 0.92) 0%, rgba(8, 8, 12, 0.99) 260px);
}

.coins-page-header {
    margin: 0 0 8px;
    padding: 4px 0 8px;
    background: transparent;
    backdrop-filter: none;
}

.coins-page-header::before {
    display: none;
}

.coins-page-header .page-title {
    background: none;
    color: #fff8e6;
    font-size: 1.04rem;
    font-weight: 900;
}

.coins-page-header .header-action {
    min-width: 44px;
    min-height: 44px;
    border-radius: 15px;
    color: #fff4df;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
}

.coin-hero {
    min-height: 112px;
    margin: 0 0 16px;
    padding: 14px 14px 16px;
    border: 1px solid rgba(255, 211, 106, 0.13);
    border-radius: 18px;
    align-items: start;
    background:
        radial-gradient(circle at 92% 52%, rgba(255, 216, 130, 0.16), transparent 54px),
        linear-gradient(145deg, #211014 0%, #321512 52%, #0f0f15 100%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.coin-hero::after {
    display: none;
}

.coin-hero-copy {
    padding-top: 0;
}

.coin-hero p {
    color: rgba(255, 244, 222, 0.82);
    font-size: 0.78rem;
    letter-spacing: 0;
}

.coin-hero h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 7px 0 10px;
    color: #fff;
    font-size: clamp(1.7rem, 8.5vw, 2.15rem);
    font-weight: 900;
}

.coin-hero h2 img {
    width: clamp(24px, 6.5vw, 30px);
    height: clamp(24px, 6.5vw, 30px);
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.coin-transaction-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 236, 201, 0.78);
    font-size: 0.76rem;
    font-weight: 700;
}

.coin-transaction-link svg {
    width: 0.86rem;
    height: 0.86rem;
    transform: rotate(180deg);
}

.coin-hero-art {
    align-self: end;
    width: 82px;
    height: 82px;
    margin-right: -6px;
    margin-top: 10px;
}

.coin-hero .coin-hero-coin {
    right: 0;
    bottom: -4px;
    width: 74px;
    height: 74px;
    opacity: 0.5;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.36));
}

.coin-hero .coin-hero-premium {
    display: none;
}

.coin-section-title {
    position: relative;
    z-index: 2;
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.06rem;
    font-weight: 900;
    letter-spacing: 0;
}

.coin-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}

.coin-package {
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    padding: 14px 10px 12px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 214, 138, 0.08), transparent 46px),
        linear-gradient(180deg, rgba(29, 29, 38, 0.98), rgba(18, 18, 26, 0.99));
    border-color: rgba(255, 255, 255, 0.08);
}

.coin-package.is-best {
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 214, 138, 0.20), transparent 58px),
        linear-gradient(180deg, rgba(47, 34, 26, 0.98), rgba(20, 18, 24, 0.99));
    border-color: rgba(255, 211, 106, 0.28);
}

.coin-package.is-selected {
    border-color: rgba(255, 211, 106, 0.86);
    box-shadow: 0 12px 24px rgba(255, 165, 70, 0.12), inset 0 0 0 1px rgba(255, 211, 106, 0.18);
}

.coin-best-badge {
    top: 0;
    left: 0;
    right: auto;
    padding: 5px 9px;
    border-radius: 15px 0 13px 0;
    background: linear-gradient(135deg, #ff3f62, #bc1239);
    border: 0;
    color: #fff;
    font-size: 0.64rem;
    line-height: 1;
    box-shadow: 0 10px 18px rgba(188, 18, 57, 0.28);
}

.coin-package-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 0 0;
    text-align: center;
}

.coin-package-main img {
    width: 28px;
    height: 28px;
}

.coin-package-main h2 {
    color: #fff;
    font-size: clamp(1.32rem, 6.5vw, 1.68rem);
    font-weight: 900;
    line-height: 1;
}

.coin-package-bonus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    margin: 0 auto;
    width: min(100%, 104px);
    padding: 6px 8px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffca72;
}

.coin-package-bonus img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.coin-package-bonus strong {
    font-size: 0.88rem;
    line-height: 1;
}

.coin-package-bonus.is-empty {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.74rem;
    font-weight: 800;
    text-align: center;
}

.coin-package-price {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
}

.coin-native-checkout {
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 6px);
    gap: 10px;
    width: min(calc(100% - 22px), calc(var(--app-width) - 18px));
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(32, 18, 14, 0.98), rgba(15, 12, 12, 0.99));
}

.coin-native-checkout span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
}

.coin-native-checkout strong {
    color: #ffe6aa;
    font-size: 0.98rem;
}

.coin-checkout-button {
    min-height: 42px;
    border-radius: 14px;
    padding: 0 14px;
    color: #2c1b00;
}

.coin-checkout-button span {
    color: #2c1b00;
    font-size: 0.82rem;
    font-weight: 900;
}

.coin-checkout-button img {
    width: 20px;
    height: 20px;
}

@media (max-width: 380px) {
    .coins-shell .coin-hero {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .coins-shell .coin-hero-art {
        justify-self: end;
        margin-top: 22px;
    }

    .profile-wallet {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .profile-wallet .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .coin-package-main {
        padding-right: 0;
    }

    .coin-best-badge {
        position: absolute;
        justify-self: start;
    }

    .settings-hero-user {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .settings-hero-premium {
        display: none;
    }

    .coin-hero {
        grid-template-columns: 1fr;
    }

    .coin-hero-art {
        justify-self: end;
        margin-top: -16px;
    }

    .coins-shell .coin-hero {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .coins-shell .coin-hero-art {
        margin-top: 8px;
    }

    .coin-native-checkout {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .coin-checkout-button {
        width: auto;
    }
}

/* =====================================================
   IMAGE PLACEHOLDER — object-fit + background fallback
   (actual placeholder swap done via onerror in PHP)
   ===================================================== */

.poster-card img,
.continue-card img,
.media-thumb {
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.04);
}

/* episode thumbs */
.episode-thumb,
.seriesx-episode-thumb {
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.04);
}

/* =====================================================
   HOME PAGE v2 — App-style redesign
   ===================================================== */

/* ---- Search Bar with rotating placeholder ---- */
.home-search {
    --home-search-submit-width: 48px;
    --home-search-vip-space: 88px;
    position: relative;
    margin: 0 0 14px;
    padding-right: var(--home-search-vip-space);
    box-sizing: border-box;
}

.home-search.is-searching {
    --home-search-submit-width: 76px;
}

.home-search .home-search-input {
    width: 100%;
    height: 36px;
    padding: 0 calc(var(--home-search-submit-width) + 46px) 0 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-size: 0.88rem;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.home-search .home-search-input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
}

.home-search .home-search-input::-ms-clear {
    display: none;
}

.home-search .home-search-input:focus {
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
}

.home-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--muted);
    pointer-events: none;
}

/* Rotating placeholder overlay */
.home-search-placeholder {
    position: absolute;
    left: 42px;
    right: calc(var(--home-search-vip-space) + 12px);
    top: 50%;
    transform: translateY(-50%);
    overflow: hidden;
    height: 20px;
    pointer-events: none;
    color: var(--muted);
    font-size: 0.88rem;
}

.home-search-placeholder-track {
    display: flex;
    flex-direction: column;
    animation: search-rotate 12s ease-in-out infinite;
}

.home-search-placeholder-track span {
    height: 20px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes search-rotate {
    0%, 18%   { transform: translateY(0); }
    22%, 38%  { transform: translateY(-20px); }
    42%, 58%  { transform: translateY(-40px); }
    62%, 78%  { transform: translateY(-60px); }
    82%, 100% { transform: translateY(-80px); }
}

/* Hide rotating placeholder when input has value */
.home-search-input:focus ~ .home-search-placeholder,
.home-search-input:not(:placeholder-shown) ~ .home-search-placeholder {
    display: none;
}

.home-search-submit {
    position: absolute;
    right: calc(var(--home-search-vip-space) + 7px);
    top: 50%;
    transform: translateY(-50%);
    width: var(--home-search-submit-width);
    min-width: var(--home-search-submit-width);
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    line-height: 1;
    font: 800 0.72rem/1 var(--font-sans);
    letter-spacing: 0;
}

.home-search-clear {
    position: absolute;
    right: calc(var(--home-search-vip-space) + 7px + var(--home-search-submit-width) + 6px);
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.92);
    cursor: pointer;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    font: 800 1.05rem/1 var(--font-sans);
    letter-spacing: 0;
}

.home-search-vip {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 78px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    -webkit-tap-highlight-color: transparent;
}

.home-search-vip img {
    width: 78px;
    height: auto;
    max-width: 78px;
    max-height: 34px;
    object-fit: contain;
    display: block;
}

.home-search-vip:active {
    transform: translateY(-50%) scale(0.96);
}

.home-search-input:not(:placeholder-shown) ~ .home-search-submit,
.home-search-input:not(:placeholder-shown) ~ .home-search-clear,
.home-search.is-searching .home-search-submit,
.home-search.is-searching .home-search-clear {
    display: inline-flex;
}

.home-search.is-searching .home-search-input {
    padding-right: calc(var(--home-search-submit-width) + 46px);
}

.home-search-submit:hover {
    background: var(--primary);
}

.home-search-clear:hover {
    background: rgba(255,255,255,0.10);
}

.home-search-submit:active,
.home-search-clear:active {
    transform: translateY(-50%) scale(0.96);
}

.home-search-summary {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 12px;
    color: var(--text);
}

.home-search-summary strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 800;
}

.home-search-summary span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.home-search-empty {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 18px;
    margin: 12px 0 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    text-align: center;
    color: var(--muted);
}

.home-search-empty .app-icon {
    width: 26px;
    height: 26px;
    color: var(--text);
}

.home-search-empty strong {
    color: var(--text);
    font-size: 0.98rem;
}

.home-search-empty span {
    max-width: 260px;
    font-size: 0.78rem;
    line-height: 1.45;
}

/* ---- Dizi / Anime Tabs ---- */
.home-tabs {
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0 0 12px;
}

.home-tab {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: -0.03em;
    padding: 4px 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: color var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
}

.home-tab.active {
    color: var(--text);
}

.home-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ---- Filter Chips Row ---- */
.home-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 12px;
    margin: 0 0 4px;
}

.home-filters::-webkit-scrollbar { display: none; }

.home-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
}

.home-chip:active {
    transform: scale(0.95);
}

.home-chip.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Dropdown chip with arrow */
.home-chip-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.home-chip-dropdown .arrow {
    width: 12px;
    height: 12px;
    transition: transform var(--dur-fast) ease;
}

.home-chip-dropdown.open .arrow {
    transform: rotate(180deg);
}

/* Category dropdown panel */
.home-category-panel {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    animation: fade-in var(--dur-normal) var(--ease-out);
}

.home-category-panel.open {
    display: flex;
}

.home-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.home-poster {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--dur-fast) var(--ease-spring);
}

.home-poster:active {
    transform: scale(0.96);
}

.home-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    background-color: rgba(255,255,255,0.04);
}

/* Dubbed badge on poster */
.home-poster-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    z-index: 2;
}

/* Views counter on poster */
.home-poster-views {
    position: absolute;
    bottom: 8px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 8px;
    background: rgba(0,0,0,0.60);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.home-poster-views .app-icon {
    width: 10px;
    height: 10px;
    color: var(--ok);
}

/* Poster text below the image */
.home-poster-info {
    padding: 7px 2px 10px;
}

.home-poster-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.home-poster-sub {
    font-size: 0.68rem;
    color: var(--muted);
    margin: 3px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Popüler Seçimler Section ---- */
.home-popular-in-grid {
    margin: 2px 0 6px;
}

.home-popular-header {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 10px 0 14px;
    background: linear-gradient(135deg, #fff3d0 0%, #c8922c 50%, #ffe6a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-popular-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

/* Ranking card (left) */
.home-rank-card {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(22, 22, 32, 0.97), rgba(12, 12, 20, 0.99));
    border: 1px solid rgba(255,255,255,0.07);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
}

.home-rank-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--gold);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-rank-title-badge,
.home-rank-title img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain;
    flex: 0 0 18px;
}

.home-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.home-rank-number {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
}

.home-rank-number img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain;
}

.home-rank-thumb {
    width: 40px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 40px;
    background-color: rgba(255,255,255,0.04);
}

.home-rank-info {
    flex: 1;
    min-width: 0;
}

.home-rank-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.home-rank-views {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--primary);
    margin: 3px 0 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.home-rank-views .app-icon {
    width: 10px;
    height: 10px;
}

.home-rank-more {
    display: block;
    width: 100%;
    padding: 9px 0;
    border-radius: 10px;
    background: rgba(255, 75, 62, 0.12);
    border: 1px solid rgba(255, 75, 62, 0.28);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    margin-top: auto;
    cursor: pointer;
    transition: background var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
}

.home-rank-more:active {
    background: rgba(255, 75, 62, 0.22);
}

/* Featured big poster card (right) */
.home-featured-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.home-featured-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    background-color: rgba(255,255,255,0.04);
}

.home-featured-info {
    padding: 10px 2px;
}

.home-featured-title {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.home-featured-tags {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.home-featured-tag {
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--muted-strong);
}

/* ---- 2-Column Grid ---- */
.home-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.home-grid-2 .home-poster img {
    aspect-ratio: 2/3;
    border-radius: 14px;
}

.home-grid-2 .home-poster {
    border-radius: 14px;
}

.home-more-grid:empty {
    display: none;
}

.home-load-more {
    min-height: 12px;
    margin: 2px 0 18px;
}

.home-load-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.home-load-grid[hidden] {
    display: none;
}

.home-poster-skeleton {
    overflow: visible;
}

.home-poster-skeleton-img {
    width: 100%;
    aspect-ratio: 2/3;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.home-poster-skeleton-line {
    height: 12px;
    margin-top: 8px;
}

.home-poster-skeleton-line.short {
    width: 58%;
    height: 9px;
    margin-top: 6px;
}

.home-load-sentinel {
    width: 100%;
    height: 1px;
}

.home-load-retry {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-weight: 800;
}

/* ---- Section label ---- */
.home-section-title {
    font-size: 1.04rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 16px 0 12px;
}

.header-action.is-placeholder {
    visibility: hidden;
    pointer-events: none;
}

.auth-legal-note {
    margin: 9px 4px 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
    line-height: 1.42;
    text-align: center;
}

.legal-link {
    font-weight: 500;
    text-decoration: none;
    transition: opacity var(--dur-fast) ease, filter var(--dur-fast) ease;
}

.legal-link:active {
    opacity: 0.78;
}

.legal-link.terms {
    color: rgba(118, 190, 255, 0.78);
}

.legal-link.privacy {
    color: rgba(118, 190, 255, 0.78);
}

.legal-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin: 10px 4px 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    line-height: 1.42;
    cursor: pointer;
}

.legal-consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.legal-checkmark {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 75, 62, 0.12);
    border: 1px solid rgba(255, 75, 62, 0.42);
    box-shadow: none;
    transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
}

.legal-checkmark::after {
    content: "";
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(42deg) scale(0);
    transform-origin: center;
    transition: transform var(--dur-fast) var(--ease-spring);
}

.legal-consent input:focus-visible + .legal-checkmark {
    outline: 2px solid rgba(255, 75, 62, 0.46);
    outline-offset: 3px;
}

.legal-consent input:checked + .legal-checkmark {
    background: #ff4b3e;
    border-color: #ff4b3e;
    transform: none;
}

.legal-consent input:checked + .legal-checkmark::after {
    transform: translateY(-1px) rotate(42deg) scale(1);
}

.legal-page {
    display: grid;
    gap: 14px;
}

.legal-hero-card,
.policy-section {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xs);
}

.legal-hero-card {
    padding: 20px;
    overflow: hidden;
}

.legal-hero-card.privacy {
    background:
        radial-gradient(circle at 86% 10%, rgba(85, 224, 162, 0.20), transparent 36%),
        linear-gradient(145deg, rgba(20, 42, 34, 0.96), rgba(10, 12, 18, 0.98));
}

.legal-hero-card.terms {
    background:
        radial-gradient(circle at 86% 10%, rgba(255, 211, 106, 0.22), transparent 36%),
        linear-gradient(145deg, rgba(44, 28, 18, 0.96), rgba(10, 12, 18, 0.98));
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
}

.legal-hero-card h2,
.policy-section h2 {
    margin: 0;
}

.legal-hero-card h2 {
    margin-top: 14px;
    font-size: 1.28rem;
    line-height: 1.22;
    font-weight: 800;
}

.legal-hero-card p,
.policy-section p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.62;
}

.policy-section {
    padding: 16px;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.94), rgba(12, 12, 20, 0.97));
}

.policy-section h2 {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 800;
}

.policy-list {
    display: grid;
    gap: 9px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.policy-list li {
    position: relative;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    line-height: 1.55;
}

.policy-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(118, 190, 255, 0.58);
}

.policy-shell {
    width: min(100%, 760px);
    padding: calc(env(safe-area-inset-top) + 12px) 16px calc(var(--nav-height) + env(safe-area-inset-bottom) + 18px);
}

.policy-document {
    display: grid;
    gap: 14px;
}

.policy-topbar {
    position: sticky;
    top: calc(env(safe-area-inset-top) + 8px);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(11, 11, 17, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: var(--shadow-xs);
}

.policy-back {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    color: rgba(214, 235, 255, 0.92);
    background: rgba(118, 190, 255, 0.10);
    border: 1px solid rgba(118, 190, 255, 0.16);
}

.policy-back .app-icon {
    width: 18px;
    height: 18px;
}

.policy-brand {
    display: grid;
    min-width: 0;
}

.policy-brand span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.policy-brand strong {
    margin-top: 1px;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.1;
}

.policy-hero {
    position: relative;
    overflow: hidden;
    min-height: 232px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.policy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.16), transparent 24%);
}

.policy-hero::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, 0.08);
}

.policy-hero.terms {
    background:
        radial-gradient(circle at 86% 12%, rgba(118, 190, 255, 0.15), transparent 38%),
        radial-gradient(circle at 10% 8%, rgba(118, 190, 255, 0.08), transparent 34%),
        linear-gradient(145deg, rgba(18, 28, 42, 0.98), rgba(11, 11, 17, 0.98));
}

.policy-hero.privacy {
    background:
        radial-gradient(circle at 86% 12%, rgba(118, 190, 255, 0.15), transparent 38%),
        radial-gradient(circle at 10% 8%, rgba(118, 190, 255, 0.08), transparent 34%),
        linear-gradient(145deg, rgba(18, 28, 42, 0.98), rgba(11, 11, 17, 0.98));
}

.policy-hero > * {
    position: relative;
    z-index: 1;
}

.policy-pill {
    width: fit-content;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.64rem;
    font-weight: 400;
}

.policy-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.48rem, 6vw, 2.18rem);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: 0;
}

.policy-hero p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    line-height: 1.5;
}

.policy-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: min(100%, 320px);
    margin-top: 4px;
    padding: 5px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.policy-tabs a {
    min-height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 400;
}

.policy-tabs a.active {
    background: rgba(255, 255, 255, 0.92);
    color: #141217;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.policy-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.policy-summary-grid article {
    min-height: 112px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(24, 24, 34, 0.96), rgba(13, 13, 21, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.policy-summary-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    border-radius: 999px;
    color: rgba(232, 244, 255, 0.92);
    background: rgba(118, 190, 255, 0.18);
    font-size: 0.62rem;
    font-weight: 400;
}

.policy-summary-grid strong {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.22;
}

.policy-summary-grid p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
    line-height: 1.45;
}

.policy-accordion {
    display: grid;
    gap: 10px;
}

.policy-accordion details {
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(22, 22, 32, 0.97), rgba(12, 12, 20, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xs);
}

.policy-accordion summary {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 14px;
    cursor: pointer;
    list-style: none;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 400;
}

.policy-accordion summary::-webkit-details-marker {
    display: none;
}

.policy-accordion summary::after {
    content: "+";
    width: 24px;
    height: 24px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(118, 190, 255, 0.78);
    font-size: 1rem;
    line-height: 1;
    transition: transform var(--dur-fast) ease, background var(--dur-fast) ease;
}

.policy-accordion details[open] summary::after {
    content: "-";
    transform: rotate(180deg);
    background: rgba(118, 190, 255, 0.12);
}

.policy-accordion p,
.policy-accordion li {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.76rem;
    line-height: 1.58;
}

.policy-accordion p {
    margin: 0;
    padding: 0 14px 12px;
}

.policy-accordion p + p {
    padding-top: 0;
}

.policy-accordion ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0 14px 14px 30px;
}

@media (max-width: 560px) {
    .policy-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .policy-hero {
        min-height: 220px;
        padding: 16px;
        border-radius: 22px;
    }

    .policy-summary-grid {
        grid-template-columns: 1fr;
    }

    .policy-summary-grid article {
        min-height: 0;
    }
}

.admin-notification-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-list-row {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
    .admin-notification-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .admin-list-row {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-splash,
    .app-splash-stage,
    .app-splash-ring,
    .app-splash-light,
    .app-splash-icon-wrap,
    .app-splash-icon-wrap::after,
    .app-splash-icon,
    .app-splash-logo,
    .app-splash-progress span,
    .app-splash::before,
    .app-splash::after {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }

    .app-splash-stage,
    .app-splash-icon,
    .app-splash-logo {
        opacity: 1;
        transform: none;
    }
}

/* Reward page header alignment */
.reward-page-header {
    align-items: center !important;
    padding-top: calc(env(safe-area-inset-top) + 10px) !important;
    padding-bottom: 10px !important;
}

.reward-page-header .brand-lockup {
    align-items: center !important;
    gap: 10px !important;
}

.reward-page-header .reward-page-back {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    flex: 0 0 42px !important;
}

.reward-page-header .reward-page-logo {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: var(--shadow-xs) !important;
    transform: none !important;
}

.reward-page-header .reward-page-logo img {
    display: none !important;
}

.reward-page-header .reward-page-logo::before {
    content: "";
    width: 11px;
    height: 11px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: var(--text);
    transform: rotate(45deg) translate(2px, -2px);
}

.reward-page-header .brand-lockup > div {
    display: flex;
    align-items: center;
    min-height: 42px;
}

.reward-page-header .page-title {
    display: block;
    font-size: clamp(1.16rem, 3.2vw, 1.48rem) !important;
    line-height: 1.24 !important;
    padding-top: 1px;
    overflow: visible !important;
    letter-spacing: 0 !important;
}

/* VIP center: fixed subscription dock */
.app-shell.vip-shell {
    --vip-dock-height: 252px;
    width: min(100%, var(--app-width));
    min-height: 100dvh;
    padding: 0 16px calc(var(--vip-dock-height) + 28px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 50% -12%, rgba(255, 105, 48, 0.24), transparent 150px),
        radial-gradient(circle at 95% 8%, rgba(255, 211, 106, 0.11), transparent 120px),
        linear-gradient(180deg, #090806 0%, #080706 28%, #050505 100%);
}

.vip-center-page {
    display: grid;
    gap: 12px;
}

.vip-center-header {
    position: sticky;
    top: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    min-height: calc(env(safe-area-inset-top) + 58px);
    width: calc(100% + 32px);
    margin: 0 -16px 8px;
    padding: env(safe-area-inset-top) 16px 6px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 123, 54, 0.12), transparent 120px),
        linear-gradient(180deg, rgba(8, 7, 6, 1), rgba(8, 7, 6, 0.86));
    backdrop-filter: blur(18px);
}

html.is-standalone-pwa .vip-center-header {
    min-height: 58px;
    padding-top: 0;
}

.vip-center-header h1 {
    margin: 0;
    color: #fffaf0;
    font-size: clamp(1.14rem, 4.8vw, 1.34rem);
    line-height: 1;
    text-align: center;
    letter-spacing: 0;
    font-weight: 900;
}

.vip-center-action {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff4e2;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
}

.vip-center-action .app-icon {
    width: 20px;
    height: 20px;
}

.vip-benefit-panel,
.vip-classics-panel,
.vip-info-panel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 76% 26%, rgba(162, 83, 22, 0.22), transparent 40%),
        linear-gradient(160deg, rgba(39, 21, 15, 0.98), rgba(19, 13, 11, 0.98));
    border: 1px solid rgba(255, 229, 182, 0.08);
}

.vip-benefit-panel {
    min-height: 318px;
    padding: 22px 18px 18px;
}

.vip-benefit-copy {
    position: relative;
    z-index: 2;
    max-width: 276px;
}

.vip-benefit-copy h2,
.vip-classics-panel h2,
.vip-info-panel h2 {
    margin: 0;
    color: #ffe5b8;
    font-size: clamp(1.14rem, 5.2vw, 1.34rem);
    line-height: 1.16;
    letter-spacing: 0;
    font-weight: 950;
}

.vip-benefit-list {
    display: grid;
    gap: 11px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.vip-benefit-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: rgba(255, 245, 226, 0.93);
    font-size: clamp(0.86rem, 3.8vw, 1rem);
    line-height: 1.22;
    font-weight: 700;
}

.vip-benefit-list li span {
    width: 22px;
    height: 22px;
    display: block;
    position: relative;
}

.vip-benefit-list li span::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 8px;
    height: 15px;
    border-right: 2px solid #ffe5b8;
    border-bottom: 2px solid #ffe5b8;
    transform: rotate(42deg);
}

.vip-benefit-crown {
    position: absolute;
    z-index: 1;
    right: 8px;
    top: 6px;
    width: min(76px, 18vw);
    height: min(76px, 18vw);
    object-fit: contain;
    opacity: 0.72;
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.44));
    transform: none;
}

.vip-classics-panel {
    padding: 18px 0 18px 18px;
}

.vip-classics-panel h2 {
    font-size: clamp(1.06rem, 4.4vw, 1.24rem);
    margin-right: 18px;
}

.vip-classics-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 16px 18px 2px 0;
    scrollbar-width: none;
}

.vip-classics-row::-webkit-scrollbar {
    display: none;
}

.vip-classic-card {
    position: relative;
    display: block;
    flex: 0 0 112px;
    min-width: 112px;
    color: #fff;
    text-decoration: none;
    scroll-snap-align: start;
}

.vip-classic-card img {
    display: block;
    width: 100%;
    aspect-ratio: 0.72;
    object-fit: cover;
    border-radius: 6px;
    background: #1a1511;
}

.vip-classic-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 34px;
    margin-top: 8px;
    overflow: hidden;
    color: rgba(255, 248, 235, 0.96);
    font-size: 0.74rem;
    line-height: 1.22;
    font-weight: 850;
}

.vip-classic-badge {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    margin: 8px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 5px;
    color: #4a260f;
    background: #ffe4b1;
    font-size: 0.64rem;
    font-weight: 900;
}

.vip-classics-empty {
    margin: 18px 20px 0 0;
    padding: 18px;
    border-radius: 8px;
    color: rgba(255, 238, 204, 0.72);
    background: rgba(255, 255, 255, 0.045);
}

.vip-info-panel {
    padding: 18px;
}

.vip-info-panel h2 {
    color: #fff4de;
    font-size: 1.02rem;
}

.vip-info-panel ol {
    margin: 14px 0 0;
    padding-left: 22px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    line-height: 1.42;
    font-weight: 700;
}

.vip-info-panel li + li {
    margin-top: 8px;
}

.vip-subscription-dock {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 92;
    width: min(100%, var(--app-width));
    padding: 18px 16px calc(14px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(255, 224, 186, 0.44);
    border-bottom: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(116, 49, 16, 0.36), transparent 40%),
        linear-gradient(180deg, rgba(61, 22, 7, 0.98), rgba(19, 9, 5, 0.99));
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(24px);
}

.vip-subscription-dock h2 {
    margin: 0 0 12px;
    color: #fff0d1;
    font-size: 0.98rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}

.vip-dock-plan-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0 2px 8px;
    margin: 0 -2px;
    scrollbar-width: none;
}

.vip-dock-plan-row::-webkit-scrollbar {
    display: none;
}

.vip-dock-plan-option.vip-plan-option {
    flex: 0 0 122px;
    min-width: 122px;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding: 28px 10px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 224, 178, 0.08);
    background: linear-gradient(180deg, #532412 0%, #351609 100%);
    color: #fff;
    box-shadow: none;
    scroll-snap-align: start;
}

.vip-dock-plan-option.vip-plan-option.is-selected {
    border-color: rgba(255, 235, 204, 0.96);
    background:
        linear-gradient(180deg, rgba(139, 83, 55, 0.92), rgba(57, 25, 10, 0.98));
    box-shadow: 0 0 0 1px rgba(255, 221, 171, 0.18), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.vip-dock-sale {
    position: absolute;
    left: -1px;
    right: -1px;
    top: -1px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, #ff3e35, #f04446);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1;
}

.vip-dock-plan-name,
.vip-dock-plan-meta,
.vip-dock-old-price,
.vip-dock-price {
    display: block;
}

.vip-dock-plan-name {
    color: rgba(255, 239, 216, 0.88);
    font-size: 0.78rem;
    line-height: 1.14;
    font-weight: 780;
}

.vip-dock-plan-meta {
    color: rgba(255, 226, 183, 0.48);
    font-size: 0.58rem;
    font-weight: 720;
}

.vip-dock-old-price {
    min-height: 15px;
    color: rgba(255, 229, 195, 0.46);
    font-size: 0.64rem;
    line-height: 1;
    font-weight: 780;
    text-decoration: line-through;
}

.vip-dock-old-price.is-empty {
    text-decoration: none;
}

.vip-dock-price {
    color: #fff2d4;
    font-size: clamp(1.02rem, 4.3vw, 1.22rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: 0;
    white-space: nowrap;
}

.vip-subscribe-button {
    position: relative;
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    color: #2a1608;
    background: linear-gradient(180deg, #fff7df 0%, #ffd08a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 28px rgba(0, 0, 0, 0.34);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 950;
}

.vip-subscribe-button.is-loading {
    cursor: wait;
    opacity: 1;
    color: #2a1608;
    background: linear-gradient(180deg, #fff7df 0%, #ffd08a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 28px rgba(0, 0, 0, 0.34);
    transform: none;
}

.vip-subscribe-button.is-loading img,
.vip-subscribe-button.is-loading span {
    opacity: 0;
}

.vip-subscribe-button.is-loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    filter: drop-shadow(0 1px 2px rgba(74, 31, 7, 0.36));
    animation: vip-button-spin 0.76s linear infinite;
}

@keyframes vip-button-spin {
    to {
        transform: rotate(360deg);
    }
}

.vip-subscribe-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.vip-manage-link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    color: #ffe3ab;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}

.vip-dock-note {
    margin: 10px 6px 0;
    color: rgba(255, 236, 214, 0.54);
    font-size: 0.66rem;
    line-height: 1.4;
    text-align: center;
    font-weight: 750;
}

.vip-exit-offer {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding: calc(env(safe-area-inset-top) + 18px) 22px calc(env(safe-area-inset-bottom) + 22px);
}

html.is-vip-exit-offer-open,
html.is-vip-exit-offer-open body {
    overflow: hidden;
}

.vip-exit-offer[hidden] {
    display: none;
}

.vip-exit-offer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(3.5px);
}

.vip-exit-offer-card {
    position: relative;
    width: min(100%, 424px);
    min-height: 526px;
    display: grid;
    align-content: center;
    padding: 72px 0 82px;
    color: #fff2d8;
}

.vip-exit-offer-crown {
    position: absolute;
    z-index: 4;
    top: 8px;
    left: 50%;
    width: 176px;
    height: 136px;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.66));
}

.vip-exit-offer-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    padding: 102px 26px 32px;
    min-height: 374px;
    border-radius: 27px;
    border: 1px solid rgba(224, 159, 94, 0.82);
    background:
        radial-gradient(circle at 68% 4%, rgba(154, 0, 0, 0.68), transparent 178px),
        radial-gradient(circle at 38% 4%, rgba(111, 8, 0, 0.72), transparent 196px),
        linear-gradient(180deg, #4c0504 0%, #170302 45%, #030303 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 210, 145, 0.12),
        0 24px 72px rgba(0, 0, 0, 0.78);
    text-align: center;
}

.vip-exit-offer-panel::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    border: 1px solid rgba(210, 145, 88, 0.62);
    pointer-events: none;
}

.vip-exit-offer-panel h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffd49b;
    font-size: 1.42rem;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 0;
}

.vip-exit-offer-motivation {
    position: relative;
    z-index: 1;
    display: block;
    margin: 8px 0 22px;
    color: rgba(255, 218, 167, 0.68);
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 800;
}

.vip-exit-offer-price {
    position: relative;
    z-index: 1;
    color: #fff0cf;
    font-size: 3.72rem;
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: 0;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.vip-exit-offer-old-price {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 12px;
    color: rgba(255, 222, 177, 0.46);
    font-size: 1.06rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: line-through;
}

.vip-exit-offer-panel p {
    position: relative;
    z-index: 1;
    max-width: 326px;
    margin: 32px 0 0;
    color: rgba(213, 181, 143, 0.68);
    font-size: 1.02rem;
    line-height: 1.28;
    font-weight: 760;
}

.vip-exit-offer-button {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 64px;
    margin-top: 28px;
    border: 0;
    outline: none;
    border-radius: 8px;
    color: #3b2315;
    background: linear-gradient(90deg, #f0c47f 0%, #fff1d6 100%);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
    font: inherit;
    font-size: 1.28rem;
    font-weight: 950;
    -webkit-tap-highlight-color: transparent;
}

.vip-exit-offer-button:focus,
.vip-exit-offer-button:focus-visible,
.vip-exit-offer-button:hover {
    outline: none;
    border: 0;
    color: #3b2315 !important;
    background: linear-gradient(90deg, #f0c47f 0%, #fff1d6 100%) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
    opacity: 1 !important;
}

.vip-exit-offer-button:hover span,
.vip-exit-offer-button:focus span,
.vip-exit-offer-button:focus-visible span {
    color: #3b2315 !important;
    opacity: 1 !important;
}

.vip-exit-offer-button:active {
    color: #3b2315 !important;
    background: linear-gradient(90deg, #f0c47f 0%, #fff1d6 100%) !important;
    opacity: 1 !important;
}

.vip-exit-offer-button:active span {
    color: #3b2315 !important;
    opacity: 1 !important;
}

.vip-exit-offer-button.is-pressed,
.vip-exit-offer-button.is-pressed span {
    color: #3b2315 !important;
    opacity: 1 !important;
}

.vip-exit-offer-button.is-loading {
    cursor: wait;
    color: transparent !important;
    opacity: 1 !important;
    background: linear-gradient(90deg, #f0c47f 0%, #fff1d6 100%) !important;
}

.vip-exit-offer-button:disabled {
    opacity: 1 !important;
}

.vip-exit-offer-button.is-loading span {
    opacity: 0 !important;
}

.vip-exit-offer-button.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.42);
    border-top-color: #ffffff;
    filter: drop-shadow(0 2px 5px rgba(72, 28, 8, 0.26));
    animation: vip-button-spin 0.76s linear infinite;
}

.vip-exit-offer-timer {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    color: #ffd294;
    font-size: 1.02rem;
    line-height: 1.15;
    font-weight: 850;
}

.vip-exit-offer-close {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    outline: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.40);
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
    -webkit-tap-highlight-color: transparent;
}

.vip-exit-offer-close:focus,
.vip-exit-offer-close:focus-visible {
    outline: none;
}

.vip-exit-offer-close .app-icon {
    display: block;
    width: 27px;
    height: 27px;
    transform: translateY(-1px);
}

@media (min-width: 431px) {
    .vip-dock-plan-option.vip-plan-option {
        flex-basis: 31.6%;
        min-width: 118px;
    }
}

@media (max-width: 390px) {
    .app-shell.vip-shell {
        --vip-dock-height: 244px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .vip-center-header {
        width: calc(100% + 24px);
        margin: 0 -12px 8px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .vip-benefit-panel {
        min-height: 300px;
        padding: 20px 16px 17px;
    }

    .vip-benefit-list {
        gap: 10px;
    }

    .vip-classic-card {
        flex-basis: 104px;
        min-width: 104px;
    }

    .vip-subscription-dock {
        padding: 17px 14px calc(13px + env(safe-area-inset-bottom));
    }

    .vip-dock-plan-option.vip-plan-option {
        flex-basis: 116px;
        min-width: 116px;
        min-height: 104px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .vip-dock-plan-name {
        font-size: 0.74rem;
    }

    .vip-exit-offer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .vip-exit-offer-card {
        min-height: 500px;
        padding-top: 66px;
        padding-bottom: 74px;
    }

    .vip-exit-offer-crown {
        width: 154px;
        height: 118px;
        top: 8px;
    }

    .vip-exit-offer-panel {
        min-height: 362px;
        padding: 94px 22px 30px;
        border-radius: 24px;
    }

    .vip-exit-offer-motivation {
        margin-bottom: 18px;
        font-size: 0.72rem;
    }

    .vip-exit-offer-price {
        font-size: 3.06rem;
    }

    .vip-exit-offer-panel p {
        margin-top: 28px;
        font-size: 0.94rem;
    }

    .vip-exit-offer-button {
        min-height: 58px;
        font-size: 1.14rem;
    }

    .vip-exit-offer-close {
        width: 46px;
        height: 46px;
    }
}

/* Payment result screens */
.app-shell.payment-result-shell {
    --payment-accent: #ffd66f;
    --payment-accent-strong: #ffb545;
    --payment-accent-soft: rgba(255, 214, 111, 0.18);
    width: min(100%, var(--app-width));
    display: grid;
    align-items: start;
    padding: calc(env(safe-area-inset-top) + 18px) 14px calc(var(--nav-total-height) + 18px);
    background:
        radial-gradient(circle at 50% 2%, rgba(255, 214, 111, 0.18), transparent 150px),
        radial-gradient(circle at 8% 10%, rgba(255, 75, 62, 0.12), transparent 130px),
        linear-gradient(180deg, #100d12 0%, #08080d 48%, #050506 100%);
}

.app-shell.payment-result-cancel-shell {
    --payment-accent: #ff8c82;
    --payment-accent-strong: #ff4b3e;
    --payment-accent-soft: rgba(255, 75, 62, 0.18);
    background:
        radial-gradient(circle at 50% 1%, rgba(255, 75, 62, 0.18), transparent 150px),
        radial-gradient(circle at 92% 12%, rgba(255, 214, 111, 0.10), transparent 120px),
        linear-gradient(180deg, #120c0e 0%, #08080d 48%, #050506 100%);
}

.payment-result {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 16px;
    width: 100%;
    margin: 0 auto;
    min-height: calc(100dvh - var(--nav-total-height) - 52px - env(safe-area-inset-top));
    padding: 22px 16px;
    border-radius: 8px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(11, 11, 17, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.payment-result::before,
.payment-result::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.payment-result::before {
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 36%, rgba(255, 255, 255, 0.08) 48%, transparent 61%),
        radial-gradient(circle at 50% 0%, var(--payment-accent-soft), transparent 42%);
    opacity: 0.9;
}

.payment-result::after {
    inset: auto 12% -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--payment-accent), transparent);
    opacity: 0.72;
}

.payment-result-glow {
    position: absolute;
    inset: -58px -36px auto;
    height: 150px;
    z-index: -1;
    background: radial-gradient(circle, var(--payment-accent-soft), transparent 64%);
    filter: blur(10px);
}

.payment-result-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
}

.payment-result-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        conic-gradient(from 180deg, transparent, var(--payment-accent), transparent 68%),
        radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 62%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.payment-result-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #241800;
    background: linear-gradient(145deg, #fff7d8, var(--payment-accent-strong));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34), 0 0 34px var(--payment-accent-soft);
}

.payment-result-icon.cancel {
    color: #fff;
    background: linear-gradient(145deg, #ff9b91, #c8212d);
}

.payment-result-icon .app-icon {
    width: 27px;
    height: 27px;
}

.payment-result-copy {
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: 100%;
}

.payment-result-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
    max-width: 100%;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff0ca;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 850;
}

.payment-result-eyebrow .app-icon {
    width: 17px;
    height: 17px;
    color: var(--payment-accent);
}

.payment-result h1 {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 12vw, 3.18rem);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.payment-result p {
    max-width: 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(0.92rem, 4.1vw, 1.04rem);
    line-height: 1.42;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.payment-result-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
}

.payment-result-summary div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-result-summary span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 800;
}

.payment-result-summary strong {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.18;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: -6px;
}

.payment-result-actions .btn {
    width: 100%;
    min-height: 50px;
    border-radius: 8px;
    padding-inline: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.payment-result-actions .app-icon {
    width: 19px;
    height: 19px;
}

@media (min-width: 431px) {
    .app-shell.payment-result-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .payment-result {
        min-height: auto;
        margin-top: 28px;
        padding: 28px 18px;
    }
}
