/* ==========================================================================
   Member Pro - Multi-Theme Design System (100% Matching Showroom)
   Supported 8 Industry Modern Themes
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800&family=Fira+Code:wght@500;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&family=Outfit:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Poppins:wght@400;600;700;800&family=Sora:wght@400;600;700;800&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* Default / Fallback CSS Variables */
:root {
  --bg-app: #0b0e11;
  --bg-sidebar: #181a20;
  --bg-card: #1e2329;
  --bg-card-hover: #2b313a;
  --border-card: rgba(240, 185, 11, 0.25);
  --border-card-hover: rgba(240, 185, 11, 0.7);
  --text-main: #eaecef;
  --text-muted: #b7bdc6;
  --text-dim: #848e9c;
  --primary: #f0b90b;
  --primary-glow: rgba(240, 185, 11, 0.45);
  --accent: #0ecb81;
  --accent-glow: rgba(14, 203, 129, 0.35);
  --badge-bg: rgba(240, 185, 11, 0.15);
  --font-family: 'Outfit', sans-serif;
  --btn-text: #000000;
  --card-radius: 14px;
  --blur-val: 16px;
}

/* 1. Vercel / Linear Carbon Obsidian */
html[data-theme="theme-1"], [data-theme="theme-1"] {
  --bg-app: #000000;
  --bg-sidebar: #0a0a0a;
  --bg-card: #121212;
  --bg-card-hover: #1c1c1c;
  --border-card: rgba(255, 255, 255, 0.15);
  --border-card-hover: rgba(255, 255, 255, 0.5);
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --primary: #ffffff;
  --primary-glow: rgba(255, 255, 255, 0.35);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --badge-bg: rgba(255, 255, 255, 0.15);
  --font-family: 'Inter', sans-serif;
  --btn-text: #000000;
  --card-radius: 14px;
  --blur-val: 16px;
}

/* 2. Cyberpunk Neon / FlowPilot Midnight Obsidian */
html[data-theme="theme-2"], [data-theme="theme-2"] {
  --bg-app: #050a14;
  --bg-sidebar: #0a1122;
  --bg-card: #0e172e;
  --bg-card-hover: #152244;
  --border-card: rgba(0, 242, 254, 0.3);
  --border-card-hover: rgba(0, 242, 254, 0.8);
  --text-main: #f0fdfa;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.5);
  --accent: #ff2a85;
  --accent-glow: rgba(255, 42, 133, 0.45);
  --badge-bg: rgba(0, 242, 254, 0.15);
  --font-family: 'Space Grotesk', sans-serif;
  --btn-text: #050a14;
  --card-radius: 14px;
  --blur-val: 16px;
}

/* 3. OpenAI / ChatGPT Minimalist Slate */
html[data-theme="theme-3"], [data-theme="theme-3"] {
  --bg-app: #202123;
  --bg-sidebar: #171717;
  --bg-card: #2d2f36;
  --bg-card-hover: #373942;
  --border-card: rgba(255, 255, 255, 0.12);
  --border-card-hover: rgba(16, 163, 127, 0.6);
  --text-main: #ececf1;
  --text-muted: #c5c5d2;
  --text-dim: #8e8ea0;
  --primary: #10a37f;
  --primary-glow: rgba(16, 163, 127, 0.45);
  --accent: #19c37d;
  --accent-glow: rgba(25, 195, 125, 0.35);
  --badge-bg: rgba(16, 163, 127, 0.15);
  --font-family: 'Sora', sans-serif;
  --btn-text: #ffffff;
  --card-radius: 14px;
  --blur-val: 16px;
}

/* 4. Supabase Emerald Hacker Space */
html[data-theme="theme-4"], [data-theme="theme-4"] {
  --bg-app: #121212;
  --bg-sidebar: #171717;
  --bg-card: #1c1c1c;
  --bg-card-hover: #262626;
  --border-card: rgba(62, 207, 142, 0.25);
  --border-card-hover: rgba(62, 207, 142, 0.7);
  --text-main: #ededed;
  --text-muted: #a0a0a0;
  --text-dim: #707070;
  --primary: #3ecf8e;
  --primary-glow: rgba(62, 207, 142, 0.45);
  --accent: #24b47e;
  --accent-glow: rgba(36, 180, 126, 0.35);
  --badge-bg: rgba(62, 207, 142, 0.15);
  --font-family: 'JetBrains Mono', monospace;
  --btn-text: #000000;
  --card-radius: 14px;
  --blur-val: 16px;
}

/* 5. GitHub Dark Pro (Dimmed Space) */
html[data-theme="theme-5"], [data-theme="theme-5"] {
  --bg-app: #0d1117;
  --bg-sidebar: #161b22;
  --bg-card: #1c2128;
  --bg-card-hover: #272d36;
  --border-card: rgba(48, 54, 61, 0.9);
  --border-card-hover: rgba(88, 166, 255, 0.6);
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --primary: #58a6ff;
  --primary-glow: rgba(88, 166, 255, 0.45);
  --accent: #3fb950;
  --accent-glow: rgba(63, 185, 80, 0.35);
  --badge-bg: rgba(88, 166, 255, 0.15);
  --font-family: 'Inter', sans-serif;
  --btn-text: #0d1117;
  --card-radius: 14px;
  --blur-val: 16px;
}

/* 7. Apple Titanium Dark (WWDC Pro) */
html[data-theme="theme-7"], [data-theme="theme-7"] {
  --bg-app: #161618;
  --bg-sidebar: #1e1e22;
  --bg-card: #26262b;
  --bg-card-hover: #323238;
  --border-card: rgba(255, 255, 255, 0.15);
  --border-card-hover: rgba(41, 151, 255, 0.6);
  --text-main: #f5f5f7;
  --text-muted: #a1a1a6;
  --text-dim: #6e6e73;
  --primary: #2997ff;
  --primary-glow: rgba(41, 151, 255, 0.45);
  --accent: #30d158;
  --accent-glow: rgba(48, 209, 88, 0.35);
  --badge-bg: rgba(41, 151, 255, 0.15);
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --btn-text: #ffffff;
  --card-radius: 14px;
  --blur-val: 16px;
}

/* 8. Binance / TradingView Ultra Gold */
html[data-theme="theme-8"], [data-theme="theme-8"] {
  --bg-app: #0b0e11;
  --bg-sidebar: #181a20;
  --bg-card: #1e2329;
  --bg-card-hover: #2b313a;
  --border-card: rgba(240, 185, 11, 0.25);
  --border-card-hover: rgba(240, 185, 11, 0.7);
  --text-main: #eaecef;
  --text-muted: #b7bdc6;
  --text-dim: #848e9c;
  --primary: #f0b90b;
  --primary-glow: rgba(240, 185, 11, 0.45);
  --accent: #0ecb81;
  --accent-glow: rgba(14, 203, 129, 0.35);
  --badge-bg: rgba(240, 185, 11, 0.15);
  --font-family: 'Outfit', sans-serif;
  --btn-text: #000000;
  --card-radius: 14px;
  --blur-val: 16px;
}

/* 16. Minimalist Cream / Notion Light */
html[data-theme="theme-16"], [data-theme="theme-16"] {
  --bg-app: #fbfbfa;
  --bg-sidebar: #f7f6f3;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f0eb;
  --border-card: rgba(0, 0, 0, 0.12);
  --border-card-hover: rgba(35, 131, 226, 0.5);
  --text-main: #37352f;
  --text-muted: #787774;
  --text-dim: #9b9a97;
  --primary: #2383e2;
  --primary-glow: rgba(35, 131, 226, 0.35);
  --accent: #0f7b6c;
  --accent-glow: rgba(15, 123, 108, 0.25);
  --badge-bg: rgba(35, 131, 226, 0.15);
  --font-family: 'Inter', sans-serif;
  --btn-text: #ffffff;
  --card-radius: 14px;
  --blur-val: 16px;
}

/* 17. Skedl Clean Light — minimal SaaS, fokus kerja tanpa efek berat */
html[data-theme="theme-17"], [data-theme="theme-17"] {
  --bg-app: #f8fafc;
  --bg-sidebar: #09090b;
  --bg-card: #ffffff;
  --bg-card-hover: #f4f4f5;
  --border-card: rgba(15, 23, 42, 0.12);
  --border-card-hover: rgba(24, 24, 27, 0.45);
  --text-main: #101828;
  --text-muted: #667085;
  --text-dim: #98a2b3;
  --primary: #18181b;
  --primary-glow: rgba(24, 24, 27, 0.18);
  --accent: #16a36a;
  --accent-glow: rgba(22, 163, 106, 0.2);
  --badge-bg: rgba(24, 24, 27, 0.08);
  --theme-success: #16a36a;
  --theme-success-soft: rgba(22, 163, 106, 0.14);
  --theme-alert: #e11d48;
  --theme-alert-soft: rgba(225, 29, 72, 0.13);
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --btn-text: #ffffff;
  --card-radius: 12px;
  --blur-val: 0px;
}

/* Theme 17 hanya memakai hitam, putih, abu, hijau, dan merah-pink. */
html[data-theme="theme-17"] .top-header {
  background: var(--bg-card) !important;
}

