:root {
    --bg: #09090b;
    --surface: #151515;
    --surface-2: #202020;
    --ink: #f8fafc;
    --muted: #a1a1aa;
    --line: #2a2a2f;
    --primary: #e50914;
    --primary-2: #b20710;
    --accent: #7f0d1b;
    --gold: #f5b642;
    --green: #16a34a;
    --danger: #dc2626;
    --dark: #050505;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #050505 url("https://static.vecteezy.com/system/resources/thumbnails/007/120/314/small_2x/galaxy-background-with-falling-star-space-galaxy-illustration-free-vector.jpg") center / cover fixed;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(229, 9, 20, 0.18), transparent 30rem),
        linear-gradient(180deg, rgba(5, 5, 5, 0.74), rgba(9, 9, 11, 0.72)),
        url("https://static.vecteezy.com/system/resources/thumbnails/007/120/314/small_2x/galaxy-background-with-falling-star-space-galaxy-illustration-free-vector.jpg") center / cover fixed;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

img {
    display: block;
    max-width: 100%;
}

.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
    background: rgba(5, 5, 5, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.brand-logo {
    width: clamp(184px, 25vw, 318px);
    height: 58px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.brand.on-light .brand-logo {
    filter: none;
}

.brand-mark,
.avatar-link,
.profile-avatar {
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(229, 9, 20, 0.28);
}

.brand strong,
.brand small {
    display: block;
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.top-actions,
.button-row,
.meta-row,
.chip-row,
.inline-actions,
.toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-actions {
    flex: 0 0 auto;
}

.account-summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    list-style: none;
    cursor: pointer;
}

.account-summary::-webkit-details-marker,
.notification-menu summary::-webkit-details-marker {
    display: none;
}

.welcome-copy {
    max-width: min(220px, 22vw);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pill-link,
.avatar-link,
.icon-button,
.btn {
    border: 0;
    border-radius: 12px;
    min-height: 42px;
    padding: 10px 14px;
    font-weight: 850;
}

.pill-link {
    color: #3a2a00;
    background: linear-gradient(135deg, #ffe08a, var(--gold));
}

.pill-link.ghost,
.icon-button,
.btn.soft {
    color: var(--ink);
    background: rgba(15, 23, 42, 0.08);
}

.hero-drama .btn.soft,
.detail-hero .btn.soft,
.premium-hero .btn.soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

.avatar-link,
.icon-button {
    width: 42px;
    height: 42px;
    padding: 0;
}

.avatar-link {
    flex: 0 0 42px;
    min-width: 42px;
    min-height: 42px;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
}

.icon-button {
    display: grid;
    place-items: center;
}

.topbar .icon-button {
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.account-menu {
    position: relative;
}

.notification-menu {
    position: relative;
}

.account-menu summary {
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.avatar-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.account-menu-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    min-width: 190px;
    padding: 8px;
    background: rgba(15, 15, 17, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.notification-menu-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: min(360px, calc(100vw - 28px));
    max-height: min(520px, calc(100vh - 90px));
    overflow: auto;
    padding: 10px;
    background: rgba(15, 15, 17, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.notification-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 10px;
}

.notification-menu-head strong {
    color: #ffffff;
}

.notification-menu-head span,
.empty-mini {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.notification-button {
    position: relative;
}

.notification-button .notification-unseen-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    color: #ffffff;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
}

.bell-icon {
    position: relative;
    width: 17px;
    height: 18px;
    border: 2px solid #ffffff;
    border-bottom: 0;
    border-radius: 10px 10px 5px 5px;
}

.bell-icon::before,
.bell-icon::after {
    position: absolute;
    content: "";
}

.bell-icon::before {
    left: 50%;
    top: -5px;
    width: 6px;
    height: 6px;
    border-top: 2px solid #ffffff;
    border-radius: 999px;
    transform: translateX(-50%);
}

.bell-icon::after {
    left: 50%;
    bottom: -5px;
    width: 7px;
    height: 4px;
    background: #ffffff;
    border-radius: 0 0 999px 999px;
    transform: translateX(-50%);
}

.account-menu-panel form {
    margin: 0;
}

.account-menu-panel a,
.account-menu-panel button {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    padding: 9px 10px;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 10px;
    text-align: left;
    font-weight: 850;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ui-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
}

.icon-button .ui-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.coin-amount {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    color: inherit;
    background: transparent;
    border: 0;
    font-weight: 950;
    line-height: 1;
}

.coin-amount span {
    padding: 0;
    background: transparent;
    border: 0;
}

.coin-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(245, 182, 66, 0.24));
}

.coin-amount.compact {
    gap: 5px;
    font-size: inherit;
}

.coin-amount.compact .coin-icon {
    width: 20px;
    height: 20px;
}

.coin-amount.light .coin-value {
    color: #ffffff;
}

.wallet-card .btn.primary .coin-amount.light .coin-value {
    color: #047857;
}

.coin-icon.tiny {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    vertical-align: -4px;
}

.main-content {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    padding: 14px 0 96px;
}

.flash-stack {
    position: fixed;
    z-index: 50;
    top: 70px;
    right: 14px;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
}

.flash {
    padding: 12px 14px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-weight: 750;
}

.flash.error {
    border-left-color: var(--danger);
}

.flash.warning {
    border-left-color: var(--gold);
}

.hero-drama,
.detail-hero,
.premium-hero,
.admin-hero,
.profile-hero,
.wallet-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    background: #0b1220;
    box-shadow: var(--shadow);
}

.hero-drama::before,
.detail-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0.78) 42%, rgba(11, 18, 32, 0.18) 100%),
        var(--hero-image) center / cover;
}

.hero-slider {
    position: relative;
    display: grid;
    min-height: 330px;
}

.hero-slider .hero-drama {
    grid-area: 1 / 1;
    min-height: 430px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.995);
    transition: opacity 360ms ease, transform 360ms ease;
    visibility: hidden;
}

.hero-slider .hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    visibility: visible;
}

