/* =====================================================
   BniMuakSB — style.css
   Primary: #fe5c83 | Font: Be Vietnam Pro
   ===================================================== */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Dark theme (default) */
    --bg:            #0a0a0a;
    --bg-card:       rgba(26,26,26,0.7);
    --bg-nav:        rgba(15,10,11,0.92);
    --bg-header:     rgba(10,8,9,0.85);
    --surface:       #1d1012;
    --surface-high:  #352628;
    --on-surface:    #f6dcdf;
    --on-surface-v:  #c0979c;
    --outline:       rgba(255,255,255,0.07);
    --primary:       #fe5c83;
    --primary-dark:  #d93f6a;
    --on-primary:    #fff;
    --shadow:        rgba(0,0,0,0.7);
    --radius:        12px;
    --radius-sm:     8px;
    --radius-full:   9999px;
    --transition:    0.25s ease;
}

[data-theme="light"] {
    --bg:            #f5f0f1;
    --bg-card:       rgba(255,255,255,0.85);
    --bg-nav:        rgba(245,240,241,0.95);
    --bg-header:     rgba(255,255,255,0.9);
    --surface:       #fff;
    --surface-high:  #ebe5e6;
    --on-surface:    #1d1012;
    --on-surface-v:  #5a3d43;
    --outline:       rgba(0,0,0,0.08);
    --primary:       #fe5c83;
    --primary-dark:  #d93f6a;
    --on-primary:    #fff;
    --shadow:        rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

/* ----- Content protection ----- */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}
img { -webkit-user-drag: none; user-drag: none; }
img.allow-pointer { pointer-events: auto; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg);
    color: var(--on-surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 80px; /* bottom nav clearance */
    transition: background-color var(--transition), color var(--transition);
}

/* ----- Watermark overlay ----- */
.video-watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    /* SVG tile set via JS */
    background-repeat: repeat;
    background-size: 280px 120px;
    opacity: 0.28;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

/* ----- Scrollbar hide utility ----- */
.slider-track::-webkit-scrollbar { display: none; }
.slider-track { -ms-overflow-style: none; scrollbar-width: none; }

/* =====================================================
   TOP BAR
   ===================================================== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
    width: 100%;
}
.topbar-logo {
    font-size: clamp(13px, 3vw, 20px);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
    transition: opacity var(--transition);
}
.topbar-logo:hover { opacity: 0.85; }
.topbar-right { display: flex; align-items: center; gap: 14px; }

/* Topbar back button (inner pages) */
.topbar-back-btn { color: var(--on-surface); }

/* Icon button */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: #fff;
    background: rgb(254, 92, 131);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.589);
    transition: background var(--transition), transform var(--transition);
}
[data-theme="light"] .icon-btn { color: var(--on-surface); background: rgb(254, 92, 131); border-color: rgba(0,0,0,0.10); }
.icon-btn:hover, .icon-btn:focus-visible {
    background: rgba(0,0,0,0.50);
    outline: none;
}
[data-theme="light"] .icon-btn:hover { background: rgba(255,255,255,0.75); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn .material-symbols-outlined { font-size: 22px; }

/* Avatar */
.avatar-btn {
    width: 34px; height: 34px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--outline);
    flex-shrink: 0;
    transition: transform var(--transition), border-color var(--transition);
}
.avatar-btn:hover { transform: scale(1.06); border-color: var(--primary); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Membership pill in topbar */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar-memb-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px 5px 8px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1.5px solid var(--outline);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    white-space: nowrap;
}
.topbar-memb-btn .material-symbols-outlined { font-size: 18px; flex-shrink: 0; }
.topbar-memb-btn:hover { background: var(--surface-high); border-color: var(--primary); transform: scale(1.03); }
.topbar-memb-expired { color: var(--on-surface-v); }
.topbar-memb-expired:hover { color: var(--primary); }

