/* ========================================
   DracIN - Chinese Drama Streaming Theme
   Style mirip DramaBoss.online
   ======================================== */

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

/* --- Variables --- */
:root {
    --bg-body: #0f1923;
    --bg-header: #0c1219;
    --bg-card: #162029;
    --bg-card-hover: #1c2b3a;
    --bg-input: #1a2736;
    --bg-tag: transparent;
    --bg-tag-border: rgba(255, 255, 255, 0.18);
    --bg-platform: transparent;
    --text-white: #e8edf2;
    --text-gray: #8b9aaa;
    --text-muted: #5a6872;
    --accent: #e0a832;
    --cyan: #38d9c8;
    --green: #3abf5e;
    --green-bg: rgba(58, 191, 94, 0.85);
    --red: #e8423f;
    --border: #1c2a36;
    --border-light: #243342;
    --max-w: 100%;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: var(--bg-body);
    color: var(--text-white);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a {
    text-decoration: none;
    color: inherit;
}
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}
ul,
ol {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}

/* --- Container --- */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
.container-full {
    padding: 0 16px;
}

/* === HEADER === */
.header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Increased z-index to stay above content */
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    height: 52px;
}
.header-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 54px;
    gap: 16px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.logo-icon {
    font-size: 1.3rem;
}
.logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--accent);
    letter-spacing: -0.3px;
}

/* Search */
.search-box {
    flex: 1;
    max-width: 420px;
    position: relative;
    margin-left: auto;
}
.search-box input {
    width: 100%;
    height: 34px;
    padding: 0 14px 0 34px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-white);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
}
.search-box input::placeholder {
    color: var(--text-muted);
}
.search-box input:focus {
    border-color: var(--cyan);
}
.search-box .s-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.btn-masuk {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-white);
    font-size: 0.78rem;
    font-weight: 600;
    transition: 0.2s;
}
.btn-masuk:hover {
    border-color: var(--cyan);
}

/* Language Switcher */
.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-white);
    font-size: 0.78rem;
    font-weight: 600;
    transition: 0.2s;
    text-decoration: none;
}
.lang-switcher-btn:hover {
    border-color: var(--cyan);
    color: var(--text-white);
}
.lang-switcher-btn::after {
    display: none !important;
}
.lang-switcher-btn img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
.lang-switcher-dropdown {
    background-color: var(--bg-header);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 6px 0;
    margin-top: 8px !important;
    min-width: 140px;
}
.lang-switcher-dropdown .dropdown-item-custom {
    color: var(--text-white);
    padding: 8px 16px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
    text-decoration: none;
    background: transparent;
    border: none;
}
.lang-switcher-dropdown .dropdown-item-custom:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--cyan);
}
.lang-switcher-dropdown .dropdown-item-custom img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

/* === HEADER DROPDOWN (USER PROFILE) === */
/* Nav Buttons / Dropdowns - CYBER AURORA GLASS VERSION */
.nav-pill-btn {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none !important;
  position: relative;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-pill-btn:hover,
.nav-pill-btn:focus,
.nav-pill-btn:active,
.nav-pill-btn.show {
  background: rgba(0, 240, 255, 0.05) !important;
  border-color: rgba(0, 240, 255, 0.5) !important; /* Neon Blue Border */
  color: #fff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); /* Neon Blue Glow */
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Specific Fix for Bootstrap Dropdown toggle */
a.dropdown-toggle {
  text-decoration: none !important;
}
/* Hide Default Bootstrap Caret */
.dropdown-toggle::after {
  display: none !important;
}

/* User Dropdown */
.dropdown-header-custom {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  background: linear-gradient(to right, rgba(0, 240, 255, 0.05), transparent);
  border-radius: 12px 12px 0 0;
}

/* Dropdown Container */
.dropdown-menu-custom {
  background: rgba(10, 15, 30, 0.85); /* Deep slate */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
  min-width: 250px;
  margin-top: 12px !important;
}

/* Dropdown Items */
.dropdown-item-custom {
  color: #b0b0b0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  border: none;
  position: relative;
  background: transparent;
  text-decoration: none !important;
  border-left: 3px solid transparent; /* Prepare for border hover */
}

.dropdown-item-custom:hover {
  background: rgba(0, 240, 255, 0.08); /* Cyber blue hover */
  color: #fff;
  border-left-color: #00f0ff;
  text-decoration: none !important;
  transform: translateX(4px);
}

/* Active State - CYBER BLUE HIGHLIGHT */
.dropdown-item-custom.active-source {
  background-color: rgba(0, 240, 255, 0.15); /* Transparent Blue */
  color: #00f0ff; 
  border-left-color: #00f0ff;
}
/* The Checkmark */
.dropdown-item-custom.active-source::after {
  content: "\F26B"; /* Bootstrap Icons check-lg */
  font-family: "bootstrap-icons";
  position: absolute;
  right: 12px;
  color: #00f0ff;
  font-size: 1rem;
}

/* Logout / Danger Item */
.dropdown-item-custom.text-danger {
  color: #ff4757 !important;
}
.dropdown-item-custom.text-danger:hover {
  background: rgba(255, 71, 87, 0.08);
  color: #ff4757 !important;
  border-left-color: #ff4757;
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.1);
}

/* BRAND ICON SIMULATION */
.brand-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}
.brand-icon.dramabox {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
}
.brand-icon.netshort {
  background: linear-gradient(135deg, #ff9f43, #e55039);
}
.brand-icon.dramawave {
  background: linear-gradient(135deg, #e056fd, #be2edd);
}
.brand-icon.melolo {
  background: #000;
  color: #f1c40f;
  border: 1px solid #333;
}
.brand-icon.dramadash {
  background: #535c68;
}
.brand-icon.flickreels {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  color: #000;
}

.dropdown-item-custom.vip-item {
  color: var(--accent); /* Uses v2 variable */
  background: rgba(224, 168, 50, 0.05); /* v2 accent color approx */
  border: 1px solid rgba(224, 168, 50, 0.1);
  border-left-width: 1px;
}
.dropdown-item-custom.vip-item:hover {
  background: rgba(224, 168, 50, 0.15);
  border-left-color: var(--accent);
  box-shadow: 0 0 15px rgba(224, 168, 50, 0.2);
  transform: scale(1.02) translateX(4px);
}

.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.05);
  margin: 6px 0;
}