.hero-slider-controls {
    position: absolute;
    z-index: 3;
    right: 22px;
    bottom: 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(14px);
}

.hero-slider-controls button {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(255, 255, 255, 0.46);
    border: 0;
    border-radius: 999px;
}

.hero-slider-controls button.active {
    width: 26px;
    background: #ffffff;
}

.hero-copy,
.detail-copy,
.detail-poster {
    position: relative;
    z-index: 1;
}

.hero-copy,
.detail-copy {
    width: min(560px, 100%);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    color: #fee2e2;
    background: rgba(229, 9, 20, 0.22);
    border: 1px solid rgba(229, 9, 20, 0.42);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero-copy h1,
.detail-copy h1,
.premium-hero h1 {
    margin: 10px 0 10px;
    font-size: clamp(34px, 8vw, 64px);
    line-height: 1;
}

.hero-copy p,
.detail-copy p,
.premium-hero p,
.admin-hero p,
.profile-hero p,
.wallet-card p,
.muted {
    color: var(--muted);
}

.hero-copy p,
.detail-copy p,
.premium-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

.meta-row {
    flex-wrap: wrap;
    margin: 14px 0;
}

.meta-row > span {
    padding: 7px 10px;
    color: inherit;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid transparent;
    text-align: center;
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 26px rgba(229, 9, 20, 0.26);
}

.btn.like-button {
    color: #fee2e2;
    background: rgba(229, 9, 20, 0.12);
    border-color: rgba(229, 9, 20, 0.26);
}

.btn.like-button.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 24px rgba(229, 9, 20, 0.24);
}

.icon-action {
    min-width: 42px;
    min-height: 42px;
    padding-inline: 12px;
}

.icon-action .ui-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.like-button:not(.active) .ui-icon {
    filter: brightness(0) invert(1);
    opacity: 0.86;
}

.episode-card a.btn.icon-action {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.22);
}

.favorite-button {
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}

.favorite-button.active {
    color: var(--gold);
    background: rgba(245, 182, 66, 0.16);
    border-color: rgba(245, 182, 66, 0.34);
}

.btn.compact {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

.btn.full {
    width: 100%;
}

.toolbar-panel,
.content-section,
.form-card,
.admin-tabs,
.stats-grid article,
.empty-state,
.profile-hero,
.wallet-card,
.plan-card,
.user-admin-card {
    background: rgba(21, 21, 21, 0.92);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.toolbar-panel,
.content-section,
.admin-tabs {
    margin-top: 14px;
    padding: 16px;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.field-group {
    display: grid;
    gap: 7px;
}

.field-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.label-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(229, 9, 20, 0.68);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.14);
}

.chip-row {
    flex-wrap: wrap;
    margin-top: 12px;
}

.chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 11px;
    color: #fee2e2;
    background: rgba(229, 9, 20, 0.14);
    border: 1px solid rgba(229, 9, 20, 0.24);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
}

.chip.active {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
}

.section-title span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.poster-row {
    display: grid;
    grid-auto-columns: minmax(165px, 210px);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.poster-card,
.drama-card,
.continue-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
    scroll-snap-align: start;
}

.poster-card {
    min-height: 230px;
}

.poster-card img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}

.poster-card::after,
.drama-card .thumb::after {
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
}

.poster-card > strong {
    position: absolute;
    left: 10px;
    bottom: 16px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.24);
    font-size: 96px;
    line-height: 0.7;
}

.poster-card div {
    position: absolute;
    z-index: 2;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    gap: 2px;
    padding: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.poster-card small,
.mini-meta,
.episode-card small {
    color: var(--muted);
    font-size: 12px;
}

.poster-card div small {
    color: rgba(255, 255, 255, 0.76);
}

.badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    color: #ffffff;
    background: var(--accent);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 900;
}

.drama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.drama-card {
    background: var(--surface);
    border: 1px solid var(--line);
}

.drama-card .thumb {
    position: relative;
    display: block;
    height: 170px;
    overflow: hidden;
}

.drama-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drama-card-body {
    padding: 13px;
}

.drama-card h3 {
    margin: 4px 0;
    font-size: 17px;
}

.drama-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-modal {
    width: min(1080px, calc(100vw - 28px));
    max-height: calc(100vh - 32px);
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
}

.category-modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.category-modal-panel {
    display: grid;
    gap: 16px;
    min-height: min(760px, calc(100vh - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 18px;
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.category-modal-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.category-modal-header h2,
.category-modal-header p {
    margin: 6px 0 0;
}

.category-modal-header p {
    color: var(--muted);
}

.category-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.continue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.continue-card {
    min-height: 122px;
    padding: 12px 12px 14px 116px;
    color: #ffffff;
}

.continue-card img {
    position: absolute;
    inset: 0 auto 0 0;
    width: 102px;
    height: 100%;
    object-fit: cover;
}

.continue-card span,
.continue-card small {
    display: block;
}

.continue-card small {
    color: rgba(255, 255, 255, 0.78);
}

.continue-card i {
    position: absolute;
    left: 116px;
    right: 12px;
    bottom: 10px;
    height: 4px;
    max-width: calc(100% - 128px);
    background: var(--accent);
    border-radius: 999px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
    align-items: end;
}

.detail-poster img {
    width: 230px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.episode-list,
.mission-list,
.notification-list,
.payment-table,
.admin-list,
.admin-user-list {
    display: grid;
    gap: 10px;
}

.episode-card,
.mission-list article,
.notification-list article,
.payment-table article,
.admin-list article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.episode-card {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.episode-card form {
    margin: 0;
}

.episode-card.locked {
    opacity: 0.78;
}

.episode-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fee2e2;
    background: rgba(229, 9, 20, 0.2);
    border-radius: 12px;
    font-weight: 900;
}

.episode-main h3,
.episode-main p {
    margin: 0;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr minmax(170px, 240px);
    gap: 14px;
    align-items: stretch;
}

.metric-panel {
    display: grid;
    place-items: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.14), rgba(127, 13, 27, 0.2));
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: center;
}

.metric-panel span {
    color: var(--primary);
    font-size: 34px;
    font-weight: 950;
}

.auth-page {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 430px);
    gap: 18px;
    align-items: center;
    min-height: calc(100vh - 190px);
}

.auth-copy {
    padding: 24px;
}

.auth-copy h1,
.profile-hero h1,
.wallet-card h1,
.admin-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(32px, 7vw, 56px);
    line-height: 1;
}