html[data-theme="theme-17"] .pro-app-hero {
  background: var(--bg-card) !important;
  border-color: var(--border-card) !important;
  box-shadow: 0 8px 20px rgba(24, 24, 27, 0.08) !important;
}

html[data-theme="theme-17"] .pro-app-hero::after {
  display: none;
}

html[data-theme="theme-17"] .pro-app-hero .pro-stat-chip,
html[data-theme="theme-17"] .pro-app-hero .pro-segmented-tabs {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-card) !important;
}

html[data-theme="theme-17"] .pro-app-hero .pro-filter-tab {
  color: var(--text-main) !important;
}

html[data-theme="theme-17"] .pro-app-hero .pro-filter-tab:hover {
  background: var(--bg-card) !important;
}

html[data-theme="theme-17"] .pro-app-hero .pro-filter-tab.active {
  background: var(--primary) !important;
  color: var(--btn-text) !important;
  box-shadow: none !important;
}

html[data-theme="theme-17"] .pro-app-hero .form-input {
  background: var(--bg-card) !important;
  border-color: var(--border-card) !important;
  color: var(--text-main) !important;
}

/* Content Hub mempertahankan struktur panel operasionalnya, tetapi surface
   gelap warisan tidak boleh membawa teks gelap saat tema terang dipilih. */
html[data-theme="theme-17"] .ch-live-queue-hero-sticky,
html[data-theme="theme-17"] #ch-live-queue-hero-container .ch-studio-card,
html[data-theme="theme-17"] .ch-studio-card[style*="background:rgba(0,0,0"],
html[data-theme="theme-17"] .ch-studio-card[style*="background: rgba(0,0,0"] {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border-card) !important;
  box-shadow: 0 8px 20px rgba(24, 24, 27, 0.08) !important;
}

html[data-theme="theme-17"] .ch-history-day-header,
html[data-theme="theme-17"] .ch-table th {
  background: var(--bg-card-hover) !important;
  color: var(--text-main) !important;
  border-color: var(--border-card) !important;
}

html[data-theme="theme-17"] #wasphere-logged-out-view {
  background: var(--bg-card) !important;
  box-shadow: 0 8px 20px rgba(24, 24, 27, 0.08) !important;
}

html[data-theme="theme-17"] #wasphere-logged-out-view > div[style*="display: grid"] > div {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-card) !important;
}

/* FlowPilot PO: angka, peringatan, dan kartu detail harus memakai permukaan
   terang yang sama; data perhitungan/tombol tidak disentuh. */
html[data-theme="theme-17"] .po-hero-card {
  background: var(--bg-card) !important;
  border-color: var(--border-card) !important;
  box-shadow: 0 8px 20px rgba(24, 24, 27, 0.08) !important;
}

html[data-theme="theme-17"] .po-hero-card [style*="background:rgba(0,0,0"],
html[data-theme="theme-17"] .po-hero-card [style*="background: rgba(0,0,0"],
html[data-theme="theme-17"] #page-flowpilot-po .card-box [style*="background:rgba(0,0,0"],
html[data-theme="theme-17"] #page-flowpilot-po .card-box [style*="background: rgba(0,0,0"] {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-card) !important;
  color: var(--text-main) !important;
}

html[data-theme="theme-17"] .po-progress-fill {
  background: var(--theme-success) !important;
}

html[data-theme="theme-17"] .sidebar {
  border-right-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="theme-17"] .sidebar .nav-section-label {
  color: #a3a3a3 !important;
}

html[data-theme="theme-17"] .sidebar .nav-item {
  color: #d4d4d8 !important;
}

html[data-theme="theme-17"] .sidebar .nav-item:hover {
  background: #27272a !important;
  color: #ffffff !important;
  border-color: #3f3f46 !important;
}

html[data-theme="theme-17"] .sidebar .nav-item.active,
html[data-theme="theme-17"] .sidebar .nav-item.admin-active {
  background: #ffffff !important;
  color: #18181b !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
}

/* Kartu produk lama memakai gradient gelap inline. Tema terang harus selalu
   memakai permukaan terang agar teks dan aksi terbaca tegas. */
html[data-theme="theme-17"] .app-card,
html[data-theme="theme-17"] .product-card,
html[data-theme="theme-17"] .app-download-card,
html[data-theme="theme-17"] .pro-app-card {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border-card) !important;
  box-shadow: 0 8px 20px rgba(24, 24, 27, 0.08) !important;
}

html[data-theme="theme-17"] .app-card *,
html[data-theme="theme-17"] .product-card *,
html[data-theme="theme-17"] .app-download-card *,
html[data-theme="theme-17"] .pro-app-card * {
  text-shadow: none !important;
}

html[data-theme="theme-17"] .app-card .app-title,
html[data-theme="theme-17"] .product-card .app-title,
html[data-theme="theme-17"] .app-card h3,
html[data-theme="theme-17"] .product-card h3,
html[data-theme="theme-17"] .app-card strong,
html[data-theme="theme-17"] .product-card strong,
html[data-theme="theme-17"] .pro-app-card h3,
html[data-theme="theme-17"] .pro-app-card strong {
  color: var(--text-main) !important;
}

html[data-theme="theme-17"] .app-card p,
html[data-theme="theme-17"] .product-card p,
html[data-theme="theme-17"] .app-card .app-desc,
html[data-theme="theme-17"] .product-card .app-desc,
html[data-theme="theme-17"] .pro-app-card p {
  color: var(--text-muted) !important;
}

html[data-theme="theme-17"] .app-card .license-box,
html[data-theme="theme-17"] .product-card .license-box,
html[data-theme="theme-17"] .app-card .license-key-box,
html[data-theme="theme-17"] .product-card .license-key-box,
html[data-theme="theme-17"] .pro-app-card .pro-app-terminal {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-card) !important;
}

html[data-theme="theme-17"] .badge-level-1,
html[data-theme="theme-17"] .ch-tablet-connection-badge.is-ready,
html[data-theme="theme-17"] .ch-nav-hp-status.is-ready {
  background: var(--theme-success-soft) !important;
  color: var(--theme-success) !important;
  border-color: var(--theme-success) !important;
}

html[data-theme="theme-17"] .badge-pending,
html[data-theme="theme-17"] .ch-tablet-connection-badge.is-attention,
html[data-theme="theme-17"] .ch-nav-hp-status.is-attention {
  background: var(--theme-alert-soft) !important;
  color: var(--theme-alert) !important;
  border-color: var(--theme-alert) !important;
}

html[data-theme="theme-17"] .badge-plat-fb,
html[data-theme="theme-17"] .badge-plat-tiktok,
html[data-theme="theme-17"] .badge-plat-shopee {
  background: var(--theme-alert-soft);
  color: var(--theme-alert);
  border-color: var(--theme-alert);
}

/* Komponen lama masih memiliki beberapa aksen biru/kuning inline. Pada tema
   ini dipetakan ke warna perhatian yang sama agar palet tidak melebar. */
html[data-theme="theme-17"] [style*="color:#3b82f6"],
html[data-theme="theme-17"] [style*="color: #3b82f6"],
html[data-theme="theme-17"] [style*="color:#60a5fa"],
html[data-theme="theme-17"] [style*="color: #60a5fa"],
html[data-theme="theme-17"] [style*="color:#38bdf8"],
html[data-theme="theme-17"] [style*="color: #38bdf8"],
html[data-theme="theme-17"] [style*="color:#06b6d4"],
html[data-theme="theme-17"] [style*="color: #06b6d4"],
html[data-theme="theme-17"] [style*="color:#f59e0b"],
html[data-theme="theme-17"] [style*="color: #f59e0b"],
html[data-theme="theme-17"] [style*="color:#fbbf24"],
html[data-theme="theme-17"] [style*="color: #fbbf24"],
html[data-theme="theme-17"] [style*="color:#fb923c"],
html[data-theme="theme-17"] [style*="color: #fb923c"] {
  color: var(--theme-alert) !important;
}

html[data-theme="theme-17"] [style*="background:rgba(59,130,246"],
html[data-theme="theme-17"] [style*="background: rgba(59,130,246"],
html[data-theme="theme-17"] [style*="background:rgba(56,189,248"],
html[data-theme="theme-17"] [style*="background: rgba(56,189,248"],
html[data-theme="theme-17"] [style*="background:rgba(6,182,212"],
html[data-theme="theme-17"] [style*="background: rgba(6,182,212"],
html[data-theme="theme-17"] [style*="background:rgba(245,158,11"],
html[data-theme="theme-17"] [style*="background: rgba(245,158,11"] {
  background: var(--theme-alert-soft) !important;
}

html[data-theme="theme-17"] [style*="border-color:#3b82f6"],
html[data-theme="theme-17"] [style*="border-color: #3b82f6"],
html[data-theme="theme-17"] [style*="border-color:#60a5fa"],
html[data-theme="theme-17"] [style*="border-color: #60a5fa"],
html[data-theme="theme-17"] [style*="border-color:#38bdf8"],
html[data-theme="theme-17"] [style*="border-color: #38bdf8"],
html[data-theme="theme-17"] [style*="border-color:#f59e0b"],
html[data-theme="theme-17"] [style*="border-color: #f59e0b"] {
  border-color: var(--theme-alert) !important;
}