/* Logged-in user pill in topbar */
.topbar-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 8px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1.5px solid var(--outline);
    color: var(--on-surface);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    text-decoration: none;
    max-width: 180px;
}
.topbar-user-btn:hover { background: var(--surface-high); border-color: var(--primary); transform: scale(1.03); }
.topbar-user-icon {
    font-size: 26px !important;
    color: var(--primary);
    font-variation-settings: 'FILL' 1;
    flex-shrink: 0;
}
.topbar-user-tel {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Нэвтрэх button */
.topbar-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-full);
    border: none;
    background: rgb(254,92,131);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
[data-theme="light"] .topbar-login-btn { background: rgb(254,92,131); color: var(--on-surface); }
.topbar-login-btn:hover { background: rgb(254,92,131); color: #fff; }
[data-theme="light"] .topbar-login-btn:hover { background: rgb(254,92,131); color: var(--primary); }
.topbar-login-label { white-space: nowrap; }

/* Search backdrop */
.search-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 200;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.search-backdrop.open { display: block; animation: fadeIn 0.25s ease; }

/* Search drawer (slides from right) */
.search-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(480px, 100vw);
    background: var(--surface);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}
.search-drawer.open { transform: translateX(0); }

/* Drawer head — input row */
.search-drawer-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--outline);
    flex-shrink: 0;
}
.search-drawer-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    color: var(--on-surface);
}
.search-drawer-input::placeholder { color: var(--on-surface-v); }

/* Drawer body — genres + results */
.search-drawer-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left: genre list */
.search-genres {
    width: 110px;
    flex-shrink: 0;
    border-right: 1px solid var(--outline);
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.search-genres-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--on-surface-v);
    padding: 0 12px 8px;
}
.search-genre-item {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--on-surface);
    border-radius: 0;
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}
.search-genre-item:hover { background: var(--outline); }
.search-genre-item.active {
    color: var(--primary);
    font-weight: 700;
    background: rgba(254,92,131,0.1);
}

/* Right: results grid */
.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    align-content: start;
}
.search-hint {
    grid-column: 1/-1;
    text-align: center;
    color: var(--on-surface-v);
    font-size: 14px;
    margin-top: 40px;
}
.search-movie-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    color: var(--on-surface);
}
.search-movie-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 6px;
    background: var(--surface-high);
}
.search-movie-card-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-movie-card-year {
    font-size: 11px;
    color: var(--on-surface-v);
}

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content { width: 100%; padding-top: 60px; }

/* ----- Hero ----- */
.hero {
    position: relative;
    width: 100%;
    height: 580px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
@media (min-width: 768px) { .hero { height: 660px; } }

/* Slides */
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}
.hero-slide.active .hero-img { transform: scale(1.04); }
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(10,8,9,0.5) 50%, transparent 100%);
}
[data-theme="light"] .hero-gradient {
    background: linear-gradient(to top, var(--bg) 0%, rgba(245,240,241,0.45) 55%, transparent 100%);
}

/* Navigation dots */
.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    padding: 0;
}
.hero-dot.active {
    background: var(--primary);
    transform: scale(1.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 16px 52px;
    max-width: 640px;
}
@media (min-width: 768px) { .hero-content { padding: 0 40px 64px; } }

.badge {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}
.hero-title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.hero-desc {
    font-size: 14px;
    color: rgba(246,220,223,0.82);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
[data-theme="light"] .hero-title { color: #1d1012; text-shadow: 0 2px 12px rgba(0,0,0,0.12); }
[data-theme="light"] .hero-desc  { color: var(--on-surface-v); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
    cursor: pointer;
    border: none;
}
.btn:active { transform: scale(0.94); }
.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
[data-theme="light"] .btn-ghost { color: var(--on-surface); background: rgba(0,0,0,0.07); border-color: rgba(0,0,0,0.12); }

.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--on-surface-v);
    flex-wrap: wrap;
}
.dot { opacity: 0.4; }
.inline { display: inline-flex; align-items: center; gap: 3px; }

/* ----- Categories wrapper ----- */
.categories-wrapper { padding: 24px 0 8px; display: flex; flex-direction: column; gap: 32px; }

.category-section {}
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 12px;
}
@media (min-width: 768px) { .category-header { padding: 0 50px; } }
.category-title { font-size: 17px; font-weight: 700; color: var(--on-surface); }
.view-all { font-size: 13px; font-weight: 600; color: var(--primary); transition: opacity var(--transition); }
.view-all:hover { opacity: 0.75; }