/* === ANNOUNCEMENT TICKER - CYBER AURORA GLASS === */
.ticker-bar {
    background: rgba(10, 15, 30, 0.65); /* Deep slate glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15); /* Top border glow */
    border-top: 1px solid rgba(0, 240, 255, 0.05);
    padding: 8px 15px;
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.05); /* Inner cyber glow */
    position: relative;
    z-index: 99; /* Just below header */
    display: flex;
    align-items: center;
}

.ticker-badge {
    position: relative;
    z-index: 2;
    padding-right: 15px;
}

.ticker-badge .neon-badge {
    background: rgba(0, 240, 255, 0.1) !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    color: #00f0ff !important;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    padding: 5px 10px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
}

.ticker-track-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Optional: Add a subtle animated gradient line at the bottom of the ticker */
.ticker-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.8), transparent);
    animation: cyberSweep 4s linear infinite;
}

@keyframes cyberSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-width: 100%;
    padding-right: 50px; /* Spacer before the duplicated content starts */
    animation: tickerScroll 25s linear infinite; /* Adjust speed as needed */
    flex-shrink: 0; /* Prevent flexbox from squashing the content on mobile */
}

/* Pause animation on hover for readability */
.ticker-track-wrap:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    font-size: 0.75rem;
    color: #e0e0e0; /* Light gray text */
    font-weight: 500;
    padding: 0 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Important: prevents the text and badges from being cut off */
}

.ticker-item-title {
    background: rgba(255, 0, 150, 0.15); /* Neon pink/purple contrast */
    color: #ff0096;
    border: 1px solid rgba(255, 0, 150, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 12px;
    letter-spacing: 0.8px;
    box-shadow: 0 0 8px rgba(255, 0, 150, 0.2);
}

.ticker-item-text {
    display: inline;
}
.ticker-item-text strong {
    color: #fff;
    font-weight: 700;
}

/* Highlighted Action Link inside Ticker */
.ticker-item a {
    color: #00f0ff !important; /* Neon Blue Action Link */
    font-weight: 700;
    text-decoration: none !important;
    padding: 2px 8px;
    margin-left: 8px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.ticker-item a:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

.ticker-sep {
    color: rgba(0, 240, 255, 0.5); /* Neon bullet point */
    font-size: 0.8rem;
    padding: 0 4px;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Search box clickable */
.search-box {
    cursor: pointer;
}
.search-box input {
    cursor: pointer;
}

/* === SEARCH OVERLAY === */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--bg-body);
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-10px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}
.search-overlay.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
}
.search-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-white);
    cursor: pointer;
    transition: 0.15s;
    flex-shrink: 0;
}
.search-back:hover {
    background: rgba(255, 255, 255, 0.06);
}

.search-overlay-input-wrap {
    flex: 1;
    position: relative;
}
.so-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
}
.search-overlay-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.search-overlay-input::placeholder {
    color: var(--text-muted);
}
.search-overlay-input:focus {
    border-color: var(--cyan);
}

.search-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
}

.search-hint-text {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
    margin-bottom: 30px;
}
.search-popular h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.search-tag-item {
    padding: 6px 16px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.76rem;
    color: var(--text-gray);
    transition: 0.2s;
    text-decoration: none;
}
.search-tag-item:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Search Results — reuses .drama-grid + .d-card */
.search-results-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* No results */
.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.snr-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}
.search-no-results p {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-gray);
}
.snr-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

/* Load more */
.search-load-more {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 24px auto 0;
    padding: 12px 0;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
}
.search-load-more:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* === PLATFORM BAR === */
.platform-bar {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    overflow: hidden;
}
.platform-scroll-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}
.platform-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}
.platform-scroll::-webkit-scrollbar {
    display: none;
}

.p-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-platform);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.2s;
    min-width: 110px;
    justify-content: center;
}
.p-btn:hover {
    border-color: var(--cyan);
    background: rgba(56, 217, 200, 0.05);
}
.p-btn.active {
    background: rgba(56, 217, 200, 0.08);
    border-color: var(--cyan);
}
.p-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* === MAINTENANCE PLATFORM STATE === */
.p-btn.maintenance {
    position: relative;
    filter: blur(0.5px) grayscale(0.5);
    opacity: 0.55;
    cursor: not-allowed;
    overflow: hidden;
}
.p-btn.maintenance:hover {
    border-color: var(--border-light);
    background: transparent;
    filter: blur(0.3px) grayscale(0.3);
    opacity: 0.7;
}
.p-maint-ribbon {
    position: absolute;
    top: 6px;
    right: -22px;
    background: #e8423f;
    color: #fff;
    font-size: 0.48rem;
    font-weight: 700;
    padding: 1px 24px;
    transform: rotate(35deg);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 5;
    line-height: 1.4;
}

/* Modal maintenance item */
.pm-item.maintenance {
    position: relative;
    filter: blur(0.5px) grayscale(0.5);
    opacity: 0.55;
    cursor: not-allowed;
    overflow: hidden;
    border-color: #555;
}
.pm-item.maintenance:hover {
    background: transparent;
    filter: blur(0.3px) grayscale(0.3);
    opacity: 0.7;
}
.pm-maint-ribbon {
    position: absolute;
    top: 8px;
    right: -18px;
    background: #e8423f;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 1px 22px;
    transform: rotate(35deg);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 5;
    line-height: 1.4;
}

/* === MAINTENANCE TOAST === */
.maint-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 2000;
    opacity: 0;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
    pointer-events: none;
}
.maint-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}
.maint-toast-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #1a2836;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    max-width: 420px;
}
.maint-toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.maint-toast-content {
    flex: 1;
}
.maint-toast-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}
.maint-toast-msg {
    font-size: 0.78rem;
    color: var(--text-gray);
    line-height: 1.5;
}
.maint-toast-close {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
    transition: 0.15s;
    margin-top: 2px;
}
.maint-toast-close:hover {
    color: var(--text-white);
}