html[data-theme="theme-17"] [style*="linear-gradient"][style*="#3b82f6"],
html[data-theme="theme-17"] [style*="linear-gradient"][style*="#06b6d4"],
html[data-theme="theme-17"] [style*="linear-gradient"][style*="#f59e0b"] {
  background: var(--theme-alert) !important;
  color: var(--btn-text) !important;
  box-shadow: none !important;
}

/* ================= GLOBAL RESETS & STYLING ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-app) !important;
  color: var(--text-main) !important;
  font-family: var(--font-family) !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body, button, input, select, textarea, table, th, td, h1, h2, h3, h4, h5, h6, .nav-item, .stat-value, .stat-label {
  font-family: var(--font-family) !important;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ================= SIDEBAR ================= */
.sidebar {
  width: 270px;
  background: var(--bg-sidebar) !important;
  border-right: 1px solid var(--border-card) !important;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  flex-shrink: 0;
  z-index: 100;
  overflow-y: auto;
  /* Jangan animasikan semua properti saat ukuran jendela browser berubah. */
  transition: width 0.25s ease, transform 0.25s ease;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 13px;
  margin-bottom: 12px;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--card-radius);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary) !important;
  color: var(--btn-text) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 0 14px var(--primary-glow);
  overflow: hidden;
}

.brand-logo img,
.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main) !important;
}

.brand-badge {
  font-size: 10px;
  background: var(--badge-bg) !important;
  color: var(--primary) !important;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
}

.nav-section-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-dim) !important;
  padding: 10px 14px 4px 14px;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-muted) !important;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent !important;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--bg-card-hover) !important;
  color: var(--text-main) !important;
  border-color: var(--border-card) !important;
}

.nav-item.active, .nav-item.admin-active {
  background: var(--bg-card) !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 14px var(--primary-glow);
  font-weight: 700;
}

.nav-item svg {
  width: 17px;
  height: 17px;
}

.sidebar-user {
  padding: 12px 14px;
  margin-top: auto;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--card-radius);
  background: var(--bg-card) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary) !important;
  color: var(--btn-text) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main) !important;
}

.user-status {
  font-size: 11px;
  color: var(--text-muted) !important;
}

.user-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent) !important;
  display: inline-block;
}

/* ================= MAIN WRAPPER & TOP HEADER ================= */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-app) !important;
  min-width: 0;
}

.mobile-toggle-btn {
  display: none;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  color: var(--text-main) !important;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.top-header {
  min-height: 64px;
  background: var(--bg-sidebar) !important;
  border-bottom: 1px solid var(--border-card) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
  z-index: 90;
  flex-wrap: wrap;
}

.header-title-area {
  min-width: 0;
}

.header-title-area h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main) !important;
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-title-area p {
  font-size: 12px;
  color: var(--text-muted) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Theme Selector Box */
.theme-selector-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  padding: 5px 10px;
  border-radius: 10px;
}

.theme-selector-select {
  background: transparent !important;
  color: var(--text-main) !important;
  border: none;
  font-family: var(--font-family) !important;
  font-size: 11.5px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  max-width: 170px;
}

.theme-selector-select option {
  background: var(--bg-sidebar) !important;
  color: var(--text-main) !important;
}

.role-switcher-box {
  display: flex;
  background: var(--bg-card) !important;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-card) !important;
}

.role-btn {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: transparent !important;
  color: var(--text-muted) !important;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.role-btn.active-buyer, .role-btn.active-admin {
  background: var(--primary) !important;
  color: var(--btn-text) !important;
  box-shadow: 0 0 12px var(--primary-glow);
}

.btn-icon {
  border: 1px solid var(--border-card) !important;
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 11.5px;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.ref-quick-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main) !important;
}

/* ================= PAGE CONTENT & CARDS ================= */
.page-content {
  padding: 24px 28px;
  flex: 1;
  overflow-y: auto;
  display: none;
  animation: fadeIn 0.2s ease-in-out forwards;
}
.page-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Grid Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Highly Efficient Analytics Side-by-Side Grid (65% / 35%) */
.grid-analytics-split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}

@media (max-width: 1080px) {
  .grid-analytics-split {
    grid-template-columns: 1fr;
  }
}

/* Universal Buttons */
.btn-primary, button.btn-primary {
  background: var(--primary) !important;
  color: var(--btn-text) !important;
  font-weight: 800 !important;
  border: none !important;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  box-shadow: 0 0 12px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.btn-secondary, button.btn-secondary {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-card) !important;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* Global SVG Feather Precision Alignment */
svg.feather, i[data-feather], button svg, .btn-primary svg, .btn-secondary svg, .btn-icon svg, .nav-item svg, a svg, span svg {
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
}

button svg, .btn-primary svg, .btn-secondary svg {
  vertical-align: middle;
}

.btn-primary svg.feather, .btn-secondary svg.feather {
  margin-top: -1px;
}

/* Stat Cards (Universal) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(var(--blur-val));
  border: 1px solid var(--border-card) !important;
  border-radius: var(--card-radius);
  padding: 20px;
  transition: all 0.25s ease;
}

.stat-card:hover {
  border-color: var(--border-card-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted) !important;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted) !important;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-hover) !important;
  color: var(--primary) !important;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main) !important;
  letter-spacing: -0.5px;
}

.stat-subtext {
  font-size: 11px;
  color: var(--accent) !important;
  margin-top: 6px;
  font-weight: 700;
}

/* Card Box & Tables */
.card-box, .glass-box, .table-container {
  background: var(--bg-card) !important;
  backdrop-filter: blur(var(--blur-val));
  border: 1px solid var(--border-card) !important;
  border-radius: var(--card-radius);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.table-header-bar {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-card) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-title h3, .card-box-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main) !important;
}

.table-title p {
  font-size: 12px;
  color: var(--text-muted) !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

th {
  background: var(--bg-sidebar) !important;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim) !important;
  border-bottom: 1px solid var(--border-card) !important;
  white-space: nowrap;
}

td {
  padding: 14px;
  border-bottom: 1px solid var(--border-card) !important;
  color: var(--text-main) !important;
  vertical-align: middle;
}

tr:hover td {
  background: var(--bg-card-hover) !important;
}

/* Badges */
.badge, .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: var(--badge-bg) !important;
  color: var(--primary) !important;
}

.badge-level-1 {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #f59e0b !important;
}

/* App Download & Product Cards */
.download-grid, .app-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.app-card, .product-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--card-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.app-card:hover, .product-card:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 0 16px var(--primary-glow);
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--btn-text) !important;
  font-size: 24px;
  background: var(--primary) !important;
  box-shadow: 0 0 12px var(--primary-glow);
}

.license-box {
  background: var(--bg-card-hover) !important;
  border: 1px dashed var(--border-card) !important;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.license-key {
  font-family: monospace;
  font-size: 13.5px;
  color: var(--primary) !important;
  font-weight: 700;
}

/* Forms & Inputs */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted) !important;
  margin-bottom: 6px;
}

.form-input, .form-select, textarea {
  width: 100%;
  background: var(--bg-card-hover) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-main) !important;
  font-family: var(--font-family) !important;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Modals */
.modal-overlay, .auth-overlay, .auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card, .modal-overlay > div, .auth-modal-overlay > div {
  /* Layer kedua wajib memakai surface kartu, bukan surface sidebar yang dapat sengaja gelap pada tema terang. */
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--card-radius);
  color: var(--text-main) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.auth-card::-webkit-scrollbar, .modal-overlay > div::-webkit-scrollbar, .auth-modal-overlay > div::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-left: 4px solid var(--primary) !important;
  border: 1px solid var(--border-card) !important;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
}

/* ================= COMPREHENSIVE RESPONSIVENESS (ANTI-TABRAKAN) ================= */
@media (max-width: 992px) {
  .mobile-toggle-btn {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    bottom: 0;
    height: 100vh;
    z-index: 999;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.open {
    left: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2col, .grid-3col, .grid-4col {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding: 16px 18px;
  }

  .top-header {
    padding: 10px 16px;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
    padding: 12px 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   FLOWPILOT SUITE INTEGRATED STYLES (MULTI-THEME COMPATIBLE)
   ========================================================================== */

.flowpilot-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-card);
}

.fp-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.fp-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
}

.fp-tab-btn.active {
  color: var(--primary);
  background: var(--badge-bg);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* PO Campaign Hero Banner */
.po-hero-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.po-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.po-progress-wrap {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  height: 16px;
  overflow: hidden;
  position: relative;
  margin: 16px 0 8px 0;
}

.po-progress-fill {
  background: linear-gradient(90deg, #10b981, #06b6d4);
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

@keyframes freezePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.5); }
}

/* Sleek Horizontal Trust Ribbon */
.trust-ribbon {
  background: linear-gradient(145deg, var(--bg-card), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--card-radius);
  padding: 18px 22px;
  margin-bottom: 32px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.trust-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-card);
}

/* 18-Slot Participant Roster Table */
.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.roster-table th {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}

.roster-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.roster-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* FAQ Cards */
.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.faq-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* 6-Seat Family Fleet Grid */
.seat-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.seat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 18px;
  position: relative;
  transition: var(--transition);
}