/* ----- Slider ----- */
.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}
.slider-btn {
    display: flex;
    flex-shrink: 0;
    background: rgba(0,0,0,0.55);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    padding: 0;
}
.slider-btn:hover { background: rgba(0,0,0,0.80); }
.slider-btn .material-symbols-outlined { font-size: 20px; line-height: 1; }
@media (min-width: 768px) {
    .slider-btn { width: 38px; height: 38px; }
    .slider-btn .material-symbols-outlined { font-size: 22px; }
}
.slider-track {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 8px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) { .slider-track { padding: 4px 8px 12px; gap: 16px; } }

/* ----- Movie Card (poster) ----- */
.movie-card {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform var(--transition);
}
@media (min-width: 768px) { .movie-card { width: 160px; } }
.movie-card:hover { transform: translateY(-4px) scale(1.02); }

.movie-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 6px 20px var(--shadow);
    background: var(--surface-high);
}
.movie-card-poster img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.movie-card:hover .movie-card-poster img { transform: scale(1.06); }

.movie-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.movie-card:hover .movie-card-overlay { opacity: 1; }
.play-icon { font-size: 48px; color: #fff; font-variation-settings: 'FILL' 1; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }

/* Wishlist heart on card */
.movie-card-poster .wishlist-btn {
    position: absolute;
    top: 8px; right: 8px;
    width: 30px; height: 30px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition), color var(--transition);
    z-index: 2;
}
.movie-card:hover .wishlist-btn { opacity: 1; }
.movie-card-poster .wishlist-btn:active { transform: scale(0.88); }
.movie-card-poster .wishlist-btn .material-symbols-outlined { font-size: 16px; color: #fff; }
.movie-card-poster .wishlist-btn.in-list .material-symbols-outlined {
    color: var(--primary);
    font-variation-settings: 'FILL' 1;
}

.movie-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.star-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--primary);
    font-size: 12px;
}
.star-icon {
    font-size: 13px !important;
    font-variation-settings: 'FILL' 1;
}
.star-value { color: var(--on-surface-v); }

/* ----- Price badge ----- */
.price-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 7px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.price-badge.free {
    background: #22c55e;
}
.price-badge.poster-price {
    position: absolute;
    top: 8px;
    left: 8px;
    margin-top: 0;
    z-index: 3;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ----- Star rating section ----- */
.star-rating-section {
    margin: 20px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.star-rating-avg {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.star-avg-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.star-avg-stars {
    display: flex;
    gap: 2px;
}
.star-avg-icon {
    font-size: 20px;
    color: var(--on-surface-v);
}
.star-avg-icon.filled,
.star-avg-icon.half {
    color: var(--primary);
}
.star-avg-count {
    font-size: 13px;
    color: var(--on-surface-v);
}
.star-user-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.star-user-label {
    font-size: 13px;
    color: var(--on-surface-v);
    margin: 0;
}
.star-picker {
    display: flex;
    gap: 4px;
}
.star-pick-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: var(--on-surface-v);
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
}
.star-pick-btn .material-symbols-outlined { font-size: 28px; }
.star-pick-btn.active,
.star-pick-btn.hover {
    color: var(--primary);
    transform: scale(1.15);
}
.star-login-hint {
    font-size: 13px;
    color: var(--on-surface-v);
    margin: 0;
}
.star-login-hint a { color: var(--primary); }

/* ----- Episode list ----- */
.episode-list-section {
    margin-top: 24px;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .episode-list-section { padding: 0 32px; }
}
.episode-list-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.episode-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--on-surface-v);
    background: var(--bg-card);
    padding: 2px 10px;
    border-radius: 20px;
}
.episode-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.episode-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    text-align: left;
    color: var(--on-surface);
    transition: background 0.18s, box-shadow 0.18s;
    width: 100%;
}
.episode-item:hover {
    background: var(--bg-card-hover, rgba(255,255,255,0.08));
}
.episode-item.active {
    background: var(--primary);
    color: #fff;
}
.episode-item.active .ep-dur,
.episode-item.active .ep-number {
    color: rgba(255,255,255,0.75);
}
.ep-number {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: var(--on-surface-v);
    flex-shrink: 0;
}
.ep-thumb {
    width: 72px;
    height: 44px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.episode-item.active .ep-number {
    background: rgba(255,255,255,0.2);
}
.ep-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}
.ep-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ep-num-label {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.3px;
}
.episode-item.active .ep-num-label {
    color: #fff;
}
.ep-dur {
    font-size: 12px;
    color: var(--on-surface-v);
}
.ep-play-icon {
    font-size: 24px !important;
    flex-shrink: 0;
    opacity: 0.6;
}
.episode-item.active .ep-play-icon {
    opacity: 1;
}