/* === AD BANNER === */
.ad-banner {
    margin: 14px auto;
    max-width: 100%;
    padding: 0 20px;
}
.ad-banner-inner {
    background: linear-gradient(135deg, #132238 0%, #1a1832 50%, #132238 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-banner-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--cyan);
    opacity: 0.5;
    font-style: italic;
}

/* === DRAMA GRID (continuous, full) === */
.drama-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px 16px;
}

.drama-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

/* === DRAMA CARD === */
.d-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
    display: block;
}
.d-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Poster */
.d-poster {
    position: relative;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: #101a25;
    border-radius: 10px 10px 0 0;
}
.d-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.d-card:hover .d-poster img {
    transform: scale(1.06);
}

/* Poster placeholder */
.d-poster-ph {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #152030, #1a2540);
}
.d-poster-ph .ph-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    padding: 0 10px;
    line-height: 1.25;
    color: var(--text-gray);
}

/* Rating badge - TOP RIGHT (green) */
.d-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--green-bg);
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 4;
    color: #fff;
}
.d-rating .star {
    color: #fff;
    font-size: 0.68rem;
}

/* Play overlay (cyan) */
.d-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 3;
}
.d-card:hover .d-overlay {
    opacity: 1;
}

.d-play {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(56, 217, 200, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(56, 217, 200, 0.35);
    transition: transform 0.2s;
}
.d-card:hover .d-play {
    transform: scale(1.05);
}

/* Card info */
.d-info {
    padding: 10px 10px 12px;
}

.d-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 7px;
    color: var(--text-white);
}
.d-card:hover .d-title {
    color: var(--cyan);
}

/* Tags - bordered pills like DramaBoss */
.d-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}
.d-tag {
    font-size: 0.62rem;
    padding: 2px 8px;
    background: transparent;
    border: 1px solid var(--bg-tag-border);
    border-radius: 3px;
    color: var(--text-gray);
    transition: 0.15s;
}
.d-tag:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}
/* "+N" tag counter */
.d-tag-more {
    font-size: 0.62rem;
    padding: 2px 7px;
    background: transparent;
    border: 1px solid var(--bg-tag-border);
    border-radius: 3px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Sponsored label */
.d-sp {
    font-size: 0.58rem;
    color: var(--accent);
    font-weight: 500;
    font-style: italic;
    margin-top: 3px;
}

/* === INLINE AD CARD === */
.d-card.ad-card .d-poster {
    background: linear-gradient(135deg, #132238, #1a1832);
}
.d-card.ad-card .ad-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.d-card.ad-card .ad-label {
    background: var(--red);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 8px;
    text-transform: uppercase;
    z-index: 4;
}
.d-card.ad-card .ad-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.6;
    font-style: italic;
}

/* Small "IKLAN" label on right side */
.iklan-label {
    text-align: right;
    font-size: 0.55rem;
    color: var(--text-muted);
    padding: 2px 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 4px;
    float: right;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === LOAD MORE === */
.load-more {
    text-align: center;
    margin: 20px 0 36px;
}
.btn-load {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 34px;
    background: #141824; /* Dark blue background */
    color: #00f0ff; /* Neon blue text */
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(0, 240, 255, 0.3); /* Neon blue border */
    transition: 0.2s;
}
.btn-load:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.2);
    color: #00f0ff;
}

/* === SEO SECTION === */
.seo {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.seo h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.seo p {
    color: var(--text-gray);
    font-size: 0.78rem;
    line-height: 1.7;
    margin-bottom: 8px;
}
.seo-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 14px;
}
.seo-col h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
}
.seo-col li {
    font-size: 0.76rem;
    color: var(--text-gray);
    padding: 3px 0 3px 14px;
    position: relative;
}
.seo-col li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* === FOOTER SEO REDESIGN === */
.footer-seo {
    background: #0f131f; /* Dark, slightly bluish tint */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
    color: #a0a5b5;
    font-family: 'Inter', sans-serif;
}

/* Typography & Links */
.footer-seo p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.footer-seo strong {
    color: #cbd5e1;
    font-weight: 600;
}
.footer-seo a {
    color: #a0a5b5;
    text-decoration: none;
    transition: 0.2s;
}
.footer-seo a:hover {
    color: #00f0ff; /* Neon blue */
}

/* Top Section: SEO Text */
.footer-seo-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-seo-top {
    margin-bottom: 40px;
}

/* Dividers */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 30px 0;
}

/* Middle Section: Lists */
.footer-seo-middle {
    margin-bottom: 20px;
}
.footer-seo-heading {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-seo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-seo-list li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 16px;
}
.footer-seo-list li::before {
    content: '•';
    color: #4D65ED; /* Brand accent color */
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
    top: -2px;
}

/* Bottom Section: Info & Legal */
.footer-seo-bottom .logo {
    display: inline-block;
    margin-bottom: 10px;
}
.footer-desc {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
}
.footer-col-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-legal-list li {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #71778e;
    padding-top: 10px;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: #1e3040;
    border-radius: 4px;
    z-index: 2;
}

/* === MOBILE BOTTOM NAV REPLICA === */
.mobile-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #140d21;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    height: 70px;
}

.mobile-nav-item {
    color: #888;
    font-size: 1.4rem;
    transition: all 0.2s;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    text-decoration: none;
}

.mobile-nav-item:hover {
    color: #fff;
}

.mobile-nav-item.active-circle {
    background: linear-gradient(135deg, #d084f5, #9b59b6);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
    transform: translateY(-5px);
}
.mobile-nav-item.active-circle i {
    font-size: 1.2rem;
}

.nav-divider-vertical {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 5px;
}
.lang-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* === SCROLL TOP === */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #141824;
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 240, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    z-index: 99;
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.4);
    color: #00f0ff;
}

/* === MOBILE PLATFORM BAR === */
.mobile-platform-bar {
    display: none;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
}
.mobile-platform-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--cyan);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
.mp-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
}
.mp-name {
    flex: 1;
    text-align: left;
}
.mp-arrow {
    font-size: 1.1rem;
    color: var(--cyan);
}

