:root {
    --bg: #070b16;
    --bg-2: #0d1324;
    --panel: rgba(18, 25, 46, 0.88);
    --panel-strong: rgba(24, 34, 63, 0.96);
    --panel-soft: rgba(255, 255, 255, 0.04);
    --text: #f4f7ff;
    --muted: #a8b2d7;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #8aa4ff;
    --accent-2: #7be7d7;
    --accent-3: #9f8cff;
    --danger: #ff7f8f;
    --warning: #ffd77a;
    --success: #79efae;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(122, 180, 255, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(123, 231, 215, 0.14), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; }

.site-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 10%, rgba(138, 164, 255, 0.14), transparent 18%),
        radial-gradient(circle at 82% 8%, rgba(123, 231, 215, 0.12), transparent 16%),
        radial-gradient(circle at 50% 100%, rgba(159, 140, 255, 0.12), transparent 24%);
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(7, 11, 22, 0.72);
    border-bottom: 1px solid var(--border);
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 78px;
    gap: 1.2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand strong {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.brand-mark {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(138, 164, 255, 0.95), rgba(123, 231, 215, 0.9));
    color: #04101c;
    box-shadow: 0 16px 34px rgba(122, 180, 255, 0.2);
    font-weight: 900;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.nav a {
    color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover { color: var(--text); transform: translateY(-1px); }

.main-content { padding: 2rem 0 4.5rem; }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0 3rem;
    color: var(--muted);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-grid p { margin: 0.45rem 0 0; max-width: 56ch; }
.footer-links { display: grid; gap: 0.55rem; }
.footer-links a:hover { color: var(--text); }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.88fr);
    gap: 1.4rem;
    align-items: stretch;
}

.hero-home { padding-top: 0.5rem; }
.hero-copy { padding: 1rem 0; }
.hero-copy h1,
.pricing-hero h1,
.profile-hero h1,
.premium-banner h1,
.auth-card h1 {
    margin: 0.25rem 0 1rem;
    line-height: 1.02;
    font-size: clamp(2.3rem, 5vw, 4.45rem);
    letter-spacing: -0.03em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 65ch;
}

.card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(23, 32, 60, 0.95), rgba(13, 18, 34, 0.95));
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 1.45rem;
    box-shadow: var(--shadow);
}

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

.spotlight-card {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 1rem;
    min-height: 100%;
}

.spotlight-screen {
    position: relative;
    min-height: 320px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(145deg, rgba(138, 164, 255, 0.18), rgba(123, 231, 215, 0.06)),
        radial-gradient(circle at 30% 20%, rgba(159, 140, 255, 0.24), transparent 22%),
        #0a1020;
    overflow: hidden;
}

.screen-glow {
    position: absolute;
    inset: 12% 12% auto;
    height: 56%;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(138, 164, 255, 0.34), transparent 68%);
    filter: blur(20px);
}

.screen-chip,
.price-badge,
.pill,
.locked-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.38rem 0.78rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.screen-chip {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-2);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.screen-lines {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    display: grid;
    gap: 0.75rem;
}

.screen-lines span {
    height: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}

.screen-lines span:nth-child(1) { width: 72%; }
.screen-lines span:nth-child(2) { width: 55%; }
.screen-lines span:nth-child(3) { width: 82%; }

.spotlight-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.spotlight-meta div,
.stat-card,
.info-card,
.action-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 1rem;
}

.spotlight-meta small,
.stat-card span,
.muted,
.media-meta,
.info-list dt {
    color: var(--muted);
}

.spotlight-meta strong,
.stat-card strong,
.info-list dd,
.media-card h2,
.feature-card h2,
.pricing-grid h2,
.library-panel h2,
.form-card h2 {
    display: block;
    margin-top: 0.35rem;
}

.hero-actions,
.stack-inline {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.9rem 1.2rem;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    color: #07111f;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 14px 32px rgba(138, 164, 255, 0.24);
}

.button:hover,
button.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(138, 164, 255, 0.28);
}

.button:disabled,
button.button:disabled { opacity: 0.6; cursor: not-allowed; }
.button.small,
button.button.small { min-height: 38px; padding: 0.68rem 1rem; font-size: 0.92rem; }
.button.ghost,
button.button.ghost {
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
}
.button.danger,
button.button.danger {
    background: linear-gradient(135deg, #ff8ba0, #ff657c);
    color: #29050d;
}

.inline-form { display: inline; }

.flash {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.04);
}

.flash-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: currentColor;
    flex: 0 0 auto;
}

