/* ============================================
   UNIVERSAL RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    /* Light Mode (Default) */
    --bg-color: #ffffff;
    --section-bg: #f3f4f6;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --sidebar-bg: #ffffff;
    --text-main: #f3f4f6;
    --az-glass-bg: rgba(255, 255, 255, 0.8);
    --az-text: #1e293b;
    --az-accent: #3b82f6;
    --az-card-shadow: 0 4px 20px rgba(0,0,0,0.05);
    --st-text: #1a1a1a;
    --st-bg: #f3f4f6;
    --card-bg: #ffffff;
    
    /* Membership Variables - LIGHT MODE */
    --panel-bg: #ffffff;
    --bg-light: #f8fafc;
    --primary: #0c70de;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --gold-gradient: linear-gradient(135deg, #FFD700, #FFA500);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  margin: 0 !important; 
  padding-top: 56px !important;
}

body.dark-mode {
    --st-text: #f3f4f6;
    --st-bg: #111827;
    --card-bg: #1f2937;
    --bg-color: #0c0c0c;
    --section-bg: #1e293b;
    --text-color: #f3f4f6;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --sidebar-bg: #111827;
    --text-main: #f3f4f6;
    --az-glass-bg: rgba(30, 41, 59, 0.7);
    --az-text: #f1f5f9;
    --az-accent: #60a5fa;
    --az-card-shadow: 0 4px 25px rgba(0,0,0,0.3);
    
    /* Membership Variables - DARK MODE */
    --panel-bg: #1e293b;
    --bg-light: #0f172a;
    --primary: #3b82f6;
    --danger: #ef4444;
    --success: #4ade80;
    --warning: #fbbf24;
    --gold-gradient: linear-gradient(135deg, #FFD700, #FFA500);
}

/* ============================================
   LUCIDE ICONS FIXES
   ============================================ */
[data-lucide] {
  width: 1em;
  height: 1em;
}

/* ============================================
   MAIN CONTENT & CONTAINER
   ============================================ */
.main-content {
    min-height: 100vh;
    padding: 2rem 0;
}

.container {
    width: 100% !important;
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 10px;
}


/* ================================================================
   HEADER NAVIGATION STYLES
   ================================================================ */

/* ─── HEADER BAR ─── */
#yms-hdr {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 56px !important;
    z-index: 100000 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* ─── LEFT: hamburger + logo ─── */
#yms-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
}

#yms-left a { 
    display: flex !important; 
    align-items: center !important; 
    text-decoration: none !important; 
}

#yms-left img { 
    height: 26px !important; 
    width: auto !important; 
    display: block !important; 
}

/* ─── CENTER: desktop search bar ─── */
#yms-search-wrap {
    flex: 1 !important;
    max-width: 440px !important;
    display: flex !important;
    justify-content: center !important;
    position: relative !important;
    margin: 0 10px !important;
}

#yms-search-box {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    background: #1e293b !important;
    border: 1px solid rgba(59,130,246,0.4) !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    height: 34px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

#yms-search-box input {
    flex: 1 !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    outline: none !important;
    font-size: 14px !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

#yms-search-box input::placeholder { 
    color: #94a3b8 !important; 
}

#yms-search-box .yms-si { 
    color: #60a5fa !important; 
    flex-shrink: 0 !important; 
    width: 17px !important; 
    height: 17px !important; 
}

/* ─── RIGHT: icon button row ─── */
#yms-right {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0 !important;
    flex-shrink: 0 !important;
}

/* ─── individual icon button ─── */
.yms-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 40px !important;
    background: none !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
}

.yms-btn i,
.yms-btn svg { 
    width: 20px !important; 
    height: 20px !important; 
    display: block !important; 
}

.yms-btn .yms-lbl {
    font-size: 8px !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
    color: #fff !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

/* ─── THEME TOGGLE VISIBILITY ─── */
/* Light mode: moon icon dark but accented */
#yms-theme-btn .yms-moon {
    color: #374151 !important;
}

/* Hide sun in light mode */
#yms-theme-btn .yms-sun {
    display: none !important;
}

/* Dark mode: show sun in yellow */
body.dark-mode #yms-theme-btn .yms-sun {
    display: block !important;
}

/* Hide moon in dark mode */
body.dark-mode #yms-theme-btn .yms-moon {
    display: none !important;
}

/* ─── LIGHT MODE (default) ─── */
#yms-hdr {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
}

#yms-hdr,
#yms-hdr a,
#yms-hdr .yms-lbl {
    color: #000000 !important;
}

#yms-hdr i,
#yms-hdr svg {
    color: #000000 !important;
}

/* search box (light) */
#yms-search-box {
    background: #f8fafc !important;
    border: 1px solid #d1d5db !important;
}

#yms-search-box input {
    color: #000000 !important;
}

#yms-search-box input::placeholder {
    color: #6b7280 !important;
}

/* ─── DARK MODE ─── */
body.dark-mode #yms-hdr {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
}

body.dark-mode #yms-hdr,
body.dark-mode #yms-hdr a,
body.dark-mode #yms-hdr .yms-lbl {
    color: #ffffff !important;
}

body.dark-mode #yms-hdr i,
body.dark-mode #yms-hdr svg {
    color: #ffffff !important;
}

/* search box (dark) */
body.dark-mode #yms-search-box {
    background: #1e293b !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
}

body.dark-mode #yms-search-box input {
    color: #ffffff !important;
}

/* Container — sirf width control, koi space nahi */
.ad-container,
.wat-ad-player {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: block;
}

.ad-container img,
.ad-container iframe,
.wat-ad-player img,
.wat-ad-player iframe {
    width: 100%;
    max-width: 100%;
    display: block;
    vertical-align: top; /* 👈 add this */
}

/* ─── SEARCH RESULTS DROPDOWN ─── */
/* LIGHT MODE */
.yms-results {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    display: none !important;
    z-index: 100001 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

.yms-results.show { 
    display: block !important; 
}

/* ── Search Item Container ── */
.yms-res-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    color: #111827; /* Dark text for light mode */
    transition: background 0.2s;
}

/* ── Poster Styling ── */
.yms-res-poster {
    width: 45px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ── Info & Title ── */
.yms-res-info {
    overflow: hidden;
}

.yms-res-item h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

/* ── Down Texts (Meta) ── */
.yms-res-meta {
    font-size: 11px;
    color: #64748b; /* Grey text for light mode */
    margin-top: 4px;
}

.yms-res-status {
    color: #3b82f6; /* Blue for status */
}

/* ── DARK MODE OVERRIDES ── */
body.dark-mode .yms-res-item {
    color: #f1f5f9; /* Light text */
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .yms-res-meta {
    color: #94a3b8; /* Lighter grey for dark mode */
}

body.dark-mode .yms-res-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.yms-res-no-results {
    padding: 12px 14px;
    color: #94a3b8;
    font-size: 14px;
}


/* DARK MODE */
body.dark-mode .yms-results {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
}

body.dark-mode .yms-results .yms-res-item {
    color: #ffffff !important;
    border-bottom: 1px solid #1e293b !important;
}

body.dark-mode .yms-results {
    background: #1e293b !important;
}

body.dark-mode .yms-results .yms-res-item h4 {
    color: #ffffff !important;
}

/* ─── MOBILE SEARCH OVERLAY ─── */
#yms-mob-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 56px !important;
    z-index: 100002 !important;
    align-items: center !important;
    flex-direction: row !important;
    padding: 0 10px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

#yms-mob-overlay.show { 
    display: flex !important; 
}

#yms-mob-overlay input {
    flex: 1 !important;
    min-width: 0 !important;
    background: #1e293b !important;
    border: 1px solid rgba(59,130,246,0.4) !important;
    border-radius: 10px !important;
    color: #fff !important;
    outline: none !important;
    font-size: 14px !important;
    padding: 0 12px !important;
    height: 36px !important;
    box-sizing: border-box !important;
}

#yms-mob-overlay input::placeholder { 
    color: #94a3b8 !important; 
}

/* Mobile search close button */
#yms-mob-close {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    z-index: 100004 !important;
    pointer-events: auto !important;
}

/* Light mode */
#yms-mob-close,
#yms-mob-close i,
#yms-mob-close svg {
    color: #111827 !important;
}

/* Dark mode */
body.dark-mode #yms-mob-close,
body.dark-mode #yms-mob-close i,
body.dark-mode #yms-mob-close svg {
    color: #ffffff !important;
}

/* LIGHT MODE (default) */
#yms-mob-overlay {
    background: #ffffff !important;
}

#yms-mob-overlay input {
    background: #f8fafc !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
}

#yms-mob-overlay input::placeholder {
    color: #6b7280 !important;
}

/* DARK MODE */
body.dark-mode #yms-mob-overlay {
    background: #0f172a !important;
}

body.dark-mode #yms-mob-overlay input {
    background: #1e293b !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: #ffffff !important;
}

body.dark-mode #yms-mob-overlay input::placeholder {
    color: #94a3b8 !important;
}

/* ─── MOBILE SEARCH RESULTS PANEL ─── */
/* LIGHT MODE (default) */
#yms-mob-results {
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 0 0 8px 8px !important;
    border-bottom: 1px solid #e5e7eb !important;
    z-index: 100001 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    display: none !important;
}

#yms-mob-results.show {
    display: block !important;
}

/* Result items – light */
#yms-mob-results .yms-res-item {
    color: #111827 !important;
    border-bottom: 1px solid #e5e7eb !important;
}

#yms-mob-results .yms-res-item:hover {
    background: #f3f4f6 !important;
}

/* DARK MODE */
body.dark-mode #yms-mob-results {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
}

/* Result items – dark */
body.dark-mode #yms-mob-results .yms-res-item {
    color: #ffffff !important;
    border-bottom: 1px solid #1e293b !important;
}

body.dark-mode #yms-mob-results .yms-res-item:hover {
    background: #1e293b !important;
}

/* ─── NAV SLIDE-OUT ─── */
#yms-nav-backdrop {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 99998 !important;
}

#yms-nav-backdrop.show { 
    display: block !important; 
}