/* === PLATFORM MODAL OVERLAY === */
.platform-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}
.platform-modal-overlay.active {
    display: flex;
}

.platform-modal {
    position: relative;
    width: calc(100% - 32px);
    max-width: 400px;
    margin: 16px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 16px 24px;
    max-height: 80vh;
    overflow-y: auto;
    animation: scaleIn 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.pm-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
}
.pm-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.2s;
}
.pm-close:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.pm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.pm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--cyan);
    border-radius: 10px;
    background: transparent;
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 700;
    transition: 0.2s;
    text-decoration: none;
}
.pm-item:hover,
.pm-item:active {
    background: rgba(56, 217, 200, 0.08);
}
.pm-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* === FLOATING BANNER LEFT & RIGHT === */
.floating-banner {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.floating-left {
    left: 0;
    animation: slideInLeft 0.5s ease forwards;
}
.floating-right {
    right: 0;
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateY(-50%) translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}
@keyframes slideInRight {
    from {
        transform: translateY(-50%) translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

.floating-banner .fb-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-header);
    border: 1px solid var(--border-light);
    color: var(--text-gray);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    z-index: 5;
}
.floating-banner .fb-close:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(232, 66, 63, 0.1);
}
.floating-left .fb-close {
    right: auto;
    left: -10px;
}

.floating-banner .fb-content {
    width: 160px;
    height: 600px;
    background: linear-gradient(135deg, #132238 0%, #1a1832 50%, #132238 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}
.floating-banner .fb-ad-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--red);
    font-size: 0.5rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    color: #fff;
}
.floating-banner .fb-ad-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--cyan);
    opacity: 0.5;
    font-style: italic;
}
.floating-banner .fb-ad-size {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.floating-banner.hidden {
    display: none;
}

/* === FLOATING BANNER BOTTOM === */
.floating-banner-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    justify-content: center;
    padding: 0;
    animation: slideUpBottom 0.4s ease forwards;
}
@keyframes slideUpBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.floating-banner-bottom .fbb-wrapper {
    position: relative;
    width: 100%;
    max-width: 728px;
}
.floating-banner-bottom .fbb-close {
    position: absolute;
    top: -12px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-header);
    border: 1px solid var(--border-light);
    color: var(--text-gray);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    z-index: 5;
}
.floating-banner-bottom .fbb-close:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(232, 66, 63, 0.1);
}
.floating-banner-bottom .fbb-content {
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #132238 0%, #1a1832 50%, #132238 100%);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border-light);
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}
.floating-banner-bottom .fbb-ad-label {
    position: absolute;
    top: 6px;
    left: 8px;
    background: var(--red);
    font-size: 0.5rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    color: #fff;
}
.floating-banner-bottom .fbb-ad-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cyan);
    opacity: 0.5;
    font-style: italic;
}
.floating-banner-bottom .fbb-ad-size {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.floating-banner-bottom.hidden {
    display: none;
}

/* === POPUP ADS === */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}
.popup-overlay.active {
    display: flex;
    animation: popupFadeIn 0.35s ease forwards;
}
@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-box {
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: popupScaleIn 0.35s ease forwards;
}
@keyframes popupScaleIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.popup-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-white);
}
.popup-header-title .popup-badge {
    background: var(--red);
    font-size: 0.52rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    color: #fff;
}
.popup-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.2s;
}
.popup-close:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(232, 66, 63, 0.1);
}
.popup-body {
    padding: 20px 18px;
}
.popup-ad-area {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #132238 0%, #1a1832 50%, #132238 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.popup-ad-area .popup-ad-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cyan);
    opacity: 0.5;
    font-style: italic;
}
.popup-ad-area .popup-ad-size {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.popup-footer {
    padding: 0 18px 16px;
    text-align: center;
}
.popup-footer-text {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* === DETAIL PAGE === */
.detail-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
    background: #000;
    position: relative;
}

/* Player area */
.detail-player {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    min-height: 400px;
}
.player-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.player-poster {
    max-width: 100%;
    max-height: calc(100vh - 56px);
    object-fit: contain;
    display: block;
}
.player-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 2;
}
.player-play-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--cyan);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Player progress bar */
.player-progress {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 3;
}
.player-progress-bar {
    height: 100%;
    background: var(--cyan);
    border-radius: 2px;
    transition: width 0.3s;
}

/* Player controls */
.player-controls {
    position: absolute;
    bottom: 8px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 4;
}
.pc-btn {
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    backdrop-filter: blur(4px);
}
.pc-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Info sidebar */
.detail-info {
    width: 450px;
    min-width: 450px;
    background: var(--bg-body);
    border-left: 1px solid var(--border);
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 56px);
    position: relative;
    transition: 0.35s ease;
}
.detail-info-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 0.8rem;
    z-index: 2;
    transition: 0.2s;
}
.detail-info-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
}

/* Title */
.di-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 10px;
    line-height: 1.35;
    padding-right: 30px;
}

/* Meta row */
.di-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.di-rating,
.di-episodes {
    font-size: 0.78rem;
    color: var(--text-gray);
}
.di-share {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.15s;
}
.di-share:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Quota box */
.di-quota {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.di-quota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.di-quota-header span:first-child {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-white);
}
.di-quota-count {
    font-size: 0.7rem;
    background: rgba(56, 217, 200, 0.12);
    color: var(--cyan);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}