.flash-success { color: #d7ffe5; background: rgba(121, 239, 174, 0.12); }
.flash-error { color: #ffe1e7; background: rgba(255, 127, 143, 0.12); }

.notice {
    border-radius: 22px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.1);
    margin: 1rem 0;
}

.notice.warning {
    background: rgba(255, 215, 122, 0.1);
    color: #fff2cc;
}

.section-grid,
.dashboard-grid,
.feature-grid,
.pricing-grid {
    display: grid;
    gap: 1.15rem;
}

.section-grid,
.dashboard-grid,
.pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.2rem; }

.feature-card { min-height: 100%; }
.card-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.06);
    font-size: 1.2rem;
}

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

.compact-stats { margin-top: 1.4rem; }
.stat-card strong {
    font-size: 1.06rem;
    color: var(--text);
}

.narrow { width: min(760px, 100%); margin: 0 auto; }
.narrow.wide { width: min(1080px, 100%); }
.auth-shell { padding-top: 1.2rem; }
.auth-card,
.form-card,
.pricing-hero,
.profile-hero,
.premium-banner { padding: 1.7rem; }
.center-card { text-align: center; }

.stack { display: grid; gap: 1rem; }
label span {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    padding: 0.92rem 1rem;
}

input::placeholder,
textarea::placeholder { color: rgba(168, 178, 215, 0.7); }
textarea { resize: vertical; min-height: 120px; }

.pricing-hero,
.profile-hero,
.premium-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.price-panel {
    min-width: 260px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 1.2rem;
}

.price-badge {
    align-self: flex-start;
    background: rgba(123, 231, 215, 0.12);
    color: var(--accent-2);
    border: 1px solid rgba(123, 231, 215, 0.2);
}

