/* CSS Design System for PayCoin - Unified Console (AI Studio Theme) */

/* Import fonts from AI Studio specification */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Shake animation for blocking modals */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

:root {
  /* Font Variables */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Color Palette Variables */
  --primary-gradient: linear-gradient(135deg, #ff8c00 0%, #ff5e00 50%, #e04d00 100%);
  --btn-gradient-hover: linear-gradient(135deg, #e04d00 0%, #d35400 50%, #a04000 100%);
  
  --color-brand-meta: #1877f2;
  --color-brand-tiktok: #00f2fe;
  --color-brand-ig: #e1306c;
  
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Theme-specific variables (Default: Dark Mode) */
  --bg-color: #050503;
  --sidebar-bg: rgba(10, 10, 8, 0.95);
  --text-primary: #f5f5f4;
  --text-secondary: #a8a29e;
  --text-muted: #57534e;
  --panel-bg: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(255, 255, 255, 0.03);
  --popup-bg: #141414;
  --shadow-lg: 0 4px 24px 0 rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 35px rgba(255, 94, 0, 0.05);
  --card-hover-bg: rgba(255, 255, 255, 0.06);
  --card-hover-border: rgba(255, 255, 255, 0.15);
  --card-hover-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
  --scrollbar-thumb: rgba(255, 255, 255, 0.1);
  --chart-line: #ff5e00;
  --chart-grid: rgba(255, 255, 255, 0.03);
  
  /* Mock FB Ad Colors */
  --fb-card-bg: rgba(20, 16, 15, 0.95);
  --fb-text: #f5f5f4;
  --fb-subtext: #a8a29e;
}

/* Light Mode Overrides */
[data-theme="light"] {
  color-scheme: light !important;
  --bg-color: #fafaf9;
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #a8a29e;
  --panel-bg: rgba(255, 255, 255, 0.6);
  --panel-border: rgba(0, 0, 0, 0.06);
  --input-bg: rgba(255, 255, 255, 0.9);
  --popup-bg: #ffffff;
  --shadow-lg: 0 2px 12px 0 rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px rgba(255, 94, 0, 0.03);
  --card-hover-bg: rgba(255, 255, 255, 0.85);
  --card-hover-border: rgba(255, 94, 0, 0.18);
  --card-hover-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.06);
  --scrollbar-thumb: #e7e5e4;
  --chart-line: #e04d00;
  --chart-grid: rgba(0, 0, 0, 0.04);
  
  --fb-card-bg: rgba(255, 255, 255, 0.9);
  --fb-text: #1c1917;
  --fb-subtext: #57534e;
}

[data-theme="light"] body {
  background-color: #f8f6f3 !important;
  background-image: 
    radial-gradient(ellipse at 15% 80%, rgba(255, 94, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(217, 119, 6, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(249, 115, 22, 0.04) 0%, transparent 60%) !important;
}


[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.75);
  border-right-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .filter-search-box,
[data-theme="light"] .form-input {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1c1917;
}

[data-theme="light"] .filter-search-box:focus,
[data-theme="light"] .form-input:focus {
  background: #fff;
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

[data-theme="light"] .filter-select-pill {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

[data-theme="light"] .option-card {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .option-card:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 94, 0, 0.18);
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .preset-pill {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Global Reset & Mobile Tap Optimization */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

html, body {
  -webkit-tap-highlight-color: transparent !important;
}

a, button, input, select, textarea, [role="button"], .objective-pill, .gads-metric-card, .btn {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  outline: none;
}

:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  position: relative;
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  background-color: #050503;
  background-image: none;
}

/* ===== ANIMATED BACKGROUND ORBS (powers the liquid glass refraction) ===== */
.glass-bg-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.55) 0%, rgba(255, 94, 0, 0) 70%);
  top: -5%;
  left: -5%;
  animation: orbFloat1 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.45) 0%, rgba(217, 119, 6, 0) 70%);
  bottom: 10%;
  right: -3%;
  animation: orbFloat2 22s ease-in-out infinite alternate;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.35) 0%, rgba(249, 115, 22, 0) 70%);
  top: 40%;
  left: 30%;
  animation: orbFloat3 15s ease-in-out infinite alternate;
}

.orb-4 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.4) 0%, rgba(180, 83, 9, 0) 70%);
  top: 15%;
  right: 25%;
  animation: orbFloat4 20s ease-in-out infinite alternate;
}