.seat-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
}

.seat-card.vip {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(145deg, var(--bg-card), rgba(245, 158, 11, 0.05));
}

.seat-card.vip:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.seat-badge-vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seat-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.seat-status-lunas {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.seat-status-booking {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.seat-status-avail {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px dashed var(--border-card);
}

/* Integrity Charter Box */
.integrity-charter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.integrity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.integrity-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 14px;
}

/* Live FOMO Activity Ticker */
.ticker-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 8px 16px;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.ticker-badge {
  flex-shrink: 0;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--primary);
  background: var(--bg-card, #0f172a);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-card);
  box-shadow: 6px 0 12px var(--bg-app, #000);
  position: relative;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: tickerSlide 25s linear infinite;
  padding-left: 100%;
}

.ticker-content:hover {
  animation-play-state: paused;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   EXECUTIVE APP HUB & 2-SECTION STORE STYLING (TIER-1 SAAS DESIGN)
   ========================================================================== */
.filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-card);
  flex-wrap: wrap;
}

.filter-pill {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family) !important;
}

.filter-pill:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.filter-pill.active {
  background: var(--primary) !important;
  color: var(--btn-text) !important;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Tier-1 Executive App Hub & Catalog Design System */
.pro-app-hero {
  background: radial-gradient(ellipse at top left, rgba(240, 185, 11, 0.08) 0%, rgba(18, 22, 29, 0.95) 75%);
  border: 1px solid rgba(240, 185, 11, 0.2);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.pro-app-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.pro-stat-chip {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pro-segmented-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 5px;
}
.pro-filter-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pro-filter-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}
.pro-filter-tab.active {
  background: var(--primary) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px var(--primary-glow);
}
.pro-app-card {
  background: linear-gradient(180deg, rgba(26, 31, 44, 0.85) 0%, rgba(16, 20, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.pro-app-card:hover {
  border-color: rgba(240, 185, 11, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(240, 185, 11, 0.15);
}
.pro-app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pro-app-card:hover::before {
  opacity: 1;
}
.pro-app-icon-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.pro-app-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border: 2px solid #12161f;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}
.pro-app-terminal {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pro-feature-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-main);
  line-height: 1.35;
}

/* Feature Checklist */
.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-checklist li {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.feature-checklist li i {
  color: #10b981;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Guide Browser Tabs & Step Cards */
.guide-browser-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.guide-browser-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-main);
  font-family: var(--font-family);
}

.guide-browser-btn:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.guide-browser-btn.active {
  border-color: var(--primary) !important;
  background: rgba(79, 70, 229, 0.15) !important;
  box-shadow: 0 0 12px var(--primary-glow);
}

.guide-step-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 🚨 Awareness Beacon & Micro-Animations for Wake-Up Card */
@keyframes alertRadarPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes borderBreathingGlow {
  0%, 100% {
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.05);
  }
  50% {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.2);
  }
}

.wake-up-card {
  animation: borderBreathingGlow 3.5s infinite ease-in-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wake-up-icon {
  animation: alertRadarPulse 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wake-up-subcard {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.wake-up-subcard:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}





/* ================= WASPHERE NATIVE LIVE INBOX STYLING ================= */
.wasphere-inbox-container {
  display: grid;
  grid-template-columns: 310px 1fr 290px;
  gap: 16px;
  height: 720px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  backdrop-filter: blur(var(--blur-val));
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .wasphere-inbox-container {
    grid-template-columns: 280px 1fr;
  }
  .wasphere-inbox-lead-panel {
    display: none;
  }
}

.wasphere-inbox-list {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wasphere-chat-thread {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-app);
}

.wasphere-inbox-lead-panel {
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border-card);
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble-in {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 12px 12px 12px 2px;
  max-width: 78%;
  align-self: flex-start;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.chat-bubble-out {
  background: var(--badge-bg);
  border: 1px solid var(--border-card-hover);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 12px 12px 2px 12px;
  max-width: 78%;
  align-self: flex-end;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 2px 12px var(--primary-glow);
}

.chat-time-stamp {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.conv-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-card);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.conv-item:hover {
  background: var(--bg-card-hover);
}

.conv-item.active-conv {
  background: var(--bg-card);
  border-left: 3px solid var(--primary);
}

/* ================= AUTO-HIDE SIDEBAR FOR WHATSAPP CRM (FULL-WIDTH) ================= */
body.wasphere-sidebar-collapsed .sidebar {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.wasphere-sidebar-collapsed .sidebar * {
  display: none !important;
}

body.wasphere-sidebar-collapsed .main-content,
body.wasphere-sidebar-collapsed .app-container {
  width: 100vw !important;
}

/* ================= CUSTOM SLEEK DARK SCROLLBAR ================= */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-card) transparent;
}

::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary) !important;
  box-shadow: 0 0 10px var(--primary-glow) !important;
}

/* Hide horizontal scrollbar for chips */
.chips-no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.chips-no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.quick-reply-chip {
  padding: 5px 12px !important;
  font-size: 11px !important;
  border-radius: 20px !important;
  white-space: nowrap !important;
  background: var(--bg-card-hover) !important;
  border: 1px solid var(--border-card) !important;
  color: var(--text-main) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.quick-reply-chip:hover {
  background: var(--badge-bg) !important;
  border-color: var(--primary) !important;
  color: var(--text-main) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 0 12px var(--primary-glow) !important;
}


/* ================= WASPHERE WORKSPACE VIEW ISOLATION (SOP TEMA STRICT) ================= */
.crm-nav-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  user-select: none !important;
}
.crm-nav-card:hover {
  border-color: rgba(240, 185, 11, 0.4) !important;
  transform: translateY(-2px) !important;
}
.crm-nav-card.active {
  border-color: var(--primary) !important;
  background: rgba(240, 185, 11, 0.08) !important;
  box-shadow: 0 0 16px var(--primary-glow) !important;
}

/* 1. INBOX VIEW (FULL VIEWPORT CHAT) */
#page-wasphere-crm.view-inbox.page-content.active {
  padding: 10px 16px !important;
  box-sizing: border-box !important;
  height: calc(100vh - 65px) !important;
  max-height: calc(100vh - 65px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}
#page-wasphere-crm.view-inbox #wasphere-chat-workspace {
  display: flex !important;
  flex-direction: row !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: calc(100vh - 140px) !important;
  max-height: calc(100vh - 140px) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}
#page-wasphere-crm.view-inbox #wasphere-followup-view,
#page-wasphere-crm.view-inbox #wasphere-contacts-view {
  display: none !important;
}

/* 2. CONTACTS VIEW (DATABASE PROSPEK) */
#page-wasphere-crm.view-contacts.page-content.active {
  padding: 10px 16px !important;
  box-sizing: border-box !important;
  height: calc(100vh - 65px) !important;
  max-height: calc(100vh - 65px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}
#page-wasphere-crm.view-contacts #wasphere-chat-workspace,
#page-wasphere-crm.view-contacts #wasphere-followup-view {
  display: none !important;
}
#page-wasphere-crm.view-contacts #wasphere-contacts-view {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: calc(100vh - 140px) !important;
  max-height: calc(100vh - 140px) !important;
  overflow-y: auto !important;
  margin-bottom: 0 !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 14px !important;
}

/* 3. FOLLOWUP VIEW (RANGKAIAN PESAN OTOMATIS) */
#page-wasphere-crm.view-followup.page-content.active {
  padding: 10px 16px !important;
  box-sizing: border-box !important;
  height: calc(100vh - 65px) !important;
  max-height: calc(100vh - 65px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}
#page-wasphere-crm.view-followup #wasphere-chat-workspace,
#page-wasphere-crm.view-followup #wasphere-contacts-view {
  display: none !important;
}
#page-wasphere-crm.view-followup #wasphere-followup-view {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: calc(100vh - 140px) !important;
  max-height: calc(100vh - 140px) !important;
  overflow-y: auto !important;
  margin-bottom: 0 !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 14px !important;
}

#page-wasphere-crm #wasphere-logged-out-view {
  flex: 1 !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
  overflow-y: auto !important;
}

/* Session state must override the workspace layout rules that use !important. */
#page-wasphere-crm.is-wasphere-logged-out #wasphere-chat-workspace,
#page-wasphere-crm.is-wasphere-logged-out #wasphere-followup-view,
#page-wasphere-crm.is-wasphere-logged-out #wasphere-contacts-view {
  display: none !important;
}
#page-wasphere-crm.is-wasphere-logged-out #wasphere-logged-out-view {
  display: flex !important;
}
#page-wasphere-crm:not(.is-wasphere-logged-out) #wasphere-logged-out-view[aria-hidden="true"] {
  display: none !important;
}


/* ================= MODERN SLEEK TOGGLE SWITCH (SOP TEMA) ================= */
.custom-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.custom-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  flex-shrink: 0;
}

.custom-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-toggle-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.custom-toggle-checkbox:checked + .custom-toggle-switch {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 12px var(--primary-glow);
}

.custom-toggle-checkbox:checked + .custom-toggle-switch::after {
  transform: translateX(20px);
  background: #111111;
}

.custom-toggle-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

