/* ==========================================================================
   Shopee Live View Bot Pro - Dynamic Luxury Glassmorphism & Multi-Theme Stylesheet
   Supports: Dark Mode (Default) & Light Mode with Smooth Dynamic Switching
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-main: #0a0d14;
  --bg-card: rgba(18, 24, 38, 0.78);
  --bg-card-solid: #111726;
  --bg-card-hover: rgba(26, 34, 54, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-heavy: rgba(15, 20, 32, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(238, 77, 45, 0.35);

  /* Brand & Accent Colors */
  --shopee-primary: #ee4d2d;
  --shopee-gradient: linear-gradient(135deg, #ff5722 0%, #ee4d2d 50%, #d03b1a 100%);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;
  --accent-pink: #ec4899;

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Shadows & Glows */
  --glow-shopee: 0 0 25px rgba(238, 77, 45, 0.4);
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.35);
  --glow-emerald: 0 0 20px rgba(16, 185, 129, 0.3);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-glass);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);

  /* Form & Table Inputs */
  --input-bg: rgba(10, 13, 20, 0.75);
  --input-border: rgba(255, 255, 255, 0.12);
  --table-head-bg: rgba(255, 255, 255, 0.04);
  --table-row-hover: rgba(255, 255, 255, 0.03);
  --terminal-bg: #07090e;
  --chat-box-bg: rgba(15, 23, 42, 0.6);

  /* Radial Gradient Overlays */
  --bg-gradient-radial: 
    radial-gradient(circle at 10% 20%, rgba(238, 77, 45, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-solid: #ffffff;
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-heavy: rgba(255, 255, 255, 0.96);
  --border-glass: rgba(203, 213, 225, 0.75);
  --border-glass-glow: rgba(238, 77, 45, 0.35);

  /* Brand & Accent Colors */
  --shopee-primary: #ee4d2d;
  --shopee-gradient: linear-gradient(135deg, #ff5722 0%, #ee4d2d 50%, #d03b1a 100%);
  --accent-cyan: #0891b2;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-purple: #7c3aed;
  --accent-rose: #e11d48;
  --accent-pink: #db2777;

  /* Typography */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  /* Shadows & Glows */
  --glow-shopee: 0 4px 20px rgba(238, 77, 45, 0.25);
  --glow-cyan: 0 4px 15px rgba(6, 182, 212, 0.2);
  --glow-emerald: 0 4px 15px rgba(16, 185, 129, 0.2);
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);

  /* Form & Table Inputs */
  --input-bg: #f8fafc;
  --input-border: #cbd5e1;
  --table-head-bg: #f8fafc;
  --table-row-hover: #f1f5f9;
  --terminal-bg: #0f172a;
  --chat-box-bg: #f8fafc;

  /* Radial Gradient Overlays */
  --bg-gradient-radial: 
    radial-gradient(circle at 10% 20%, rgba(238, 77, 45, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(241, 245, 249, 0.6) 0%, transparent 60%);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: var(--bg-gradient-radial);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-glass);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--shopee-primary);
}

/* App Container */
.app-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 80px 28px; /* space for floating bottom bar */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Top Navigation Bar */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 10;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  background: var(--shopee-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-shopee);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-icon:hover {
  transform: scale(1.05) rotate(-3deg);
}

.brand-icon svg {
  width: 25px;
  height: 25px;
  fill: #ffffff;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-size: 0.7rem;
  background: rgba(238, 77, 45, 0.18);
  color: #ff7d59;
  border: 1px solid rgba(238, 77, 45, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-status-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  transition: all 0.25s ease;
}

.status-pill.status-healthy {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.status-pill.status-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.status-pill.status-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px var(--accent-emerald); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.node-meta-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

/* Theme Toggle Button (Luxury Capsule) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
  user-select: none;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--shopee-primary);
  background: rgba(238, 77, 45, 0.08);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover .theme-toggle-icon {
  transform: rotate(25deg);
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  white-space: nowrap;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.nav-tab:hover {
  color: var(--text-main);
  background: var(--bg-glass);
}

.nav-tab.active {
  background: var(--shopee-gradient);
  color: #ffffff;
  box-shadow: var(--glow-shopee);
}

/* Tab Content */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

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

/* Quick Start 3-Step Guide Banner */
.quick-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--shopee-primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: var(--transition);
}

.quick-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.quick-guide-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.quick-guide-badge {
  font-size: 0.72rem;
  background: rgba(238, 77, 45, 0.15);
  color: #ff8c6d;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.quick-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}

@media (max-width: 860px) {
  .quick-guide-steps {
    grid-template-columns: 1fr;
  }
}

.step-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  transition: transform 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(238, 77, 45, 0.3);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--shopee-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.3);
}