.orb-5 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.3) 0%, rgba(255, 140, 0, 0) 70%);
  bottom: -8%;
  left: 50%;
  animation: orbFloat5 25s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-70px, -50px) scale(1.1); }
}

@keyframes orbFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(0.9); }
}

@keyframes orbFloat4 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.2); }
}

@keyframes orbFloat5 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -35px) scale(1.05); }
}

/* Light mode orb overrides */
[data-theme="light"] .orb { opacity: 0.25; }
[data-theme="light"] .orb-1 { background: radial-gradient(circle, rgba(255, 94, 0, 0.25) 0%, transparent 70%); }
[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(217, 119, 6, 0.2) 0%, transparent 70%); }
[data-theme="light"] .orb-3 { background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%); }

/* Typography styles using Space Grotesk display headers */
h1, h2, h3, h4, .page-header-title, .sidebar-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-val, code, pre {
  font-family: var(--font-mono);
}

a {
  color: #ff5e00;
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: #ffb300;
}

/* Layout Shell: Sidebar + Content Workspace */
.app-container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* LOGGED-OUT STATE ADJUSTMENTS: Centering the login portal page cleanly without sidebar or header */
html.is-unauthenticated .sidebar,
html.is-unauthenticated aside,
html.is-unauthenticated .page-header-row,
html.is-unauthenticated header,
.app-container.logged-out .sidebar,
.app-container.logged-out aside,
.app-container.logged-out .page-header-row,
.app-container.logged-out header {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.is-unauthenticated .app-container,
.app-container.logged-out {
  display: flex !important;
  width: 100vw !important;
  min-height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #060913 !important;
}

html.is-unauthenticated .main-viewport,
.app-container.logged-out .main-viewport {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
}

html.is-unauthenticated #pages-viewport,
.app-container.logged-out #pages-viewport {
  width: 100% !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#page-compty.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 100vh !important;
}

/* LEFT SIDEBAR PANEL */
.sidebar {
  width: 270px;
  height: 100%;
  position: relative;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.25rem;
  z-index: 10;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.sidebar-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(255, 94, 0, 0.3);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  opacity: 1;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1), max-width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.sidebar-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

/* Sidebar navigation menu links */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.sidebar-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  text-align: left;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.sidebar-menu-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.sidebar-menu-btn-content {
  opacity: 1;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s ease, max-width 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.2s ease;
  transform: translateX(0);
}

.sidebar-menu-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 8px -2px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .sidebar-menu-btn:hover {
  background: rgba(0, 0, 0, 0.02);
  box-shadow: inset 0 0 8px -2px rgba(0, 0, 0, 0.04);
}

/* Active sidebar tab — modern sleek indicator */
.sidebar-menu-btn.active {
  color: #ff5e00;
  background: transparent;
  border: none;
  font-weight: 700;
  box-shadow: none;
}

.sidebar-menu-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background-color: #ff5e00;
  box-shadow: 2px 0 8px rgba(255, 94, 0, 0.4);
  pointer-events: none;
  transition: all 0.2s ease;
}

.sidebar-menu-btn.active::after {
  content: none;
}

[data-theme="light"] .sidebar-menu-btn.active {
  color: #ff5e00;
  box-shadow: 0px 0px 16px -6px rgba(255, 94, 0, 0.15);
}

[data-theme="light"] .sidebar-menu-btn.active::before {
  box-shadow: inset 0 0 10px -2px rgba(255, 94, 0, 0.12);
  background-color: rgba(255, 94, 0, 0.04);
}

[data-theme="light"] .sidebar-menu-btn.active::after {
  border-color: rgba(255, 94, 0, 0.1);
}

.sidebar-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 94, 0, 0.15);
  color: #ff5e00;
}

/* Divider line */
.sidebar-divider {
  height: 1px;
  background: var(--panel-border);
  margin: 1.5rem 0;
}

/* Sidebar Quick Filters widgets */
.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-input-wrapper {
  position: relative;
  width: 100%;
}

.filter-input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Glass-input style wrapper for search box */
.filter-search-box {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.25s ease-in-out;
}

.filter-search-box:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

/* Glass selectors styling */
.filter-select-pill {
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-select-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Sidebar connection status footers */
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
}

.sidebar-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulsePulse 1.8s infinite alternate ease-in-out;
}