/* ==========================================================================
   CONTENT HUB SUITE - HARMONIZED MULTI-THEME DESIGN SYSTEM
   ========================================================================== */

/* Sidebar Accordion & Sub-Navigation */
.nav-accordion {
  display: flex;
  flex-direction: column;
  margin-bottom: 2px;
}

.nav-sub-items {
  padding-left: 14px;
  margin-left: 18px;
  border-left: 1.5px solid var(--border-card);
  margin-top: 2px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.nav-sub-item {
  padding: 8px 12px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  color: var(--text-muted) !important;
}

.nav-sub-item:hover {
  color: var(--text-main) !important;
  background: var(--bg-card-hover) !important;
}

.nav-sub-item.active {
  background: var(--bg-card) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  border: 1px solid var(--border-card-hover) !important;
  box-shadow: 0 0 10px var(--primary-glow) !important;
}

.nav-accordion-chevron {
  transition: transform 0.25s ease;
  margin-left: auto;
}

.nav-accordion.open .nav-accordion-chevron {
  transform: rotate(180deg);
}

/* Tablet Buffer & System Status Banner */
.ch-tablet-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(var(--blur-val));
}

.ch-banner-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ch-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.ch-stat-pill strong {
  color: var(--text-main);
  font-weight: 700;
}

.ch-pill-success {
  color: var(--accent) !important;
}

.ch-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ch-btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ch-btn-mini:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.ch-btn-mini-primary {
  background: var(--primary);
  color: var(--btn-text);
  border-color: var(--primary);
}

.ch-btn-mini-primary:hover {
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-1px);
}

/* Content Hub Top Platform Pills Bar */
.ch-top-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.ch-pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ch-pill-tab:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.ch-pill-tab.active {
  color: var(--primary);
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Auto Pemulihan Upload Watchdog Card */
.ch-watchdog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.ch-watchdog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ch-watchdog-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ch-watchdog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid var(--border-card);
  margin-bottom: 12px;
}

.ch-watchdog-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ch-watchdog-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ch-watchdog-stat-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

/* Filter Controls & Search Bar */
.ch-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ch-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.ch-search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.ch-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.ch-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  width: 16px;
  height: 16px;
}

.ch-filter-dropdowns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ch-select {
  padding: 0 32px 0 12px;
  height: 36px;
  line-height: 36px;
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ch-filter-dropdowns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ch-btn-stagger {
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.ch-select:focus {
  border-color: var(--primary);
}

/* Table Styling for Content Hub */
.ch-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  overflow-x: auto;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* History Section Cards (100% Isolated Cards - Anti Border Leakage) */
.ch-history-sections-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ch-history-day-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  contain: layout;
}

.ch-history-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-card);
  background: var(--bg-sidebar);
  flex-wrap: wrap;
  gap: 8px;
}

.ch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.ch-table th {
  padding: 13px 16px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border-card);
  background: rgba(0, 0, 0, 0.35);
}

.ch-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-main);
  vertical-align: middle;
}

.ch-table tr:hover td {
  background: var(--bg-card-hover);
}

/* Platform Badges (Harmonized Multi-Theme) */
.badge-plat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-plat-ig {
  background: rgba(236, 72, 153, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-plat-fb {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-plat-tiktok {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-plat-shopee {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-plat-yt {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Status Badges (Harmonized Glassmorphism) */
.ch-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ch-badge-status.ch-live-stage {
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

/* Baseline tema untuk modal/panel yang muncul setelah klik. Berlaku pada modal statis dan yang dibuat dari JavaScript. */
.modal-overlay :is(h1, h2, h3, h4, strong), .auth-overlay :is(h1, h2, h3, h4, strong), .auth-modal-overlay :is(h1, h2, h3, h4, strong) { color: var(--text-main); }
.modal-overlay :is(p, label, small), .auth-overlay :is(p, label, small), .auth-modal-overlay :is(p, label, small) { color: var(--text-muted); }
.modal-overlay :is(input, select, textarea), .auth-overlay :is(input, select, textarea), .auth-modal-overlay :is(input, select, textarea) { background: var(--bg-card-hover) !important; color: var(--text-main) !important; border-color: var(--border-card) !important; }
.modal-overlay :is(input, select, textarea):focus, .auth-overlay :is(input, select, textarea):focus, .auth-modal-overlay :is(input, select, textarea):focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px var(--primary-glow); }

.ch-tablet-connection-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.25px;
  vertical-align: middle;
}

.ch-tablet-connection-badge.is-ready { color: var(--accent); background: rgba(14, 203, 129, 0.12); border-color: rgba(14, 203, 129, 0.32); }
.ch-tablet-connection-badge.is-attention { color: #fbbf24; background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.4); }
.ch-tablet-connection-badge.is-offline { color: #f87171; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); }
.ch-tablet-connection-badge.is-checking { color: var(--text-dim); background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.24); }

.ch-nav-hp-status {
  margin-left: auto;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.1;
  white-space: nowrap;
}

.ch-nav-hp-status.is-ready { color: var(--accent); background: rgba(14, 203, 129, 0.12); border-color: rgba(14, 203, 129, 0.3); }
.ch-nav-hp-status.is-attention { color: #fbbf24; background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.42); }
.ch-nav-hp-status.is-offline { color: #f87171; background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); }
.ch-nav-hp-status.is-checking { color: var(--text-dim); background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.22); }

.ch-watchdog-check-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.ch-watchdog-check-dialog {
  position: relative;
  width: min(440px, 100%);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 46px 22px 20px;
  border: 1px solid var(--border-card-hover);
  border-radius: 15px;
  background: var(--bg-card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.ch-watchdog-check-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 203, 129, 0.14);
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.ch-watchdog-check-modal[data-state="checking"] .ch-watchdog-check-icon {
  color: var(--primary);
  background: var(--primary-glow);
  animation: ch-watchdog-check-spin 1s linear infinite;
}

.ch-watchdog-check-modal[data-state="warning"] .ch-watchdog-check-icon {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
}

.ch-watchdog-check-copy strong { display: block; color: var(--text-main); font-size: 16px; }
.ch-watchdog-check-copy p { margin: 6px 0 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.ch-watchdog-check-copy small { display: block; margin-top: 9px; color: var(--accent); font-size: 11px; font-weight: 700; }
.ch-watchdog-check-modal[data-state="warning"] .ch-watchdog-check-copy small { color: #fbbf24; }
.ch-watchdog-check-close { position: absolute; top: 11px; right: 12px; border: 0; background: transparent; color: var(--text-muted); font-size: 25px; line-height: 1; cursor: pointer; }
.ch-watchdog-check-close:hover { color: var(--text-main); }

@keyframes ch-watchdog-check-spin { to { transform: rotate(360deg); } }

/* Privacy Mode — visual-only: data, nilai form, dan scheduler tidak diubah. */
.privacy-mode-toggle {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border-card);
  border-radius: 9px;
  background: var(--bg-sidebar);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.privacy-mode-toggle:hover,
.privacy-mode-toggle:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  outline: none;
}

.privacy-mode-toggle.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--btn-text);
  box-shadow: 0 0 12px var(--primary-glow);
}

.privacy-mode-toggle:not(.is-active) {
  background: var(--bg-card-hover);
  color: var(--text-muted);
}

.privacy-mode-toggle svg {
  width: 15px;
  height: 15px;
}

.privacy-mode-label {
  display: none;
}

.privacy-sensitive {
  display: inline-block;
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  transition: filter 0.16s ease;
}

.privacy-sensitive-control {
  filter: blur(5px);
  user-select: none;
}

@media (max-width: 1120px) {
  .privacy-mode-label { display: none; }
  .privacy-mode-toggle { padding: 0; }
}

.ch-status-verified {
  background: rgba(14, 203, 129, 0.12);
  color: var(--accent);
  border: 1px solid rgba(14, 203, 129, 0.3);
}

.ch-status-published {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ch-status-ready {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.ch-status-scheduled {
  background: var(--badge-bg);
  color: var(--primary);
  border: 1px solid var(--border-card-hover);
}

.ch-status-overdue {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.52);
  color: #fbbf24;
}

.ch-status-review {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.52);
  color: #fbbf24;
}

.ch-status-failed {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Format Badges (Clickable & Hover Media Preview) */
.badge-format {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.badge-format:hover {
  background: var(--primary);
  color: var(--btn-text);
  border-color: var(--primary);
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.badge-format:active {
  transform: translateY(0) scale(0.98);
}

/* Floating Hover Preview Popover (9:16 Portrait) */
#ch-hover-preview-popover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--border-card-hover);
  backdrop-filter: blur(16px);
  will-change: transform, opacity, left, top;
}

/* Action Buttons inside Table */
.ch-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ch-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 7px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ch-action-btn:hover {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-card-hover);
  transform: translateY(-1px);
}

.ch-btn-stop {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.ch-btn-stop:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: #ef4444 !important;
}

.ch-btn-del {
  color: #f87171 !important;
  border-color: var(--border-card) !important;
}

.ch-btn-del:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
}

/* Platform Studio Cards Grid */
.ch-studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.ch-studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.ch-studio-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.ch-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ch-studio-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border-card);
}

/* Content Hub Unified Metric Summary Grid (Theme Adaptive) */
.ch-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px;
}

.ch-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ch-metric-item-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ch-metric-item-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.ch-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.ch-section-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ch-section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 3px 0 0;
  line-height: 1.45;
}



/* ================= DAY-0 WELCOME MESSAGE & SMART VARIABLES (SOP TEMA) ================= */
.day-preset-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border-card);
  background: var(--bg-sidebar);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.day-preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--badge-bg);
}
.day-preset-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--btn-text);
  font-weight: 800;
}