.demo-credentials {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed var(--line);
    border-radius: 14px;
}

.demo-credentials span {
    color: var(--muted);
    font-size: 13px;
}

.form-card {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.profile-hero,
.wallet-card,
.admin-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: auto;
}

.profile-alert {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 14px 16px;
    color: #fee2e2;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.28), rgba(127, 13, 27, 0.34));
    border: 1px solid rgba(248, 113, 113, 0.32);
    border-radius: 16px;
}

.profile-alert span {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 750;
}

.profile-form {
    display: grid;
    gap: 12px;
}

.profile-data-expander {
    padding: 0;
}

.profile-data-expander summary {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    list-style: none;
    cursor: pointer;
}

.profile-data-expander summary::-webkit-details-marker {
    display: none;
}

.profile-data-expander summary::after {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background: transparent url("../icons/down-arrow.png") center / 18px 18px no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: transform 160ms ease, opacity 160ms ease;
}

.profile-data-expander[open] summary::after {
    transform: rotate(180deg);
}

.profile-data-expander summary h2,
.profile-data-expander summary span {
    margin: 0;
}

.profile-data-expander summary span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-data-expander .profile-form {
    margin: 0 16px 16px;
}

.profile-hero .meta-row > span:first-child {
    padding: 0;
    background: transparent;
    border-color: transparent;
}

.profile-notification-expander {
    padding: 0;
}

.profile-notification-expander summary {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    list-style: none;
    cursor: pointer;
}

.profile-notification-expander summary::-webkit-details-marker {
    display: none;
}

.profile-notification-expander summary h2,
.profile-notification-expander summary span {
    margin: 0;
}

.profile-notification-expander summary span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-notification-expander summary > strong {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
}

.profile-notification-expander .notification-list,
.profile-notification-expander .empty-state {
    margin: 0 16px 16px;
}

.notification-list article.unread {
    border-color: rgba(229, 9, 20, 0.44);
    box-shadow: inset 4px 0 0 var(--primary);
}

.notification-list.compact {
    gap: 8px;
}

.notification-list.compact article {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.notification-list.compact p {
    margin: 2px 0;
    color: rgba(255, 255, 255, 0.76);
}

.profile-avatar {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    font-size: 28px;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallet-card {
    grid-template-columns: 1fr auto;
    color: #ffffff;
    background: linear-gradient(135deg, #047857, #16a34a);
    border-color: rgba(187, 247, 208, 0.38);
    box-shadow: 0 18px 46px rgba(22, 163, 74, 0.26);
}

.wallet-card .eyebrow {
    color: #dcfce7;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.wallet-card p {
    color: rgba(255, 255, 255, 0.82);
}

.wallet-card .btn.primary {
    color: #047857;
    background: #ffffff;
    box-shadow: none;
}

.checkin-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.checkin-grid div {
    display: grid;
    place-items: center;
    min-height: 64px;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.22);
    border-radius: 14px;
}

.checkin-grid .done {
    color: #ffffff;
    background: linear-gradient(135deg, #047857, #16a34a);
    border-color: rgba(187, 247, 208, 0.44);
}

.mission-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.mission-list p,
.mission-card p {
    margin: 2px 0 0;
    color: var(--muted);
}

.mission-list span,
.mission-card span {
    color: var(--primary);
    font-weight: 900;
}

.mission-reward {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.admin-reward-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

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

.admin-reward-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, 180px) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
}

.admin-reward-list strong,
.admin-reward-list small {
    display: block;
}

.admin-reward-list small {
    color: #667085;
}

.admin-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

@media (max-width: 760px) {
    .admin-reward-list article {
        grid-template-columns: 1fr;
    }
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.plan-card {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.plan-card h2,
.plan-card h3,
.plan-card p {
    margin: 0;
}

.plan-card strong,
.plan-card h2 {
    color: var(--primary);
}

.plan-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.premium-hero {
    min-height: auto;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(229, 9, 20, 0.92), rgba(91, 10, 24, 0.9)),
        url("https://images.unsplash.com/photo-1518674660708-0e2c0473e68e?auto=format&fit=crop&w=1400&q=85") center / cover;
}

.page-premium .premium-hero {
    overflow: visible;
    padding: 18px 0 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.admin-hero {
    color: var(--ink);
    background: rgba(21, 21, 21, 0.92);
    grid-template-columns: 1fr auto;
}

.admin-hero p {
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.stats-grid article {
    display: grid;
    gap: 3px;
    padding: 14px;
}

.stats-grid strong {
    color: var(--primary);
    font-size: 26px;
}

.stats-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.admin-tabs a {
    flex: 0 0 auto;
    padding: 9px 12px;
    color: var(--muted);
    background: var(--surface-2);
    border-radius: 12px;
    font-weight: 850;
}

.admin-tabs a.active {
    color: #ffffff;
    background: var(--primary);
}

.admin-summary-grid,
.admin-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 14px;
    align-items: start;
}

.admin-summary-grid {
    grid-template-columns: repeat(3, 1fr);
}

.admin-summary-grid article {
    padding: 14px;
    background: var(--surface-2);
    border-radius: 14px;
}

.admin-summary-grid p {
    color: var(--muted);
}

.admin-summary-grid a {
    color: var(--primary);
    font-weight: 900;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.toggle-row {
    flex-wrap: wrap;
}

.toggle-row label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 10px;
    background: var(--surface-2);
    border-radius: 10px;
}

.toggle-row input {
    width: auto;
    min-height: auto;
}

.admin-list article {
    grid-template-columns: 74px 1fr;
    align-items: center;
    min-height: 100px;
}

.admin-list img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
}

.admin-list span,
.payment-table small,
.notification-list small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.inline-actions {
    flex-wrap: wrap;
    margin-top: 8px;
}

.inline-actions a,
.inline-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 9px;
    color: #991b1b;
    background: #fee2e2;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 850;
}

.inline-actions button {
    color: #ffffff;
    background: #991b1b;
}

.selector-form {
    display: grid;
    grid-template-columns: minmax(260px, 420px);
}

.episode-admin-list article {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 82px;
}

.admin-user-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.admin-grid > .pagination {
    grid-column: 2;
}

.user-admin-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
}

.payment-table {
    margin-top: 14px;
}

.payment-table article {
    grid-template-columns: minmax(0, 1fr) auto minmax(160px, auto);
    align-items: center;
}

.notification-list article {
    grid-template-columns: 1fr;
    align-items: start;
}

.notification-list p {
    margin: 2px 0 0;
    color: var(--muted);
}

.paginated-list {
    min-width: 0;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 14px;
}

.pagination span {
    margin-right: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.pagination a,
.pagination strong,
.pagination em {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.pagination strong {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
}

.pagination em {
    color: var(--muted);
    opacity: 0.58;
}

.page-admin {
    overflow: hidden;
    background: #f7f7f8;
}

.page-admin .flash-stack {
    top: 18px;
}

.page-admin .main-content {
    width: 100%;
    height: 100vh;
    padding: 0;
}

.page-admin .bottom-nav {
    display: none;
}

.admin-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    background: #f7f7f8;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.admin-sidebar {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 22px;
    min-height: 0;
    padding: 22px 16px;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(229, 9, 20, 0.32), transparent 18rem),
        linear-gradient(180deg, #09090b, #151111);
}

.admin-sidebar-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
}

.admin-sidebar-brand {
    display: grid;
    gap: 8px;
    padding: 4px 6px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-brand img {
    width: 178px;
    max-width: 100%;
    filter: brightness(0) invert(1);
}

.admin-sidebar-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    margin-top: -10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    cursor: pointer;
}

.admin-sidebar-toggle img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.admin-sidebar-brand span,
.admin-sidebar-card span,
.admin-sidebar-card small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 850;
}

