/* ==========================================================================
   LAYARDRACHIN - Design System & Stylesheet (Netflix Red Aesthetic)
   ========================================================================== */

:root {
  --bg-dark: #090a0f;
  --bg-surface: #12141d;
  --bg-surface-glass: rgba(18, 20, 29, 0.92);
  --border-glass: rgba(255, 255, 255, 0.1);
  
  --netflix-red: #E50914;
  --netflix-red-bright: #FF2E36;
  --netflix-red-dark: #B81D24;
  --netflix-glow: rgba(229, 9, 20, 0.45);

  --dramabox-color: #ff2a5f;
  --dramabox-glow: rgba(255, 42, 95, 0.45);
  --netshort-color: #ff6b00;
  --netshort-glow: rgba(255, 107, 0, 0.45);
  --dramawave-color: #00d2ff;
  --dramawave-glow: rgba(0, 210, 255, 0.45);
  --goodshort-color: #9d4edd;
  --goodshort-glow: rgba(157, 78, 221, 0.45);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --radius-full: 9999px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --header-height: 54px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
}

/* ==========================================================================
   Top Header Bar (2-Row Layout with Login Bar on Top)
   ========================================================================== */

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  z-index: 9999;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

/* TOP ROW BAR (Login & Account Badge Above Logo) */
.header-top-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* MAIN ROW BAR (Logo Left & Controls Right) */
.header-main-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Brand Badge & Netflix Style Logo */
.brand-container {
  display: flex;
  align-items: center;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

.brand-name {
  font-family: 'Bebas Neue', 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  user-select: none;
}

.layar-text {
  color: var(--netflix-red);
  background: linear-gradient(180deg, #FF2E36 0%, #E50914 55%, #B81D24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.65));
}

.drachin-text {
  color: #ffffff;
  letter-spacing: 0.06em;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* ==========================================================================
   Unified Switcher Wrapper & Dropdown Menu
   ========================================================================== */

.switcher-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Trigger Button */
.switcher-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.switcher-trigger:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.trigger-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.trigger-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chevron-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.switcher-wrapper.open .chevron-icon {
  transform: rotate(180deg);
  color: #ffffff;
}

/* 3-Column Grid Dropdown Menu (Large 1:1 Square Container & Small Compact Icons) */
.switcher-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(92vw, 430px);
  aspect-ratio: 1 / 1;
  background: rgba(15, 17, 26, 0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  padding: 14px 12px 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

.switcher-wrapper.open .switcher-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-header {
  padding: 2px 6px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.dropdown-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom scrollbar for dropdown grid */
.dropdown-list::-webkit-scrollbar {
  width: 4px;
}
.dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.dropdown-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 2px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.dropdown-item.active {
  background: rgba(229, 9, 20, 0.22);
  border-color: rgba(229, 9, 20, 0.7);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.item-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.dropdown-item:hover .item-icon-box {
  transform: scale(1.06);
}

.item-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.item-title {
  font-weight: 700;
  font-size: 0.72rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.item-sub {
  display: none;
}

.active-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 0.6rem;
  font-weight: 900;
  color: #ffffff;
  background: var(--netflix-red-bright);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.dropdown-item.active .active-badge {
  opacity: 1;
  transform: scale(1);
}

/* Settings Icon Button */
/* Reload, Fullscreen & Settings Icon Buttons */
.reload-btn,
.fullscreen-btn,
.settings-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.reload-btn:hover,
.fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.reload-btn.spinning .reload-icon {
  animation: spinReload 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spinReload {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: rotate(45deg);
}

.reload-icon,
.fullscreen-icon,
.gear-icon {
  width: 16px;
  height: 16px;
}

/* Fullscreen / Immersive Mobile Mode & Native Video Fullscreen Overrides */
body.immersive-fullscreen .top-header,
body.native-video-fullscreen .top-header {
  display: none !important;
}

body.immersive-fullscreen .viewport-container,
body.native-video-fullscreen .viewport-container {
  height: 100dvh !important;
  height: 100vh !important;
  margin-top: 0 !important;
  top: 0 !important;
}

iframe:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
}

iframe:fullscreen {
  width: 100% !important;
  height: 100% !important;
}

/* Floating Exit Fullscreen Button */
.exit-fullscreen-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.exit-fullscreen-btn svg {
  width: 16px;
  height: 16px;
}

.exit-fullscreen-btn.hidden {
  display: none !important;
}

/* ==========================================================================
   Main Viewport & Non-Overlapping Iframe Container
   ========================================================================== */

.viewport-container {
  position: relative;
  width: 100vw;
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-dark);
  overflow: hidden;
}

.main-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background-color: var(--bg-dark);
  transition: opacity 0.3s ease;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.logo-spinner {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  padding: 4px;
  background: linear-gradient(135deg, var(--netflix-red), var(--dramabox-color));
  box-shadow: 0 0 30px var(--netflix-glow);
  animation: logo-bounce 1.5s infinite ease-in-out;
}

.logo-spinner img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

@keyframes logo-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.loading-text {
  font-family: 'Bebas Neue', 'Outfit', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--netflix-red-bright);
}

/* ==========================================================================
   Settings Modal Dialog
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-glass);
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.preset-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.preset-btn.active {
  background: rgba(229, 9, 20, 0.2);
  border-color: var(--netflix-red);
  color: #fff;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.text-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: #ffffff;
  font-family: monospace;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.text-input:focus {
  border-color: var(--netflix-red);
  box-shadow: 0 0 10px var(--netflix-glow);
}

.modal-info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-info-box code {
  color: var(--netflix-red-bright);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-glass);
}

.btn-secondary, .btn-primary {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--netflix-red), var(--netflix-red-dark));
  color: #ffffff;
  box-shadow: 0 4px 15px var(--netflix-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--netflix-glow);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .top-header {
    padding: 0 10px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .switcher-trigger {
    padding: 4px 10px 4px 4px;
    font-size: 0.8rem;
  }

  .trigger-icon-box {
    width: 22px;
    height: 22px;
  }

  .switcher-dropdown {
    right: 30px;
    width: 220px;
  }
}

/* ==========================================================================
   User Auth & Profile Badge System Styles
   ========================================================================== */

.user-auth-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.user-login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(229, 9, 20, 0.5);
  background: rgba(229, 9, 20, 0.15);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.25);
}

.user-login-btn:hover {
  background: var(--netflix-red);
  border-color: var(--netflix-red-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.45);
}

.auth-icon {
  width: 16px;
  height: 16px;
}

/* User Profile Badge */
.user-profile-badge {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar-icon {
  font-size: 0.9rem;
}

.user-email-text {
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* User Profile Dropdown Box Data Pengguna Card */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: rgba(15, 17, 26, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--netflix-red), #b81d24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
  flex-shrink: 0;
}

.user-card-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.user-status-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
  width: fit-content;
  text-transform: uppercase;
}

.user-full-email {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.user-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.data-label {
  color: var(--text-muted);
}

.data-value {
  font-weight: 700;
  color: #f1f5f9;
}

.text-success {
  color: #22c55e !important;
}

.user-card-footer {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Auth Modal Card & Tabs */
.auth-modal-card {
  max-width: 380px;
  width: 90vw;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.auth-tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.auth-tab-btn.active {
  color: #ffffff;
  border-bottom-color: var(--netflix-red-bright);
  background: rgba(255, 255, 255, 0.05);
}

.auth-alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.auth-alert.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.auth-alert.success {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
  margin-top: 10px;
}

.auth-box-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
  text-align: center;
}

.auth-actions-group {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.auth-action-btn {
  flex: 1;
  padding: 11px;
  font-size: 0.85rem;
  font-weight: 700;
}

.auth-action-btn.reg-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.auth-action-btn.reg-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Subscription Packages Selection Box */
.packages-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}

.package-card {
  position: relative;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.package-card:hover {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(229, 9, 20, 0.08);
}

.package-card.selected {
  border-color: var(--netflix-red);
  background: rgba(229, 9, 20, 0.16);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.35);
}

.pkg-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--netflix-red);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.pkg-badge.hemat {
  background: #22c55e;
}

.pkg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.pkg-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.pkg-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: #22c55e;
}

.pkg-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

.buy-qris-btn {
  width: 100%;
  padding: 13px;
  font-size: 0.9rem;
  font-weight: 800;
  margin-top: 10px;
}

.buy-pkg-btn {
  width: 100%;
  padding: 9px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.buy-pkg-btn:hover {
  background: #22c55e;
  color: #ffffff;
  transform: translateY(-1px);
}

/* QRIS Modal & QR Code Container */
.qris-modal-card {
  max-width: 360px;
  width: 90%;
  text-align: center;
}

.qris-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qris-amount-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qris-amount-badge strong {
  font-size: 1.1rem;
  color: #22c55e;
}

.qris-image-wrapper {
  width: 220px;
  height: 220px;
  padding: 10px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qris-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.qris-status-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f59e0b;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulse-glow 1.2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.qris-instructions {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.qris-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.direct-pay-btn, .check-status-btn {
  flex: 1;
  padding: 10px 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mandatory Login Wall State */
#auth-modal.mandatory-wall {
  background: rgba(8, 9, 15, 0.98) !important;
  backdrop-filter: blur(40px) !important;
  -webkit-backdrop-filter: blur(40px) !important;
}

#auth-modal.mandatory-wall .close-btn {
  display: none !important;
}

/* Touch/Click Lock Overlay for Unauthenticated Users */
.touch-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  display: block;
}

.touch-lock-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
}

/* Top Bar User Profile Button */
.profile-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.profile-trigger-btn:hover {
  background: var(--netflix-red);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.5);
}

.user-avatar-badge {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-badge svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

/* Ultra-Lightweight & Fast Modal System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  background: #121520;
  border: 1px solid #2a3148;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: scale(1);
  transition: none;
}

.touch-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  display: block;
}

.touch-lock-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
}

.package-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #2b334d;
  background: #181d2c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 0.15s ease;
}

.package-card.selected {
  border-color: #e50914;
  background: rgba(229, 9, 20, 0.12);
}

.pkg-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
}

.pkg-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ff333d;
}

/* Explicit Auth Tabs Styling */
.auth-tabs {
  display: flex;
  background: #0a0c14;
  border-bottom: 1px solid #273046;
}

.auth-tab-btn {
  flex: 1;
  padding: 12px 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.15s ease;
}

.auth-tab-btn.active {
  color: #ffffff;
  background: #141927;
  border-bottom-color: #e50914;
}


/* 6-Column Compact Single-Box Grid for All 24 Platforms */
.switcher-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: -42px !important;
  width: min(94vw, 350px) !important;
  max-width: calc(100vw - 12px) !important;
  background: rgba(13, 16, 26, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
  padding: 10px 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.2s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

.switcher-wrapper.open .switcher-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-header {
  padding: 2px 4px 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.dropdown-grid,
.dropdown-list {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 4px !important;
  width: 100% !important;
  overflow: hidden !important;
}

.dropdown-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 1px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  width: 100%;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: scale(1.05);
}

.dropdown-item.active {
  background: rgba(229, 9, 20, 0.3);
  border-color: rgba(229, 9, 20, 0.8);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.5);
}

.item-icon-box {
  width: 24px !important;
  height: 24px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.item-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.item-title {
  font-weight: 700;
  font-size: 0.58rem !important;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.1;
}