.variable-insert-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 6px;
  border: 1px dashed var(--primary);
  background: var(--badge-bg);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.variable-insert-btn:hover {
  background: var(--primary);
  color: var(--btn-text);
}

.day-zero-badge {
  background: linear-gradient(135deg, var(--badge-bg) 0%, transparent 100%);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 900;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}


/* ================= INSTANT 0-SECOND BADGE BOX ================= */
.instant-badge-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 0 10px var(--primary-glow);
  box-sizing: border-box;
  height: 38px;
}


/* ================= WASPHERE INCOMING MESSAGE NOTIFICATIONS (SOP TEMA) ================= */
.wasphere-incoming-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  background: var(--bg-card);
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 20px var(--primary-glow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  cursor: pointer;
  animation: slideInNotif 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wasphere-incoming-toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.8), 0 0 30px var(--primary-glow);
}

@keyframes slideInNotif {
  from { opacity: 0; transform: translateX(50px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.wasphere-sidebar-badge {
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 63px;
  padding: 7px 9px;
  border-radius: 9px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 5px 12px rgba(225, 29, 72, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  animation: none;
}

.wasphere-sidebar-badge.badge-disconnected::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

/* Halaman depan Member Pro — token tema, ringan, dan terpisah dari portal. */
.memberpro-landing { min-height:100vh; background:var(--bg-app); color:var(--text-main); padding:0 clamp(20px,5vw,84px); }
body.is-memberpro-landing .app-container, body.is-memberpro-landing .auth-overlay { display:none !important; }
.landing-nav { max-width:1240px; min-height:82px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:22px; border-bottom:1px solid var(--border-card); }
.landing-brand,.landing-nav-links button,.landing-login-button,.landing-primary-cta,.landing-secondary-cta { font:inherit; cursor:pointer; }
.landing-brand { display:inline-flex; align-items:center; gap:10px; padding:0; border:0; background:transparent; color:var(--text-main); font-size:17px; font-weight:800; }
.landing-brand-mark { width:30px; height:30px; display:grid; place-items:center; border-radius:8px; background:var(--primary); color:var(--btn-text); font-size:10px; letter-spacing:.06em; }
.landing-nav-links { display:flex; gap:4px; margin-left:auto; }
.landing-nav-links button { border:0; background:transparent; color:var(--text-muted); border-radius:8px; padding:9px 11px; font-size:13px; font-weight:700; }
.landing-nav-links button:hover { background:var(--bg-card-hover); color:var(--text-main); }
.landing-login-button,.landing-primary-cta { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--primary); background:var(--primary); color:var(--btn-text); border-radius:9px; font-size:13px; font-weight:800; padding:11px 15px; }
.landing-login-button svg,.landing-primary-cta svg { width:15px; height:15px; }
.landing-login-button:hover,.landing-primary-cta:hover { box-shadow:0 8px 18px var(--primary-glow); transform:translateY(-1px); }
.landing-hero { max-width:1240px; margin:0 auto; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr); gap:clamp(36px,7vw,104px); align-items:center; padding:clamp(62px,10vh,120px) 0; }
.landing-hero-copy { max-width:630px; }
.landing-eyebrow,.landing-section-heading>span,.landing-workflow>div>span { display:inline-flex; align-items:center; gap:7px; color:var(--accent); font-size:11px; font-weight:800; letter-spacing:.09em; }
.landing-eyebrow i { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px var(--accent-glow); }
.landing-hero h1 { margin:18px 0; color:var(--text-main); font-size:clamp(40px,5vw,66px); line-height:1.06; letter-spacing:-.055em; }
.landing-hero p { max-width:550px; margin:0; color:var(--text-muted); font-size:17px; line-height:1.7; }
.landing-cta-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.landing-primary-cta { padding:13px 17px; }
.landing-secondary-cta { border:1px solid var(--border-card); background:var(--bg-card); color:var(--text-main); border-radius:9px; padding:13px 17px; font-size:13px; font-weight:800; }
.landing-secondary-cta:hover { border-color:var(--border-card-hover); background:var(--bg-card-hover); }
.landing-trust-row { display:flex; flex-wrap:wrap; gap:14px 22px; margin-top:27px; color:var(--text-muted); font-size:12px; font-weight:700; }
.landing-trust-row span { display:inline-flex; align-items:center; gap:6px; }.landing-trust-row svg { width:15px; height:15px; color:var(--accent); }
.landing-preview { overflow:hidden; border:1px solid var(--border-card); border-radius:16px; background:var(--bg-card); box-shadow:0 24px 60px var(--primary-glow); }
.landing-preview-topbar { height:42px; display:flex; align-items:center; gap:6px; padding:0 14px; border-bottom:1px solid var(--border-card); color:var(--text-muted); font-size:10px; }.landing-preview-topbar>span { width:7px; height:7px; border-radius:50%; background:var(--text-dim); }.landing-preview-topbar strong { margin-left:7px; font-size:10px; }
.landing-preview-body { display:flex; min-height:330px; }.landing-preview-sidebar { width:62px; padding:16px 12px; display:flex; align-items:center; flex-direction:column; gap:16px; background:var(--primary); }.landing-preview-sidebar b { color:var(--btn-text); font-size:10px; }.landing-preview-sidebar span { width:23px; height:6px; border-radius:99px; background:var(--text-dim); opacity:.38; }.landing-preview-sidebar span.is-active { background:var(--btn-text); opacity:1; }
.landing-preview-content { flex:1; padding:24px; }.landing-preview-heading { display:flex; justify-content:space-between; align-items:center; }.landing-preview-heading span { width:38%; height:11px; border-radius:99px; background:var(--text-main); }.landing-preview-heading em { width:62px; height:22px; border-radius:6px; background:var(--bg-card-hover); }
.landing-preview-metrics { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:26px 0 16px; }.landing-preview-metrics article { position:relative; padding:15px; border:1px solid var(--border-card); border-radius:10px; background:var(--bg-card-hover); overflow:hidden; }.landing-preview-metrics small { display:block; color:var(--text-muted); font-size:9px; font-weight:700; }.landing-preview-metrics strong { display:block; margin-top:7px; color:var(--text-main); font-size:21px; }.landing-preview-metrics i { position:absolute; right:12px; top:14px; width:7px; height:7px; border-radius:50%; background:var(--accent); }
.landing-preview-list { border:1px solid var(--border-card); border-radius:10px; padding:4px 13px; }.landing-preview-list div { display:grid; grid-template-columns:12px 1fr 34px; gap:10px; align-items:center; padding:13px 0; border-bottom:1px solid var(--border-card); }.landing-preview-list div:last-child { border:0; }.landing-preview-list span { width:10px; height:10px; border-radius:3px; background:var(--primary); }.landing-preview-list b { height:7px; width:72%; border-radius:99px; background:var(--text-dim); opacity:.45; }.landing-preview-list em { height:7px; border-radius:99px; background:var(--accent); opacity:.7; }
.landing-feature-section,.landing-workflow { max-width:1240px; margin:0 auto; padding:72px 0; border-top:1px solid var(--border-card); }.landing-section-heading { max-width:570px; }.landing-section-heading h2,.landing-workflow h2 { margin:12px 0 0; font-size:clamp(28px,3.4vw,42px); line-height:1.15; letter-spacing:-.04em; color:var(--text-main); }
.landing-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:36px; }.landing-feature-grid article { padding:24px; border:1px solid var(--border-card); border-radius:12px; background:var(--bg-card); }.landing-feature-grid article>svg { width:20px; height:20px; color:var(--primary); }.landing-feature-grid h3 { margin:17px 0 8px; color:var(--text-main); font-size:16px; }.landing-feature-grid p { margin:0; color:var(--text-muted); font-size:13px; line-height:1.65; }
.landing-workflow { display:flex; align-items:end; justify-content:space-between; gap:30px; }.landing-workflow>div { max-width:470px; }.landing-workflow ol { list-style:none; display:flex; gap:22px; padding:0; margin:0; }.landing-workflow li { min-width:125px; display:grid; gap:8px; }.landing-workflow li b { color:var(--accent); font-size:12px; }.landing-workflow li span { color:var(--text-main); font-size:13px; font-weight:800; }.landing-footer { max-width:1240px; margin:0 auto; padding:26px 0 34px; display:flex; justify-content:space-between; gap:16px; border-top:1px solid var(--border-card); color:var(--text-muted); font-size:11px; font-weight:700; }
@media (max-width:860px) { .memberpro-landing { padding:0 22px; }.landing-nav-links { display:none; }.landing-hero { grid-template-columns:1fr; padding:54px 0 62px; }.landing-preview { max-width:600px; }.landing-feature-grid { grid-template-columns:1fr; }.landing-workflow { display:grid; }.landing-workflow ol { flex-wrap:wrap; }.landing-footer { flex-direction:column; } }
@media (max-width:480px) { .landing-nav { min-height:68px; }.landing-login-button { padding:9px 11px; }.landing-hero h1 { font-size:39px; }.landing-hero p { font-size:15px; }.landing-preview-body { min-height:285px; }.landing-preview-content { padding:18px; }.landing-preview-sidebar { width:48px; padding:15px 10px; }.landing-trust-row { display:grid; }.landing-workflow li { min-width:110px; } }

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 0 12px rgba(239, 68, 68, 0.9); }
  100% { transform: scale(1); }
}


