/* app.css — Global Styles & Layout Shell */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
  /* Light Theme (Clean Crisp Enterprise) */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-bg: #f1f5f9;
  --surface-border: #e2e8f0;
  --surface-border-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-border: #c7d2fe;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;
  --sidebar-active: #eef2ff;
  --sidebar-active-text: #4338ca;
  --table-header: #f8fafc;
  --table-hover: #f8fafc;
  --table-total: #f1f5f9;
  --positive: #059669;
  --positive-bg: #ecfdf5;
  --negative: #e11d48;
  --negative-bg: #fff1f2;
  --badge-bg: #f1f5f9;
  --card-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 6px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090d16;
    --surface: #0f172a;
    --surface-card: #0f172a;
    --surface-bg: #1e293b;
    --surface-border: #1e293b;
    --surface-border-subtle: #172033;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-light: rgba(99, 102, 241, 0.12);
    --primary-border: rgba(99, 102, 241, 0.3);
    --sidebar-bg: #090d16;
    --sidebar-border: #1e293b;
    --sidebar-active: rgba(99, 102, 241, 0.15);
    --sidebar-active-text: #a5b4fc;
    --table-header: #0b1220;
    --table-hover: rgba(255, 255, 255, 0.02);
    --table-total: #0f172a;
    --positive: #10b981;
    --positive-bg: rgba(16, 185, 129, 0.12);
    --negative: #f43f5e;
    --negative-bg: rgba(244, 63, 94, 0.12);
    --badge-bg: #1e293b;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  }
}

html[data-theme="dark"] {
  --bg: #090d16;
  --surface: #0f172a;
  --surface-card: #0f172a;
  --surface-bg: #1e293b;
  --surface-border: #1e293b;
  --surface-border-subtle: #172033;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-light: rgba(99, 102, 241, 0.12);
  --primary-border: rgba(99, 102, 241, 0.3);
  --sidebar-bg: #090d16;
  --sidebar-border: #1e293b;
  --sidebar-active: rgba(99, 102, 241, 0.15);
  --sidebar-active-text: #a5b4fc;
  --table-header: #0b1220;
  --table-hover: rgba(255, 255, 255, 0.02);
  --table-total: #0f172a;
  --positive: #10b981;
  --positive-bg: rgba(16, 185, 129, 0.12);
  --negative: #f43f5e;
  --negative-bg: rgba(244, 63, 94, 0.12);
  --badge-bg: #1e293b;
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-bg: #f1f5f9;
  --surface-border: #e2e8f0;
  --surface-border-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-border: #c7d2fe;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;
  --sidebar-active: #eef2ff;
  --sidebar-active-text: #4338ca;
  --table-header: #f8fafc;
  --table-hover: #f8fafc;
  --table-total: #f1f5f9;
  --positive: #059669;
  --positive-bg: #ecfdf5;
  --negative: #e11d48;
  --negative-bg: #fff1f2;
  --badge-bg: #f1f5f9;
  --card-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 6px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
}

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

html {
  font-size: 13.5px;
  zoom: 90%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  background-color: var(--bg);
  color: var(--text-main);
  min-height: calc(100vh / 0.9);
  display: flex;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .brand-title, .nav-item, .nav-label {
  font-family: var(--font-heading);
}

.font-mono, td.num, .badge-mono {
  font-family: var(--font-mono);
}

/* ─── SIDEBAR ────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  position: fixed;
  top: 0;
  left: 0;
  height: calc(100vh / 0.9);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
}

.brand-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.btn-sidebar-collapse {
  background: transparent;
  border: 1px solid var(--sidebar-border);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-sidebar-collapse:hover {
  background: var(--table-header);
  color: var(--text-main);
  border-color: var(--primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

img.brand-icon {
  background: transparent;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-menu {
  flex: 1;
  padding: 16px 12px;
  list-style: none;
  overflow-y: auto;
}

.nav-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 12px 6px 12px;
}

.nav-item {
  margin-bottom: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background: var(--table-header);
  color: var(--text-main);
}

.nav-link.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
  font-weight: 600;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-link.active svg {
  opacity: 1;
  stroke: var(--sidebar-active-text);
}

.nav-sub-menu {
  list-style: none;
  padding: 4px 0 6px 36px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-sub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.nav-sub-link::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
  transition: all 0.15s ease;
}

.nav-sub-link:hover {
  background: var(--table-header);
  color: var(--text-main);
}

.nav-sub-link:hover::before {
  background: var(--primary);
  opacity: 1;
}

.nav-sub-link.active {
  color: var(--primary);
  font-weight: 700;
  background: rgba(2, 132, 199, 0.08);
}

.nav-sub-link.active::before {
  background: var(--primary);
  opacity: 1;
  transform: scale(1.4);
}

/* ─── SIDEBAR THEME TOGGLE ──────────────────────────────── */
.sidebar-theme-toggle {
  padding: 12px 18px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: var(--sidebar-bg);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sidebar-theme-toggle:hover {
  background: var(--table-hover);
}

.theme-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.theme-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--table-header);
  color: var(--text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

html[data-theme="dark"] .theme-toggle-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

html[data-theme="light"] .theme-toggle-icon {
  background: #fef3c7;
  color: #d97706;
}

.theme-toggle-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* Switch Component */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  margin: 0;
}

.theme-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-border);
  border: 1px solid var(--sidebar-border);
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  border-radius: 24px;
}