@keyframes pulsePulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--success); }
}

/* MAIN VIEWPORT WORKSPACE (DEFAULT: NATURAL PAGE SCROLL) */
.main-viewport {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 100vh;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 0 0 3rem 0;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

#pages-viewport {
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Apply scrollbar thin styling to viewport */
.main-viewport::-webkit-scrollbar, .sidebar-filters::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.main-viewport::-webkit-scrollbar-track, .sidebar-filters::-webkit-scrollbar-track {
  background: transparent;
}
.main-viewport::-webkit-scrollbar-thumb, .sidebar-filters::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}
.main-viewport::-webkit-scrollbar-thumb:hover, .sidebar-filters::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Page Visibility & Animations (CRITICAL FIXED ROUTING SELECTORS) */
.app-page {
  display: none;
  width: 100%;
}

.app-page.active {
  display: block !important;
  width: 100%;
  animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Overline Section Meta Headers */
.overline-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ff5e00;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.page-header-row {
  position: sticky;
  top: 0;
  z-index: 850;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  padding: 1.15rem 2rem;
  margin: 0 0 1.5rem 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(6, 10, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .page-header-row {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-header-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

.page-header-session {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Live Traffic Pulse Widget */
.pulse-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  letter-spacing: 0.02em;
}

.pulse-badge-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pulse-badge-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== SOLID DARK SLATE PANELS (Matching Review Order Popup) ===== */
.glass-panel {
  position: relative;
  border-radius: 24px;
  padding: 2rem;
  background: #020617 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(249, 115, 22, 0.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel::before,
.glass-panel::after {
  display: none !important;
  content: none !important;
}

.glass-panel:hover {
  border-color: rgba(255, 94, 0, 0.3) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(249, 115, 22, 0.1) !important;
}

/* Stats Performance Grid splits to match AI Studio (4-column row + 3-column row) */
.stats-grid-row-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.stats-grid-row-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .stats-grid-row-four {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Stats Cards — Solid Dark Style (Matching Review Order Popup) */
.stat-box {
  position: relative;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  background: #020617 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.stat-box::before,
.stat-box::after {
  display: none !important;
  content: none !important;
}

.stat-box:hover {
  border-color: rgba(255, 94, 0, 0.3) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(249, 115, 22, 0.1) !important;
  transform: none !important;
}

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

.stat-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 94, 0, 0.08);
  border: 1px solid rgba(255, 94, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #ff5e00;
  transition: var(--transition-smooth);
}

.stat-box:hover .stat-icon-wrapper {
  background: rgba(255, 94, 0, 0.12);
  color: #ff5e00;
  border-color: rgba(255, 94, 0, 0.4);
  box-shadow: 0 4px 12px rgba(255, 94, 0, 0.25), inset 0 0 6px rgba(255, 94, 0, 0.15);
  transform: scale(1.1);
}

.stat-val {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.35rem 0;
}

.stat-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.75rem;
  gap: 0.5rem;
}

.stat-subtext {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.stat-percentage-badge {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.stat-percentage-badge.up { color: var(--success); }
.stat-percentage-badge.down { color: var(--error); }

/* Glow Text meta & tiktok classes from AI Studio */
.glow-text-meta {
  color: var(--color-brand-meta) !important;
  text-shadow: 0 0 12px rgba(24, 119, 242, 0.4);
}

.glow-text-tiktok {
  color: var(--color-brand-tiktok) !important;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

/* Allocation & Trend Map Widgets split */
.dashboard-trend-split {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Widget header bar */
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* SVG Chart adjustments */
.chart-container {
  width: 100%;
  height: 250px;
  margin-top: 1rem;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-grid-line {
  stroke: var(--chart-grid);
  stroke-width: 1;
}

.chart-stroke-path {
  fill: none;
  stroke: var(--chart-line);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: drawChart 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chart-area-path {
  fill: url(#chart-gradient);
  opacity: 0.25;
}

#cpa-stroke-path {
  animation: drawChart 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chart-dot {
  fill: var(--bg-color);
  stroke: var(--chart-line);
  stroke-width: 2.5;
  cursor: pointer;
  transition: var(--transition-smooth);
  r: 4;
}

.chart-dot:hover {
  r: 8;
  fill: var(--chart-line);
  filter: drop-shadow(0 0 6px var(--chart-line));
}

/* DONUT CHART COMPONENT */
.donut-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 250px;
  position: relative;
}

.donut-svg {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.donut-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 16;
}

[data-theme="light"] .donut-track {
  stroke: rgba(0, 0, 0, 0.03);
}

.donut-segment-1 {
  fill: none;
  stroke: var(--color-brand-meta); /* Blue - Meta Ads segment */
  stroke-width: 18;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out;
}

.donut-segment-2 {
  fill: none;
  stroke: var(--color-brand-tiktok); /* Cyan - TikTok Ads segment */
  stroke-width: 18;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out;
}

.donut-center-labels {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-label-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.donut-label-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

/* Authentication Portal centered container */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 2rem;
}

/* Auth card with glass card and hover borders */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  font-size: 2.1rem;
  text-align: center;
  margin-bottom: 0.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.auth-card p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Glass input fields from AI Studio */
.form-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

/* Fixes select option tag visibility in dark/light mode */
select.form-input option {
  background-color: #12100e !important;
  color: #f5f5f4 !important;
}

[data-theme="light"] select.form-input option {
  background-color: #ffffff !important;
  color: #1c1917 !important;
}

/* Range input styling (Custom aesthetic sliders) */
:root {
  --slider-track-bg: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  --slider-track-bg: rgba(0, 0, 0, 0.08);
}

.form-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--slider-track-bg);
  border-radius: 10px;
  outline: none;
  margin: 1rem 0;
  cursor: pointer;
}

.form-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 10px;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff5e00;
  margin-top: -6px;
  box-shadow: 0 2px 8px rgba(255, 94, 0, 0.4);
  transition: transform 0.15s ease;
}

.form-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.form-range::-moz-range-track {
  height: 6px;
  border-radius: 10px;
}

.form-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff5e00;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 94, 0, 0.4);
  transition: transform 0.15s ease;
}

.form-range::-moz-range-thumb:hover {
  transform: scale(1.2);
}


/* Buttons with modern fluid hover states */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--btn-gradient-hover);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 94, 0, 0.35);
}

.btn-primary:active {
  transform: translateY(0.5px);
}

.wallet-cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0.65rem 1.25rem !important;
  background: var(--primary-gradient) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.25) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.wallet-cta-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(255, 94, 0, 0.4) !important;
}

.wallet-cta-btn:active {
  transform: translateY(0.5px) !important;
}

/* Animated Premium Button */
@keyframes premiumGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes premiumShimmer {
  0% { transform: translateX(-150%) skewX(-15deg); }
  50% { transform: translateX(250%) skewX(-15deg); }
  100% { transform: translateX(250%) skewX(-15deg); }
}

.btn-premium-animated {
  background: linear-gradient(270deg, #ff3300, #ff8c00, #ff0055, #ff5e00);
  background-size: 300% 300%;
  animation: premiumGradientShift 5s ease infinite;
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.4), inset 0 2px 4px rgba(255,255,255,0.25);
  border: none;
  font-weight: 700;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  color: white;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.btn-premium-animated:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 94, 0, 0.5), inset 0 2px 8px rgba(255,255,255,0.4);
}