/* ================= WASPHERE CLIPBOARD PASTE PREVIEW (SOP TEMA) ================= */
.wasphere-pasted-preview-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 12px var(--primary-glow);
  animation: slideInPreview 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInPreview {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wasphere-pasted-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--primary);
}

.bubble-chat-img {
  max-width: 280px;
  max-height: 220px;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.bubble-chat-img:hover {
  transform: scale(1.02);
}


/* ================= WASPHERE IMAGE LIGHTBOX & ANTIGRAVITY-STYLE CHIP ================= */
.wasphere-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #181d24;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 4px 10px 4px 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 10px var(--primary-glow);
  animation: slideInChip 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  max-width: 320px;
}

@keyframes slideInChip {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wasphere-chip-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.wasphere-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInLightbox 0.2s ease forwards;
}

@keyframes fadeInLightbox {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wasphere-lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 12px;
  border: 2px solid var(--primary);
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 30px var(--primary-glow);
  object-fit: contain;
  animation: zoomLightbox 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes zoomLightbox {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.chat-bubble-img-card {
  max-width: 260px;
  max-height: 200px;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-bubble-img-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 14px var(--primary-glow);
}

/* ================= WASPHERE RICH URL LINK PREVIEW & POPUP ENGINE (SOP TEMA) ================= */
.wasphere-link-preview-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(240, 185, 11, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 7px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  user-select: none;
}
.wasphere-link-preview-card:hover {
  background: rgba(240, 185, 11, 0.14);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px var(--primary-glow);
  transform: translateY(-1.5px);
}
.wasphere-link-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.wasphere-link-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(240, 185, 11, 0.18);
  border: 1px solid rgba(240, 185, 11, 0.4);
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}
.wasphere-link-action-btn {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.wasphere-link-preview-card:hover .wasphere-link-action-btn {
  background: #38bdf8;
  color: #0b0e11;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.wasphere-link-title {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wasphere-link-url {
  font-size: 10.5px;
}


/* ================= WASPHERE CLIPBOARD PASTE PREVIEW (SOP TEMA) ================= */
.wasphere-pasted-preview-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 12px var(--primary-glow);
  animation: slideInPreview 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInPreview {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wasphere-pasted-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--primary);
}

.bubble-chat-img {
  max-width: 280px;
  max-height: 220px;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.bubble-chat-img:hover {
  transform: scale(1.02);
}


/* ================= WASPHERE IMAGE LIGHTBOX & ANTIGRAVITY-STYLE CHIP ================= */
.wasphere-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #181d24;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 4px 10px 4px 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 10px var(--primary-glow);
  animation: slideInChip 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  max-width: 320px;
}

@keyframes slideInChip {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wasphere-chip-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.wasphere-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInLightbox 0.2s ease forwards;
}

@keyframes fadeInLightbox {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wasphere-lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 12px;
  border: 2px solid var(--primary);
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 30px var(--primary-glow);
  object-fit: contain;
  animation: zoomLightbox 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes zoomLightbox {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.chat-bubble-img-card {
  max-width: 260px;
  max-height: 200px;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-bubble-img-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 14px var(--primary-glow);
}

/* ================= WASPHERE RICH URL LINK PREVIEW & POPUP ENGINE (SOP TEMA) ================= */
.wasphere-link-preview-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(240, 185, 11, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 7px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  user-select: none;
}
.wasphere-link-preview-card:hover {
  background: rgba(240, 185, 11, 0.14);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px var(--primary-glow);
  transform: translateY(-1.5px);
}
.wasphere-link-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.wasphere-link-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(240, 185, 11, 0.18);
  border: 1px solid rgba(240, 185, 11, 0.4);
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}
.wasphere-link-action-btn {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.wasphere-link-preview-card:hover .wasphere-link-action-btn {
  background: #38bdf8;
  color: #0b0e11;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.wasphere-link-title {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wasphere-link-url {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wasphere-inline-link {
  color: #38bdf8 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 2px !important;
  font-weight: 700 !important;
  word-break: break-all !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  position: relative;
  display: inline;
}
.wasphere-inline-link:hover {
  color: #7dd3fc !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7) !important;
}

/* ================= WASPHERE TEXT SELECTION & 1-CLICK BUBBLE COPY ENGINE ================= */
#wasphere-messages-scroll,
#wasphere-messages-scroll * {
  user-select: text !important;
  -webkit-user-select: text !important;
}
#wasphere-messages-scroll ::selection {
  background: rgba(240, 185, 11, 0.45) !important;
  color: #ffffff !important;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8) !important;
}

.wasphere-chat-bubble-card {
  position: relative !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.wasphere-bubble-copy-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(240, 185, 11, 0.4);
  color: var(--primary);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  backdrop-filter: blur(4px);
  user-select: none !important;
  -webkit-user-select: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.wasphere-chat-bubble-card:hover .wasphere-bubble-copy-btn {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.02);
}
.wasphere-bubble-copy-btn:hover {
  background: var(--primary);
  color: #000000;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ================= INSTAGRAM CLICKABLE FILTER CARDS ================= */
.ch-acc-filter-card {
  cursor: pointer !important;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-card);
  position: relative;
}
.ch-acc-filter-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 63, 94, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(244, 63, 94, 0.15);
}
.ch-acc-filter-card.active-card {
  border-color: #f43f5e !important;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(0, 0, 0, 0.4)) !important;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.5), 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}
.ch-acc-filter-card.active-card .ch-card-active-indicator {
  display: inline-block !important;
}

/* Facebook Specific Active Filter Card */
#ch-card-acc-fb-bianfatma:hover {
  border-color: rgba(96, 165, 250, 0.5) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(96, 165, 250, 0.2);
}
#ch-card-acc-fb-bianfatma.active-card {
  border-color: #60a5fa !important;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(0, 0, 0, 0.4)) !important;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5), 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Shopee Specific Active Filter Card */
#ch-card-acc-shopee-main:hover {
  border-color: rgba(251, 146, 60, 0.5) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(251, 146, 60, 0.2);
}
#ch-card-acc-shopee-main.active-card {
  border-color: #fb923c !important;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(0, 0, 0, 0.4)) !important;
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.5), 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}