.step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.step-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Overview Metric Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.12), 0 0 1px 1px var(--border-glass);
  border-color: rgba(238, 77, 45, 0.3);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--card-accent, var(--shopee-primary));
}

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

.metric-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent, var(--shopee-primary));
  border: 1px solid var(--border-glass);
  font-size: 1rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Two Column Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Card General */
.panel-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, border-color 0.3s ease;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.panel-title-icon {
  color: var(--shopee-primary);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-label span {
  color: var(--shopee-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--shopee-primary);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.18);
}

/* Slider Controls */
.slider-container {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.slider-container:hover {
  border-color: rgba(238, 77, 45, 0.25);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.slider-val-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff8c6d;
  background: rgba(238, 77, 45, 0.15);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.range-input {
  width: 100%;
  accent-color: var(--shopee-primary);
  cursor: pointer;
}

/* Retention Mode Selector Cards */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.mode-option {
  position: relative;
  cursor: pointer;
}

.mode-option input {
  position: absolute;
  opacity: 0;
}

.mode-box {
  padding: 14px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
}

.mode-option:hover .mode-box {
  border-color: rgba(238, 77, 45, 0.35);
  transform: translateY(-2px);
}

.mode-option input:checked + .mode-box {
  background: rgba(238, 77, 45, 0.12);
  border-color: var(--shopee-primary);
  box-shadow: 0 0 15px rgba(238, 77, 45, 0.25);
}

.mode-box-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.mode-box-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Action Buttons */
.btn-group {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  user-select: none;
}

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

.btn-primary {
  background: var(--shopee-gradient);
  color: #ffffff;
  box-shadow: var(--glow-shopee);
  flex: 1;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.35);
  flex: 1;
}

.btn-danger:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(238, 77, 45, 0.08);
  border-color: rgba(238, 77, 45, 0.3);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: var(--glow-emerald);
}