.btn-premium-animated:active {
  transform: translateY(1px) scale(0.98);
}

.btn-premium-animated::after {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: premiumShimmer 4s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 94, 0, 0.25);
}

/* --- MODAL DIALOGS DETAILS --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999999 !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex !important;
  opacity: 1 !important;
}

.modal-content {
  width: 95%;
  max-width: 750px;
  max-height: 90vh !important;
  overflow-y: auto !important;
  position: relative;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 94, 0, 0.3);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 94, 0, 0.6);
}

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

.modal-content.wide {
  max-width: 1100px;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.modal-close:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

/* --- WIZARD STEPS ENGINE DETAILS --- */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: stepSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-step-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* Progress bar indicators */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-top: 1.5rem;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 20%;
  background: var(--primary-gradient);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-indicators {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.step-indicator-node {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step-indicator-node.active {
  color: #ff5e00;
}

.step-indicator-node.completed {
  color: var(--success);
}

/* Options Grid for Selection (Objectives & Platforms) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.option-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.option-card:hover {
  border-color: var(--card-hover-border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--card-hover-shadow);
}

.option-card.selected {
  border-color: #ff5e00;
  background: rgba(255, 94, 0, 0.08);
  box-shadow: 0 0 20px rgba(255, 94, 0, 0.15);
}

.option-icon {
  font-size: 2.2rem;
}

.option-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.option-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.option-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Premium Budget Preset Selectors */
.budget-presets {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.preset-pill {
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.preset-pill:hover {
  border-color: rgba(255, 94, 0, 0.3);
  color: var(--text-primary);
}

/* Theme Toggle Button style matching glass design */
.theme-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: scale(1.05) rotate(15deg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.preset-pill.selected {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 10px rgba(255, 94, 0, 0.2);
}

/* Split view layout (inputs + live preview) */
.wizard-split {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.wizard-split-form {
  flex: 1.2;
}

.wizard-split-preview {
  flex: 0.8;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .wizard-split {
    flex-direction: column;
  }
}

/* Facebook Live Preview Card */
.fb-preview-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.fb-preview-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fb-preview-card {
  background: var(--fb-card-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--fb-text);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.fb-user-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.fb-user-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.fb-user-info {
  display: flex;
  flex-direction: column;
}

.fb-user-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.fb-user-status {
  font-size: 0.75rem;
  color: var(--fb-subtext);
}

.fb-ad-copy {
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-line;
  word-break: break-word;
}

.fb-ad-media {
  border-radius: 8px;
  height: 180px;
  background: linear-gradient(135deg, rgba(255, 94, 0, 0.08) 0%, rgba(255, 179, 0, 0.08) 100%);
  border: 1px dashed var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.fb-ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.fb-ad-img.active {
  display: block;
}

.fb-ad-headline-panel {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 8px 8px;
}

.fb-ad-link-text {
  font-size: 0.75rem;
  color: var(--fb-subtext);
  text-transform: uppercase;
}

.fb-ad-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.fb-ad-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  color: var(--fb-text);
  cursor: pointer;
}

/* Digital Invoice Styling for Step 5 Checkout */
.invoice-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--panel-border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

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

.invoice-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.invoice-row.total {
  font-size: 1.4rem;
  font-weight: 800;
  border-top: 1px solid var(--panel-border);
  padding-top: 1rem;
  margin-top: 1rem;
  color: var(--success);
}

/* Liquid/Glow Loading & Success Screens */
.loading-step-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1.5rem;
}

.liquid-spinner {
  width: 80px;
  height: 80px;
  position: relative;
}

.liquid-spinner::before, .liquid-spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  background: var(--primary-gradient);
  animation: liquidRotate 3s infinite linear;
}

.liquid-spinner::after {
  animation-delay: -1.5s;
  opacity: 0.5;
  border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
}

@keyframes liquidRotate {
  0% { transform: rotate(0deg); border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  50% { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; }
  100% { transform: rotate(360deg); border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
}

/* Wizard footer navigations */
.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--panel-border);
}

/* Page transitions animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Option selection cards with organic liquid wave on hover */
.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.12) 0%, transparent 65%);
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  pointer-events: none;
}

.option-card:hover::before {
  transform: scale(2.8);
}

.option-card > * {
  position: relative;
  z-index: 1;
}

/* Listings Tables */
.campaigns-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.campaigns-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.campaigns-table th, .campaigns-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--panel-border);
}