/* ----- Grid layout (New Releases) ----- */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .grid-layout { grid-template-columns: repeat(3, 1fr); padding: 0 32px; gap: 16px; }
}
@media (min-width: 1024px) {
    .grid-layout { grid-template-columns: repeat(4, 1fr); }
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
}

.movie-card-row {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}
.movie-card-row:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--shadow); }
.movie-card-row-poster {
    width: 72px; height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-high);
}
.movie-card-row-poster img { width: 100%; height: 100%; object-fit: cover; }
.movie-card-row-info { display: flex; flex-direction: column; justify-content: center; overflow: hidden; gap: 4px; }
.movie-card-row-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--on-surface); }
.movie-card-row-meta { font-size: 12px; color: var(--on-surface-v); }

/* =====================================================
   BOTTOM NAVIGATION
   ===================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px 8px;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--outline);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    z-index: 99;
    transition: background var(--transition);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--on-surface-v);
    transition: color var(--transition), transform var(--transition);
    flex: 1;
    padding: 6px 0;
    border-radius: var(--radius-sm);
}
.nav-item:active { transform: scale(0.88); }
.nav-item.active { color: var(--primary); filter: drop-shadow(0 0 6px rgba(254,92,131,0.45)); }
.nav-icon { font-size: 24px; }
.nav-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }

/* Desktop sidebar nav (shown when bottom-nav hidden) */
@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

/* =====================================================
   VIEWS — movie.php
   ===================================================== */
.movie-detail { max-width: 900px; margin: 0 auto; padding: 80px 16px 48px; }
.movie-detail-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 16/9;
    background: #000;
}
.movie-iframe-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.movie-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.movie-detail-hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.38);
    display: flex; align-items: center; justify-content: center;
}
.play-big {
    width: 72px; height: 72px;
    border-radius: var(--radius-full);
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(254,92,131,0.5);
    transition: transform var(--transition), background var(--transition);
    cursor: pointer;
}
.play-big:hover { transform: scale(1.08); background: var(--primary-dark); }
.play-big .material-symbols-outlined { font-size: 36px; color: #fff; font-variation-settings:'FILL' 1; }
.play-big-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.play-big-label {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.45);
    padding: 3px 12px;
    border-radius: 20px;
}