.admin-side-nav {
    display: grid;
    align-content: start;
    gap: 7px;
}

.admin-side-nav a {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.76);
    border-radius: 13px;
    font-weight: 850;
}

.admin-nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.72;
    filter: brightness(0) invert(1);
}

.admin-side-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 28px rgba(229, 9, 20, 0.24);
}

.admin-side-nav a.active .admin-nav-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.admin-sidebar-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.admin-sidebar-card strong {
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
}

@media (min-width: 901px) {
    .admin-shell.sidebar-collapsed {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .admin-shell.sidebar-collapsed .admin-sidebar {
        padding-inline: 14px;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-top {
        grid-template-columns: 1fr;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-brand {
        justify-items: start;
        width: 44px;
        height: 44px;
        overflow: hidden;
        padding-inline: 0;
        border-radius: 12px;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-brand img {
        width: 178px;
        max-width: none;
        height: 44px;
        object-fit: contain;
        object-position: left center;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-brand span,
    .admin-shell.sidebar-collapsed .admin-side-nav span,
    .admin-shell.sidebar-collapsed .admin-sidebar-card {
        display: none;
    }

    .admin-shell.sidebar-collapsed .admin-side-nav a {
        grid-template-columns: 1fr;
        justify-items: center;
        padding-inline: 0;
    }

    .admin-shell.sidebar-collapsed .admin-nav-icon {
        width: 22px;
        height: 22px;
    }
}

.admin-workspace {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 22px;
    color: #171717;
    background:
        radial-gradient(circle at top right, rgba(229, 9, 20, 0.08), transparent 24rem),
        #f7f7f8;
}

.admin-workspace-header {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-workspace-header span {
    color: #71717a;
    font-size: 13px;
    font-weight: 850;
}

.admin-workspace-header h1 {
    margin: 2px 0 0;
    color: #171717;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
}

.admin-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-modal {
    width: min(760px, calc(100vw - 28px));
    max-height: calc(100vh - 32px);
    padding: 0;
    color: #101828;
    background: transparent;
    border: 0;
}

.admin-modal::backdrop {
    background: rgba(9, 9, 11, 0.62);
    backdrop-filter: blur(4px);
}

.admin-modal-panel {
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
}

.admin-modal-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.admin-modal-header span {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.admin-modal-header h2 {
    margin: 2px 0 0;
    color: #101828;
}

.admin-modal-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
}

.page-admin .admin-modal .form-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.admin-list-section .admin-list {
    grid-template-columns: 1fr;
}

.page-admin .content-section,
.page-admin .form-card,
.page-admin .admin-tabs,
.page-admin .stats-grid article,
.page-admin .admin-panel,
.page-admin .plan-card,
.page-admin .user-admin-card,
.page-admin .empty-state {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.94);
    border-color: #dbe4f0;
}

.page-admin .content-section p,
.page-admin .form-card p,
.page-admin .admin-panel p,
.page-admin .plan-card p,
.page-admin .admin-list span,
.page-admin .payment-table small,
.page-admin .notification-list small,
.page-admin .notification-list p,
.page-admin label,
.page-admin .field-label,
.page-admin .section-title span,
.page-admin .pagination span {
    color: #526173;
}

.page-admin h1,
.page-admin h2,
.page-admin h3,
.page-admin strong,
.page-admin .section-title h2,
.page-admin .admin-list strong,
.page-admin .notification-list strong,
.page-admin .payment-table strong {
    color: #0f172a;
}

.page-admin .admin-sidebar strong,
.page-admin .admin-sidebar h2,
.page-admin .admin-sidebar h3 {
    color: #ffffff;
}

.page-admin input,
.page-admin textarea,
.page-admin select {
    color: #0f172a;
    background: #f3f6fb;
    border-color: #d9e2ee;
}

.page-admin input::placeholder,
.page-admin textarea::placeholder {
    color: #6b7688;
}

.page-admin .admin-tabs a,
.page-admin .quick-action-grid a,
.page-admin .inline-actions a,
.page-admin .pagination a,
.page-admin .pagination em {
    color: #991b1b;
    background: #fee2e2;
}

.page-admin .pagination em {
    color: #667085;
    background: #f1f5f9;
}

.page-admin .inline-actions button {
    color: #b42318;
    background: #fee4e2;
}

.page-admin .admin-form button[type="submit"],
.page-admin .user-admin-card button[type="submit"] {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 24px rgba(229, 9, 20, 0.2);
}

.page-admin .admin-form button[type="submit"]:hover,
.page-admin .user-admin-card button[type="submit"]:hover {
    transform: translateY(-1px);
}

.page-admin .metric-card {
    background: #ffffff;
}

.page-admin .metric-card span,
.page-admin .metric-card small {
    color: #667085;
}

.page-admin .metric-card strong {
    color: #101828;
}

.page-admin .metric-card > i {
    background: #111827;
}

.page-admin .admin-list article,
.page-admin .episode-admin-list article,
.page-admin .notification-list article,
.page-admin .payment-table article {
    color: #101828;
    background: #ffffff;
    border-color: #dbe4f0;
}

.page-admin .admin-list span,
.page-admin .episode-admin-list span,
.page-admin .payment-table span,
.page-admin .payment-table small,
.page-admin .notification-list small,
.page-admin .notification-list p {
    color: #667085;
}

.page-admin .payment-table strong,
.page-admin .notification-list strong,
.page-admin .admin-list strong,
.page-admin .episode-admin-list strong {
    color: #101828;
}

.page-admin .admin-like-count {
    display: inline-flex;
    width: fit-content;
    margin-top: 3px;
    padding: 4px 8px;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.page-admin .toggle-row label,
.page-admin .admin-mini-grid span,
.page-admin .admin-timeline a,
.page-admin .admin-bar-list div::after {
    background: #f3f6fb;
}

.page-admin .admin-radial {
    background:
        radial-gradient(circle, #ffffff 57%, transparent 58%),
        conic-gradient(var(--accent) var(--value), rgba(127, 13, 27, 0.18) 0);
}

.admin-stack {
    display: grid;
    gap: 14px;
}

.notification-admin-grid {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.admin-command-center .eyebrow,
.admin-command-copy p,
.admin-command-card span,
.admin-command-card small {
    color: rgba(255, 255, 255, 0.88);
}

.admin-command-center .btn.soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
}

.page-admin .admin-command-center h1,
.page-admin .admin-command-center strong,
.page-admin .admin-featured-drama h3,
.page-admin .admin-featured-drama strong {
    color: #ffffff;
}

.page-admin .admin-featured-drama p {
    color: rgba(255, 255, 255, 0.82);
}

.admin-command-center {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 410px);
    gap: 20px;
    align-items: stretch;
    overflow: hidden;
    margin-top: 6px;
    padding: 26px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.96), rgba(229, 9, 20, 0.86) 52%, rgba(91, 10, 24, 0.9)),
        url("https://images.unsplash.com/photo-1518674660708-0e2c0473e68e?auto=format&fit=crop&w=1400&q=85") center / cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(229, 9, 20, 0.24);
}

.admin-command-center::after {
    position: absolute;
    inset: auto -80px -120px auto;
    width: 320px;
    height: 320px;
    content: "";
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    filter: blur(18px);
}

.admin-command-copy,
.admin-command-card {
    position: relative;
    z-index: 1;
}

.admin-command-copy h1 {
    max-width: 720px;
    margin: 14px 0 10px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 0.95;
}

.admin-command-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.admin-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.admin-command-card {
    display: grid;
    align-content: space-between;
    min-height: 250px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(16px);
}

.admin-command-card span,
.admin-command-card small {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
}

.admin-command-card strong {
    display: block;
    margin: 8px 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
}

.sparkline {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 90px;
    margin-top: 18px;
}

.sparkline i {
    flex: 1;
    min-height: 18px;
    background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.22));
    border-radius: 999px 999px 6px 6px;
}

.admin-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    padding: 18px;
}

.metric-card::before {
    position: absolute;
    inset: -42px -42px auto auto;
    width: 120px;
    height: 120px;
    content: "";
    background: currentColor;
    border-radius: 999px;
    opacity: 0.12;
}

.metric-card.blue {
    color: #e50914;
}

.metric-card.pink {
    color: #b20710;
}

.metric-card.wine {
    color: #7f0d1b;
}

.metric-card.amber {
    color: #d97706;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin: 8px 0 2px;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.metric-card small {
    color: var(--muted);
    padding-bottom: 1em;
    padding-left: 0.2em;
    /* font-weight: 750; */
}

.metric-card > i {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    display: block;
    height: 7px;
    max-width: calc(100% - 36px);
    background: currentColor;
    border-radius: 999px;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.9fr);
    gap: 14px;
    margin-top: 14px;
}