.pill {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.08);
}
.pill-active { background: rgba(121,239,174,0.12); color: #5b6478; }
.pill-muted { color: var(--muted); }
.profile-badges { display: flex; gap: 0.7rem; flex-wrap: wrap; align-self: flex-start; }

.info-list {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0 0;
}

.info-list div {
    display: grid;
    gap: 0.25rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.info-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.info-list dt { font-size: 0.9rem; }
.info-list dd { margin: 0; font-weight: 700; }

.status {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.status-active,
.status-trialing { color: var(--success); }
.status-past_due,
.status-canceled,
.status-incomplete,
.status-unpaid,
.status-nincs { color: var(--warning); }

.check-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.8;
}

.large-check-list li { margin-bottom: 0.45rem; }

.premium-shell,
.dashboard-shell { display: grid; gap: 1.15rem; }
.premium-stats { min-width: 330px; }
.empty-state { text-align: center; padding: 2rem 1.5rem; }

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

.media-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.media-cover {
    padding: 1.15rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at top right, rgba(123, 231, 215, 0.18), transparent 24%),
        radial-gradient(circle at left bottom, rgba(138, 164, 255, 0.22), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.media-card-audio .media-cover {
    background:
        radial-gradient(circle at top right, rgba(159, 140, 255, 0.22), transparent 24%),
        radial-gradient(circle at left bottom, rgba(123, 231, 215, 0.18), transparent 24%),
        linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.media-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    border-radius: 22px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.12);
}

.media-cover-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.locked-badge {
    background: rgba(255,255,255,0.08);
    color: var(--accent-2);
    border: 1px solid rgba(255,255,255,0.1);
}

.media-card-body { padding: 1.2rem; }
.media-card h2 { margin: 0 0 0.75rem; font-size: 1.28rem; }
.media-description {
    min-height: 3.4rem;
    line-height: 1.7;
    margin: 0 0 1rem;
}

.player-shell {
    border-radius: 22px;
    padding: 0.85rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.media-player {
    width: 100%;
    display: block;
    border-radius: 18px;
    background: #040711;
}

video.media-player { aspect-ratio: 16 / 9; }
.audio-player { min-height: 62px; }

.media-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.admin-grid { align-items: start; }
.library-panel { min-height: 100%; }
.admin-media-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.admin-media-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-media-main {
    display: grid;
    gap: 0.35rem;
}

.debug-box {
    white-space: pre-wrap;
    overflow: auto;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 18px;
    padding: 1rem;
    text-align: left;
}

@media (max-width: 1024px) {
    .hero,
    .section-grid,
    .dashboard-grid,
    .feature-grid,
    .pricing-grid,
    .stat-grid { grid-template-columns: 1fr; }

    .pricing-hero,
    .profile-hero,
    .premium-banner { flex-direction: column; align-items: flex-start; }
    .price-panel,
    .premium-stats { min-width: 0; width: 100%; }
}

@media (max-width: 820px) {
    .nav-row { align-items: flex-start; padding: 1rem 0; }
    .nav { width: 100%; }
    .spotlight-meta { grid-template-columns: 1fr; }
    .admin-media-row,
    .media-meta { flex-direction: column; align-items: flex-start; }
    .main-content { padding-top: 1.4rem; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 1rem, 1180px); }
    .card,
    .auth-card,
    .form-card,
    .pricing-hero,
    .profile-hero,
    .premium-banner { border-radius: 24px; }
    .hero-copy h1,
    .pricing-hero h1,
    .profile-hero h1,
    .premium-banner h1,
    .auth-card h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
}

:root {
    --body-bg:
        radial-gradient(circle at top left, rgba(122, 180, 255, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(123, 231, 215, 0.14), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    --backdrop-bg:
        radial-gradient(circle at 20% 10%, rgba(138, 164, 255, 0.14), transparent 18%),
        radial-gradient(circle at 82% 8%, rgba(123, 231, 215, 0.12), transparent 16%),
        radial-gradient(circle at 50% 100%, rgba(159, 140, 255, 0.12), transparent 24%);
    --header-bg: rgba(7, 11, 22, 0.72);
    --card-bg: linear-gradient(180deg, rgba(23, 32, 60, 0.95), rgba(13, 18, 34, 0.95));
    --soft-bg: rgba(255,255,255,0.04);
    --soft-border: rgba(255,255,255,0.08);
    --input-bg: rgba(255,255,255,0.05);
    --button-ghost-bg: rgba(255,255,255,0.04);
    --button-ghost-border: rgba(255,255,255,0.1);
}

html[data-theme="light"] {
    --bg: #edf2f9;
    --bg-2: #f8fbff;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --panel-soft: rgba(13, 18, 34, 0.05);
    --text: #111827;
    --muted: #5b6478;
    --border: rgba(17, 24, 39, 0.1);
    --accent: #4f6cf0;
    --accent-2: #1fb8a6;
    --accent-3: #7764ec;
    --danger: #d64562;
    --warning: #b47a06;
    --success: #14814c;
    --shadow: 0 24px 50px rgba(22, 28, 45, 0.12);
    --body-bg:
        radial-gradient(circle at top left, rgba(79, 108, 240, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(31, 184, 166, 0.12), transparent 24%),
        linear-gradient(180deg, #f4f7fc 0%, #ffffff 100%);
    --backdrop-bg:
        radial-gradient(circle at 10% 0%, rgba(79, 108, 240, 0.09), transparent 20%),
        radial-gradient(circle at 90% 0%, rgba(31, 184, 166, 0.09), transparent 16%),
        radial-gradient(circle at 50% 100%, rgba(119, 100, 236, 0.08), transparent 22%);
    --header-bg: rgba(255, 255, 255, 0.8);
    --card-bg: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,248,252,0.96));
    --soft-bg: rgba(17,24,39,0.04);
    --soft-border: rgba(17,24,39,0.08);
    --input-bg: rgba(255,255,255,0.9);
    --button-ghost-bg: rgba(255,255,255,0.75);
    --button-ghost-border: rgba(17,24,39,0.12);
}

body { background: var(--body-bg); }
.site-backdrop { background: var(--backdrop-bg); }
.site-header { background: var(--header-bg); }
.card { background: var(--card-bg); }
.button.ghost,
button.button.ghost { background: var(--button-ghost-bg); border: 1px solid var(--button-ghost-border); }
input,
select,
textarea { background: var(--input-bg); }
.spotlight-meta div,
.stat-card,
.info-card,
.action-card,
.price-panel,
.admin-media-row,
.player-shell,
.locked-badge,
.pill,
.flash,
.notice {
    background: var(--soft-bg);
    border-color: var(--soft-border);
}

html[data-theme="light"] .flash-success { color: #0c6a37; background: rgba(20, 129, 76, 0.12); }
html[data-theme="light"] .flash-error { color: #9f1734; background: rgba(214, 69, 98, 0.12); }
html[data-theme="light"] .notice.warning { color: #7f5600; background: rgba(180, 122, 6, 0.12); }
html[data-theme="light"] .button,
html[data-theme="light"] button.button { color: #000; }
html[data-theme="light"] .brand-mark { color: #ffffff; }
html[data-theme="light"] .theme-toggle { color: var(--text); }
html[data-theme="light"] .theme-toggle:hover { background: rgba(17, 24, 39, 0.06); }
html[data-theme="light"] .media-player { background: #dfe7f3; }

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--soft-border);
    background: var(--soft-bg);
    color: var(--text);
    cursor: pointer;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.07);
}

.theme-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.auth-landing,
.auth-single,
.member-entry {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.auth-landing {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    min-height: calc(100vh - 220px);
    padding: 2.5rem 0 1rem;
}

.auth-landing-copy,
.auth-single-copy,
.member-entry-copy {
    max-width: 44rem;
}

.auth-landing-copy h1,
.auth-single-copy h1,
.member-entry-copy h1 {
    margin: 0.25rem 0 1rem;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.auth-subnote,
.auth-footnote {
    color: var(--muted);
    margin: 1rem 0 0;
    line-height: 1.7;
}

.auth-footnote a {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.auth-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.auth-panel,
.auth-single-form {
    border-radius: 28px;
    border: 1px solid var(--soft-border);
    background: var(--soft-bg);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.auth-panel h2,
.auth-single-form h2 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
}

.auth-panel-register {
    backdrop-filter: blur(10px);
}

.auth-form-simple .button,
.auth-form-simple .button.ghost {
    width: 100%;
    margin-top: 0.35rem;
}

.auth-single {
    width: min(920px, 100%);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    padding-top: 1.5rem;
}

.member-entry {
    width: min(900px, 100%);
    min-height: calc(100vh - 260px);
    padding-top: 3rem;
}

@media (max-width: 1024px) {
    .auth-landing,
    .auth-single {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .auth-panels {
        grid-template-columns: 1fr;
    }

    .theme-toggle-label {
        display: none;
    }
}

.payment-actions {
    gap: 0.8rem;
}

.payment-actions form,
.payment-actions .button,
.payment-actions .button.ghost {
    width: 100%;
}

.price-panel strong {
    display: block;
    margin-bottom: 0.4rem;
}


/* Auth card refresh */
.auth-shell {
    min-height: calc(100vh - 240px);
    display: grid;
    place-items: center;
    padding: 2.5rem 0 1rem;
}

.auth-card-shell {
    width: min(100%, 560px);
    padding: 1.75rem;
    border-radius: 32px;
}

.auth-card-intro {
    margin-bottom: 1.35rem;
}

.auth-card-intro h1 {
    margin: 0.35rem 0 0.8rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.auth-card-intro .lead {
    max-width: none;
    font-size: 1rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.4rem;
    margin-bottom: 1.15rem;
    border: 1px solid var(--soft-border);
    border-radius: 18px;
    background: var(--soft-bg);
}

.auth-tab-button {
    appearance: none;
    border: 0;
    min-height: 46px;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-tab-button:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.auth-tab-button.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(79, 108, 240, 0.24);
}

.auth-tab-panel {
    display: none;
}

.auth-tab-panel.is-active {
    display: block;
}

.auth-form-simple label {
    display: grid;
    gap: 0.45rem;
}

.auth-form-simple label > span {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
}

.auth-form-simple input {
    min-height: 52px;
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.auth-form-simple .button {
    width: 100%;
    margin-top: 0.25rem;
}

.member-entry-compact {
    min-height: calc(100vh - 260px);
    place-items: center;
}

html[data-theme="light"] .auth-tabs {
    background: rgba(17, 24, 39, 0.04);
}

html[data-theme="light"] .auth-tab-button.is-active {
    box-shadow: 0 12px 26px rgba(79, 108, 240, 0.18);
}

@media (max-width: 640px) {
    .auth-card-shell {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .auth-tabs {
        gap: 0.55rem;
    }
}


/* Theme + auth controls refresh */
html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

.control-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--soft-border);
    background: var(--soft-bg);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    box-shadow: none;
}

.control-button:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.07);
}

html[data-theme="light"] .control-button:hover {
    background: rgba(17, 24, 39, 0.06);
}

.mode-button,
.logout-button {
    min-height: 42px;
    padding: 0.72rem 0.95rem;
}

.auth-tabs {
    padding: 0.3rem;
    gap: 0.5rem;
    border-radius: 16px;
}

.auth-tab-button {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}

.auth-tab-button.is-active {
    background: var(--panel-soft);
    color: var(--text);
    border-color: var(--soft-border);
    box-shadow: none;
}

html[data-theme="light"] .auth-tab-button.is-active {
    background: rgba(17, 24, 39, 0.06);
    border-color: rgba(17, 24, 39, 0.08);
}

.auth-submit-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: var(--text);
    color: var(--bg-2);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.auth-submit-button:hover {
    transform: translateY(-1px);
}

html[data-theme="light"] .auth-submit-button {
    background: #111827;
    color: #ffffff;
}

.auth-card-shell {
    background: var(--card-bg);
}

.theme-toggle-label {
    font-weight: 700;
}

@media (max-width: 720px) {
    .mode-button {
        width: 42px;
        min-width: 42px;
        padding: 0;
    }

    .theme-toggle-label {
        display: none;
    }
}