/* ── Extra info (director / actors / age) ── */
.movie-extra-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}
.movie-extra-row {
    display: flex;
    gap: 10px;
    font-size: 14px;
    align-items: baseline;
}
.movie-extra-label {
    color: var(--on-surface-v);
    flex-shrink: 0;
    width: 110px;
}
.movie-extra-value { color: var(--on-surface); line-height: 1.5; }
.age-badge {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
}
.movie-detail-title { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.movie-detail-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--on-surface-v); font-size: 13px; margin-bottom: 16px; align-items: center; }
.movie-detail-desc { font-size: 15px; line-height: 1.7; color: var(--on-surface-v); margin-bottom: 24px; }
.movie-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Gallery thumbnails ──────────────────────────────────────────────────── */
.movie-gallery { margin-bottom: 24px; }

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.gallery-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}
.gallery-thumb:hover { transform: scale(1.04); border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-poster-only {
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 200px;
}
.gallery-poster-only img { width: 100%; display: block; object-fit: cover; }

/* ── Auth modal ──────────────────────────────────────────────────────────── */
.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}
.auth-modal.open { display: flex; }
.auth-modal-box {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px 32px 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.auth-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none; border: none;
    cursor: pointer; color: var(--on-surface-v);
    display: flex; align-items: center;
}
.auth-modal-close:hover { color: var(--primary); }
.auth-modal-icon {
    font-size: 48px;
    color: var(--primary);
    font-variation-settings: 'FILL' 1;
    display: block;
    margin-bottom: 12px;
}
.auth-modal-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.auth-modal-box p  { font-size: 14px; color: var(--on-surface-v); margin-bottom: 24px; line-height: 1.6; }
.auth-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── Payment button ──────────────────────────────────────────────────────── */
.btn-pay {
    background: linear-gradient(135deg, #e91e8c 0%, #ff6b35 100%);
    color: #fff;
    border: none;
}
.btn-pay:hover { opacity: 0.9; }

.pay-expires-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
}
.pay-expires-label .material-symbols-outlined { font-size: 15px; }

/* ── Payment modal overrides ─────────────────────────────────────────────── */
.pay-modal-box { max-width: 360px; }

.pay-bank-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 4px;
}
.pay-bank-btn {
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s;
}
.pay-bank-btn:hover { background: rgba(255,255,255,0.15); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.lightbox.open { display: flex; }

.lightbox-img-wrap {
    max-width: 88vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-img-wrap img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    animation: lbFadeIn 0.2s ease;
}
@keyframes lbFadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.lightbox-close {
    position: fixed;
    top: 18px; right: 18px;
    background: rgba(255,255,255,0.12);
    border: none; border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff;
    transition: background 0.2s;
    z-index: 10001;
}
.lightbox-close:hover { background: var(--primary); }
.lightbox-close .material-symbols-outlined { font-size: 22px; }

.lightbox-nav {
    background: rgba(255,255,255,0.12);
    border: none; border-radius: 50%;
    width: 48px; height: 48px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff;
    transition: background 0.2s;
    z-index: 10001;
}
.lightbox-nav:hover { background: var(--primary); }
.lightbox-nav .material-symbols-outlined { font-size: 28px; }

.lightbox-counter {
    position: fixed;
    bottom: 18px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* =====================================================
   VIEWS — profile.php / wishlist.php / categories.php
   ===================================================== */
.page-wrapper { max-width: 900px; margin: 0 auto; padding: 24px 16px 48px; }
.page-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }

/* Profile */
.profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.profile-avatar {
    width: 80px; height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--primary);
    flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 20px; font-weight: 700; }
.profile-email { font-size: 13px; color: var(--on-surface-v); margin-top: 2px; }
.stats-row { display: flex; gap: 16px; margin-bottom: 28px; }
.stat-box { text-align: center; flex: 1; background: var(--bg-card); border: 1px solid var(--outline); border-radius: var(--radius); padding: 16px 8px; }
.stat-num { font-size: 24px; font-weight: 900; color: var(--primary); }
.stat-lbl { font-size: 11px; color: var(--on-surface-v); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Profile tab layout ──────────────────────────────────────────────────── */
.prof-layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
    overflow: hidden;
    min-height: 360px;
}
.prof-tabs {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 180px;
    flex-shrink: 0;
    border-right: 1px solid var(--outline);
    background: var(--bg-card);
}
.prof-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface);
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--outline);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.prof-tab:last-child { border-bottom: none; }
.prof-tab .material-symbols-outlined { font-size: 20px; color: var(--primary); flex-shrink: 0; }
.prof-tab:hover { background: var(--outline); }
.prof-tab.active {
    background: var(--primary);
    color: #fff;
}
.prof-tab.active .material-symbols-outlined { color: #fff; }
.prof-tab-logout { color: var(--primary); }
.prof-tab-logout .material-symbols-outlined { color: var(--primary); }
.prof-tab-logout:hover { background: rgba(254,92,131,0.08); }

.prof-content { flex: 1; min-width: 0; }
.prof-panel { display: none; padding: 20px; }
.prof-panel.active { display: block; }
.prof-panel-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; }