.admin-panel {
    padding: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.09);
}

.admin-feature-panel {
    grid-row: span 2;
}

.admin-featured-drama {
    position: relative;
    display: grid;
    align-items: end;
    overflow: hidden;
    min-height: 390px;
    padding: 18px;
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.22)),
        var(--feature-image) center / cover;
    border-radius: 16px;
}

.admin-featured-drama div {
    max-width: 520px;
}

.admin-featured-drama span {
    display: inline-flex;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.admin-featured-drama h3 {
    margin: 10px 0 6px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1;
}

.admin-featured-drama p {
    color: rgba(255, 255, 255, 0.78);
}

.admin-featured-drama strong {
    font-size: 18px;
}

.admin-bar-list {
    display: grid;
    gap: 12px;
}

.admin-bar-list div {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-bottom: 14px;
}

.admin-bar-list div::after,
.admin-bar-list i {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 7px;
    content: "";
    border-radius: 999px;
}

.admin-bar-list div::after {
    right: 0;
    background: var(--surface-2);
}

.admin-bar-list i {
    max-width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.admin-bar-list span,
.admin-bar-list strong {
    position: relative;
    z-index: 1;
    /* font-weight: 850; */
}

.section-title.with-filter {
    align-items: flex-start;
}

.admin-period-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    background: #f3f6fb;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
}

.admin-period-tabs a {
    padding: 7px 9px;
    color: #667085;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 850;
}

.admin-period-tabs a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.admin-ranking-list,
.admin-drama-accordion,
.admin-user-accordion {
    display: grid;
    gap: 10px;
}

.admin-banner-card form {
    display: grid;
    gap: 14px;
}

.admin-banner-limit-status,
.admin-banner-help {
    margin: 4px 0 0;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.admin-banner-limit-status.is-over-limit {
    color: #b91c1c;
}

.admin-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.admin-banner-option {
    position: relative;
    display: block;
    color: #0f172a;
}

.admin-banner-option.is-disabled {
    opacity: 0.58;
}

.admin-banner-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-banner-option-body {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 78px;
    padding: 9px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-banner-option.is-disabled .admin-banner-option-body {
    cursor: not-allowed;
}

.admin-banner-option-body img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.admin-banner-option-body strong,
.admin-banner-option-body small {
    display: block;
}

.admin-banner-option-body small {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.admin-banner-option-body em {
    padding: 6px 8px;
    color: #667085;
    background: #e9eef6;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.admin-banner-option input:focus-visible + .admin-banner-option-body,
.admin-banner-option input:checked + .admin-banner-option-body {
    background: #fff1f2;
    border-color: rgba(229, 9, 20, 0.55);
    box-shadow: 0 12px 30px rgba(153, 27, 27, 0.12);
}

.admin-banner-option input:checked + .admin-banner-option-body em {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.admin-ranking-list a {
    display: grid;
    grid-template-columns: 34px 56px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 8px;
    color: #101828;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
}

.admin-ranking-list em {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 10px;
    font-style: normal;
    font-weight: 950;
}

.admin-ranking-list img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
}

.admin-ranking-list small {
    color: #667085;
}

.admin-ranking-list b {
    color: #991b1b;
}

.drama-admin-expander summary small,
.user-admin-expander summary small {
    margin-left: 0;
}

.admin-quick-panel {
    grid-column: 1 / -1;
}

.drama-admin-expander summary {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto 28px;
}

.drama-admin-expander summary img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.admin-expander summary span {
    min-width: 0;
}

.admin-expander summary strong,
.admin-expander summary small {
    display: block;
}

.admin-drama-detail {
    display: grid;
    gap: 14px;
    padding: 0 14px 14px;
}

.nested-admin-expander {
    box-shadow: none;
    border-radius: 14px;
}

.nested-admin-expander summary {
    min-height: 54px;
    padding: 12px 14px;
    background: #f8fafc;
}

.nested-admin-body {
    padding: 14px;
    border-top: 1px solid #dbe4f0;
}

.admin-expander .nested-admin-body .form-card {
    margin: 0;
}

.episode-nested-expander .admin-episode-panel {
    border: 0;
    border-top: 1px solid #dbe4f0;
    border-radius: 0;
}

.admin-drama-detail > .form-card,
.user-admin-expander > .form-card {
    margin: 0;
}

.admin-episode-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
}

.user-admin-expander summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 28px;
}

.danger-action {
    color: #991b1b;
    background: #fee2e2;
}

.admin-timeline {
    display: grid;
    gap: 10px;
}

.admin-timeline a {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 66px;
    padding: 8px;
    background: var(--surface-2);
    border-radius: 14px;
}

.admin-timeline img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 12px;
}

.admin-timeline small,
.admin-timeline em {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.admin-insight-panel {
    display: grid;
    gap: 14px;
}

.admin-radial {
    display: grid;
    place-items: center;
    width: 172px;
    height: 172px;
    margin: 6px auto;
    background:
        radial-gradient(circle, var(--surface) 57%, transparent 58%),
        conic-gradient(var(--accent) var(--value), rgba(127, 13, 27, 0.22) 0);
    border-radius: 999px;
    text-align: center;
}

.admin-radial strong {
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
}

.admin-radial span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.admin-mini-grid,
.quick-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-mini-grid span,
.quick-action-grid a {
    min-height: 58px;
    padding: 11px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.admin-mini-grid b {
    display: block;
    color: var(--ink);
    font-size: 20px;
}

.quick-action-grid a {
    display: grid;
    place-items: center;
    color: #991b1b;
    background: #fee2e2;
    text-align: center;
}

.page-admin .admin-insight-panel .admin-radial {
    background:
        radial-gradient(circle, #ffffff 57%, transparent 58%),
        conic-gradient(#9f0712 var(--value), #ead2d5 0);
}

.page-admin .admin-insight-panel .admin-radial strong {
    color: #9f0712;
}

.page-admin .admin-insight-panel .admin-radial span,
.page-admin .admin-mini-grid span {
    color: #667085;
}

.page-admin .admin-mini-grid span {
    background: #f8fafc;
    border-color: #d0d5dd;
}

.page-admin .admin-mini-grid b {
    color: #101828;
}

.admin-plan-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.admin-plan-preview-grid {
    margin-top: 14px;
}

.admin-section-divider {
    height: 1px;
    margin: 20px 0;
    background: #dbe4f0;
    border: 0;
}

.admin-expander {
    overflow: hidden;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.admin-expander summary {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #0f172a;
    list-style: none;
    cursor: pointer;
    font-weight: 900;
}

.admin-expander summary::-webkit-details-marker {
    display: none;
}

.admin-expander summary::after {
    content: "⌄";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
}

.admin-expander[open] summary::after {
    content: "⌃";
}

.admin-expander summary small {
    margin-left: auto;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.admin-expander .form-card {
    margin: 0 14px 14px;
}

.plan-admin-card {
    align-content: start;
}

.single-toggle {
    display: block;
}

.single-toggle label {
    width: 100%;
}

.gateway-card,
.payment-history-panel {
    margin-top: 14px;
}

.gateway-info {
    display: grid;
    gap: 4px;
    padding: 12px;
    color: #101828;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
}

.gateway-info span,
.gateway-info small {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.gateway-info strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.empty-state {
    padding: 28px;
    text-align: center;
}

.empty-state.compact {
    padding: 16px;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--muted);
}

.bottom-nav {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    gap: 6px;
    width: min(620px, calc(100% - 20px));
    transform: translateX(-50%);
    padding: 8px;
    background: rgba(15, 15, 15, 0.94);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.bottom-nav a {
    display: grid;
    flex: 1 1 0;
    place-items: center;
    gap: 2px;
    min-height: 52px;
    color: var(--muted);
    border-radius: 13px;
    font-size: 12px;
    font-weight: 850;
}

.bottom-nav .nav-icon {
    width: 21px;
    height: 21px;
    opacity: 0.72;
    filter: brightness(0) saturate(100%) invert(45%) sepia(12%) saturate(691%) hue-rotate(176deg) brightness(91%) contrast(85%);
}

.bottom-nav .coin-nav-icon,
.bottom-nav a.active .coin-nav-icon {
    opacity: 1;
    filter: none;
}

.bottom-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.bottom-nav a.active .nav-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.bottom-nav a.active .coin-nav-icon {
    filter: none;
}

.whatsapp-float {
    position: fixed;
    z-index: 42;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    letter-spacing: 0;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
    transition: transform 160ms ease, filter 160ms ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.44)) saturate(1.06);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.36);
    outline-offset: 3px;
}

.whatsapp-float img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

@media (max-width: 720px) {
    body:not(.page-admin):not(.page-login):not(.page-register) .whatsapp-float {
        bottom: calc(max(10px, env(safe-area-inset-bottom)) + 76px);
    }
}

.watch-body {
    overflow: hidden;
    background: #000000;
}

.watch-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    color: #ffffff;
    background: #000000;
}

.watch-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.watch-top,
.watch-bottom,
.watch-side,
.watch-play-center {
    position: absolute;
    z-index: 2;
    opacity: 1;
    transition: opacity 180ms ease, transform 180ms ease;
}

.watch-top {
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: max(14px, env(safe-area-inset-top)) 14px 70px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
    pointer-events: none;
}

.watch-top a,
.watch-side a,
.watch-side button,
.watch-side form {
    pointer-events: auto;
}

.watch-top span,
.watch-bottom span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.watch-circle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    font-size: 28px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.watch-circle .ui-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.watch-circle.next .ui-icon {
    width: 24px;
    height: 24px;
}

.flip-x {
    transform: scaleX(-1);
}

.watch-circle.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: rgba(255, 255, 255, 0.26);
}

.watch-play-center {
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    background: rgba(229, 9, 20, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%);
}

.watch-play-center .ui-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.watch-side {
    top: 50%;
    right: 14px;
    display: grid;
    gap: 12px;
    transform: translateY(-50%);
}

.watch-side button {
    font-size: 18px;
}

.watch-side form {
    margin: 0;
}

.watch-bottom {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 90px 18px max(18px, env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
    pointer-events: none;
}

.watch-bottom h1 {
    margin: 4px 0;
}

.watch-bottom p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.watch-screen.is-playing:not(.controls-visible) .watch-top,
.watch-screen.is-playing:not(.controls-visible) .watch-bottom,
.watch-screen.is-playing:not(.controls-visible) .watch-side,
.watch-screen.is-playing .watch-play-center {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #09090b;
        --surface: #151515;
        --surface-2: #202020;
        --ink: #f8fafc;
        --muted: #a1a1aa;
        --line: #2a2a2f;
        color-scheme: dark;
    }

    body {
        background:
            radial-gradient(circle at top right, rgba(229, 9, 20, 0.18), transparent 28rem),
            linear-gradient(180deg, #050505, #09090b);
    }

    .topbar,
    .bottom-nav {
        background: rgba(5, 5, 5, 0.9);
    }

    .toolbar-panel,
    .content-section,
    .form-card,
    .admin-tabs,
    .stats-grid article,
    .admin-panel,
    .empty-state,
    .profile-hero,
    .plan-card,
    .user-admin-card {
        background: rgba(21, 21, 21, 0.92);
    }

    .pill-link.ghost,
    .icon-button,
    .btn.soft {
        color: var(--ink);
        background: rgba(255, 255, 255, 0.08);
    }

    .icon-button .ui-icon {
        filter: brightness(0) invert(1);
    }
}

@media (max-width: 900px) {
    .page-admin {
        overflow: auto;
    }

    .page-admin .main-content {
        height: auto;
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-grid,
    .admin-summary-grid,
    .admin-shell,
    .admin-command-center,
    .admin-overview-grid,
    .auth-page,
    .detail-hero,
    .split-section {
        grid-template-columns: 1fr;
    }

    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-shell {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .admin-workspace {
        overflow: visible;
    }

    .admin-feature-panel {
        grid-row: auto;
    }

    .admin-grid > .pagination {
        grid-column: 1;
    }

    .admin-sidebar {
        grid-template-rows: auto auto;
    }

    .admin-side-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-sidebar-card {
        display: none;
    }

    .detail-poster img {
        width: min(190px, 48vw);
    }
}

@media (max-width: 620px) {
    .brand-logo {
        width: 174px;
        height: 48px;
    }

    .main-content {
        width: min(100% - 20px, 1180px);
        padding-top: 10px;
    }

    .hero-drama {
        min-height: 390px;
    }

    .hero-slider,
    .hero-slider .hero-drama {
        min-height: 390px;
    }

    .hero-drama::before,
    .detail-hero::before {
        background:
            linear-gradient(0deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0.72) 48%, rgba(11, 18, 32, 0.18) 100%),
            var(--hero-image) center / cover;
    }

    .category-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
    }

    .category-modal-panel {
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .category-modal-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .detail-copy {
        align-self: end;
    }

    .search-form,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .drama-grid {
        grid-template-columns: 1fr;
    }

    .episode-card {
        grid-template-columns: auto 1fr;
    }

    .episode-card .btn,
    .episode-card form {
        grid-column: 1 / -1;
        width: 100%;
    }

    .episode-card form .btn {
        width: 100%;
    }

    .mission-card {
        grid-template-columns: 1fr;
    }

    .mission-reward {
        justify-content: space-between;
    }

    .profile-hero,
    .wallet-card,
    .admin-hero,
    .admin-command-center {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-command-center {
        padding: 20px;
        border-radius: 18px;
    }

    .admin-command-copy h1 {
        font-size: 38px;
    }

    .admin-command-card {
        min-height: 210px;
    }

    .admin-sidebar,
    .admin-workspace {
        padding: 16px;
    }

    .admin-workspace-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-side-nav {
        grid-template-columns: 1fr 1fr;
    }

    .admin-kpi-grid,
    .admin-mini-grid,
    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .admin-featured-drama {
        min-height: 310px;
    }

    .admin-timeline a {
        grid-template-columns: 48px 1fr;
    }

    .admin-timeline em {
        grid-column: 2;
    }

    .admin-list article,
    .payment-table article {
        grid-template-columns: 1fr;
    }

    .episode-admin-list article {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .pagination {
        justify-content: flex-start;
    }

    .pagination span {
        flex-basis: 100%;
        margin-right: 0;
    }

    .checkin-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bottom-nav {
        width: calc(100% - 14px);
        border-radius: 16px;
    }

    .bottom-nav a {
        min-height: 50px;
        font-size: 11px;
    }
}

.admin-expander summary::after {
    content: "";
    display: block;
    place-items: initial;
    width: 28px;
    height: 28px;
    color: transparent;
    background: transparent url("../icons/down-arrow.png") center / 18px 18px no-repeat;
    border-radius: 0;
    opacity: 0.5;
    font-size: 0;
    line-height: 1;
    transition: transform 160ms ease, opacity 160ms ease;
}

.admin-expander[open] summary::after {
    content: "";
    transform: rotate(180deg);
}

.plan-admin-card > form {
    display: grid;
    gap: 12px;
}

.compact-title {
    margin: 0;
}

@media (max-width: 720px) {
    .welcome-copy {
        display: none;
    }

    .notification-menu-panel {
        right: -52px;
    }
}

.notification-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.search-submit {
    width: 42px;
    min-width: 42px;
    padding: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: rgba(255, 255, 255, 0.1);
}

.search-icon {
    width: 22px;
    height: 22px;
}

.search-icon path {
    fill: currentColor;
}

.hero-play-button {
    min-width: 54px;
    padding-inline: 14px;
}

.cta-play-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.bottom-nav {
    width: min(680px, calc(100% - 20px));
}

.bottom-nav a {
    font-size: 11px;
}

.bottom-nav a.vip-active.active {
    color: #3a2a00;
    background: linear-gradient(135deg, #ffe08a, #f5b642 48%, #b7791f);
    box-shadow: 0 14px 28px rgba(245, 182, 66, 0.24);
}

.bottom-nav a.vip-active.active .nav-icon {
    filter: brightness(0) invert(1);
}

.bottom-nav .vip-nav-icon {
    filter: none;
}

.bottom-nav a.vip-active.active .vip-nav-icon {
    filter: brightness(0) invert(1);
}

.admin-side-nav a[href*="tab=plans"].active {
    color: #3a2a00;
    background: linear-gradient(135deg, #ffe08a, #f5b642 48%, #b7791f);
    box-shadow: 0 14px 28px rgba(245, 182, 66, 0.2);
}

.admin-side-nav a[href*="tab=plans"].active .admin-nav-icon {
    filter: none;
}

.admin-notification-accordion {
    display: grid;
    gap: 10px;
}

.notification-admin-expander summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
}

.notification-admin-expander .admin-expander-body {
    margin: 0 14px 14px;
    padding: 14px;
    color: #526173;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
}

.notification-admin-expander .admin-expander-body p {
    margin: 0;
}

.watch-embed {
    border: 0;
}

.watch-ad-overlay {
    position: absolute;
    z-index: 8;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
    transition: opacity 200ms ease, visibility 200ms ease;
}

.watch-ad-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.watch-ad-card {
    display: grid;
    gap: 14px;
    width: min(640px, 100%);
    padding: 16px;
    color: #ffffff;
    background: rgba(15, 15, 17, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.watch-ad-card > span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.watch-ad-media {
    overflow: hidden;
    min-height: 180px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.watch-ad-media img,
.watch-ad-media video {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.watch-ad-card .btn {
    justify-self: end;
}