/* ================= LIVE FOLLOW-UP TRACKER SYSTEM ================= */
.followup-tracker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.followup-step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.followup-step-item.status-sent {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.followup-step-item.status-scheduled {
  border-color: rgba(240, 185, 11, 0.4);
  background: rgba(240, 185, 11, 0.06);
}

.followup-step-item.status-queued {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.followup-step-item.status-paused {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.followup-status-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}

.followup-status-badge.badge-sent {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #34d399;
}

.followup-status-badge.badge-scheduled {
  background: rgba(240, 185, 11, 0.18);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.followup-status-badge.badge-queued {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.followup-status-badge.badge-paused {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #ef4444;
  color: #f87171;
}


/* ================= EXPANDABLE ACCORDION ROW LIVE TRACKER ================= */
.followup-tracker-row {
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.followup-tracker-row:hover {
  background: var(--bg-card) !important;
}

.followup-tracker-row.is-expanded {
  background: rgba(240, 185, 11, 0.08) !important;
  border-bottom: none !important;
}

.followup-drawer-tr {
  background: rgba(0, 0, 0, 0.45) !important;
}

.followup-drawer-container {
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  border-bottom: 1px solid var(--border-card);
  border-right: 1px solid var(--border-card);
  margin-bottom: 8px;
  border-radius: 0 0 10px 10px;
}

.followup-step-detail-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.followup-step-detail-box.is-sent {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.04);
}

.followup-step-detail-box.is-next {
  border-color: rgba(240, 185, 11, 0.5);
  background: rgba(240, 185, 11, 0.04);
}

.followup-step-detail-box.is-queued {
  border-color: var(--border-card);
  background: rgba(255, 255, 255, 0.02);
}

/* ================= CONTENT HUB STICKY FLOATING LIVE QUEUE HERO (ZERO-LEAK GUARD) ================= */
#ch-live-queue-hero-container {
  position: sticky;
  top: -24px;
  z-index: 45;
  margin-top: -4px;
  margin-bottom: 16px;
  margin-left: -28px;
  margin-right: -28px;
  padding-left: 28px;
  padding-right: 28px;
  padding-top: 24px;
  padding-bottom: 4px;
  background: var(--bg-app);
}

.ch-live-queue-hero-sticky {
  background: rgba(18, 22, 28, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 158, 11, 0.15) !important;
  border-radius: 14px;
}

/* Media gallery: one player, reserved arrow lanes, theme-native surfaces. */
.ch-gallery-shell { background:var(--bg-card); color:var(--text-main); border:1px solid var(--border-card); border-radius:18px; width:100%; max-width:620px; max-height:94vh; display:flex; flex-direction:column; overflow:hidden; }
.ch-gallery-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--border-card); flex-shrink:0; }
.ch-gallery-close,.ch-gallery-arrow { background:var(--bg-card); color:var(--text-main); border:1px solid var(--border-card); cursor:pointer; border-radius:50%; flex-shrink:0; }
.ch-gallery-close { width:32px; height:32px; }
.ch-gallery-info { display:flex; gap:8px 12px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:8px 16px; font-size:11px; color:var(--text-muted); flex-shrink:0; }
#ch-preview-position { font-weight:700; color:var(--primary); }
.ch-gallery-stage { display:grid; grid-template-columns:40px minmax(0,1fr) 40px; gap:8px; align-items:center; padding:10px; background:var(--bg-main); min-height:0; flex:1; }
.ch-gallery-media { display:flex; align-items:center; justify-content:center; min-width:0; min-height:0; overflow:hidden; }
.ch-gallery-media video,.ch-gallery-media img { width:auto; max-width:100%; max-height:48vh; object-fit:contain; border-radius:12px; }
.ch-gallery-arrow { width:40px; height:40px; font-size:28px; line-height:1; }
.ch-gallery-arrow:disabled { opacity:.3; cursor:default; }
.ch-gallery-arrow:not(:disabled):hover,.ch-gallery-close:hover { border-color:var(--primary); color:var(--primary); }
.ch-gallery-shell button:focus-visible,.ch-gallery-caption summary:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.ch-gallery-footer { padding:10px 16px; display:flex; flex-direction:column; gap:8px; border-top:1px solid var(--border-card); max-height:29vh; overflow-y:auto; flex-shrink:0; }
.ch-gallery-note { font-size:10px; color:var(--text-muted); }
.ch-gallery-caption { font-size:12px; border:1px solid var(--border-card); border-radius:8px; padding:7px 10px; }
.ch-gallery-caption summary { cursor:pointer; color:var(--text-main); font-weight:600; }
#ch-preview-caption-box { max-height:110px; overflow-y:auto; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text-muted); line-height:1.5; padding-top:6px; }
.ch-gallery-product { align-items:center; gap:8px; }
.ch-gallery-product a { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--primary); font-size:11px; }
.ch-gallery-product button { flex-shrink:0; font-size:11px; padding:5px 8px; }
@media(max-width:480px) { .ch-gallery-header { padding:10px; } .ch-gallery-info,.ch-gallery-footer { padding:8px 10px; } .ch-gallery-stage { grid-template-columns:32px minmax(0,1fr) 32px; gap:4px; padding:6px; } .ch-gallery-arrow { width:32px; height:36px; } #ch-preview-title { max-width:160px!important; } }

/* Instagram workspace — semantic theme tokens only (SOP Tema Design System). */
.ch-ig-workspace-header { background:var(--bg-card); border-color:var(--border-card); }
.ch-ig-workspace-avatar { width:46px; height:46px; border-radius:50%; object-fit:cover; border:2px solid var(--primary); }
.ch-ig-sync-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ch-ig-sync-status { display:inline-flex; align-items:center; gap:5px; background:color-mix(in srgb, var(--accent) 14%, var(--bg-card)); color:var(--accent); border:1px solid color-mix(in srgb, var(--accent) 36%, var(--border-card)); font-size:11px; padding:4px 10px; }
.ch-ig-tablet-status { display:inline-flex; align-items:center; gap:5px; background:color-mix(in srgb, var(--primary) 12%, var(--bg-card)); color:var(--text-main); border:1px solid color-mix(in srgb, var(--primary) 30%, var(--border-card)); font-size:11px; padding:4px 10px; }
.ch-ig-tablet-status.is-ready { background:color-mix(in srgb, var(--accent) 14%, var(--bg-card)); color:var(--accent); border-color:color-mix(in srgb, var(--accent) 36%, var(--border-card)); }
.ch-ig-tablet-status.is-blocked { background:color-mix(in srgb, var(--primary) 14%, var(--bg-card)); color:var(--primary); border-color:color-mix(in srgb, var(--primary) 40%, var(--border-card)); }
.ch-ig-sync-button { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; font-size:12px; border-radius:8px; }
.ch-ig-sync-button:disabled { opacity:.65; cursor:wait; }
.ch-ig-batch-item { width:100%; padding:10px 14px; text-align:left; background:transparent; border:0; border-bottom:1px solid var(--border-card); color:var(--text-main); cursor:pointer; display:block; }
.ch-ig-batch-item strong { display:block; color:inherit; font-size:12px; line-height:1.3; }
.ch-ig-batch-item:hover,.ch-ig-batch-item:focus-visible,.ch-ig-batch-item.is-active { background:color-mix(in srgb, var(--primary) 14%, var(--bg-card)); color:var(--primary); outline:none; }
.ch-ig-batch-status { background:color-mix(in srgb, var(--accent) 14%, var(--bg-card)); color:var(--accent); border:1px solid color-mix(in srgb, var(--accent) 32%, var(--border-card)); font-size:10.5px; padding:2px 8px; }
.ch-ig-calendar-empty { background:transparent; border:1px dashed var(--border-card); border-radius:8px; min-height:65px; opacity:.45; }
.ch-ig-calendar-day { background:var(--bg-card); border:1px solid var(--border-card); border-radius:8px; padding:8px; min-height:65px; display:flex; flex-direction:column; justify-content:space-between; }
.ch-ig-calendar-day.is-today { background:color-mix(in srgb, var(--primary) 12%, var(--bg-card)); border-color:var(--primary); }
.ch-ig-calendar-date { font-size:11px; font-weight:600; color:var(--text-main); }
.ch-ig-calendar-day.is-today .ch-ig-calendar-date { color:var(--primary); font-weight:900; }
.ch-ig-calendar-today,.ch-ig-calendar-count { display:inline-block; font-size:10px; font-weight:800; background:var(--primary); color:var(--bg-card); border-radius:4px; padding:2px 6px; }
.ch-ig-calendar-today { font-size:9px; padding:1px 4px; }
.ch-ig-calendar-count { background:color-mix(in srgb, var(--primary) 18%, var(--bg-card)); color:var(--primary); }
.ch-ig-calendar-none { font-size:10px; color:var(--text-dim); }
.ch-ig-batch-delete-button { color:var(--primary); border-color:var(--primary); }
.ch-ig-batch-delete-button:disabled { opacity:.65; cursor:wait; }
.ch-ig-upload-times { font-family:monospace; font-weight:700; font-size:11px; padding:2px 8px; background:color-mix(in srgb, var(--primary) 12%, var(--bg-card)); color:var(--primary); border:1px solid color-mix(in srgb, var(--primary) 30%, var(--border-card)); border-radius:6px; }
.ch-ig-excel-box { background:color-mix(in srgb, var(--primary) 5%, var(--bg-card)); border:1px dashed color-mix(in srgb, var(--primary) 38%, var(--border-card)); border-radius:12px; padding:16px; margin-bottom:18px; }
.ch-ig-drag-badge { font-size:10px; font-weight:700; background:color-mix(in srgb, var(--accent) 14%, var(--bg-card)); color:var(--accent); border-radius:6px; padding:2px 6px; }
.ch-ig-upload-submit { padding:9px 24px; font-size:12.5px; font-weight:800; border-radius:8px; display:inline-flex; align-items:center; gap:8px; }
.ch-ig-upload-info { display:inline-flex; align-items:center; padding:7px 12px; border:1px solid var(--border-color); border-radius:8px; color:var(--text-muted); background:var(--bg-card); font-size:12px; font-weight:700; cursor:help; }
.ch-ig-upload-target { display:flex; flex-direction:column; gap:5px; padding:12px 14px; border:1px solid var(--border-card); border-radius:10px; background:color-mix(in srgb, var(--primary) 6%, var(--bg-card)); }
.ch-ig-upload-target strong { display:inline-flex; align-items:center; gap:6px; color:var(--primary); font-size:13px; }
.ch-ig-upload-target small { color:var(--text-muted); font-size:11px; }

/* Cloud Sync modal: keep the status message and action buttons readable at every viewport width. */
.cloud-sync-card {
  width: min(520px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 24px;
}
.cloud-sync-header { margin-bottom: 16px; text-align: left; }
.cloud-sync-header .auth-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.cloud-sync-header .auth-logo svg { width: 20px; height: 20px; }
.cloud-sync-header .auth-title { margin: 0; font-size: 20px; line-height: 1.2; }
.cloud-sync-header .auth-subtitle { margin: 6px 0 0; line-height: 1.45; }
.cloud-sync-status {
  min-height: 0;
  margin-top: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.cloud-sync-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.cloud-sync-actions .btn-primary,
.cloud-sync-actions .btn-secondary,
.cloud-sync-close { min-height: 38px; }
.cloud-sync-close { margin-top: 12px; }
@media (max-width: 520px) {
  .cloud-sync-card { padding: 20px; }
  .cloud-sync-actions > button,
  .cloud-sync-close { width: 100%; justify-content: center; }
}


