/* ==============================================================================
   Carib Live Creator Network — Luxury SaaS Design System
   Matched to https://iptv.caribliveagency.info (01-carib_IPTV_Admin_Panel)
   Deep midnight canvas, translucent elevated glass cards, cyan-to-indigo gradients.
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Canvas & Cards */
  --bg-canvas: radial-gradient(circle at top left, #1e3a8a 0, #1d4ed8 22%, transparent 55%), radial-gradient(circle at bottom right, #4c1d95 0, #020617 55%), #020617;
  --bg-card: radial-gradient(circle at top left, rgba(248, 250, 252, 0.09), rgba(15, 23, 42, 0.98));
  --bg-card-header: rgba(15, 23, 42, 0.85);
  --card-border: rgba(148, 163, 184, 0.28);
  --border-light: rgba(148, 163, 184, 0.16);

  /* Typography Colors */
  --foreground: #F8FAFC;
  --text-main: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #CBD5E1;
  --text-light: #94A3B8;

  /* Primary Accent & Gradients */
  --primary: #00D2FF;
  --primary-hover: #38BDF8;
  --primary-gradient: linear-gradient(135deg, #00D2FF 0%, #6366F1 100%);
  --primary-gradient-hover: linear-gradient(135deg, #38BDF8 0%, #4F46E5 100%);
  --primary-glow: 0 4px 20px rgba(0, 210, 255, 0.35);
  --purple-glow: 0 4px 20px rgba(99, 102, 241, 0.35);

  /* Semantic State Colors */
  --secondary: #8B5CF6;
  --accent-pink: #EC4899;
  --accent-cyan: #38BDF8;
  --accent-green: #00E676;
  --accent-amber: #FFB300;
  --accent-red: #FF2A55;

  /* Geometry & Fonts */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-title: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg-canvas) !important;
  background-color: #020617 !important;
  background-attachment: fixed !important;
  color: var(--text-main) !important;
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric Glowing Orbs */
body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: 5%;
  right: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, transparent 70%);
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Glassmorphism Card Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.glass-panel:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

/* Header & Top Bar */
header.app-header {
  border-bottom: 1px solid var(--card-border);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #FFF;
  box-shadow: 0 4px 16px rgba(0, 210, 255, 0.4);
}

.brand-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #BAE6FD;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab-btn:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab-btn.active {
  color: #FFF;
  background: var(--primary-gradient);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.35);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn-primary {
  background: var(--primary-gradient);
  color: #FFF;
  border: none;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 210, 255, 0.35);
}

.btn-primary:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 210, 255, 0.5);
  color: #FFF;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
}

.key-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: #38BDF8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.key-pill:hover {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Main Container */
main.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

/* Hero Stats Banner (01-carib_IPTV_Admin_Panel Luxury System) */
.stats-strip, .stats-grid, .stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stats-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .stats-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .stats-grid-5 {
    grid-template-columns: 1fr;
  }
}

.stat-card, .stat-box {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 18px 18px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 120px;
}

.stat-card:hover, .stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.stat-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.stat-card:hover .stat-icon-badge {
  transform: scale(1.08);
}