.theme-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.theme-switch input:checked + .theme-slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

.theme-switch input:checked + .theme-slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
}

.sidebar-theme-toggle:focus-visible,
.theme-switch input:focus-visible + .theme-slider {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--sidebar-border);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── MAIN CONTENT AREA ──────────────────────────────────── */
#main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: calc(100vh / 0.9);
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── TOPBAR: HIDDEN FOR PRO IMMERSIVE DESKTOP VIEW ─────── */
#topbar {
  display: none !important;
}

/* ─── COLLAPSED / MINI SIDEBAR (ICON-ONLY RAIL) ─────────── */
html.sidebar-collapsed #sidebar {
  width: var(--sidebar-collapsed-width);
  transform: none;
}

html.sidebar-collapsed #main-wrapper {
  margin-left: var(--sidebar-collapsed-width);
}

/* Brand Header Collapsed */
html.sidebar-collapsed .brand-header {
  padding: 14px 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

html.sidebar-collapsed .brand-info {
  justify-content: center;
  gap: 0;
}

html.sidebar-collapsed .brand-text {
  display: none !important;
}

html.sidebar-collapsed .btn-sidebar-collapse {
  width: 28px;
  height: 28px;
}

html.sidebar-collapsed .btn-sidebar-collapse svg {
  transform: rotate(180deg);
  transition: transform 0.25s ease;
}

/* Nav Menu Collapsed */
html.sidebar-collapsed .nav-menu {
  padding: 12px 6px;
}

html.sidebar-collapsed .nav-label {
  height: 1px;
  padding: 0;
  margin: 14px 4px;
  background: var(--sidebar-border);
  border: none;
  font-size: 0;
  color: transparent;
  overflow: hidden;
}

html.sidebar-collapsed .nav-link {
  justify-content: center;
  padding: 12px 0;
  gap: 0;
  position: relative;
}

html.sidebar-collapsed .nav-link svg {
  margin: 0;
  width: 20px;
  height: 20px;
  opacity: 0.85;
}

html.sidebar-collapsed .nav-link.active svg {
  opacity: 1;
}

html.sidebar-collapsed .nav-link .nav-text {
  display: none !important;
}

/* Hover Tooltip when Mini Sidebar is Active */
html.sidebar-collapsed .nav-link:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1000;
  animation: tooltipFadeIn 0.15s ease forwards;
}

html[data-theme="dark"].sidebar-collapsed .nav-link:hover::after {
  background: #f1f5f9;
  color: #0f172a;
}

html.sidebar-collapsed .nav-link:hover::before {
  content: '';
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 6px 5px 0;
  border-style: solid;
  border-color: transparent #0f172a transparent transparent;
  pointer-events: none;
  z-index: 1000;
}

html[data-theme="dark"].sidebar-collapsed .nav-link:hover::before {
  border-color: transparent #f1f5f9 transparent transparent;
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Theme Toggle Collapsed */
html.sidebar-collapsed .sidebar-theme-toggle {
  padding: 12px 6px;
  justify-content: center;
}

html.sidebar-collapsed .theme-toggle-text,
html.sidebar-collapsed .theme-switch {
  display: none !important;
}

html.sidebar-collapsed .theme-toggle-icon {
  margin: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--table-header);
}