.di-quota-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}
.di-quota-fill {
    height: 100%;
    background: var(--cyan);
    border-radius: 4px;
    transition: width 0.3s;
}
.di-quota-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.di-quota-footer span {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.di-vip-btn {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0f1923;
    background: var(--cyan);
    padding: 4px 12px;
    border-radius: 5px;
    transition: 0.15s;
}
.di-vip-btn:hover {
    background: #2cc4b4;
}

/* Sections */
.di-section {
    margin-bottom: 18px;
}
.di-section h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}
.di-ep-current {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Plot */
.di-plot {
    font-size: 0.78rem;
    color: var(--text-gray);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.di-plot.expanded {
    -webkit-line-clamp: unset;
    display: block;
}
.di-plot-toggle {
    font-size: 0.74rem;
    color: var(--cyan);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}
.di-plot-toggle:hover {
    opacity: 0.8;
}

/* Tags */
.di-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.di-tag {
    font-size: 0.66rem;
    padding: 4px 12px;
    border: 1px solid var(--cyan);
    border-radius: 20px;
    color: var(--cyan);
    transition: 0.15s;
}
.di-tag:hover {
    background: rgba(56, 217, 200, 0.12);
}

/* Episode ranges */
.di-ep-ranges {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.di-ep-range {
    font-size: 0.68rem;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-gray);
    background: transparent;
    cursor: pointer;
    transition: 0.15s;
    font-family: inherit;
}
.di-ep-range.active {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(56, 217, 200, 0.08);
}
.di-ep-range:hover {
    border-color: var(--cyan);
}

/* Episode grid */
.di-ep-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.di-ep-btn {
    padding: 8px 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--cyan);
    background: transparent;
    cursor: pointer;
    transition: 0.15s;
    font-family: inherit;
}
.di-ep-btn:hover {
    border-color: var(--cyan);
    background: rgba(56, 217, 200, 0.06);
}
.di-ep-btn.active {
    background: var(--cyan);
    color: #0f1923;
    border-color: var(--cyan);
    font-weight: 700;
}

/* Bottom share (visible in theater mode) */
.di-bottom-share {
    margin-top: 14px;
    display: none;
}
.di-share-full {
    width: 100%;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.15s;
}
.di-share-full:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ========== THEATER MODE ========== */
.detail-wrapper.theater-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    min-height: 100vh;
}
.detail-wrapper.theater-mode .detail-player {
    min-height: 100vh;
}
.detail-wrapper.theater-mode .player-poster {
    max-height: 100vh;
}
.detail-wrapper.theater-mode .detail-info {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    max-height: 100vh;
    z-index: 10;
    background: rgba(15, 25, 35, 0.96);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    animation: slideInSidebar 0.3s ease;
}
.detail-wrapper.theater-mode .detail-info-close {
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-wrapper.theater-mode .di-tags-section {
    display: none;
}
.detail-wrapper.theater-mode .di-bottom-share {
    display: block;
}
.detail-wrapper.theater-mode .di-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes slideInSidebar {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === PAGE LAYOUT (Privacy, Contact, etc.) === */
.page-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}
.page-icon {
    display: block;
    font-size: 2.8rem;
    margin-bottom: 14px;
}
.page-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
}
.page-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.page-section {
    margin-bottom: 36px;
}
.page-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-num {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--cyan);
    background: rgba(56, 217, 200, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.page-section p {
    font-size: 0.84rem;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 10px;
}

/* Page list */
.page-list {
    padding-left: 0;
    margin-top: 10px;
}
.page-list li {
    font-size: 0.82rem;
    color: var(--text-gray);
    padding: 6px 0 6px 20px;
    position: relative;
    line-height: 1.6;
}
.page-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: 700;
    font-size: 1rem;
}

/* Info cards (Privacy page) */
.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: 0.2s;
}
.info-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}
.info-card-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.info-card h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}
.info-card ul {
    padding-left: 0;
}
.info-card li {
    font-size: 0.76rem;
    color: var(--text-gray);
    padding: 3px 0 3px 14px;
    position: relative;
    line-height: 1.5;
}
.info-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--cyan);
}

/* Cookie table */
.cookie-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.cookie-table th {
    background: var(--bg-card);
    color: var(--text-white);
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.cookie-table td {
    padding: 12px 16px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border);
}
.cookie-table tr:last-child td {
    border-bottom: none;
}
.cookie-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cookie-badge.essential {
    background: rgba(56, 217, 200, 0.15);
    color: var(--cyan);
}
.cookie-badge.analytics {
    background: rgba(224, 168, 50, 0.15);
    color: var(--accent);
}
.cookie-badge.ads {
    background: rgba(232, 66, 63, 0.15);
    color: var(--red);
}
.cookie-badge.preference {
    background: rgba(58, 191, 94, 0.15);
    color: var(--green);
}

/* Rights grid */
.rights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}
.right-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: 0.2s;
}
.right-item:hover {
    border-color: var(--border-light);
}
.right-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.right-item strong {
    font-size: 0.82rem;
    display: block;
    margin-bottom: 4px;
    color: var(--text-white);
}
.right-item p {
    font-size: 0.74rem !important;
    margin-bottom: 0 !important;
}

/* Contact box (Privacy page) */
.contact-box {
    margin-top: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-gray);
}
.contact-item a {
    color: var(--cyan);
    transition: 0.15s;
}
.contact-item a:hover {
    opacity: 0.8;
}

/* === CONTACT PAGE === */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: 0.25s;
}
.contact-card:hover {
    border-color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.cc-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.contact-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}
.contact-card p {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}
.cc-link {
    font-size: 0.8rem;
    color: var(--cyan);
    font-weight: 600;
    text-decoration: none;
    transition: 0.15s;
}
.cc-link:hover {
    opacity: 0.8;
}
.cc-socials {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.cc-social-btn {
    font-size: 0.7rem;
    padding: 5px 14px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-gray);
    transition: 0.2s;
}
.cc-social-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Contact form */
.contact-form {
    margin-top: 20px;
}
.form-row, .contact-form .contact-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.contact-form .contact-form-row .contact-column-6 {
    flex: 1 1 calc(50% - 8px);
    min-width: 250px;
}
.contact-form .contact-form-row .contact-column-12 {
    flex: 1 1 100%;
}
.form-group, .contact-form .contact-form-group {
    margin-bottom: 20px;
    width: 100%;
}
.form-group label, .contact-form .contact-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.required {
    color: var(--theme-color);
}
label.required {
    color: rgba(255, 255, 255, 0.8) !important;
}
label.required::after {
    content: ' *';
    color: var(--theme-color) !important;
}
.form-group input,
.form-group select,
.form-group textarea,
.contact-form .contact-form-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(15, 25, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder,
.contact-form .contact-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.contact-form .contact-form-input:hover {
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(15, 25, 35, 0.8);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form .contact-form-input:focus {
    border-color: var(--theme-color) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    background: rgba(15, 25, 35, 0.9);
}
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
.form-group select option {
    background: #0f1923;
    color: var(--text-white);
}
.form-group textarea, .contact-form textarea.contact-form-input {
    resize: vertical;
    min-height: 140px;
}
.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}
.btn-submit, .contact-form button.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--theme-color), #0099ff);
    color: #0f1923;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}