/* ----- FAQ Accordion ----- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--primary, #fe5c83); border-radius: var(--radius); overflow: hidden; }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-high, #1e1e2e);
    color: var(--primary, #fe5c83);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 12px;
}
.faq-question:hover { background: rgba(254,92,131,0.08); }
.faq-icon { font-size: 20px; flex-shrink: 0; transition: transform 0.25s; color: var(--primary, #fe5c83); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-item.open .faq-question { background: rgba(254,92,131,0.12); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
    font-size: 14px;
    color: var(--on-surface-v);
    line-height: 1.6;
    border-top: 1px solid transparent;
}
.faq-item.open .faq-answer { max-height: 600px; padding: 12px 16px 16px; border-top-color: var(--primary, #fe5c83); }

.prof-movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}
.prof-movie-grid .movie-card {
    width: 100%;
    flex-shrink: unset;
    scroll-snap-align: unset;
}

@media (max-width: 480px) {
    .prof-layout { flex-direction: column; }
    .prof-tabs { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--outline); }
    .prof-tab { border-bottom: none; border-right: 1px solid var(--outline); white-space: nowrap; flex-shrink: 0; }
    .prof-tab:last-child { border-right: none; }
}


/* Wishlist empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--on-surface-v); }
.empty-state .material-symbols-outlined { font-size: 64px; color: var(--outline); margin-bottom: 12px; }
.empty-state p { font-size: 16px; }

/* Payment packages */
.payment-packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 8px 0;
}
.payment-card {
    background: var(--bg-card);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: border-color var(--transition), transform var(--transition);
}
.payment-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.payment-days { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; }
.payment-days span { font-size: 14px; font-weight: 500; color: var(--on-surface-v); display: block; margin-top: 4px; }
.payment-price { font-size: 20px; font-weight: 700; color: var(--on-surface); }
.btn-subscribe {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition);
}
.btn-subscribe:hover { background: var(--primary-dark); }

/* Subscribe page */
.subscribe-hero {
    text-align: center;
    padding: 48px 20px 32px;
}
.subscribe-hero-icon {
    font-size: 64px;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}
.subscribe-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--on-surface);
    margin-bottom: 8px;
}
.subscribe-hero-sub {
    font-size: 16px;
    color: var(--on-surface-v);
    margin-bottom: 16px;
}
.subscribe-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(254,92,131,0.12);
    color: var(--primary);
    border: 1px solid rgba(254,92,131,0.35);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
}
.subscribe-active-badge strong { font-size: 16px; }
.memb-expires-date { font-size: 12px; font-weight: 400; opacity: 0.8; }
.subscribe-packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    max-width: 760px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.subscribe-card {
    background: var(--bg-card);
    border: 2px solid var(--outline);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
}
.subscribe-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.subscribe-card-days { font-size: 40px; font-weight: 900; color: var(--primary); line-height: 1; }
.subscribe-card-days span { font-size: 14px; font-weight: 500; color: var(--on-surface-v); display: block; }
.subscribe-card-price { font-size: 22px; font-weight: 700; color: var(--on-surface); }
.subscribe-card-per { font-size: 12px; color: var(--on-surface-v); }
.subscribe-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px 48px;
}
.subscribe-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--on-surface-v);
}
.subscribe-info-item .material-symbols-outlined { color: var(--primary); font-size: 20px; flex-shrink: 0; }