/* Footer Collapsed */
html.sidebar-collapsed .sidebar-footer {
  display: none !important;
}

#content-area {
  padding: 16px 22px 36px 22px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

/* ─── COMPONENTS ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--badge-bg);
  color: var(--text-main);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  #sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
  }
  #main-wrapper {
    margin-left: 0 !important;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 45;
  }
  .sidebar-backdrop.active {
    display: block;
  }
  .grid-cards {
    grid-template-columns: 1fr;
  }
}

.card, .card-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover, .card-box:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Form Controls & Dropdown Selects */
input[type="text"], input[type="search"], input[type="number"], select {
  background-color: var(--surface) !important;
  color: var(--text-main) !important;
}

.card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}

.card-header h2 {
  font-size: 16px;
  font-weight: 700;
}

.card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.table-container {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  background-color: var(--surface);
}

tbody tr {
  background-color: var(--surface);
}

th {
  background: var(--table-header);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--surface-border);
}

td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--surface-border);
}

tr:hover td {
  background-color: var(--table-hover);
}

.text-right { text-align: right; }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }

tr.total-row {
  background-color: var(--table-total);
  font-weight: 700;
  border-top: 2px solid var(--surface-border);
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.pill.positive {
  color: var(--positive);
  background-color: var(--positive-bg);
}

.pill.negative {
  color: var(--negative);
  background-color: var(--negative-bg);
}

.loader {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.placeholder-card {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}
.placeholder-card h3 {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* ─── AGEN & RESELLER TWO-TIER NAVIGATION ─── */
.ar-nav-strip {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ar-main-tab-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ar-main-tab-btn:hover {
  color: var(--text-main);
  background: var(--table-header);
}

.ar-main-tab-btn.active {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.ar-sub-tab-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--table-header);
  border: 1px solid var(--surface-border);
  transition: all 0.15s ease;
}

.ar-sub-tab-btn:hover {
  color: var(--text-main);
  border-color: #cbd5e1;
}

.ar-sub-tab-btn.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  border-color: #93c5fd;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.15);
}

.ringkasan-mode-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.ringkasan-mode-btn:hover {
  background: var(--table-header);
  color: var(--text-main);
}

.ringkasan-mode-btn.active-bottom {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.ringkasan-mode-btn.active-top {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

/* ─── UNIFIED BRAND SWITCHER CAPSULE DENGAN PULSE DOT LAMBAT ────────── */
.unified-brand-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-bg, #f1f5f9);
  padding: 3px 4px;
  border-radius: 20px;
  border: 1px solid var(--surface-border, #e2e8f0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.unified-brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  outline: none;
}

.unified-brand-btn:hover {
  color: var(--text-main, #0f172a);
}

.unified-brand-btn .brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Inactive Dots */
.unified-brand-btn[data-brand="ASTAGA"] .brand-dot {
  background: #3b82f6;
  opacity: 0.6;
}
.unified-brand-btn[data-brand="OKIPAY"] .brand-dot {
  background: #ef4444;
  opacity: 0.6;
}

/* ACTIVE STATE: ASTAGA (BLUE BOX) */
.unified-brand-btn.active[data-brand="ASTAGA"],
.unified-brand-btn.active.brand-astaga {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}
.unified-brand-btn.active[data-brand="ASTAGA"] .brand-dot,
.unified-brand-btn.active.brand-astaga .brand-dot {
  background: #ffffff !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  animation: slowPulseDotWhite 1.8s infinite ease-in-out !important;
}

/* ACTIVE STATE: OKIPAY (RED BOX) */
.unified-brand-btn.active[data-brand="OKIPAY"],
.unified-brand-btn.active.brand-okipay {
  background: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}
.unified-brand-btn.active[data-brand="OKIPAY"] .brand-dot,
.unified-brand-btn.active.brand-okipay .brand-dot {
  background: #ffffff !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  animation: slowPulseDotWhite 1.8s infinite ease-in-out !important;
}

/* KEYFRAMES: PULSE DOT LAMBAT ELEGAN */
@keyframes slowPulseDotWhite {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
    opacity: 1;
  }
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    opacity: 0.9;
  }
}

/* KEYFRAMES: CONTENT REVEAL FADE */
@keyframes brandContentFadeIn {
  0% { opacity: 0.2; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

.brand-content-fade {
  animation: brandContentFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