.btn-submit:hover, .contact-form button.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
    background: linear-gradient(135deg, #2cc4b4, var(--theme-color));
}
.form-note {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Form success */
.form-success-inner {
    text-align: center;
    padding: 40px 20px;
}
.form-success-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 14px;
}
.form-success-inner h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}
.form-success-inner p {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* FAQ accordion */
.faq-list {
    margin-top: 16px;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: 0.2s;
}
.faq-item:hover {
    border-color: var(--border-light);
}
.faq-item.active {
    border-color: var(--cyan);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 18px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    gap: 12px;
}
.faq-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.25s;
    flex-shrink: 0;
}
.faq-item.active .faq-arrow {
    transform: rotate(90deg);
    color: var(--cyan);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 200px;
}
.faq-answer p {
    padding: 0 18px 16px;
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 0;
}
.faq-answer a {
    color: var(--cyan);
}

/* === RESPONSIVE === */
@media (max-width: 1280px) {
    .floating-banner {
        display: none;
    }
}
@media (max-width: 1100px) {
    .drama-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
}
@media (max-width: 850px) {
    .drama-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}
@media (max-width: 640px) {
    .drama-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .search-box {
        display: none;
    }
    .f-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .seo-cols {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .d-title {
        font-size: 0.74rem;
    }
    /* Hide desktop platform bar, show mobile */
    .platform-bar {
        display: none;
    }
    .mobile-platform-bar {
        display: block;
    }
    /* Page layout responsive */
    .info-cards {
        grid-template-columns: 1fr;
    }
    .rights-grid {
        grid-template-columns: 1fr;
    }
    .contact-cards {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .page-header h1 {
        font-size: 1.3rem;
    }
    /* Detail page responsive */
    .detail-wrapper {
        flex-direction: column;
    }
    .detail-player {
        min-height: 260px;
    }
    .player-poster {
        max-height: 300px;
    }
    .detail-info {
        width: 100%;
        min-width: 100%;
        max-height: none;
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .di-ep-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 420px) {
    .drama-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .d-info {
        padding: 6px 6px 8px;
    }
    .d-title {
        font-size: 0.7rem;
    }
    .d-tag {
        font-size: 0.56rem;
        padding: 1px 5px;
    }
    .p-btn {
        padding: 6px 14px;
        font-size: 0.72rem;
    }
}

/* === MOBILE HEADER ACTIONS === */
.mobile-header-actions {
    display: none; /* shown via media query */
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Mobile Search Icon Button */
.mobile-header-search {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.mobile-header-search:hover,
.mobile-header-search:active {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Login Button (Google style pill) */
.mobile-header-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #fff;
    color: #333;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
}
.mobile-header-login:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
    color: #333;
    text-decoration: none;
}
.mobile-header-login svg {
    flex-shrink: 0;
}

/* Mobile Hamburger Button */
.mobile-header-hamburger {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-white);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.mobile-header-hamburger:hover,
.mobile-header-hamburger:active {
    background: rgba(255, 255, 255, 0.15);
}

/* === MOBILE DRAWER OVERLAY === */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* === MOBILE DRAWER === */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px; /* Revert back to fixed 280px but with box-sizing */
    max-width: 85vw; /* Never wider than 85% of screen */
    height: 100%;
    background: var(--bg-header);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box; /* Crucial so padding doesn't widen it */
}
.mobile-drawer.open {
    transform: translateX(0);
}

/* Drawer Header */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}
.mobile-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-drawer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #2196f3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-drawer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mobile-drawer-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobile-drawer-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-white);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}
.mobile-drawer-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Drawer Body */
.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.mobile-drawer-section {
    padding: 8px 16px;
}
.mobile-drawer-section-title {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 0 4px;
}
.mobile-drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 16px;
}

/* Drawer Menu Items */
.mobile-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}
.mobile-drawer-item:hover, .mobile-drawer-item:active {
    background: rgba(0, 229, 255, 0.08); /* Neon blue transparent background */
    border-color: rgba(0, 229, 255, 0.3);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15) inset; /* Soft inner glow */
}
.mobile-drawer-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #00e5ff; /* Neon blue bar */
    transform: scaleY(0);
    transition: 0.3s ease-out;
    box-shadow: 0 0 8px #00e5ff; /* Neon glow */
}
.mobile-drawer-item:hover::before, .mobile-drawer-item:active::before {
    transform: scaleY(1);
}
.mobile-drawer-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: #00e5ff; /* Glowing neon blue by default */
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
    transition: 0.3s;
}
.mobile-drawer-item:hover i, .mobile-drawer-item:active i {
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
}

/* VIP Item */
.mobile-drawer-vip {
    color: #ffc107 !important;
}
.mobile-drawer-vip i {
    color: #ffc107 !important;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}
.mobile-drawer-vip:hover, .mobile-drawer-vip:active {
    background: rgba(255, 193, 7, 0.08) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.15) inset !important;
}
.mobile-drawer-vip:hover i, .mobile-drawer-vip:active i {
    text-shadow: 0 0 12px rgba(255, 193, 7, 1);
}
.mobile-drawer-vip::before {
    background: #ffc107 !important;
    box-shadow: 0 0 8px #ffc107 !important;
}

/* Logout Item */
.mobile-drawer-logout {
    color: #ff4757 !important;
}
.mobile-drawer-logout i {
    color: #ff4757 !important;
}
.mobile-drawer-logout:hover {
    background: rgba(255, 71, 87, 0.08) !important;
}