#yms-nav {
    position: fixed !important;
    top: 0 !important;
    left: -260px !important;
    width: 260px !important;
    height: 100vh !important;
    background: #0f172a !important;
    z-index: 99999 !important;
    padding-top: 56px !important;
    overflow-y: auto !important;
    transition: left 0.22s ease !important;
}

#yms-nav.show { 
    left: 0 !important; 
}

#yms-nav ul { 
    list-style: none !important; 
    padding: 8px 0 !important; 
    margin: 0 !important; 
}

#yms-nav ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    padding: 13px 20px !important;
    font-size: 15px !important;
}

#yms-nav ul li a:hover { 
    background: #1e293b !important; 
    color: #fff !important; 
}

#yms-nav ul li a i,
#yms-nav ul li a svg { 
    width: 20px !important; 
    height: 20px !important; 
    flex-shrink: 0 !important; 
}

/* NAV MENU : LIGHT MODE */
#yms-nav {
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
}

#yms-nav ul li a {
    color: #111827 !important;
}

#yms-nav ul li a:hover {
    background: #f3f4f6 !important;
    color: #000000 !important;
}

#yms-nav ul li a i,
#yms-nav ul li a svg {
    color: #111827 !important;
}

/* backdrop (light) */
#yms-nav-backdrop {
    background: rgba(0,0,0,0.4) !important;
}

/* NAV MENU : DARK MODE */
body.dark-mode #yms-nav {
    background: #0f172a !important;
    border-right: none !important;
}

body.dark-mode #yms-nav ul li a {
    color: #cbd5e1 !important;
}

body.dark-mode #yms-nav ul li a:hover {
    background: #1e293b !important;
    color: #ffffff !important;
}

body.dark-mode #yms-nav ul li a i,
body.dark-mode #yms-nav ul li a svg {
    color: #cbd5e1 !important;
}

body.dark-mode #yms-nav-backdrop {
    background: rgba(0,0,0,0.55) !important;
}

/* ─── TELEGRAM BANNER ─── */
.tg-banner {
    width: 100%;
    padding: 10px 10px;
    text-align: center;
    border-radius: 14px;
    margin: 10px 0;
}

.tg-text {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #7dd3fc, #5eead4);
    color: #022c22;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    #yms-search-wrap    { display: none !important; }
    #yms-mob-search-btn { display: flex !important; }
}

@media (min-width: 1025px) {
    #yms-search-wrap    { display: flex !important; }
    #yms-mob-search-btn { display: none !important; }
}

@media (max-width: 480px) {
    .yms-btn { width: 42px !important; min-width: 42px !important; }
    .yms-btn .yms-lbl { font-size: 7.5px !important; }
}

@media (max-width: 360px) {
    .yms-btn { width: 37px !important; min-width: 37px !important; }
    .yms-btn .yms-lbl { font-size: 7px !important; }
    #yms-hdr { padding: 0 5px !important; }
}


/* ================================================================
   2. META AREA
   ================================================================ */
.wat-watch-meta-area { 
    max-width: 1400px; 
    margin: 20px auto 0; 
    padding: 0 15px; 
}