/* Categories grid */
.genre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 480px) { .genre-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .genre-grid { grid-template-columns: repeat(4, 1fr); } }
.genre-card {
    background: var(--bg-card);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), color var(--transition);
    position: relative;
    overflow: hidden;
}
.genre-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity var(--transition);
}
.genre-card:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--primary); }
.genre-card:hover::before { opacity: 0.08; }
.genre-card .material-symbols-outlined { font-size: 28px; display: block; margin-bottom: 8px; color: var(--primary); position: relative; }

/* =====================================================
   TOAST NOTIFICATION
   ===================================================== */
#toast {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface-high);
    color: var(--on-surface);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--outline);
    box-shadow: 0 4px 20px var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 200;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeInUp 0.6s ease both; }
.category-section { animation: fadeInUp 0.5s ease both; }
.category-section:nth-child(2) { animation-delay: 0.08s; }
.category-section:nth-child(3) { animation-delay: 0.16s; }
.category-section:nth-child(4) { animation-delay: 0.24s; }

/* =====================================================
   DESKTOP OVERRIDES
   ===================================================== */
@media (min-width: 768px) {
    .topbar-inner { height: 68px; }
    .movie-card { width: 180px; }
    .categories-wrapper { gap: 40px; padding: 32px 0 16px; }
    .category-title { font-size: 20px; }
}

/* =====================================================
   AUTH PAGES — login / register / re_password
   ===================================================== */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 68px 16px 24px;
}

/* Back button */
.auth-back-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 10px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    z-index: 99;
    transition: background var(--transition), transform var(--transition);
}
[data-theme="light"] .auth-back-btn {
    background: rgba(255,255,255,0.6);
    border-color: rgba(0,0,0,0.10);
    color: var(--on-surface);
}
.auth-back-btn:hover { background: rgba(0,0,0,0.55); transform: translateX(-2px); }
[data-theme="light"] .auth-back-btn:hover { background: rgba(255,255,255,0.9); }
.auth-back-btn .material-symbols-outlined { font-size: 20px; }

.auth-wrap { width: 100%; max-width: 420px; }

.auth-card {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    padding: 32px 24px 28px;
    box-shadow: 0 12px 48px var(--shadow);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 24px;
}
.auth-logo img {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}
.auth-subtitle {
    font-size: 13px;
    color: var(--on-surface-v);
    margin-bottom: 22px;
    line-height: 1.5;
}

/* Step progress dots */
.auth-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}
.auth-step-dot {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--surface-high);
    transition: background 0.3s ease;
}
.auth-step-dot.done   { background: var(--primary); opacity: 0.4; }
.auth-step-dot.active { background: var(--primary); }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--on-surface-v);
}

.auth-input-wrap { position: relative; display: flex; align-items: center; }

.auth-input-icon {
    position: absolute;
    left: 12px;
    font-size: 20px;
    color: var(--on-surface-v);
    pointer-events: none;
    user-select: none;
}

.auth-input {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--outline);
    border-radius: var(--radius-sm);
    padding: 12px 12px 12px 42px;
    font-size: 16px;
    font-family: inherit;
    color: var(--on-surface);
    outline: none;
    transition: border-color 0.2s ease;
}
.auth-input:focus { border-color: var(--primary); }
.auth-input::placeholder { color: var(--on-surface-v); opacity: 0.7; }
.auth-input.otp-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 26px;
    font-weight: 700;
    padding: 14px;
}

.auth-eye {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    color: var(--on-surface-v);
    transition: color 0.2s;
}
.auth-eye:hover { color: var(--on-surface); }
.auth-eye .material-symbols-outlined { font-size: 20px; }

.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    margin-top: 4px;
    border-radius: var(--radius-sm);
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--on-surface-v);
    flex-wrap: wrap;
}
.auth-links a { color: var(--primary); font-weight: 600; }
.auth-divider { opacity: 0.35; }

.auth-otp-tel {
    font-size: 13px;
    color: var(--on-surface-v);
    text-align: center;
    margin-bottom: 4px;
}
.auth-otp-tel strong { color: var(--on-surface); }

/* Toast tweak for auth (no bottom nav) */
.auth-body #toast { bottom: 28px; }