/* Drawer Switchers */
.mobile-drawer-switchers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-drawer-switchers-list {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Small gap between options */
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden; /* For border radius */
}
.mobile-drawer-setting-block {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    border-bottom: 1px solid var(--border);
}
.mobile-drawer-setting-block:last-child {
    border-bottom: none;
}
.mobile-drawer-setting-block:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    text-decoration: none;
}
.mobile-drawer-setting-block.active {
    background: rgba(56, 217, 200, 0.15); /* Teal tint */
    color: var(--text-white);
    border-left: 3px solid var(--cyan);
}
.mobile-drawer-setting-block.active span.fw-bold {
    color: var(--cyan);
}
.mobile-drawer-setting-block img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}
.mobile-drawer .dropdown-menu.show {
    display: block;
}
.mobile-drawer .dropdown-menu li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}
.mobile-drawer-dropdown-menu .dropdown-item {
    color: var(--text-white);
    padding: 14px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}
.mobile-drawer-dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}
.mobile-drawer-dropdown-menu .dropdown-item.active {
    background: rgba(56, 217, 200, 0.15);
    color: var(--text-white);
    border-left: 3px solid var(--cyan);
}
.mobile-drawer-dropdown-menu .dropdown-item.active span.fw-bold {
    color: var(--cyan);
}
.mobile-drawer-dropdown-menu .dropdown-item img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}

/* === MOBILE HEADER RESPONSIVE === */
@media (max-width: 640px) {
    html, body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100vw;
    }
    body.drawer-open {
        /* Use overscroll-behavior and touch-action to prevent scrolling without shifting the page width */
        overscroll-behavior-y: none;
        touch-action: none;
    }
    .mobile-drawer {
        /* Fix iOS Safari 100vh issue by using bottom: 0 */
        height: auto;
        bottom: 0;
    }
    .header {
        position: fixed; /* Force fixed on mobile instead of sticky which might fail */
        width: 100%;
        max-width: 100vw;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    body {
        padding-top: 52px; /* Prevent content hiding under fixed header */
    }
    .mobile-header-actions {
        display: flex !important;
    }
    /* Hide desktop language switcher on mobile */
    .header-inner > .dropdown.d-none.d-md-block {
        display: none !important;
    }
}

/* --- VIP PAGE STYLES --- */

.vip-hero {
  min-height: 50vh;
  padding: 80px 20px 60px;
  background: radial-gradient(
    circle at center,
    #1c2a36 0%,
    var(--bg-card) 60%,
    var(--bg-body) 90%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.vip-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20l10 10-10 10-10-10z' fill='%23e0a832' fill-opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.vip-hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-white);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.text-vip {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(224, 168, 50, 0.3);
}

/* Pricing Cards */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-light);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.pricing-card.popular {
  border: 1px solid var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 20px rgba(224, 168, 50, 0.08);
  transform: scale(1.03);
  z-index: 5;
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 20px 40px rgba(224, 168, 50, 0.15);
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #000;
  font-weight: 800;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px rgba(224, 168, 50, 0.3);
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-white);
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.plan-price .period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  margin: 1.5rem 0;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 12px;
  color: var(--text-gray);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.pricing-features li i {
  font-size: 1.1rem;
}

.benefit-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.benefit-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.btn-vip-custom {
  background-color: var(--accent);
  color: #000;
  border: none;
  font-weight: 700;
  transition: 0.2s;
}

.btn-vip-custom:hover {
  background-color: #f3c246;
  transform: translateY(-2px);
}

.btn-outline-light {
    border-color: var(--border-light);
    color: var(--text-gray);
    background: transparent;
}
.btn-outline-light:hover {
    background: var(--bg-card-hover);
    color: var(--text-white);
    border-color: var(--text-muted);
}

/* === PAGE LAYOUT (Privacy, Contact, etc.) === */
.page-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}
.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.page-icon {
  display: block;
  font-size: 2.8rem;
  margin-bottom: 14px;
}
.page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}
.page-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.page-section {
  margin-bottom: 36px;
}
.page-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(56,217,200,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.page-section p {
  font-size: 0.84rem;
  color: var(--text-gray);
  line-height: 1.75;
  margin-bottom: 10px;
}

/* Page list */
.page-list {
  padding-left: 0;
  margin-top: 10px;
}
.page-list li {
  font-size: 0.82rem;
  color: var(--text-gray);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.6;
}
.page-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 1rem;
}

/* Info cards (Privacy page) */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: 0.2s;
}
.info-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.info-card-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.info-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}
.info-card ul {
  padding-left: 0;
}
.info-card li {
  font-size: 0.76rem;
  color: var(--text-gray);
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.5;
}
.info-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* Cookie table */
.cookie-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.cookie-table th {
  background: var(--bg-card);
  color: var(--text-white);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cookie-table td {
  padding: 12px 16px;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border);
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cookie-badge.essential { background: rgba(56,217,200,0.15); color: var(--cyan); }
.cookie-badge.analytics { background: rgba(224,168,50,0.15); color: var(--accent); }
.cookie-badge.ads { background: rgba(232,66,63,0.15); color: var(--red); }
.cookie-badge.preference { background: rgba(58,191,94,0.15); color: var(--green); }

/* Rights grid */
.rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.right-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: 0.2s;
}
.right-item:hover {
  border-color: var(--border-light);
}
.right-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.right-item strong {
  font-size: 0.82rem;
  display: block;
  margin-bottom: 4px;
  color: var(--text-white);
}
.right-item p {
  font-size: 0.74rem !important;
  margin-bottom: 0 !important;
}

/* Contact box (Privacy page) */
.contact-box {
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-gray);
}
.contact-item a {
  color: var(--cyan);
  transition: 0.15s;
}
.contact-item a:hover { opacity: 0.8; }