.campaigns-table th {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.campaigns-table td {
  font-size: 0.95rem;
}

.campaigns-table tbody tr {
  animation: tableRowEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tableRowEntrance {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}

.badge-active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.badge-completed {
  background: rgba(59, 130, 246, 0.12);
  color: var(--info);
}

/* Toast System */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 1rem 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: var(--transition-smooth);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success { border-bottom: 4px solid var(--success); }
.toast.error { border-bottom: 4px solid var(--error); }

/* Responsive Mobile & Tablet Rules are centralized in console.css */

/* Modal Popup Fixes (Prevents whole modal container from shifting/lighting up on hover) */
.glass-panel.modal-content:hover {
  transform: none !important;
  box-shadow: var(--shadow-lg) !important;
}

.glass-panel.modal-content:hover::before {
  background-color: rgba(255, 255, 255, 0.02) !important;
  box-shadow: inset 0 0 12px -2px rgba(255, 255, 255, 0.35) !important;
}

[data-theme="light"] .glass-panel.modal-content:hover::before {
  background-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: inset 0 0 12px -2px rgba(0, 0, 0, 0.04) !important;
}

/* Light mode modal backdrop overlay (gives dark text high readability contrast) */
[data-theme="light"] .modal {
  background: rgba(240, 240, 238, 0.8) !important;
}

/* Option Cards unified icon wrapper styles */
.option-icon-wrapper-unified {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.option-card:hover .option-icon-wrapper-unified {
  border-color: var(--card-hover-border);
  color: var(--text-primary);
}

.option-card.selected .option-icon-wrapper-unified {
  background: rgba(255, 94, 0, 0.12);
  border-color: rgba(255, 94, 0, 0.25);
  color: #ff5e00;
  box-shadow: 0 0 10px rgba(255, 94, 0, 0.15);
}

[data-theme="light"] .option-icon-wrapper-unified {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .option-card.selected .option-icon-wrapper-unified {
  background: rgba(255, 94, 0, 0.08);
  border-color: rgba(255, 94, 0, 0.2);
  color: #ff5e00;
}

/* Custom platform multi-select checkbox */
.platform-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  flex-shrink: 0;
}

.platform-checkbox::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.platform-card.selected .platform-checkbox::after {
  opacity: 1;
}

/* Selected state colors per platform */
.platform-card.selected[data-value="Facebook"] {
  border-color: #1877f2 !important;
  background: rgba(24, 119, 242, 0.05) !important;
}

.platform-card.selected[data-value="Facebook"] .platform-checkbox {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
}

.platform-card.selected[data-value="Instagram"] {
  border-color: #e1306c !important;
  background: rgba(225, 48, 108, 0.05) !important;
}

.platform-card.selected[data-value="Instagram"] .platform-checkbox {
  background: #e1306c !important;
  border-color: #e1306c !important;
}

.platform-card.selected[data-value="TikTok"] {
  border-color: #00f2fe !important;
  background: rgba(0, 242, 254, 0.04) !important;
}

.platform-card.selected[data-value="TikTok"] .platform-checkbox {
  background: #00f2fe !important;
  border-color: #00f2fe !important;
}

.platform-card.selected[data-value="TikTok"] .platform-checkbox::after {
  border-color: black !important;
}

/* Light mode overrides for platform cards */
[data-theme="light"] .platform-card {
  background: rgba(0, 0, 0, 0.01) !important;
}

[data-theme="light"] .platform-card.selected[data-value="Facebook"] {
  background: rgba(24, 119, 242, 0.04) !important;
}

[data-theme="light"] .platform-card.selected[data-value="Instagram"] {
  background: rgba(225, 48, 108, 0.04) !important;
}

[data-theme="light"] .platform-card.selected[data-value="TikTok"] {
  background: rgba(0, 242, 254, 0.04) !important;
  border-color: rgba(0, 242, 254, 0.5) !important;
}

[data-theme="light"] .platform-checkbox {
  border-color: rgba(0, 0, 0, 0.15);
  background: white;
}

/* Subtle background hover effect on platform selection button cards */
.platform-card:not(.selected):hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--card-hover-border) !important;
}

[data-theme="light"] .platform-card:not(.selected):hover {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Step 3: Creative switch tabs & post selection grid styles */
.creative-tabs-segmented {
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.creative-tab-btn {
  font-family: var(--font-sans);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.creative-tab-btn:hover:not(.active) {
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="light"] .creative-tabs-segmented {
  background: rgba(0, 0, 0, 0.03) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

[data-theme="light"] .creative-tab-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.02) !important;
}


.media-dropzone:hover {
  border-color: var(--color-brand-meta) !important;
  background: rgba(24, 119, 242, 0.03) !important;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.05);
}

.existing-post-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  transition: all 0.2s ease;
}

.existing-post-item:hover {
  border-color: var(--card-hover-border);
  background: rgba(255, 255, 255, 0.03);
}

.existing-post-item.selected {
  border-color: #ff5e00 !important;
  background: rgba(255, 94, 0, 0.05) !important;
  box-shadow: 0 0 10px rgba(255, 94, 0, 0.1);
}

.existing-post-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--panel-border);
}