.btn-emerald:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Live Terminal Log Console */
.terminal-box {
  background: var(--terminal-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  height: 280px;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  word-break: break-all;
}

.log-time {
  color: var(--text-dim);
  font-size: 0.72rem;
  white-space: nowrap;
}

.log-badge {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.log-badge-INFO { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.log-badge-SUCCESS { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.log-badge-WARN { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.log-badge-ERROR { background: rgba(244, 63, 94, 0.2); color: #fb7185; }
.log-badge-CHURN { background: rgba(139, 92, 246, 0.2); color: #c084fc; }
.log-badge-MILESTONE { background: rgba(238, 77, 45, 0.25); color: #ff7d59; }

.log-text {
  color: #cbd5e1;
}

/* Table Design */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.custom-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 10px 14px;
  background: var(--table-head-bg);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-main);
  white-space: nowrap;
}

.data-table tr:hover td {
  background: var(--table-row-hover);
}

/* Responsive Helper Component Classes */
.campaign-session-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.preset-duration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.toolbar-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.health-audit-bar {
  margin: 0 0 16px 0;
  padding: 12px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.wa-quick-connect-row {
  display: flex;
  gap: 10px;
}

.add-comment-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.history-action-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-table th {
  padding: 12px 16px;
  background: var(--table-head-bg);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-main);
  vertical-align: middle;
  transition: background-color 0.15s ease;
}

.custom-table tr:hover td {
  background: var(--table-row-hover);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-name-title {
  font-weight: 600;
  color: var(--text-main);
}

.user-subtext {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Chart Canvas Container */
.chart-container {
  position: relative;
  height: 240px;
  width: 100%;
  margin-top: 10px;
}

/* WhatsApp Pairing Card */
.wa-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.qr-code-frame {
  padding: 14px;
  background: #ffffff;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.qr-code-frame img {
  width: 200px;
  height: 200px;
  display: block;
}

/* Switch Toggle Component */
.toggle-switch-label input[type="checkbox"] {
  display: none;
}
.switch-slider {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  background-color: rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  transition: 0.3s;
  flex-shrink: 0;
}
.switch-slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch-label input:checked + .switch-slider {
  background-color: var(--shopee-primary);
  box-shadow: 0 0 10px rgba(238, 77, 45, 0.4);
}
.toggle-switch-label input:checked + .switch-slider::before {
  transform: translateX(18px);
}

/* Live Chat Feed Styles */
.live-chat-box {
  background: var(--chat-box-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

.live-chat-bubble {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  animation: fadeIn 0.25s ease;
  transition: all 0.2s ease;
}
.live-chat-bubble:hover {
  background: rgba(238, 77, 45, 0.06);
  border-color: rgba(238, 77, 45, 0.3);
}
.live-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(238, 77, 45, 0.4);
  flex-shrink: 0;
}
.live-chat-author {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ff8c6d;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-chat-msg {
  font-size: 0.82rem;
  color: var(--text-main);
  margin-top: 2px;
  word-break: break-word;
}
.cat-pill.active {
  background: var(--shopee-primary) !important;
  color: #ffffff !important;
  border-color: var(--shopee-primary) !important;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.35);
}

/* Floating Hearts Particle Animation */
.floating-heart {
  position: fixed;
  pointer-events: none;
  font-size: 1.4rem;
  z-index: 9999;
  animation: floatUpFade 1.4s ease-out forwards;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-50px) scale(1.15) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-110px) scale(1.3) rotate(-15deg);
  }
}

/* Floating Bottom Live Bar */
.floating-live-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass-glow);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.4), var(--glow-shopee);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 900;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.floating-live-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.floating-bar-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Modal Glassmorphism System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(10px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE & MULTI-SCREEN OPTIMIZATIONS
   Tested: Ultra-wide (1440px+), Laptops (1024-1366px), Tablets (768-1024px),
   Phablets (480-767px), Smartphones (360-414px), Foldables (320px)
   ========================================================================== */

/* Laptops & Tablets Landscape (<= 1120px) */
@media (max-width: 1120px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
  }

  .header-status-group {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
}

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Tablets & Large Phones (<= 860px) */
@media (max-width: 860px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
  }

  .header-status-group {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .quick-guide-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .campaign-session-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .campaign-session-card button {
    width: 100%;
  }

  .health-audit-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Standard Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .app-container {
    padding: 14px 16px 95px 14px;
    gap: 16px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    font-size: 0.74rem;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .brand-icon svg {
    width: 22px;
    height: 22px;
  }

  /* Compact 2-Column Grid on Mobile */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }

  .metric-card {
    padding: 14px 12px;
    border-radius: var(--radius-sm);
  }

  .metric-title {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .metric-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .metric-value {
    font-size: 1.4rem;
    margin-bottom: 2px;
  }

  .metric-sub {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  /* Navigation Tabs Mobile */
  .nav-tabs {
    padding: 4px;
    gap: 6px;
  }

  .nav-tab {
    padding: 8px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .nav-tab svg {
    width: 15px;
    height: 15px;
  }

  /* Form & Cards */
  .panel-card {
    padding: 18px 16px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .mode-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .toolbar-action-group {
    width: 100%;
  }

  .toolbar-action-group .btn {
    flex: 1 1 auto;
    font-size: 0.78rem;
    padding: 8px 10px;
  }

  .qr-code-frame img {
    max-width: 180px;
    height: auto;
  }

  /* Live Chat Controls Responsive Wrap */
  .instant-chat-toolbar {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .instant-btn-cluster {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .instant-btn-cluster button {
    flex: 1;
    font-size: 0.76rem !important;
    padding: 8px 6px !important;
  }

  /* History Modal KPI Grid */
  #history-kpi-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Scheduler Form Grids on Mobile */
  .sched-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .sched-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Table Wrapper touch feel */
  .table-wrapper {
    margin: 0 -8px;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
  }

  .custom-table th, .custom-table td {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  /* Floating Bottom Live Bar */
  .floating-live-bar {
    bottom: 12px;
    padding: 8px 16px;
    gap: 12px;
    max-width: 95vw;
    font-size: 0.78rem;
  }

  .floating-bar-stat {
    font-size: 0.75rem;
    gap: 4px;
  }
}

/* Small Smartphone Screens (<= 480px) */
@media (max-width: 480px) {
  .app-container {
    padding: 10px 10px 90px 10px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .metric-value {
    font-size: 1.25rem;
  }

  .metric-card {
    padding: 10px;
  }

  .header-status-group {
    font-size: 0.75rem;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .modal-overlay.active {
    padding: 8px;
    align-items: flex-end;
  }

  .modal-content {
    padding: 18px 14px;
    max-height: 92vh;
  }

  .wa-quick-connect-row {
    flex-direction: column;
    gap: 8px;
  }

  .wa-quick-connect-row button {
    width: 100%;
  }

  .add-comment-bar {
    flex-direction: column;
  }

  .add-comment-bar button {
    width: 100%;
  }

  .history-action-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .history-action-toolbar > div {
    display: flex;
    width: 100%;
  }

  .history-action-toolbar a, .history-action-toolbar button {
    flex: 1;
    justify-content: center;
  }

  .slider-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .preset-duration-grid .btn {
    padding: 8px 4px !important;
    font-size: 0.72rem !important;
  }

  .floating-live-bar {
    bottom: 8px;
    padding: 8px 12px;
    gap: 8px;
    font-size: 0.72rem;
    max-width: 95vw;
  }

  .floating-live-bar .floating-bar-stat {
    font-size: 0.72rem;
    gap: 3px;
  }

  .floating-live-bar .btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
}

/* Extra-Small Smartphones & Folded Screens (<= 360px) */
@media (max-width: 360px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .nav-tab {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .preset-duration-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-action-group .btn {
    width: 100%;
  }
}

/* ========================================================================= */
/* MODERN SKELETON LOADING (SHIMMER EFFECT) */
/* ========================================================================= */
@keyframes shimmerPulse {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  ) !important;
  background-size: 200% 100% !important;
  animation: shimmerPulse 1.8s infinite ease-in-out !important;
  border-radius: var(--radius-sm);
}

.skeleton-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-text {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.tiny {
  height: 10px;
  width: 40%;
  margin-bottom: 0;
}

.skeleton-badge {
  height: 22px;
  width: 80px;
  border-radius: 4px;
  display: inline-block;
}

.skeleton-btn {
  height: 26px;
  width: 48px;
  border-radius: 4px;
  display: inline-block;
}

/* ========================================================================= */
/* ADVANCED TABLE CONTROLS (SEARCH, FILTERS & PAGINATION) */
/* ========================================================================= */
.table-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.table-controls-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}

.table-search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 380px;
}

.table-search-box input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.82rem;
  outline: none;
  transition: all 0.2s ease;
}

.table-search-box input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.table-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: var(--text-dim);
  pointer-events: none;
}

.table-filter-select {
  padding: 7px 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.78rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.table-filter-select:focus {
  border-color: #06b6d4;
}

.table-filter-select option {
  background: #0f172a;
  color: #e2e8f0;
}

.table-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-results-counter {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.table-results-counter strong {
  color: #38bdf8;
}

/* Pagination Bar */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.3);
  border-top: 1px solid var(--border-glass);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: -1px;
}

.pagination-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #38bdf8;
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: linear-gradient(135deg, #0284c7, #06b6d4) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.pagination-page-size {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pagination-page-size select {
  padding: 4px 8px;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   SECURITY GATEKEEPER & ACCESS LOCK SCREEN STYLES
   ========================================================================== */
.security-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.security-gate-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

.security-gate-card {
  background: rgba(26, 34, 53, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(238, 77, 45, 0.2);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 34px 28px;
  text-align: center;
  animation: secGatePopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.security-gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ee4d2d, #ff7337, #ec4899);
}

@keyframes secGatePopIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes secGateShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.security-gate-card.shake {
  animation: secGateShake 0.4s ease-in-out;
}

.security-shield-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(238, 77, 45, 0.12);
  border: 1px solid rgba(238, 77, 45, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shopee-primary);
  box-shadow: 0 0 20px rgba(238, 77, 45, 0.25);
}

.security-gate-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.security-gate-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 18px;
}

.security-gate-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.sec-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sec-badge .dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.sec-gate-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-bottom: 16px;
  line-height: 1.4;
  text-align: left;
}

.sec-gate-alert.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.sec-gate-alert.alert-info {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

.sec-gate-form {
  text-align: left;
}

.sec-input-group {
  margin-bottom: 16px;
}

.sec-input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

.sec-input-wrapper input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  font-size: 0.95rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.sec-input-wrapper input:focus {
  border-color: var(--shopee-primary);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.2);
}

.sec-eye-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.sec-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.sec-checkbox-label input[type="checkbox"] {
  accent-color: var(--shopee-primary);
  width: 15px;
  height: 15px;
}

.btn-sec-unlock {
  width: 100%;
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff6b3d 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(238, 77, 45, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-sec-unlock:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.45);
}

.btn-sec-unlock:active {
  transform: translateY(0);
}

.sec-otp-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.4;
}

.sec-back-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sec-back-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.security-gate-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Security Settings Modal Controls */
.sec-setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.sec-setting-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.sec-setting-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
}