/* === CONTACT PAGE === */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: 0.25s;
}
.contact-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.cc-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.contact-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.cc-link {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  transition: 0.15s;
}
.cc-link:hover { opacity: 0.8; }
.cc-socials {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.cc-social-btn {
  font-size: 0.7rem;
  padding: 5px 14px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  color: var(--text-gray);
  text-decoration: none;
  transition: 0.2s;
}
.cc-social-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Contact form */
.contact-form {
  margin-top: 20px;
}
.form-row, .contact-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.contact-form-row .contact-column-6 {
  flex: 1 1 calc(50% - 7px);
  min-width: 250px;
}
.contact-form-row .contact-column-12 {
  flex: 1 1 100%;
}
.form-group, .contact-form-group {
  margin-bottom: 16px;
  width: 100%;
}
.form-group label, .contact-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-white) !important;
  margin-bottom: 6px;
}
.required { color: var(--red); }
label.required { color: var(--text-white) !important; }
label.required::after { content: ' *'; color: var(--red) !important; }
.form-group input,
.form-group select,
.form-group textarea,
.contact-form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder,
.contact-form-input::placeholder {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form-input:focus {
  border-color: var(--cyan);
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b9aaa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select option {
  background: var(--bg-body);
  color: var(--text-white);
}
.form-group textarea, textarea.contact-form-input {
  resize: vertical;
  min-height: 120px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.btn-submit, button.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: var(--cyan);
  color: #0f1923;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.btn-submit:hover, button.contact-button:hover {
  background: #2cc4b4;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56,217,200,0.3);
}
.form-note {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Form success */
.form-success-inner {
  text-align: center;
  padding: 40px 20px;
}
.form-success-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 14px;
}
.form-success-inner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}
.form-success-inner p {
  font-size: 0.82rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

/* FAQ accordion */
.faq-list {
  margin-top: 16px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: 0.2s;
}
.faq-item:hover {
  border-color: var(--border-light);
}
.faq-item.active {
  border-color: var(--cyan);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}
.faq-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item.active .faq-arrow {
  transform: rotate(90deg);
  color: var(--cyan);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 200px;
}
.faq-answer p {
  padding: 0 18px 16px;
  font-size: 0.8rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 0;
}
.faq-answer a {
  color: var(--cyan);
}

/* === DETAIL PAGES RESPONSIVE RESPONSIVE === */
@media (max-width: 640px) {
  .info-cards { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.3rem; }
}

/* === AUTH PAGES - CYBER AURORA GLASS === */
.auth-immersive {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #060a13;
    overflow: hidden;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Aurora Backdrop */
.auth-immersive::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.15), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(155, 89, 182, 0.15), transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.1), transparent 50%);
    filter: blur(80px);
    animation: aurora 15s ease infinite alternate;
    z-index: 1;
}

/* Grid Overlay */
.auth-immersive::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
}

@keyframes aurora {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(5%, 5%) rotate(5deg) scale(1.1); }
}

/* Glowing Orbs */
.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 3;
    opacity: 0.5;
    animation: pulse 8s ease-in-out infinite alternate;
}
.auth-orb-1 { width: 400px; height: 400px; background: rgba(0, 240, 255, 0.2); top: -100px; left: -100px; }
.auth-orb-2 { width: 350px; height: 350px; background: rgba(155, 89, 182, 0.2); bottom: -50px; right: -50px; animation-delay: -2s; }
.auth-orb-3 { width: 300px; height: 300px; background: rgba(52, 152, 219, 0.15); top: 40%; right: 10%; animation-delay: -4s; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

/* Floating Particles */
.auth-particles {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}
.auth-particles span {
    position: absolute;
    display: block;
    width: 2px;
    height: 2px;
    background: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f0ff;
    bottom: -10px;
    animation: floatUp 10s linear infinite;
    opacity: 0;
}
.auth-particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.auth-particles span:nth-child(2) { left: 25%; animation-delay: 2s; }
.auth-particles span:nth-child(3) { left: 40%; animation-delay: 4s; }
.auth-particles span:nth-child(4) { left: 55%; animation-delay: 6s; }
.auth-particles span:nth-child(5) { left: 70%; animation-delay: 8s; }
.auth-particles span:nth-child(6) { left: 85%; animation-delay: 1s; }
.auth-particles span:nth-child(7) { left: 15%; animation-delay: 3s; }
.auth-particles span:nth-child(8) { left: 35%; animation-delay: 5s; }
.auth-particles span:nth-child(9) { left: 65%; animation-delay: 7s; }
.auth-particles span:nth-child(10) { left: 95%; animation-delay: 9s; }

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* Glass Card */
.auth-glass-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
                inset 0 0 20px rgba(0, 240, 255, 0.02);
    margin: 20px;
}

@media (max-width: 480px) {
    .auth-glass-card { padding: 30px 20px; }
    .auth-orb { display: none; }
}

/* Brand & Title */
.auth-card-brand { 
    text-align: center; 
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.auth-brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
}
.auth-card-brand img { height: 45px; object-fit: contain; display: block; margin: 0 auto; }
.auth-card-brand h1 { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; margin-top: 10px; }
.auth-card-brand h1 span { color: #00f0ff; }

.auth-card-title { text-align: center; margin-bottom: 30px; }
.auth-card-title h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.auth-card-title p { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; }

/* Sleek Form */
.form-group-sleek { position: relative; margin-bottom: 20px; }
.input-sleek {
    width: 100%;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    padding: 0 0 0 40px !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}
.input-sleek:focus {
    background: rgba(0, 240, 255, 0.03) !important;
    border-bottom-color: #00f0ff !important;
    box-shadow: none !important;
}
.input-sleek-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    transition: 0.3s;
}
.input-sleek:focus + .input-sleek-icon { color: #00f0ff; }

/* Cyber Button */
.cyber-auth-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, #00f0ff, #3498db);
    color: #060a13;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}
.cyber-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
}
.cyber-auth-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: sweep 3s infinite;
}
@keyframes sweep { 0% { left: -100%; } 100% { left: 100%; } }

/* Footer */
.auth-card-footer { text-align: center; margin-top: 30px; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.auth-card-footer a { color: #00f0ff; font-weight: 700; text-decoration: none; margin-left: 5px; }

/* Special Utilities */
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out both; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === MAINTENANCE TOAST === */
.maint-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 2000;
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
}
.maint-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}
.maint-toast-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #1a2836;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    min-width: 320px;
    max-width: 420px;
}
.maint-toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.maint-toast-content { flex: 1; }
.maint-toast-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}
.maint-toast-msg {
    font-size: 0.78rem;
    color: var(--text-gray);
    line-height: 1.5;
}
.maint-toast-close {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 2px;
    flex-shrink: 0;
    transition: 0.15s;
    margin-top: 2px;
}
.maint-toast-close:hover { color: var(--text-white); }