.existing-post-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

[data-theme="light"] .existing-post-item {
  background: rgba(0, 0, 0, 0.01);
}

[data-theme="light"] .existing-post-item:hover {
  background: white;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .existing-post-item.selected {
  background: rgba(255, 94, 0, 0.03) !important;
}

/* Custom select option states */
.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.custom-select-option.selected {
  background: rgba(255, 94, 0, 0.12) !important;
  color: #ff5e00 !important;
  font-weight: 700;
}

/* Custom select light theme overrides */
[data-theme="light"] .custom-select-options {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .custom-select-option:hover {
  background: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .custom-select-option.selected {
  background: rgba(255, 94, 0, 0.08) !important;
  color: #ff5e00 !important;
}

/* COLLAPSIBLE SIDEBAR & HEADER DROPDOWN STYLES */

/* Collapsed sidebar classes */
.sidebar {
  width: 260px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box;
  overflow-x: hidden;
  will-change: width, padding;
}

.sidebar.collapsed {
  width: 76px !important;
  padding: 1.5rem 0.5rem !important;
}

.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .sidebar-menu-btn-content {
  opacity: 0;
  max-width: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  display: none !important;
}

.sidebar.collapsed .sidebar-badge {
  opacity: 0;
  transform: scale(0);
  display: none;
}

.sidebar-header {
  transition: margin-bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1), justify-content 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar.collapsed .sidebar-header {
  gap: 0;
  justify-content: center;
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

.sidebar.collapsed .sidebar-logo-icon {
  margin: 0 auto;
  display: flex !important;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar.collapsed .sidebar-logo-icon:hover {
  transform: scale(1.08);
}

/* Sidebar toggle button styling - on desktop toggle is via 3-bars header button like mobile */
.sidebar-toggle-btn {
  display: none !important;
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 94, 0, 0.12);
  border-color: rgba(255, 94, 0, 0.4);
  color: #ff5e00;
  transform: scale(1.05);
}

[data-theme="light"] .sidebar-toggle-btn {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

.sidebar.collapsed .sidebar-menu-btn {
  justify-content: center;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0 auto;
  gap: 0;
}

.sidebar.collapsed .sidebar-menu-btn.active {
  background: rgba(255, 94, 0, 0.12) !important;
  border: 1px solid rgba(255, 94, 0, 0.3) !important;
  color: #ff5e00 !important;
  box-shadow: 0 0 16px rgba(255, 94, 0, 0.15) !important;
}

.sidebar.collapsed .sidebar-menu-btn.active::before {
  display: none !important;
}

.sidebar.collapsed .sidebar-menu-icon {
  margin: 0;
  font-size: 1.25rem;
}

.sidebar.collapsed .sidebar-footer span {
  display: none !important;
}

.sidebar.collapsed .sidebar-status-row {
  justify-content: center;
  gap: 0;
}

.sidebar.collapsed .pulse-dot {
  margin: 0 auto;
}

/* Header Action Buttons & Profile */
.header-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="light"] .header-action-btn {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
}
[data-theme="light"] .header-action-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Header Dropdowns */
.header-dropdown-wrapper {
  position: relative;
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  background: #181614;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: none;
  flex-direction: column;
  z-index: 100;
  min-width: 160px;
  overflow: hidden;
  transform: translateY(10px);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

[data-theme="light"] .header-dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.header-dropdown-menu.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

/* Dropdown items */
.header-dropdown-menu .dropdown-item {
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

[data-theme="light"] .header-dropdown-menu .dropdown-item {
  color: #374151;
}

.header-dropdown-menu .dropdown-item:hover {
  background: rgba(255, 94, 0, 0.08);
  color: #ff5e00;
}

.header-dropdown-menu .dropdown-item.active {
  color: #ff5e00;
  font-weight: 600;
  background: rgba(255, 94, 0, 0.05);
}

/* User Avatar btn */
.user-avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--panel-border);
  transition: border-color 0.2s ease;
}
.user-avatar-btn:hover {
  border-color: #ff5e00;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Notification badge */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* OFF-CANVAS DRAWER NOTIFICATIONS */
.off-canvas-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: var(--card-bg);
  border-left: 1px solid var(--panel-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.off-canvas-drawer.active {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  display: block;
  opacity: 1;
}

[data-theme="light"] .drawer-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .drawer-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.drawer-close:hover {
  color: #ff5e00;
  background: rgba(255, 94, 0, 0.1);
  border-color: rgba(255, 94, 0, 0.25);
}

[data-theme="light"] .drawer-close {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

[data-theme="light"] .drawer-section-title {
  color: rgba(0, 0, 0, 0.55);
}

.notif-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 14px;
  background: #1e1b18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.notif-item.unread {
  background: #251e1a;
  border-color: rgba(255, 94, 0, 0.3);
}

.notif-item:hover {
  transform: translateY(-1px);
  background: #282420;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .notif-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .notif-item.unread {
  background: #fff9f5;
  border-color: rgba(255, 94, 0, 0.35);
}

[data-theme="light"] .notif-item:hover {
  background: #faf7f4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.notif-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.notif-icon-box.success { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.notif-icon-box.warning { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.notif-icon-box.info { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.notif-icon-box.danger { background: rgba(239, 68, 68, 0.15); color: #EF6C00; }

.notif-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.notif-text {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.notif-text strong {
  color: var(--text-primary);
}

.notif-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .drawer-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Sidebar Campaign CTA collapsed overrides */
.sidebar.collapsed #sidebar-client-cta {
  padding: 0.5rem 0 1rem 0;
}

.sidebar.collapsed .btn-wizard-trigger-sidebar {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.sidebar.collapsed .btn-wizard-trigger-sidebar .sidebar-menu-btn-content {
  display: none !important;
}






/* Solid Panel (Alternative to Glass Panel) */
.solid-panel { 
  position: relative; 
  border-radius: 24px; 
  background: #121214; 
  border: 1px solid rgba(255, 255, 255, 0.05); 
  box-shadow: 0px 4px 20px -8px rgba(0, 0, 0, 0.5); 
  transition: all 0.3s ease; 
}
[data-theme="light"] .solid-panel { 
  background: #f8fafc; 
  border-color: rgba(0, 0, 0, 0.05); 
  box-shadow: 0px 4px 20px -8px rgba(0, 0, 0, 0.05); 
}
.solid-panel:hover { 
  box-shadow: 0px 8px 24px -6px rgba(0, 0, 0, 0.6); 
}
[data-theme="light"] .solid-panel:hover { 
  box-shadow: 0px 8px 24px -6px rgba(0, 0, 0, 0.1); 
}

/* =========================================================
   UNIVERSAL APP-WIDE SCROLLBAR SYSTEM (LIGHT & DARK MODE)
   ========================================================= */

/* Color Scheme Enforcement */
:root:not([data-theme="light"]),
[data-theme="dark"] {
  color-scheme: dark !important;
}

[data-theme="light"],
html[data-theme="light"],
body[data-theme="light"] {
  color-scheme: light !important;
}

/* Firefox Scrollbars */
* {
  scrollbar-width: thin;
}

:root:not([data-theme="light"]) *,
[data-theme="dark"] * {
  scrollbar-color: #ff5e00 rgba(15, 23, 42, 0.4);
}

[data-theme="light"] * {
  scrollbar-color: #ea580c transparent;
}

/* Webkit Scrollbars (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

/* GLOBAL MANDATORY TRANSPARENT SCROLLBAR TRACKS & CORNERS & BUTTONS */
::-webkit-scrollbar-track,
*::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Hide dated scrollbar arrow buttons across all themes */
::-webkit-scrollbar-button,
*::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Dark Mode Scrollbar Thumb */
:root:not([data-theme="light"]) ::-webkit-scrollbar-thumb,
:root:not([data-theme="light"]) *::-webkit-scrollbar-thumb,
[data-theme="dark"] ::-webkit-scrollbar-thumb,
[data-theme="dark"] *::-webkit-scrollbar-thumb {
  background: #ff5e00 !important;
  border-radius: 10px !important;
}

:root:not([data-theme="light"]) ::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #ea580c !important;
}

/* Light Mode Scrollbar Thumb - Floating Orange Pill */
[data-theme="light"] ::-webkit-scrollbar-thumb,
[data-theme="light"] *::-webkit-scrollbar-thumb {
  background: rgba(234, 88, 12, 0.65) !important;
  border-radius: 10px !important;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover,
[data-theme="light"] *::-webkit-scrollbar-thumb:hover {
  background: rgba(234, 88, 12, 0.95) !important;
}

/* ==========================================================================
   GLOBAL GLASS EFFECT REMOVAL (SOLID DESIGN SYSTEM)
   ========================================================================== */
*, *::before, *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Hide background blur orbs */
.glass-bg-orbs, .orb {
  display: none !important;
}