.stat-icon-badge.purple { background: rgba(139, 92, 246, 0.18); color: #C4B5FD; border: 1px solid rgba(139, 92, 246, 0.35); }
.stat-icon-badge.green  { background: rgba(0, 230, 118, 0.18); color: #00E676; border: 1px solid rgba(0, 230, 118, 0.35); }
.stat-icon-badge.cyan, .stat-icon-badge.blue { background: rgba(56, 189, 248, 0.18); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.35); }
.stat-icon-badge.amber  { background: rgba(255, 179, 0, 0.18); color: #FFB300; border: 1px solid rgba(255, 179, 0, 0.35); }
.stat-icon-badge.red    { background: rgba(255, 42, 85, 0.18); color: #FF2A55; border: 1px solid rgba(255, 42, 85, 0.35); }

.stat-label, .stat-box .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.stat-num, .stat-box .stat-value {
  font-family: var(--font-title);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.15;
  margin: 4px 0 2px;
  color: #FFFFFF;
}

.stat-num.blue, .stat-num.primary { color: var(--primary); }
.stat-num.cyan, .stat-num.info    { color: #38BDF8; }
.stat-num.green, .stat-num.success { color: var(--accent-green); }
.stat-num.amber, .stat-num.warning { color: var(--accent-amber); }
.stat-num.purple                  { color: var(--secondary); }
.stat-num.red, .stat-num.danger   { color: var(--accent-red); }

.stat-sub, .stat-box .stat-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Pulsing Live Dot */
.live-pulse {
  display: inline-flex;
  position: relative;
  width: 8px;
  height: 8px;
  margin-right: 6px;
}
.live-pulse::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-red);
  opacity: 0.75;
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.live-pulse::after {
  content: '';
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* Video Showcase Carousel Banner */
.video-banner-box {
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.video-banner-info h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-banner-info p {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 650px;
}

.video-cards-row {
  display: flex;
  gap: 12px;
}

.video-card-thumb {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 220px;
  transition: all 0.2s ease;
  text-align: left;
}

.video-card-thumb:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25);
}

.video-card-thumb img {
  width: 64px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.video-card-thumb .v-info {
  display: flex;
  flex-direction: column;
}

.video-card-thumb .v-title {
  font-size: 11px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
}

.video-card-thumb .v-tag {
  font-size: 10px;
  color: var(--primary);
  margin-top: 3px;
}

/* Controls Bar */
.controls-bar {
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ==============================================================================
   Admin Portal Left-Hand Sidebar (Matched to 01-carib_IPTV_Admin_Panel)
   ============================================================================== */

@media (min-width: 992px) {
  body.has-admin-sidebar {
    padding-left: 260px !important;
  }
}

.app-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 260px;
  background: linear-gradient(180deg, #0B0F19 0%, #060911 100%);
  border-right: 1px solid rgba(99, 102, 241, 0.18);
  display: flex;
  flex-direction: column;
  z-index: 1045;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.4);
  font-size: 1rem;
}

.sidebar-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  font-family: var(--font-title);
}

.sidebar-brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #38BDF8;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #93C5FD;
  text-transform: uppercase;
  padding: 14px 10px 4px;
  margin-top: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border-radius: 10px;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.sidebar-link i {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  color: #38BDF8;
  transition: all 0.18s ease;
}

.sidebar-link:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #FFFFFF;
  border-color: rgba(56, 189, 248, 0.35);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.38));
  color: #FFFFFF;
  font-weight: 800;
  border-left: 3.5px solid #38BDF8;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.25);
}

.sidebar-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(0, 210, 255, 0.2);
  color: #38BDF8;
  border: 1px solid rgba(0, 210, 255, 0.4);
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(11, 15, 25, 0.8);
}


.select-control, .input-control {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--card-border);
  color: #FFF;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.select-control:focus, .input-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-live {
  background: rgba(255, 42, 85, 0.16);
  color: #FF4D6D;
  border: 1px solid rgba(255, 42, 85, 0.35);
}

.badge-regular {
  background: rgba(56, 189, 248, 0.16);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-elite {
  background: rgba(168, 85, 247, 0.16);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-premium {
  background: rgba(255, 179, 0, 0.16);
  color: #FBBF24;
  border: 1px solid rgba(255, 179, 0, 0.35);
}

.badge-division {
  background: rgba(15, 23, 42, 0.9);
  color: var(--primary);
  border: 1px solid rgba(0, 210, 255, 0.35);
  font-family: var(--font-mono);
}

/* Data Tables */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

table.data-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
}

table.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  vertical-align: middle;
}

table.data-table tbody tr {
  transition: background-color 0.15s ease;
}

table.data-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.06);
}

/* Creator Profile In Table */
.creator-profile-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  object-fit: cover;
  border: 2px solid rgba(148, 163, 184, 0.3);
}

.creator-details {
  display: flex;
  flex-direction: column;
}

.creator-display-name {
  font-weight: 700;
  color: #FFF;
  font-size: 14px;
}