.wat-info-container { 
    background: var(--sidebar-bg); 
    padding: 20px; 
    margin-bottom: 20px; 
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.wat-episode-main-title { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 10px; 
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wat-meta-row { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex-wrap: wrap; 
    color: var(--text-muted); 
    font-size: 13px; 
    margin-bottom: 15px; 
}

.wat-meta-row span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wat-sub-badge { 
    background: #f59e0b; 
    color: #fff; 
    padding: 3px 8px; 
    border-radius: 4px; 
    font-weight: 700; 
    font-size: 11px; 
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ================================================================
   3. SOCIAL SHARE BUTTONS
   ================================================================ */
.wat-social-share-row { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    margin-top: 10px; 
}

.wat-share-btn { 
    width: 38px; 
    height: 38px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    text-decoration: none;
    transition: transform 0.2s ease;
}

.wat-fb { background: #1877f2; }
.wat-tw { background: #1da1f2; }
.wat-wa { background: #25d366; }
.wat-tg { background: #0088cc; }

/* ================================================================
   4. PLAYER LAYOUT - AUTO-FIT RESPONSIVE
   ================================================================ */
.wat-watch-container { 
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px; 
    max-width: 1400px; 
    margin: 0 auto 20px; 
    padding: 0 15px; 
}

/* Desktop: Side-by-side layout */
@media (min-width: 900px) {
    .wat-watch-container {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

/* Large Desktop: Wider sidebar */
@media (min-width: 1200px) {
    .wat-watch-container {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

.wat-player-main {
    width: 100%;
    min-width: 0; /* Prevent overflow */
}

/* ================================================================
   5. VIDEO PLAYER
   ================================================================ */
.wat-player-wrapper { 
    position: relative; 
    width: 100%; 
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000; 
    overflow: hidden;
    border-radius: 8px;
}

.wat-player-iframe { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    border: none; 
}

/* ================================================================
   6. ANIMATED LOADER
   ================================================================ */
.wat-player-loader-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-image: radial-gradient(circle farthest-corner at center, #3C4B57 0%, #1C262B 100%);
    transition: opacity 0.3s ease;
}

.wat-loader {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    perspective: 800px;
}

.wat-inner {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;  
}

.wat-inner.wat-one {
    left: 0%;
    top: 0%;
    animation: wat-rotate-one 1s linear infinite;
    border-bottom: 3px solid #EFEFFA;
}

.wat-inner.wat-two {
    right: 0%;
    top: 0%;
    animation: wat-rotate-two 1s linear infinite;
    border-right: 3px solid #EFEFFA;
}

.wat-inner.wat-three {
    right: 0%;
    bottom: 0%;
    animation: wat-rotate-three 1s linear infinite;
    border-top: 3px solid #EFEFFA;
}

@keyframes wat-rotate-one {
    0% { transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg); }
    100% { transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg); }
}

@keyframes wat-rotate-two {
    0% { transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg); }
    100% { transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg); }
}

@keyframes wat-rotate-three {
    0% { transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg); }
    100% { transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg); }
}

/* ================================================================
   7. EPISODES SIDEBAR - AUTO-FIT
   ================================================================ */
.wat-episodes-sidebar { 
    background: var(--sidebar-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 15px; 
    display: flex; 
    flex-direction: column;
    height: fit-content;
    max-height: 600px;
}

@media (min-width: 900px) {
    .wat-episodes-sidebar {
        position: static;
        top: 20px;
        max-height: calc(100vh - 40px);
    }
}

.wat-sidebar-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 12px;
    flex-shrink: 0;
}

.wat-sidebar-title { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 600; 
    color: var(--text-color); 
    margin: 0; 
    font-size: 16px; 
}

.wat-sidebar-controls { 
    display: flex; 
    gap: 5px; 
    align-items: center; 
}

/* ================================================================
   8. EPISODE GRID - SCROLLABLE
   ================================================================ */
.wat-ep-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); 
    gap: 8px; 
    overflow-y: auto; 
    padding: 5px 2px;
    flex: 1;
}

/* Scrollbar styling */
.wat-ep-grid::-webkit-scrollbar {
    width: 6px;
}

.wat-ep-grid::-webkit-scrollbar-track {
    background: var(--section-bg);
    border-radius: 10px;
}

.wat-ep-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.wat-ep-link {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--section-bg);
    color: var(--text-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    position: relative;
    transition: all 0.2s ease;
}

/* Active Episode - Golden gradient */
.wat-ep-link.wat-active {
    background: linear-gradient(135deg, #ca8a04, #422006) !important;
    color: #ffffff !important;
    border-color: transparent;
}

.wat-new-badge { 
    position: absolute; 
    top: -4px; 
    right: -4px; 
    background: #ff4d5a; 
    color: #fff; 
    font-size: 8px; 
    padding: 2px 5px; 
    border-radius: 4px; 
    font-weight: 800;
    line-height: 1;
}

/* ================================================================
   9. UI BUTTONS
   ================================================================ */
.wat-ui-btn {
    padding: 10px 16px;
    background: var(--section-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

/* Active Server - Blue gradient */
.wat-ui-btn.wat-active {
    background: linear-gradient(135deg, #1e3a8a, #020617);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.45);
}

/* Download Button - Red gradient */
.wat-ui-btn.wat-dl {
    background: linear-gradient(135deg, #c81e1e, #7f1d1d);
    border-color: #7f1d1d;
    color: #ffffff;
    justify-content: center;
}

.wat-ui-btn.wat-dl.wat-login-required {
    opacity: 0.95;
}

.wat-ui-btn.wat-dl.wat-login-required i[data-lucide="lock"] {
    color: #ffd700;
}

/* ================================================================
   10. BUTTON CONTAINERS
   ================================================================ */
.wat-server-buttons,
.wat-download-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 20px 0;
}

/* ================================================================
   11. SECTION HEADINGS
   ================================================================ */
h4 {
    margin: 0 0 10px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================================================================
   12. EPISODE SEARCH INPUT
   ================================================================ */
#epInput {
    display: none;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 13px;
    transition: border-color 0.2s ease;
}

#epInput:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* ================================================================
   13. LOGIN MODAL
   ================================================================ */
.wat-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.wat-modal-content {
    background: var(--sidebar-bg);
    padding: 30px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: wat-modalSlideIn 0.3s ease;
}

@keyframes wat-modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.dark-mode .wat-modal-content {
    background: #1e293b;
    border: 1px solid #334155;
}

.wat-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.wat-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wat-modal-text {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 14px;
}

.wat-modal-buttons {
    display: flex;
    gap: 10px;
}

.wat-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.wat-modal-btn.wat-primary {
    background: #0c70de;
    color: #fff;
}

.wat-modal-btn.wat-secondary {
    background: var(--section-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

body.dark-mode .wat-modal-btn.wat-secondary {
    background: #2d3748;
    color: #f8fafc;
}

/* ================================================================
   14. ICONS
   ================================================================ */
i[data-lucide] {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* ================================================================
   15. RESPONSIVE ADJUSTMENTS
   ================================================================ */

/* Tablets */
@media (max-width: 899px) {
    .wat-watch-meta-area,
    .wat-watch-container {
        padding: 0 12px;
    }
    
    .wat-info-container {
        padding: 15px;
    }
    
    .wat-episode-main-title {
        font-size: 18px;
    }
    
    .wat-episodes-sidebar {
        max-height: 400px;
    }
    
    .wat-ep-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    }
}

/* Mobile */
@media (max-width: 640px) {
    .wat-watch-meta-area,
    .wat-watch-container {
        padding: 0 10px;
        margin-top: 15px;
    }
    
    .wat-info-container {
        padding: 12px;
        border-radius: 6px;
    }
    
    .wat-episode-main-title {
        font-size: 16px;
        gap: 6px;
    }
    
    .wat-meta-row {
        font-size: 12px;
        gap: 8px;
    }
    
    .wat-social-share-row {
        gap: 8px;
    }
    
    .wat-share-btn {
        width: 34px;
        height: 34px;
    }
    
    .wat-episodes-sidebar {
        padding: 12px;
        max-height: 350px;
    }
    
    .wat-ep-grid {
        grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
        gap: 6px;
    }
    
    .wat-ep-link {
        font-size: 12px;
    }
    
    .wat-server-buttons,
    .wat-download-buttons {
        gap: 6px;
    }
    
    .wat-ui-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    h4 {
        font-size: 14px;
    }
    
    .wat-modal-content {
        padding: 24px;
        max-width: 95%;
    }
    
    .wat-modal-title {
        font-size: 18px;
    }
    
    .wat-modal-buttons {
        flex-direction: column;
    }
}

/* ================================================================
   NOVADONGHUA - MASTER STYLESHEET
   Core styles for anime listing pages, grids, cards, and badges


/* ================================================================
   2. BASE LAYOUT & CONTAINERS
   ================================================================ */
body { 
    background: var(--bg-color); 
    color: var(--text-color); 
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    padding-top: 56px !important;
}

.container { 
    width: 95%; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 10px; 
}

.main-content { 
    min-height: 100vh; 
    padding: 1rem 0; 
}

.simple-header { 
    font-size: 16px; 
    font-weight: 600; 
    color: #888; 
    margin-bottom: 20px; 
    text-transform: lowercase; 
    letter-spacing: 0.5px; 
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
}

.section-header h2 i {
    color: #667eea;
}

/* View All Button Only */
.view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    transition: all 0.3s ease;
}

/* Active click effect */
.view-all:active {
    transform: scale(0.96);
}

/* ================================================================
   3. ANIME GRID SYSTEM - AUTO-FIT (Mobile First)
   ================================================================ */
.anigrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    gap: 20px;
    padding: 20px 0;
    width: 100%;
}

.ani-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.ani-slider::-webkit-scrollbar {
    display: none;
}

.ani-slider a {
    text-decoration: none !important;
    min-width: 140px;
    max-width: 140px;
}

.anime-item.hidden { 
    display: none; 
}

/* ================================================================
   4. CARD COMPONENTS
   ================================================================ */
.nova-card {
    text-decoration: none !important;
    transition: transform 0.3s ease;
}

.nova-poster-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3; 
    border-radius: 10px;
    overflow: hidden;
    background: #2a2a2a;
}

/* Bottom Shadow for Text Visibility */
.nova-poster-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.nova-poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nova-title { 
    margin-top: 10px; 
    font-size: 14px; 
    font-weight: 600; 
    text-align: center; 
    height: 38px; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    line-height: 1.3; 
    color: #111;
    text-decoration: none !important;
}

body.dark-mode .nova-title { 
    color: var(--text-main); 
}

/* ================================================================
   5. BADGE SYSTEM - All Badges in One Place
   ================================================================ */

/* Status Ribbon - Diagonal (Top Left) */
.bdg {
    position: absolute;
    top: 14px; 
    left: -42px;
    width: 140px; 
    height: 26px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transform: rotate(-45deg);
    z-index: 11;
    font-size: 9px; 
    font-weight: 800; 
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.bdg.ongoing { 
    background: linear-gradient(135deg, #22c55e, #14532d); 
}

.bdg.completed { 
    background: linear-gradient(135deg, #dc2626, #450a0a); 
}

.bdg.upcoming { 
    background: linear-gradient(135deg, #fbbf24, #78350f); 
}

/* Type Badge (Top Right) */
.type-badge {
    position: absolute;
    top: 0; 
    right: 0;
    color: #fff !important;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 900;
    border-radius: 0 0 0 8px;
    z-index: 10;
    text-transform: uppercase;
}

/* Type Colors - Dynamic Gradients */
.type-tv {
    background: linear-gradient(135deg, #0c70de, #38bdf8) !important;
}

.type-ona {
    background: linear-gradient(135deg, #ec4899, #f472b6, #f9a8d4) !important;
}

.type-movie {
    background: linear-gradient(135deg, #e91e63, #ff6090) !important;
}

.type-donghua {
    background: linear-gradient(135deg, #ff512f, #dd2476) !important;
}

.type-ova {
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
}

.type-special {
    background: linear-gradient(135deg, #4b0f1a, #8b1e3f, #c2185b) !important;
}

/* Sub Badge (Bottom Right) */
.badge-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #0ea5a4, #134e4a);
    color: #fff !important;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
    border-radius: 10px 0 0 0;
    z-index: 10;
    border-left: 1px solid rgba(255,255,255,0.25);
    border-top: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Episode Badge (Bottom Left) */
.nv-ep {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #fb923c, #7c2d12);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 900;
    border-radius: 0 8px 0 0;
    z-index: 10;
}

/* Hot Badge Icon */
.hot-badge-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

/* ================================================================
   6. GENRE LIST PAGE
   ================================================================ */
.genre-list {
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-top: 20px;
}

.genre-pill {
    padding: 10px 20px; 
    border-radius: 50px; 
    background: #1a1a1a; 
    color: #eee; 
    text-decoration: none; 
    border: 1px solid #333; 
    font-weight: 600;
    transition: all 0.3s ease;
}

body.dark-mode .genre-pill {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .genre-pill:hover {
    background: #333;
    border-color: #666;
}

/* Show More Button */
.btn-container { 
    display: flex; 
    justify-content: center; 
    margin: 40px 0; 
}

.btn-show-more { 
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white; 
    border: none; 
    padding: 12px 45px; 
    border-radius: 50px; 
    font-weight: 700; 
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* ================================================================
   7. A-Z LIST PAGE
   ================================================================ */
.az-selection-panel {
    background: var(--az-glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--az-card-shadow);
    text-align: center;
}

.az-header-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--az-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.letters-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.letter-pill {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--az-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.letter-pill.active {
    background: var(--az-accent);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.letter-pill.disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

.l-dot {
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--az-accent);
    border-radius: 50%;
}

.letter-pill.active .l-dot { 
    background: #fff; 
}

/* Results Header */
.results-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    padding: 0 5px;
}

.results-title {
    font-size: 20px; 
    font-weight: 800; 
    color: var(--az-text); 
    margin: 0;
}

.results-count {
    font-size: 13px; 
    font-weight: 700; 
    color: var(--az-accent); 
    background: rgba(59, 130, 246, 0.1); 
    padding: 5px 15px; 
    border-radius: 50px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1; 
    text-align: center; 
    padding: 100px 0;
}

.empty-state i {
    color: var(--az-text); 
    opacity: 0.3; 
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--az-text); 
    opacity: 0.5; 
    font-weight: 600;
}

/* ================================================================
   8. POPULAR ANIME SECTION (Homepage)
   ================================================================ */
.popular-anime-item-static {
    display: flex; 
    align-items: center; 
    gap: 1rem;
    background: #f4f4f6; 
    border-radius: 8px; 
    padding: 0.75rem;
    color: #111; 
    position: relative; 
    text-decoration: none; 
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

body.dark-mode .popular-anime-item-static { 
    background: #1a1a2e; 
    color: #fff; 
}

.popular-rank { 
    font-size: 1.5rem; 
    font-weight: 800; 
    min-width: 40px; 
    text-align: center; 
    color: #7c3aed; 
}

/* Top 3 gradients */
.popular-anime-item-static:nth-child(1) .popular-rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popular-anime-item-static:nth-child(2) .popular-rank {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popular-anime-item-static:nth-child(3) .popular-rank {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popular-poster { 
    width: 60px; 
    height: 85px; 
    border-radius: 6px; 
    overflow: hidden; 
    flex-shrink: 0; 
}

.popular-poster img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.popular-info { 
    flex: 1; 
    min-width: 0; 
}

.popular-title { 
    font-size: 1rem; 
    font-weight: 600; 
    margin: 0 0 0.5rem 0; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.genre-tags { 
    font-size: 0.85rem; 
    color: #555; 
}

body.dark-mode .genre-tags { 
    color: #a0a0b0; 
}

.genre-label { 
    font-weight: 600; 
    color: #7c3aed; 
}

/* Popular Rating stars */
.popular-rating { 
    display: flex; 
    align-items: center; 
    gap: 0.25rem; 
}

.star { 
    width: 14px; 
    height: 14px; 
    color: #FFD700; 
    fill: currentColor; 
}

.star.empty { 
    color: #9ca3af; 
}

body.dark-mode .star.empty { 
    color: #4a4a5e; 
}

.rating-score { 
    margin-left: 0.5rem; 
    font-size: 0.9rem; 
    font-weight: 600; 
}

/* Popular Tabs */
.popular-tabs { 
    display: flex; 
    margin-bottom: 1.5rem; 
    background: #e5e7eb; 
    border-radius: 8px; 
    padding: 4px; 
}

body.dark-mode .popular-tabs { 
    background: #2a2a2a; 
}

.tab-btn { 
    flex: 1; 
    padding: 10px; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 600; 
    color: #555; 
    border-radius: 6px; 
    text-transform: uppercase; 
}

.tab-btn.active { 
    background: #22c55e; 
    color: #000; 
    font-weight: 700; 
}

body.dark-mode .tab-btn { 
    color: #999; 
}

.tab-content { 
    display: none; 
    flex-direction: column; 
    gap: 10px; 
    animation: fadeIn 0.3s ease-in-out; 
}

.tab-content.active { 
    display: flex; 
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ================================================================
   9. PAGINATION (All Anime Page)
   ================================================================ */
.toggle-pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    margin: 40px 0; 
    padding: 10px; 
    border-top: 1px solid #333; 
}

.toggle-btn { 
    padding: 10px 25px; 
    background: #1a1a1a; 
    border: 1px solid #333; 
    color: #fff; 
    border-radius: 50px; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 600; 
    text-transform: uppercase; 
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #2a2a2a;
    border-color: #555;
}

.toggle-btn.disabled { 
    opacity: 0.3; 
    pointer-events: none; 
}

.page-indicator { 
    color: #888; 
    font-size: 14px; 
    font-weight: 700; 
}

body.dark-mode .toggle-btn {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .toggle-btn:hover {
    background: #333;
    border-color: #666;
}

/* ================================================================
   10. ICONS
   ================================================================ */
i[data-lucide] {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* ================================================================
   11. RESPONSIVE BREAKPOINTS
   ================================================================ */

/* Tablet */
@media (max-width: 768px) {
    .anigrid { 
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); 
        gap: 15px; 
    }
    
    .az-selection-panel { 
        padding: 20px; 
    }
    
    .letter-pill { 
        min-width: 38px; 
        height: 38px; 
        font-size: 14px; 
    }
    
    .popular-rank { 
        font-size: 1.25rem; 
        min-width: 35px; 
    }
    
    .popular-poster { 
        width: 50px; 
        height: 70px; 
    }
    
    .popular-title { 
        font-size: 0.9rem; 
    }
    
    .genre-tags { 
        font-size: 0.75rem; 
    }
}

/* Mobile */
@media (max-width: 480px) { 
    .anigrid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 10px; 
    }
    
    .nova-title { 
        font-size: 11px; 
        height: 34px;
    }
    
    .genre-pill {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .az-selection-panel { 
        padding: 15px; 
    }
    
    .letter-pill { 
        min-width: 35px; 
        height: 35px; 
        font-size: 13px; 
    }
    
    .results-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .popular-anime-item-static { 
        padding: 0.5rem; 
        gap: 0.75rem; 
    }
    
    .popular-rank { 
        font-size: 1.1rem; 
        min-width: 30px; 
    }
    
    .popular-poster { 
        width: 45px; 
        height: 65px; 
    }
    
    .popular-title { 
        font-size: 0.85rem; 
    }
    
    .genre-tags { 
        font-size: 0.7rem; 
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .anigrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .nova-title {
        font-size: 10px;
        height: 32px;
    }
} 

/* ================================================================
   STATUS PAGE (ongoing, completed, upcoming)
   ================================================================ */

/* --- STATUS HEADING --- */
.status-heading {
    color: var(--st-text);
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- STATUS GRID SYSTEM --- */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 20px 0;
    width: 100%;
}

/* --- STATUS CARD --- */
.status-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease;
}

/* --- POSTER CONTAINER --- */
.status-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    isolation: isolate;
}

.status-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.status-poster img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- STATUS RIBBON BADGE (Diagonal - Top Left) --- */
.st-badge {
    position: absolute;
    top: 12px; 
    left: -35px;
    width: 120px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    z-index: 3;
    font-size: 9px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Ongoing – Bright Jade */
.st-badge.ongoing { 
    background: linear-gradient(135deg, #10b981, #047857);
}

/* Completed – Imperial Crimson */
.st-badge.completed { 
    background: linear-gradient(135deg, #ef4444, #991b1b);
}

/* Upcoming – Royal Dynasty Gold */
.st-badge.upcoming { 
    background: linear-gradient(135deg, #f59e0b, #92400e);
}

/* --- TYPE BADGE (Top Right) --- */
.status-poster .type-badge {
    position: absolute;
    top: 0;
    right: 0;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 900;
    border-radius: 0 8px 0 8px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- INFO BADGES CONTAINER (Bottom Right) --- */
.info-badges {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    z-index: 2;
}

/* --- SUB BADGE --- */
.status-poster .badge-sub {
    background: linear-gradient(135deg, #fc00ff, #00dbde) !important;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 900;
    border-radius: 8px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- STATUS TITLE --- */
.st-title {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--st-text);
    text-align: center;
    height: auto;
    min-height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    padding: 0 4px;
}

/* --- LOAD MORE BUTTON --- */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    margin-top: 20px;
}

.status-page .btn-show-more {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    padding: 14px 48px;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
}

.status-page .btn-show-more:active {
    transform: translateY(0);
}

.status-page .btn-show-more:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ================================================================
   STATUS PAGE RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) and (min-width: 641px) {
    .status-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Mobile */
@media (max-width: 640px) {
    .status-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 15px 0;
    }
    
    .status-heading {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .st-title {
        font-size: 12px;
        min-height: 34px;
    }
    
    .btn-show-more {
        padding: 12px 36px;
        font-size: 12px;
    }
    
    .load-more-container {
        padding: 30px 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .status-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .st-title {
        font-size: 11px;
        min-height: 32px;
    }
}

/* Desktop Large */
@media (min-width: 1025px) {
    .status-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }
}

/* ================================================================
   ANIME DETAIL PAGE
   ================================================================ */

/* --- ANIME DETAIL CONTAINER --- */
.anime-detail-container {
    background-color: #ffffff;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body.dark-mode .anime-detail-container {
    background-color: #0f172a;
}

.anime-desktop-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.anime-left-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.anime-right-column {
    width: 100%;
}

/* --- LEFT COLUMN: POSTER, RATING, BOOKMARK & TRAILER --- */
.anime-poster-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.anime-poster-wrapper img {
    width: 140px; 
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.anime-rating-box {
    text-align: center;
    background: #f1f5f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 200px;
}

body.dark-mode .anime-rating-box {
    background: #1e293b;
}

.anime-rating-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
    color: #1e293b;
}

body.dark-mode .anime-rating-title {
    color: #f8fafc;
}

.anime-rating-stars {
    color: #fbbf24;
    font-size: 18px;
}

/* Action Buttons Container */
.anime-action-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 200px;
    margin-bottom: 10px;
}

.anime-bookmark-btn,
.anime-trailer-btn {
    flex: 1;
    background: #007bff;
    color: #fff;
    padding: 12px 8px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.anime-bookmark-btn.bookmarked {
    background: #8b5cf6;
}

.anime-trailer-btn {
    background: #ef4444;
}

.anime-bookmark-btn svg,
.anime-trailer-btn svg {
    width: 16px;
    height: 16px;
}

.anime-followed-text {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    margin-top: 8px;
}

body.dark-mode .anime-followed-text {
    color: #94a3b8;
}

/* --- RIGHT COLUMN: TITLES & INFO GRID --- */
.anime-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 10px 0;
}

body.dark-mode .anime-main-title {
    color: #f8fafc;
}

.anime-meta-text {
    font-size: 13px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

body.dark-mode .anime-meta-text {
    color: #94a3b8;
}

.anime-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns by default */
    gap: 10px;
    margin: 20px 0;
    padding: 0 5px;
    width: 100%;
    max-width: 100%;
}

/* Mobile - Force 2 columns, not 1 */
@media (max-width: 640px) {
    .anime-info-grid {
        grid-template-columns: 1fr 1fr !important; /* Force 2 columns */
        gap: 8px;
    }
}

/* Small mobile - still 2 columns but adjust text size */
@media (max-width: 480px) {
    .anime-info-grid {
        grid-template-columns: 1fr 1fr !important; /* Keep 2 columns */
        gap: 6px;
    }
    
    .anime-info-item {
        font-size: 11px;
    }
    
    .anime-info-label::before {
        width: 6px;
        height: 6px;
        margin-right: 4px;
    }
}

/* Very small mobile - still 2 columns */
@media (max-width: 360px) {
    .anime-info-grid {
        grid-template-columns: 1fr 1fr !important; /* Always 2 columns */
        gap: 5px;
    }
    
    .anime-info-item {
        font-size: 10px;
    }
}

.anime-info-item {
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.anime-info-label {
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

body.dark-mode .anime-info-label {
    color: #f8fafc;
}

.anime-info-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #007bff;
    margin-right: 6px;
    border-radius: 1px;
    flex-shrink: 0;
}

.anime-info-value {
    color: #007bff;
    margin-left: 4px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.anime-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    max-width: 100%;
}

.type-pill {
    padding: 4px 12px;
    border: 1px solid #007bff;
    color: #007bff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

/* --- SYNOPSIS & CREDIT --- */
.anime-synopsis-section {
    padding-top: 15px;
    margin-top: 20px;
    max-width: 100%;
    overflow-wrap: break-word;
}

.anime-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 15px;
}

body.dark-mode .anime-section-title {
    color: #f8fafc;
    border-bottom-color: #334155;
}

.anime-synopsis-text {
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
    text-align: justify;
    margin-bottom: 10px;
}

body.dark-mode .anime-synopsis-text {
    color: #94a3b8;
}

.anime-synopsis-toggle {
    color: #007bff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.anime-credit {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-top: 15px;
}

body.dark-mode .anime-credit {
    color: #94a3b8;
}

.anime-credit::before {
    content: "Credit: ";
    font-weight: 400;
}

/* --- TABS & CHARACTERS/STAFF SLIDERS --- */
.chrctr-tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(128,128,128,0.2);
    justify-content: space-between;
    align-items: center;
}

.chrctr-tab-buttons {
    display: flex;
    gap: 10px;
}

body.light-mode .chrctr-tab-nav {
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.chrctr-show-all-btn {
    padding: 8px 16px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chrctr-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.chrctr-tab-btn.active {
    color: #22c55e;
}

.chrctr-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #22c55e;
}

body.light-mode .chrctr-tab-btn {
    color: #64748b;
}

body.light-mode .chrctr-tab-btn:hover,
body.light-mode .chrctr-tab-btn.active {
    color: #22c55e;
}

/* Tab Content */
.chrctr-tab-content {
    display: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.chrctr-tab-content.active {
    display: block;
}

/* Slider Styles */
.chrctr-person-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.chrctr-person-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #22c55e rgba(128,128,128,0.2);
    padding-bottom: 10px;
    width: 100%;
}

.chrctr-person-slider::-webkit-scrollbar {
    height: 8px;
}

.chrctr-person-slider::-webkit-scrollbar-track {
    background: rgba(128,128,128,0.1);
    border-radius: 4px;
}

.chrctr-person-slider::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 4px;
}

.chrctr-person-slider .chrctr-person-card {
    flex: 0 0 90px;
}

/* Grid for Cards */
.chrctr-person-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 20px;
}

.chrctr-person-grid.hidden {
    display: none;
}

/* Person Card - Fixed size */
.chrctr-person-card { 
    text-align: center;
    width: 90px;
}

.chrctr-person-card img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid #22c55e;
    margin: 0 auto 8px;
    display: block;
    transition: all 0.3s ease;
}

body.light-mode .chrctr-person-card img {
    border: 2px solid #22c55e;
}

.chrctr-char-name {
    font-size: 12px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.dark-mode .chrctr-char-name {
    color: #f8fafc;
}

.chrctr-staff-role {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 4px;
}

body.dark-mode .chrctr-staff-role {
    color: #94a3b8;
}

.chrctr-no-data {
    color: #94a3b8;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

body.light-mode .chrctr-no-data {
    color: #64748b;
}

.hidden { 
    display: none; 
}

/* --- EPISODES GRID - WATCH PAGE STYLE WITH VERTICAL SCROLL --- */
.anime-ep-container {
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
}

/* Fixed height container with scroll */
.anime-ep-grid-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    margin-top: 15px;
    border-radius: 8px;
}

/* Scrollbar styling */
.anime-ep-grid-wrapper::-webkit-scrollbar {
    width: 6px;
}
.anime-ep-grid-wrapper::-webkit-scrollbar-track {
    background: var(--section-bg);
    border-radius: 10px;
}
.anime-ep-grid-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
.anime-ep-grid-wrapper::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

.anime-ep-grid {
    display: grid;
    gap: 8px;
    width: 100%;
}

.anime-ep-circle {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--section-bg);
    color: var(--text-color);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.2s ease;
    width: 100%;
    height: auto;
}

/* DEFAULT MOBILE - 2 ROWS with DOUBLED SIZE */
.anime-ep-grid {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); /* 26px × 2 */
}
.anime-ep-grid-wrapper {
    max-height: 112px !important; /* 52px × 2 + 8px gap = 112px */
}
.anime-ep-circle {
    font-size: 11px;
}

/* MEDIUM MOBILE - 2 ROWS */
@media (min-width: 400px) and (max-width: 640px) {
    .anime-ep-grid {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); /* 28px × 2 */
    }
    .anime-ep-grid-wrapper {
        max-height: 120px !important; /* 56px × 2 + 8px gap = 120px */
    }
    .anime-ep-circle {
        font-size: 12px;
    }
}

/* EXTRA SMALL MOBILE - 2 ROWS */
@media (max-width: 360px) {
    .anime-ep-grid {
        grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); /* 24px × 2 */
        gap: 6px;
    }
    .anime-ep-grid-wrapper {
        max-height: 102px !important; /* 48px × 2 + 6px gap = 102px */
    }
    .anime-ep-circle {
        font-size: 10px;
    }
}

/* TABLET - 4 ROWS */
@media (min-width: 641px) and (max-width: 1023px) {
    .anime-ep-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 10px;
    }
    .anime-ep-grid-wrapper {
        max-height: 230px !important; /* 50px × 4 + (10px × 3 gaps) = 230px */
    }
    .anime-ep-circle {
        font-size: 12px;
        border-radius: 8px;
    }
}

/* DESKTOP - 5 ROWS */
@media (min-width: 1024px) {
    .anime-ep-grid {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
        gap: 12px;
    }
    .anime-ep-grid-wrapper {
        max-height: 323px !important; /* 55px × 5 + (12px × 4 gaps) = 323px */
    }
    .anime-ep-circle {
        font-size: 13px;
        border-radius: 8px;
    }
}

/* LARGE DESKTOP - 5 ROWS */
@media (min-width: 1280px) {
    .anime-ep-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 12px;
    }
    .anime-ep-grid-wrapper {
        max-height: 348px !important; /* 60px × 5 + (12px × 4 gaps) = 348px */
    }
    .anime-ep-circle {
        font-size: 14px;
    }
}

/* --- SHARE BUTTONS --- */
.anime-share-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 20px 0;
}

.anime-share-btn {
    height: 35px;
    border: none;
    border-radius: 2px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }
.share-pinterest { background: #e60023; }
.share-telegram { background: #0088cc; }

/* --- TRAILER MODAL --- */
.trailer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
}

.trailer-modal-content {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    top: 50%;
    transform: translateY(-50%);
}

.trailer-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.trailer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.trailer-close svg {
    width: 20px;
    height: 20px;
}

.trailer-modal iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ================================================================
   ANIME PAGE RESPONSIVE
   ================================================================ */

/* Desktop (768px and up) */
@media (min-width: 768px) {
    .anime-detail-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px;
    }

    .anime-desktop-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .anime-left-column {
        width: 250px;
        flex-shrink: 0;
        align-items: flex-start;
    }

    .anime-right-column {
        width: calc(100% - 270px);
        flex: 1;
        min-width: 0;
    }

    .anime-poster-wrapper img {
        width: 100%;
    }

    .anime-main-title {
        text-align: left;
        font-size: 32px;
    }

    .anime-meta-text {
        text-align: left;
    }

    .anime-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px 40px;
    }

    .anime-info-item {
        font-size: 14px;
    }

    .anime-ep-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 12px;
    }

    .anime-ep-circle {
        font-size: 14px;
        min-height: 60px;
    }

    .anime-action-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
    }

    .anime-bookmark-btn,
    .anime-trailer-btn {
        width: 100%;
    }

    .anime-rating-box {
        max-width: 100%;
    }

    .anime-synopsis-text {
        text-align: left;
    }

    .anime-share-buttons {
        max-width: 400px;
    }
}

/* Large Desktop (1024px and up) */
@media (min-width: 1024px) {
    .anime-detail-container {
        max-width: 1400px;
        padding: 50px;
    }

    .anime-left-column {
        width: 280px;
    }

    .anime-right-column {
        width: calc(100% - 300px);
    }

    .anime-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 30px;
    }

    .anime-ep-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .chrctr-person-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .chrctr-person-card {
        width: 100px;
    }

    .chrctr-person-card img {
        width: 90px !important;
        height: 90px !important;
    }
}

/* Extra Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .anime-detail-container {
        max-width: 1600px;
    }

    .anime-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile (up to 767px) - Already handled by mobile-first approach */
@media (max-width: 480px) {
    .anime-ep-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 8px;
    }
    
    .anime-ep-circle {
        font-size: 12px;
        min-height: 45px;
    }
    
    .anime-main-title {
        font-size: 20px;
    }
    
    .anime-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .chrctr-person-card {
        width: 80px;
    }
    
    .chrctr-person-card img {
        width: 70px !important;
        height: 70px !important;
    }
    
    .chrctr-person-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }
}


/* тХРтХРтХР MEMBERSHIP тАФ paym- prefix тХРтХРтХР */
.paym-hero {
    background: var(--section-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 2.8rem 1.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.paym-hero::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.paym-hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    position: relative;
}
.paym-hero p { color: var(--text-muted); font-size: 0.93rem; margin: 0; position: relative; }

/* тФАтФА Custom Country Dropdown Bar тФАтФА */
.paym-country-bar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center;
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(8px);
}
.paym-country-bar-label {
    font-size: 0.75rem; color: var(--text-muted); font-weight: 600;
    display: flex; align-items: center; gap: 0.35rem; white-space: nowrap;
}

/* Custom Dropdown */
.paym-dropdown {
    position: relative;
    display: inline-block;
    user-select: none;
}
.paym-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0.45rem 0.9rem 0.45rem 0.75rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-color);
    min-width: 210px;
    outline: none;
}
.paym-dropdown.open .paym-dropdown-trigger {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
.paym-dropdown-trigger .dd-flag { font-size: 1.1rem; line-height: 1; }
.paym-dropdown-trigger .dd-label { flex: 1; text-align: left; }
.paym-dropdown-trigger .dd-chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s;
    margin-left: 0.2rem;
}
.paym-dropdown.open .paym-dropdown-trigger .dd-chevron { transform: rotate(180deg); }

.paym-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 200;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.paym-dropdown.open .paym-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.paym-dropdown-search {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.paym-dropdown-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 0.8rem;
    outline: none;
}
.paym-dropdown-search input::placeholder { color: var(--text-muted); }
.paym-dropdown-list {
    max-height: 230px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.paym-dd-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    font-size: 0.81rem;
    font-weight: 500;
    color: var(--text-color);
}
.paym-dd-item.active { background: rgba(139,92,246,0.1); color: #8b5cf6; font-weight: 700; }
.paym-dd-item .dd-item-flag { font-size: 1.05rem; }
.paym-dd-item .dd-item-name { flex: 1; }
.paym-dd-item .dd-item-code {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--section-bg);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}
.paym-dd-item.active .dd-item-code { background: rgba(139,92,246,0.15); color: #8b5cf6; }

.paym-rate-tag {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.32rem 0.75rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex; align-items: center; gap: 0.3rem;
}
.paym-detect-btn {
    display: flex; align-items: center; gap: 0.3rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.32rem 0.75rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
}
.paym-detecting { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* тФАтФА Status Card тФАтФА */
.paym-status { max-width: 640px; margin: 1.8rem auto 0; padding: 0 1rem; }
.paym-status-inner {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.4rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.paym-sbadge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.32rem 0.85rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.paym-sbadge.lifetime { background: rgba(202,138,4,0.1);  color: #ca8a04; border: 1px solid rgba(202,138,4,0.3); }
.paym-sbadge.active   { background: rgba(34,197,94,0.1);  color: #16a34a; border: 1px solid rgba(34,197,94,0.3); }
.paym-sbadge.expired  { background: rgba(239,68,68,0.1);  color: #dc2626; border: 1px solid rgba(239,68,68,0.3); }
.paym-sbadge.free     { background: var(--section-bg);    color: var(--text-muted); border: 1px solid var(--border-color); }
body.dark-mode .paym-sbadge.lifetime { color: #fbbf24; background: rgba(251,191,36,0.1); }
body.dark-mode .paym-sbadge.active   { color: #4ade80; }
body.dark-mode .paym-sbadge.expired  { color: #f87171; }
.paym-stext { font-size: 0.82rem; color: var(--text-muted); flex: 1; min-width: 0; }
.paym-stext strong { color: var(--text-color); }

/* тФАтФА Plan Selector Tabs тФАтФА */
.paym-grid-wrap { max-width: 1220px; margin: 2.2rem auto; padding: 0 1.2rem; }
.paym-grid-header {
    text-align: center;
    margin-bottom: 2rem;
}
.paym-grid-title {
    font-size: 1.15rem; font-weight: 800; color: var(--text-color);
    margin-bottom: 0.4rem; display: flex; align-items: center; justify-content: center; gap: 0.45rem;
}
.paym-grid-sub { font-size: 0.85rem; color: var(--text-muted); }

/* тФАтФА Plan Cards Grid тФАтФА */
.paym-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: start;
}
@media (max-width: 1100px) { .paym-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .paym-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .paym-grid { grid-template-columns: 1fr; } }

.paym-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem 1.1rem 1.2rem;
    position: relative;
    display: flex; flex-direction: column;
}
.paym-card.featured {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 1px rgba(139,92,246,0.2), 0 8px 24px rgba(139,92,246,0.12);
    transform: scale(1.03);
}

.paym-ribbon {
    position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-size: 0.58rem; font-weight: 800; letter-spacing: 0.06em;
    padding: 0.2rem 1rem; border-radius: 0 0 8px 8px;
    text-transform: uppercase; white-space: nowrap;
}
.paym-pbadge {
    position: absolute; top: 0.75rem; right: 0.75rem;
    font-size: 0.56rem; font-weight: 800; letter-spacing: 0.04em;
    padding: 0.18rem 0.5rem; border-radius: 5px;
    text-transform: uppercase; color: #fff;
}
.paym-picon {
    width: 44px; height: 44px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.9rem;
}
.paym-pname { font-size: 1rem; font-weight: 800; color: var(--text-color); margin-bottom: 0.1rem; }
.paym-pdur  { font-size: 0.73rem; color: var(--text-muted); margin-bottom: 0.8rem; font-weight: 500; }

.paym-price {
    display: flex; align-items: flex-start; gap: 0.15rem;
    margin-bottom: 0.15rem;
}
.paym-psym  { font-size: 0.95rem; font-weight: 700; color: var(--text-color); margin-top: 0.25rem; }
.paym-pamt  { font-size: 2rem; font-weight: 900; color: var(--text-color); line-height: 1; }
.paym-pusdt { font-size: 0.67rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: 500; }

.paym-feats { list-style: none; padding: 0; margin: 0 0 1.1rem; flex: 1; }
.paym-feats li {
    display: flex; align-items: center; gap: 0.45rem;
    font-size: 0.75rem; padding: 0.27rem 0;
    border-bottom: 1px solid var(--border-color);
}
.paym-feats li:last-child { border-bottom: none; }
.paym-feats li span { color: var(--text-color); }
.paym-fy i { color: #16a34a; width: 13px; height: 13px; }
.paym-fn i { color: var(--border-color); width: 13px; height: 13px; }
.paym-fn span { color: var(--text-muted); }
body.dark-mode .paym-fy i { color: #4ade80; }

.paym-upgbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.65rem 1rem; border-radius: 10px; font-weight: 700; font-size: 0.8rem;
    text-decoration: none; border: none; cursor: pointer;
    margin-top: auto;
}

/* тФАтФА Comparison Table тФАтФА */
.paym-cmp-wrap {
    max-width: 1220px; margin: 0 auto 3rem; padding: 0 1.2rem;
}
.paym-cmp-title {
    text-align: center; font-size: 1rem; font-weight: 700;
    color: var(--text-color); margin-bottom: 1.2rem;
    display: flex; align-items: center; justify-content: center; gap: 0.45rem;
}
.paym-cmp-scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border-color); }
.paym-cmp-tbl { width: 100%; border-collapse: collapse; background: var(--card-bg); font-size: 0.77rem; }
.paym-cmp-tbl th {
    padding: 0.9rem 0.8rem; text-align: center;
    font-size: 0.68rem; font-weight: 700; color: var(--text-muted);
    background: var(--section-bg); border-bottom: 1px solid var(--border-color);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.paym-cmp-tbl th:first-child { text-align: left; min-width: 140px; }
.paym-cmp-tbl td {
    padding: 0.7rem 0.8rem; text-align: center;
    border-bottom: 1px solid var(--border-color); color: var(--text-muted);
}
.paym-cmp-tbl td:first-child { text-align: left; color: var(--text-color); font-weight: 600; }
.paym-cmp-tbl tr:last-child td { border-bottom: none; }
.paym-ck [data-lucide] { color: #16a34a; width: 15px; height: 15px; }
.paym-cx [data-lucide] { color: var(--border-color); width: 15px; height: 15px; }
body.dark-mode .paym-ck [data-lucide] { color: #4ade80; }

/* Detect notification */
.paym-detect-notice {
    display: none;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #16a34a;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    font-weight: 600;
}
.paym-detect-notice.show { display: flex; }
body.dark-mode .paym-detect-notice { color: #4ade80; }


*, *::before, *::after { box-sizing: border-box; }

.paym-wrap {
    min-height: 70vh;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 2rem 1rem 3rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
}
.paym-box {
    width: 100%; max-width: 500px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px; overflow: visible;
}

/* Header */
.paym-head {
    padding: 1.3rem 1.5rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--section-bg);
    border-radius: 16px 16px 0 0;
}
.paym-back {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.72rem; color: var(--text-muted); text-decoration: none;
    margin-bottom: 0.75rem; font-weight: 500;
}
.paym-back:hover { color: var(--text-color); }
.paym-title { font-size: 1.1rem; font-weight: 700; color: var(--text-color); margin-bottom: 0.15rem; }
.paym-sub   { font-size: 0.76rem; color: var(--text-muted); font-weight: 400; }
.paym-sub strong { font-weight: 600; }

/* Summary */
.paym-summary {
    margin: 1.1rem 1.5rem 0;
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}
.paym-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 1rem; border-bottom: 1px solid var(--border-color);
    font-size: 0.78rem;
}
.paym-row:last-child { border-bottom: none; }
.paym-lbl { color: var(--text-muted); font-weight: 500; }
.paym-lbl.pay-lbl { font-size: .82rem; font-weight: 700; color: var(--text-color); }
.paym-val { color: var(--text-color); font-weight: 600; }
.paym-val.total { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.paym-ccode { font-size: 0.65rem; font-weight: 500; color: var(--text-muted); margin-left: 3px; vertical-align: middle; }
.paym-usdt-sub { font-size: 0.62rem; font-weight: 500; color: var(--text-muted); margin-left: 5px; vertical-align: middle; }

/* Form */
.paym-form { padding: 1.2rem 1.5rem 1.5rem; }
.paym-group { margin-bottom: 1.1rem; }
.paym-label {
    display: block; margin-bottom: 0.4rem;
    font-size: 0.65rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.07em;
}

/* Channel buttons */
.paym-channels { display: flex; gap: 0.5rem; }
.paym-ch {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.22rem;
    padding: 0.6rem 0.4rem;
    border: 1.5px solid var(--border-color);
    border-radius: 9px; background: var(--bg-color);
    color: var(--text-muted); font-size: 0.67rem; font-weight: 600;
    cursor: pointer; outline: none; transition: all 0.15s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.paym-ch svg { width: 18px; height: 18px; }
.paym-ch.tg.on  { border-color: #2AABEE; background: rgba(42,171,238,0.07); color: #2AABEE; }
.paym-ch.wa.on  { border-color: #25D366; background: rgba(37,211,102,0.07); color: #25D366; }
.paym-ch.em.on  { border-color: #f59e0b; background: rgba(245,158,11,0.07); color: #b45309; }
body.dark-mode .paym-ch.em.on { color: #fbbf24; }
.paym-ch.off    { opacity: 0.28; cursor: not-allowed; pointer-events: none; }

/* No-channel warning */
.paym-warn { display: none; margin-top: 0.65rem; border-radius: 9px; border: 1px solid #fcd34d; overflow: hidden; }
.paym-warn-inner { background: #fffbeb; padding: 0.85rem 1rem; display: flex; gap: 0.7rem; align-items: flex-start; }
body.dark-mode .paym-warn-inner { background: #1c1708; }
.paym-warn-icon {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px;
    background: #fef3c7; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.paym-warn-title {
    font-size: 0.76rem; font-weight: 700; color: #92400e; margin-bottom: 0.22rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body.dark-mode .paym-warn-title { color: #fbbf24; }
.paym-warn-desc {
    font-size: 0.69rem; color: #a16207; line-height: 1.55; font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body.dark-mode .paym-warn-desc { color: #d97706; }

/* Custom dropdown */
.paym-dd { position: relative; }
.paym-dd-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 0.62rem 0.9rem;
    background: var(--bg-color); border: 1.5px solid var(--border-color);
    border-radius: 8px; color: var(--text-muted);
    font-size: 0.82rem; font-weight: 500; cursor: pointer; outline: none;
    transition: border-color 0.15s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.paym-dd-btn.selected { color: var(--text-color); font-weight: 600; }
.paym-dd-btn:hover { border-color: var(--primary, #6366f1); }
.paym-dd.open .paym-dd-btn {
    border-color: var(--primary, #6366f1);
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}
.paym-dd-chevron {
    width: 15px; height: 15px; flex-shrink: 0; margin-left: 0.5rem;
    color: var(--text-muted); transition: transform 0.2s;
}
.paym-dd.open .paym-dd-chevron { transform: rotate(180deg); }
.paym-dd-menu {
    display: none; position: absolute; top: 100%; left: -1.5px; right: -1.5px;
    background: var(--card-bg); border: 1.5px solid var(--primary, #6366f1);
    border-top: none; border-radius: 0 0 9px 9px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.13);
    z-index: 1000; max-height: 210px; overflow-y: auto;
}
.paym-dd.open .paym-dd-menu { display: block; }
.paym-dd-opt {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.6rem 0.9rem; font-size: 0.81rem; font-weight: 500;
    color: var(--text-color); cursor: pointer; transition: background 0.1s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.paym-dd-opt:hover { background: var(--section-bg); }
.paym-dd-opt.sel { background: rgba(99,102,241,0.06); font-weight: 700; color: var(--primary, #6366f1); }
.paym-dd-tick { width: 13px; height: 13px; flex-shrink: 0; color: var(--primary, #6366f1); opacity: 0; transition: opacity 0.1s; }
.paym-dd-opt.sel .paym-dd-tick { opacity: 1; }

/* Send button */
.paym-sendbtn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    padding: 0.85rem 1rem; border-radius: 9px; margin-top: 0.2rem;
    font-size: 0.87rem; font-weight: 700; border: none; cursor: pointer;
    text-decoration: none; transition: opacity 0.15s; letter-spacing: 0.01em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.paym-sendbtn:hover { opacity: 0.88; }
.paym-sendbtn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-tg   { background: #2AABEE; color: #fff; }
.btn-wa   { background: #25D366; color: #fff; }
.btn-em   { background: #f59e0b; color: #000; }
/* Disabled/idle state before both selections made */
.btn-idle {
    background: var(--section-bg); color: var(--text-muted);
    border: 1.5px dashed var(--border-color);
    cursor: not-allowed; pointer-events: none; opacity: 0.65;
}

/* Footer note */
.paym-note {
    margin-top: 0.9rem; padding: 0.7rem 0.9rem;
    background: var(--section-bg); border-radius: 8px;
    font-size: 0.68rem; color: var(--text-muted); line-height: 1.55;
    font-weight: 400; text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.paym-note strong { font-weight: 600; color: var(--text-color); }

/* --- AUTH WRAPPER & CONTAINER --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem 4rem;
}

.auth-container {
    width: 100%;
    max-width: 340px;
    background: transparent;
    box-shadow: none;
}

/* --- AUTH HEADER --- */
.auth-header {
    padding: 0 0 1rem;
    text-align: center;
}

.auth-header i {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.auth-header p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

body.dark-mode .auth-header p {
    color: #a0aec0;
}

.auth-header p i {
    width: 14px;
    height: 14px;
    color: #6b7280;
    margin-bottom: 0;
}

body.dark-mode .auth-header p i {
    color: #a0aec0;
}

/* --- AUTH FORM --- */
.auth-form-inner {
    padding: 0;
    background: transparent;
}

.auth-form-group {
    margin-bottom: 1rem;
}

.auth-form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

body.dark-mode .auth-form-group label {
    color: #a0aec0;
}

.auth-form-group label i {
    width: 12px;
    height: 12px;
    color: #667eea;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: #6b7280;
    pointer-events: none;
}

body.dark-mode .auth-input-icon {
    color: #a0aec0;
}

.auth-input {
    width: 100%;
    padding: 0.6rem 0.8rem 0.6rem 2.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #ffffff;
    color: #1f2937;
}

body.dark-mode .auth-input {
    background: #2d3748;
    border-color: #4a5568;
    color: #f7fafc;
}

.auth-input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-input:focus + .auth-input-icon {
    color: #667eea;
}

.auth-input::placeholder {
    color: #a0aec0;
    font-size: 0.8rem;
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    width: 16px;
    height: 16px;
    color: #6b7280;
    cursor: pointer;
    z-index: 2;
}

body.dark-mode .auth-password-toggle {
    color: #a0aec0;
}

/* --- AUTH BUTTONS --- */
.auth-btn {
    width: 100%;
    padding: 0.6rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-btn i {
    width: 16px;
    height: 16px;
}

.auth-btn-google {
    width: 100%;
    padding: 0.6rem;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

body.dark-mode .auth-btn-google {
    background: #2d3748;
    color: #f7fafc;
    border-color: #4a5568;
}

.auth-btn-google i {
    width: 16px;
    height: 16px;
    color: #DB4437;
}

/* --- AUTH DIVIDER --- */
.auth-divider {
    text-align: center;
    margin: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

body.dark-mode .auth-divider {
    border-bottom-color: #2d3748;
}

.auth-divider span {
    background: #f9fafb;
    padding: 0 0.6rem;
    color: #6b7280;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

body.dark-mode .auth-divider span {
    background: #1a202c;
    color: #a0aec0;
}

.auth-divider span i {
    width: 12px;
    height: 12px;
    color: #6b7280;
}

body.dark-mode .auth-divider span i {
    color: #a0aec0;
}

/* --- AUTH ALERT / FEEDBACK --- */
.auth-alert {
    display: none;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-alert i {
    width: 14px;
    height: 14px;
}

.auth-alert-success {
    background: #def7ec;
    color: #03543f;
    border: 1px solid #84e1bc;
}

body.dark-mode .auth-alert-success {
    background: #0c2e1c;
    color: #9ae6b4;
    border-color: #276749;
}

.auth-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

body.dark-mode .auth-alert-error {
    background: #2c1a1a;
    color: #fc8181;
    border-color: #742a2a;
}

/* --- AUTH FOOTER LINKS --- */
.auth-footer-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

body.dark-mode .auth-footer-links {
    color: #a0aec0;
}

.auth-footer-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.auth-footer-links a i {
    width: 12px;
    height: 12px;
    color: #667eea;
}

.auth-footer-links span {
    opacity: 0.5;
}

/* --- AUTH SPINNER --- */
.auth-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-spinner-lg {
    width: 48px;
    height: 48px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

body.dark-mode .auth-spinner-lg {
    border-color: #2d3748;
    border-top-color: #667eea;
}

/* --- AUTH DECORATIVE DOTS --- */
.auth-dots {
    text-align: center;
    margin-top: 1.5rem;
    opacity: 0.5;
}

.auth-dots i {
    color: #6b7280;
}

body.dark-mode .auth-dots i {
    color: #a0aec0;
}

/* --- AUTH MESSAGE (for logout) --- */
.auth-message {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
}

body.dark-mode .auth-message {
    background: #2d3748;
    border-color: #4a5568;
    color: #a0aec0;
}

.auth-message i {
    width: 18px;
    height: 18px;
    color: #667eea;
}

/* --- TURNSTILE WIDGET --- */
.cf-turnstile-wrapper {
    margin: 1.5rem 0 0.5rem;
    display: flex;
    justify-content: center;
}

.auth-turnstile-badge {
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
    color: #6b7280;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

body.dark-mode .auth-turnstile-badge {
    color: #a0aec0;
}

.auth-turnstile-badge i {
    width: 12px;
    height: 12px;
    color: #667eea;
}

/* --- RESPONSIVE --- */
@media (max-width: 640px) {
    .auth-wrapper {
        padding: 1.5rem 1rem 3rem;
    }
    
    .auth-container {
        max-width: 100%;
        margin: 0;
    }
    
    .auth-footer-links {
        gap: 0.5rem;
    }
}


/* --- Logout Wrapper & Container --- */
.lgo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem 4rem;
    min-height: calc(100vh - 200px);
}

.lgo-container {
    width: 100%;
    max-width: 340px;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

/* --- Logout Header --- */
.lgo-header {
    padding: 0 0 1rem;
    text-align: center;
}

.lgo-header i {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.lgo-header h2 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

body.dark-mode .lgo-header h2 {
    color: #f7fafc;
}

.lgo-header p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

body.dark-mode .lgo-header p {
    color: #a0aec0;
}

.lgo-header p i {
    width: 14px;
    height: 14px;
    color: #6b7280;
    margin-bottom: 0;
}

body.dark-mode .lgo-header p i {
    color: #a0aec0;
}

/* --- Logout Spinner --- */
.lgo-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

body.dark-mode .lgo-spinner {
    border-color: #2d3748;
    border-top-color: #667eea;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Logout Message --- */
.lgo-message {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
}

body.dark-mode .lgo-message {
    background: #2d3748;
    border-color: #4a5568;
    color: #a0aec0;
}

.lgo-message i {
    width: 18px;
    height: 18px;
    color: #667eea;
}

/* --- Logout Footer Links --- */
.lgo-footer-links {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

body.dark-mode .lgo-footer-links {
    color: #a0aec0;
}

.lgo-footer-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lgo-footer-links a i {
    width: 12px;
    height: 12px;
    color: #667eea;
}

.lgo-footer-links span {
    opacity: 0.5;
}

/* --- Logout Decorative Dots --- */
.lgo-dots {
    text-align: center;
    margin-top: 2rem;
    opacity: 0.5;
}

.lgo-dots i {
    color: #6b7280;
}

body.dark-mode .lgo-dots i {
    color: #a0aec0;
}

/* --- Logout Responsive --- */
@media (max-width: 640px) {
    .lgo-wrapper {
        padding: 1.5rem 1rem 3rem;
    }
    
    .lgo-container {
        max-width: 100%;
        margin: 0;
    }
    
    .lgo-footer-links {
        gap: 0.5rem;
    }
}

.ftr-wrapper {
    background: var(--ftr-bg, #0f172a);
    color: var(--ftr-text, #94a3b8);
    padding: 60px 0 20px;
    border-top: 1px solid var(--ftr-border, rgba(255,255,255,0.1));
    font-family: 'Inter', sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Light mode */
body:not(.dark-mode) .ftr-wrapper {
    --ftr-bg: #f8fafc;
    --ftr-text: #64748b;
    --ftr-title: #0f172a;
    --ftr-border: rgba(0,0,0,0.1);
    --ftr-accent: #22c55e;
}

/* Dark mode */
body.dark-mode .ftr-wrapper {
    --ftr-bg: #0f172a;
    --ftr-text: #94a3b8;
    --ftr-title: #f1f5f9;
    --ftr-border: rgba(255,255,255,0.1);
    --ftr-accent: #22c55e;
}

.ftr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid Layout */
.ftr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Logo */
.ftr-section .ftr-logo img {
    height: 40px;
    margin-bottom: 20px;
    display: block;
}

/* Description */
.ftr-description {
    line-height: 1.6;
    font-size: 14px;
    color: var(--ftr-text);
}

/* Section Headings */
.ftr-heading {
    color: var(--ftr-title);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

/* Links */
.ftr-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ftr-links li {
    margin-bottom: 12px;
}

.ftr-link {
    color: var(--ftr-text);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.ftr-link:hover {
    color: var(--ftr-accent);
}

/* Social Icons */
.ftr-socials {
    display: flex;
    gap: 15px;
}

.ftr-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ftr-border);
    color: var(--ftr-title);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ftr-social-icon:hover {
    background: var(--ftr-accent);
    color: #fff;
    transform: translateY(-3px);
}

/* Bottom Copyright */
.ftr-bottom {
    border-top: 1px solid var(--ftr-border);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--ftr-text);
}

.ftr-bottom p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
}

.ftr-bottom i {
    color: var(--ftr-accent);
}

@media (max-width: 768px) {

    .ftr-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .ftr-heading {
        justify-content: flex-start;
    }

    .ftr-link {
        justify-content: flex-start;
    }

    .ftr-socials {
        justify-content: flex-start;
    }
}

/* Edit Profile Page */
.profile-edit-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-edit-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.profile-edit-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-edit-header h2 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-edit-header h2 i {
    color: var(--az-accent);
}

.profile-edit-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 10px 0 0;
}

/* Avatar Section */
.avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--az-accent);
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: transparent;
    color: var(--az-accent);
    border: 1px solid var(--az-accent);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-upload-btn:hover {
    background: var(--az-accent);
    color: #fff;
}

.avatar-upload-btn i {
    width: 16px;
    height: 16px;
}

.avatar-url-input {
    margin-top: 15px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--az-accent);
    width: 16px;
    height: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--az-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-text {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-text i {
    width: 14px;
    height: 14px;
}

/* Buttons */
.btn-save {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--az-accent);
    color: #fff;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.2s;
}


.btn-save i {
    width: 18px;
    height: 18px;
}

.btn-edit {
    background: var(--az-accent);
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout {
    background: transparent;
    color: var(--danger, #ef4444);
    border: 1px solid var(--danger, #ef4444);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout:hover {
    background: var(--danger, #ef4444);
    color: #fff;
}

.btn-clear {
    background: none;
    border: 1px solid var(--danger, #ef4444);
    color: var(--danger, #ef4444);
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: var(--danger, #ef4444);
    color: #fff;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: transparent;
    color: var(--az-accent);
    text-decoration: none;
    border: 1px solid var(--az-accent);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-view-all:hover {
    background: var(--az-accent);
    color: #fff;
}

.btn-select-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    background: var(--az-accent);
    transition: all 0.2s;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.alert i {
    width: 18px;
    height: 18px;
}

/* Light mode alerts */
.alert-success {
    background: #def7ec;
    color: #03543f;
    border: 1px solid #84e1bc;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Dark mode alerts */
.dark-mode .alert-success {
    background: #0c2e1c;
    color: #9ae6b4;
    border: 1px solid #276749;
}

.dark-mode .alert-error {
    background: #2c1a1a;
    color: #fc8181;
    border: 1px solid #742a2a;
}

/* Profile Page Layout */
.profile-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-color);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.avatar-wrapper {
    position: relative;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--az-accent);
    object-fit: cover;
}

.premium-badge-overlay {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    z-index: 10;
}

.user-meta {
    flex: 1;
}

.user-meta h2 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-meta p {
    margin: 3px 0;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 5px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.stat-item i {
    color: var(--az-accent);
    width: 16px;
    height: 16px;
}

.stat-number {
    font-weight: 700;
    color: var(--text-color);
    margin-left: 2px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Watch History */
.history-scroll-box {
    height: 380px;
    overflow-y: auto;
    background: var(--section-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 8px;
    margin-bottom: 30px;
}

.history-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.history-card:hover {
    background: var(--border-color);
    transform: translateX(5px);
}

.history-card:last-child {
    border-bottom: none;
}

.history-card img {
    width: 45px;
    height: 63px;
    border-radius: 4px;
    object-fit: cover;
}

.history-card h5 {
    margin: 0 0 3px 0;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 600;
}

.history-card small {
    color: var(--text-muted);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 50px 20px;
}

/* Membership Section */
.membership-status-section {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.current-membership-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.membership-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--border-color);
}

.membership-details {
    flex: 1;
}

.membership-details h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.plan-type {
    color: var(--az-accent);
    font-weight: 700;
}

.membership-expiry {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 3px 0;
    font-size: 13px;
    color: var(--text-color);
}

.membership-expiry.expired {
    color: var(--danger, #ef4444);
}

.membership-desc {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 3px 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* Upgrade Section */
.upgrade-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Plan Cards */
.plans-flex {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.plan-card {
    flex: 0 0 280px;
    position: relative;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    transition: all 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--warning, #f59e0b);
}

.plan-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin: 8px 0 3px 0;
}

.plan-duration {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.plan-price {
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
}

.plan-price .currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 3px;
}

.plan-price .amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.plan-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
    color: var(--text-color);
}

.plan-features-list li i {
    color: var(--success, #22c55e);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* Benefits */
.benefits-flex {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.benefit-item {
    flex: 0 0 200px;
    text-align: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
}

.benefit-item h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin: 8px 0 5px;
}

.benefit-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Plan Card Single */
.plan-card-single {
    position: relative;
    padding: 20px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    text-align: center;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.plan-usdt {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Toast Notification */
#custom-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 30px;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
    border: 1px solid var(--border-color);
    font-size: 13px;
}

#custom-toast i.success {
    color: var(--success, #22c55e);
}

#custom-toast i.error {
    color: var(--danger, #ef4444);
}

/* Currency Dropdown */
.prof-country-bar {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    padding: 0.55rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 16px;
    border-radius: 8px;
}

.prof-rate-tag {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.28rem 0.55rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.prof-dropdown {
    position: relative;
    display: inline-block;
    user-select: none;
}

.prof-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 0.38rem 0.85rem 0.38rem 0.65rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    min-width: 200px;
    outline: none;
    transition: all 0.2s;
}

.prof-dropdown-trigger:hover {
    border-color: var(--az-accent);
}

.prof-dropdown.open .prof-dropdown-trigger {
    border-color: var(--az-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.prof-dd-flag {
    font-size: 1.05rem;
    line-height: 1;
}

.prof-dd-label {
    flex: 1;
    text-align: left;
}

.prof-dd-chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: 0.2rem;
    transition: transform 0.2s;
}

.prof-dropdown.open .prof-dd-chevron {
    transform: rotate(180deg);
}

.prof-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 230px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    z-index: 300;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
    transition: all 0.15s;
}

.prof-dropdown.open .prof-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.prof-dropdown-search {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.prof-dropdown-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 0.78rem;
    outline: none;
}

.prof-dropdown-search input::placeholder {
    color: var(--text-muted);
}

.prof-dropdown-list {
    max-height: 210px;
    overflow-y: auto;
}

.prof-dd-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    font-size: 0.79rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.1s;
}

.prof-dd-item:hover {
    background: var(--border-color);
}

.prof-dd-item.active {
    background: rgba(59, 130, 246, 0.08);
    color: var(--az-accent);
    font-weight: 700;
}

.prof-dd-item .dd-item-flag {
    font-size: 1rem;
}

.prof-dd-item .dd-item-name {
    flex: 1;
}

.prof-dd-item .dd-item-code {
    font-size: 0.68rem;
    color: var(--text-muted);
    background: var(--border-color);
    padding: 0.08rem 0.32rem;
    border-radius: 4px;
}

.prof-dd-item.active .dd-item-code {
    background: rgba(59, 130, 246, 0.12);
    color: var(--az-accent);
}

.prof-detecting {
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* Plan Selector Dropdown */
.plan-selector-wrap {
    margin-bottom: 14px;
}

.plan-selector-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.plan-selector-custom {
    position: relative;
}

.plan-selector-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    gap: 10px;
    outline: none;
    transition: all 0.2s;
}


.plan-selector-trigger.open {
    border-color: var(--az-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.plan-sel-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-sel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--border-color);
}

.plan-sel-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
}

.plan-sel-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.plan-sel-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
}

.plan-sel-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.plan-selector-trigger.open .plan-sel-chevron {
    transform: rotate(180deg);
}

.plan-selector-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 200;
    overflow: hidden;
    display: none;
}

.plan-selector-dropdown.show {
    display: block;
}

.plan-sel-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    gap: 8px;
    transition: all 0.1s;
}

.plan-sel-option.active {
    background: rgba(59, 130, 246, 0.07);
}

.plan-sel-opt-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-sel-opt-badge {
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--az-accent);
}

.plan-sel-opt-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .user-meta h2,
    .user-meta p {
        justify-content: center;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .current-membership-info {
        flex-direction: column;
        text-align: center;
    }
    
    .membership-details h3 {
        justify-content: center;
    }
    
    .membership-expiry,
    .membership-desc {
        justify-content: center;
    }
    
    .profile-edit-wrapper {
        padding: 0 15px;
    }
    
    .profile-edit-card {
        padding: 20px;
    }
    
    .profile-edit-header h2 {
        font-size: 22px;
    }
    
    .stats-bar {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .profile-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .profile-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .stats-bar {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .plans-flex,
    .benefits-flex {
        flex-wrap: wrap;
    }
    
    .plan-card,
    .benefit-item {
        flex: 1 1 100%;
    }
}

.plan-sel-name,
.plan-sel-price,
.plan-card-single .plan-name,
.plan-card-single .plan-price .currency,
.plan-card-single .plan-price .amount,
.plan-card-single .plan-features-list li,
.benefit-item h5 {
    color: var(--text-color) !important;
}

.plan-sel-meta,
.plan-card-single .plan-duration,
.plan-card-single .plan-usdt,
.benefit-item p {
    color: var(--text-muted) !important;
}

.plan-sel-option .plan-sel-opt-price {
    color: var(--text-color) !important;
}

/* Dropdown options text */
.plan-sel-option span {
    color: var(--text-color) !important;
}

.plan-sel-option .plan-sel-opt-left span:last-of-type {
    color: var(--text-muted) !important;
}

.top-announcement {
    width: 100%;
    background: #dc2626;
    color: #ffffff;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
    position: static;
    top: 0;
    z-index: 9999;
}

@media (max-width: 768px) {
    .top-announcement {
        font-size: 13px;
        padding: 8px 10px;
    }
}