.creator-username {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.diamond-count {
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Modal System */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: radial-gradient(circle at top left, rgba(30, 58, 138, 0.3), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 25px 80px -20px rgba(0, 210, 255, 0.4);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}
.modal-close-btn:hover {
  color: #FFF;
}

/* Code Playground Box */
.code-box {
  background: #020617;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  overflow-x: auto;
  white-space: pre;
}

/* 100% In-Browser Cloud Auto-Messenger Web App Components */
.cloud-runner-box {
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.15), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.cloud-terminal {
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 14px;
  max-height: 280px;
  overflow-y: auto;
  line-height: 1.6;
  color: #BAE6FD;
}

.cloud-terminal .log-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.cloud-terminal .log-time {
  color: #64748B;
  font-size: 11px;
}
.cloud-terminal .log-success {
  color: #34D399;
}
.cloud-terminal .log-info {
  color: #38BDF8;
}
.cloud-terminal .log-warn {
  color: #FBBF24;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  header.app-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .nav-tabs {
    overflow-x: auto;
    width: 100%;
  }
  .video-banner-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==============================================================================
   Admin Layout & Topbar (Matched to 01-carib_IPTV_Admin_Panel)
   ============================================================================== */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.admin-content {
  padding: 24px 32px;
  max-width: 1480px;
  margin: 0 auto;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(148, 163, 184, 0.3);
  transition: .3s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .toggle-slider {
  background: linear-gradient(135deg, #00D2FF, #6366F1);
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
  color: #F8FAFC;
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.admin-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-modal-overlay.active {
  display: flex;
}
.admin-modal-card {
  background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* ==============================================================================
   Customer Portal Visual Replica (Matched to Screenshots from User Account)
   ============================================================================== */

/* Top User Bar (Header in screenshots) */
.customer-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.customer-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.customer-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-email-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-badge-cyan {
  background: #00D2FF;
  color: #000000;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* 2x2 Stats Grid from Image 1 */
.rng-stats-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .rng-stats-2x2 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rng-stat-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.rng-stat-icon-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.rng-stat-icon-wrap i {
  color: #00D2FF;
  font-size: 16px;
}

.rng-stat-val {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  font-family: var(--font-title);
}

.rng-stat-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Drop countdown box */
.rng-drop-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 14px;
}

.rng-drop-badge {
  background: #00D2FF;
  color: #000000;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
}

/* Filter pills */
.pill-filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.pill-filter {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.pill-filter:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  border-color: rgba(0, 210, 255, 0.4);
}
.pill-filter.active {
  background: #00D2FF !important;
  color: #000000 !important;
  border-color: #00D2FF !important;
  font-weight: 700;
}

/* Gold Notice Alert Box */
.notice-gold-box {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: #F8FAFC;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
  margin: 16px 0;
}

/* Action Buttons */
.rng-btn-cyan {
  background: #00D2FF;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  padding: 11px 18px;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.rng-btn-cyan:hover {
  background: #38e1ff;
  color: #000;
  transform: translateY(-1px);
}

.rng-btn-purple {
  background: #8b5cf6;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.rng-btn-purple:hover {
  background: #7c3aed;
  color: #fff;
}

/* Sticky Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 25, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  font-size: 12.5px;
  color: #cbd5e1;
}

/* Profile Progress Bar */
.profile-progress-bar-wrap {
  background: rgba(148, 163, 184, 0.2);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.profile-progress-bar-fill {
  background: linear-gradient(90deg, #6366f1, #00D2FF);
  height: 100%;
  border-radius: 999px;
}

/* Ambient Cyan Spotlight Background (from screenshots) */
.ambient-cyan-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 580px;
  height: 100vh;
  background: radial-gradient(ellipse 50% 60% at 50% 20%, rgba(0, 210, 255, 0.12), transparent 75%),
              radial-gradient(ellipse 50% 50% at 50% 80%, rgba(0, 210, 255, 0.08), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Generic customer portal card */
.rng-portal-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
}

.rng-portal-card-interactive:hover {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 12px 35px -8px rgba(0, 210, 255, 0.15);
}

/* Cloudflare Turnstile Box */
.cloudflare-turnstile-box {
  background: rgba(11, 15, 25, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
}

.turnstile-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.turnstile-checkbox {
  width: 22px;
  height: 22px;
  accent-color: #00D2FF;
  cursor: pointer;
}

/* Session / Device Card */
.session-item {
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.session-item-icon {
  font-size: 20px;
  color: #94A3B8;
  margin-top: 2px;
}

/* Business Markets Topbar Button & Menu */
.business-markets-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12.5px;
}

.business-markets-btn:hover {
  background: rgba(0, 210, 255, 0.12);
  border-color: #00D2FF;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

.active-market-pill {
  background: linear-gradient(135deg, #00D2FF, #0051FF);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.btn-xs-cyan {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #00D2FF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-xs-cyan:hover {
  background: #00D2FF;
  color: #000;
}

.market-item-row:hover {
  background: rgba(0, 210, 255, 0.08) !important;
  border-color: rgba(0, 210, 255, 0.3) !important;
}

.active-market-highlight {
  box-shadow: inset 0 0 12px rgba(0, 210, 255, 0.15);
}

