:root {
  /* Dark Canvas (Apple True Black / Space Gray) */
  --bg-canvas: #000000;
  --bg-elev: rgba(28, 28, 30, 0.75);
  --bg-elev-2: rgba(44, 44, 46, 0.65);
  --bg-elev-3: rgba(58, 58, 60, 0.5);
  --bg-input: rgba(255, 255, 255, 0.06);
  --bg-input-focus: rgba(255, 255, 255, 0.1);
  --bg-row-hover: rgba(255, 255, 255, 0.04);
  --bg-pill: rgba(120, 120, 128, 0.2);
  --bg-pill-active: rgba(255, 255, 255, 0.18);

  /* Hairline Borders (Apple Crisp 1px) */
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-highlight: rgba(255, 255, 255, 0.22);
  --line-active: rgba(255, 255, 255, 0.40);

  /* Typography Colors */
  --text: #f5f5f7;
  --text-dim: #98989d;
  --text-faint: #6e6e73;

  /* Apple Golden Gate Palette: International Orange / Terracotta */
  --accent: #f05a38;
  --accent-hot: #ff6e4a;
  --accent-glow: rgba(240, 90, 56, 0.28);
  --accent-bg: rgba(240, 90, 56, 0.12);

  /* Apple Golden Gate Palette: Warm Sunset Amber */
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.28);
  --amber-bg: rgba(245, 158, 11, 0.14);

  /* Apple Golden Gate Palette: Pacific Oceanic Blue */
  --ocean: #0a84ff;
  --ocean-bg: rgba(10, 132, 255, 0.14);

  /* Semantic Status Tokens */
  --ok: #30d158;
  --ok-bg: rgba(48, 209, 88, 0.12);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.14);
  --bad: #ff453a;
  --bad-bg: rgba(255, 69, 58, 0.12);
  --gold: #ffd60a;
  --cyan: #64d2ff;
  --indigo: #5e5ce6;
  --purple: #bf5af2;

  /* Liquid Glass Translucency */
  --glass-bg: rgba(28, 28, 30, 0.72);
  --glass-blur: blur(25px) saturate(180%);
  --glass-blur-sm: blur(16px) saturate(180%);

  /* Apple Radii */
  --radius-xl: 22px;
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.5);

  /* Typography Families (SF Pro + Twemoji Country Flags fallback for Windows) */
  --sans: 'Twemoji Country Flags', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Emoji", "Helvetica Neue", Inter, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, Monaco, monospace;
}

html[data-theme="light"] {
  /* Apple Soft Warm Silver Canvas */
  --bg-canvas: #f5f5f7;
  --bg-elev: rgba(255, 255, 255, 0.85);
  --bg-elev-2: #ffffff;
  --bg-elev-3: rgba(0, 0, 0, 0.04);
  --bg-input: rgba(0, 0, 0, 0.04);
  --bg-input-focus: rgba(0, 0, 0, 0.07);
  --bg-row-hover: rgba(0, 0, 0, 0.025);
  --bg-pill: rgba(120, 120, 128, 0.12);
  --bg-pill-active: #ffffff;

  /* Hairline Borders (Crisp 1px Light) */
  --line: rgba(0, 0, 0, 0.08);
  --line-soft: rgba(0, 0, 0, 0.04);
  --line-highlight: rgba(0, 0, 0, 0.16);
  --line-active: rgba(0, 0, 0, 0.28);

  --text: #1d1d1f;
  --text-dim: #6e6e73;
  --text-faint: #aeaeb2;

  /* Apple Golden Gate Palette: International Orange / Terracotta (Light) */
  --accent: #d94826;
  --accent-hot: #e0533c;
  --accent-glow: rgba(217, 72, 38, 0.22);
  --accent-bg: rgba(217, 72, 38, 0.10);

  /* Apple Golden Gate Palette: Warm Sunset Amber (Light) */
  --amber: #d97706;
  --amber-glow: rgba(217, 119, 6, 0.22);
  --amber-bg: rgba(217, 119, 6, 0.12);

  /* Apple Golden Gate Palette: Pacific Oceanic Blue (Light) */
  --ocean: #0284c7;
  --ocean-bg: rgba(2, 132, 199, 0.12);

  --ok: #34c759;
  --ok-bg: rgba(52, 199, 89, 0.12);
  --warn: #d97706;
  --warn-bg: rgba(217, 119, 6, 0.12);
  --bad: #ff3b30;
  --bad-bg: rgba(255, 59, 48, 0.12);

  /* Liquid Glass Translucency (Light) */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-blur: blur(25px) saturate(180%);
  --glass-blur-sm: blur(16px) saturate(180%);

  --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 16px 44px rgba(0, 0, 0, 0.09);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html, body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

code, kbd, samp, pre {
  font-family: var(--mono);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
a:hover {
  opacity: 0.85;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   Apple Frosted Glass Header
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: var(--bg-elev);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--line);
  transition: all 0.2s ease;
}

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

.brand-mark.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}

.brand-sub {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}

.brand-sub code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Topbar Controls */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Apple Pill Badges */
.top-saldo-pill,
.balance-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--bg-pill);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 550;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: all 0.15s ease;
}

.top-saldo-dot,
.balance-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2px var(--ok-bg);
}

.current-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-bg);
  border: 1px solid var(--line-highlight);
  color: var(--accent);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.current-user-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.admin-logout-btn,
.admin-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-logout-btn:hover,
.admin-login-link:hover {
  color: var(--text);
  background: var(--bg-input-focus);
}

.conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--line);
}

.conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

.conn[data-state="ok"] .conn-dot {
  background: var(--ok);
  box-shadow: 0 0 0 2px var(--ok-bg);
}

.conn[data-state="down"] .conn-dot {
  background: var(--bad);
  box-shadow: 0 0 0 2px var(--bad-bg);
}

/* Settings Dropdown */
.settings-wrap {
  position: relative;
}

.settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-btn:hover {
  color: var(--text);
  background: var(--bg-input-focus);
}

.settings-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  padding: 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-highlight);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: var(--glass-blur);
  z-index: 1000;
}

.settings-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.settings-head strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.settings-head span {
  font-size: 11px;
  color: var(--text-dim);
}

.settings-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.theme-option:hover {
  background: var(--bg-input-focus);
  border-color: var(--accent);
}

.theme-preview {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.theme-preview.preview-dark { background: #000; }
.theme-preview.preview-light { background: #fff; }

.theme-check {
  margin-left: auto;
  color: var(--accent);
  display: none;
}
.theme-option[aria-checked="true"] .theme-check {
  display: block;
}

.settings-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
}

/* ==========================================================================
   Page Layout & Container
   ========================================================================== */

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* ==========================================================================
   Apple Segmented Control (Main Service Tabs)
   ========================================================================== */

.service-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-pill);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  backdrop-filter: var(--glass-blur-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.service-tabs::-webkit-scrollbar {
  display: none;
}

.service-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.service-tab:hover {
  color: var(--text);
}

.service-tab[aria-selected="true"] {
  background: var(--bg-pill-active);
  color: var(--text);
  border-color: var(--line-highlight);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.service-tab-icon {
  font-size: 14px;
  opacity: 0.9;
}

.service-tab .tab-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-tab .tab-copy small {
  display: none;
}

.live-badge,
.admin-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.live-badge {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(48, 209, 88, 0.25);
}

.admin-badge {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}

/* ==========================================================================
   Apple Cards
   ========================================================================== */

.card {
  background: var(--glass-bg, var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color 0.18s ease;
}

.card:hover {
  border-color: var(--line-highlight);
}

.card-head {
  display: flex;
  align-items: center;
  min-height: 32px;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.card-head h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}

.card-description {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}

.parse-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   Apple Inputs, Textareas, Selects
   ========================================================================== */

input[type="text"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select,
.select,
.address-query {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: all 0.15s ease;
}

input:focus,
textarea:focus,
select:focus,
.select:focus,
.address-query:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.drop-zone {
  position: relative;
}

.drop-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--accent-bg);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-sm);
  place-items: center;
  font-weight: 600;
  color: var(--accent);
}

/* ==========================================================================
   Apple Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hot);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-ghost {
  background: var(--bg-pill);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-input-focus);
  border-color: var(--line-highlight);
}

.btn-danger {
  color: var(--bad);
}
.btn-danger:hover {
  background: var(--bad-bg);
  border-color: rgba(255, 69, 58, 0.3);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 12.5px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.kbd-hint {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-faint);
}
.kbd-hint kbd {
  background: var(--bg-input);
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 4px;
}

/* Progress bar */
.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}
.progress-text {
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   Toolbar & Stats
   ========================================================================== */

.stats {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stats::-webkit-scrollbar { display: none; }

.stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.15s ease;
}
.stat:hover {
  color: var(--text);
  background: var(--bg-input-focus);
}
.stat[aria-pressed="true"] {
  background: var(--bg-pill-active);
  color: var(--text);
  border-color: var(--line-highlight);
}
.stat.is-code[aria-pressed="true"] { color: var(--ok); }
.stat.is-waiting[aria-pressed="true"] { color: var(--warn); }
.stat.is-error[aria-pressed="true"] { color: var(--bad); }

.stat-num {
  font-weight: 700;
  font-family: var(--mono);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toolbar-group.grow {
  flex: 1;
  min-width: 200px;
}
.mini-label {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* Apple Switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}
.switch input { display: none; }
.switch-track {
  width: 38px;
  height: 22px;
  background: var(--bg-input-focus);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
  border: 1px solid var(--line);
}
.switch input:checked + .switch-track {
  background: var(--ok);
  border-color: var(--ok);
}
.switch-thumb {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(16px);
}

/* ==========================================================================
   Results Table & Code Fetcher Rows
   ========================================================================== */

.rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}
.row:hover {
  background: var(--bg-row-hover);
  border-color: var(--line-highlight);
}

.row-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.row-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  min-width: 20px;
}
.row-email {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}
.row-email:hover {
  color: var(--accent);
}

.row-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 9px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-elev-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--bg-elev-1);
}

.icon-btn.danger {
  color: var(--bad);
  border-color: rgba(255, 69, 58, 0.28);
  background: rgba(255, 69, 58, 0.08);
}

.icon-btn.danger:hover {
  color: #ffffff;
  background: var(--bad);
  border-color: var(--bad);
}

.icon-btn.is-labelled {
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--ok-bg);
  border: 1px solid rgba(48, 209, 88, 0.25);
  border-radius: var(--radius-pill);
  color: var(--ok);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.12s;
}
.code-pill:hover {
  transform: scale(1.03);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 550;
}
.chip.is-waiting {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-glow);
}
.chip.is-error {
  background: var(--bad-bg);
  color: var(--bad);
}

/* ==========================================================================
   Email Rental & SMS Number: Segmented Provider & Filter Bars
   ========================================================================== */

.email-subnav,
.active-list-filter-bar,
.litensi-provider-bar,
.litensi-mode-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--bg-pill);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  backdrop-filter: var(--glass-blur-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.email-subnav-btn,
.active-list-pill,
.provider-pill,
.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.email-subnav-btn:hover,
.active-list-pill:hover,
.provider-pill:hover,
.mode-tab:hover {
  color: var(--text);
}

.email-subnav-btn.is-active,
.active-list-pill.is-active,
.provider-pill.is-active,
.mode-tab.is-active {
  background: var(--bg-pill-active);
  color: var(--text);
  border-color: var(--line-highlight);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.subnav-badge,
.pill-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-input-focus);
}

/* ==========================================================================
   Balance Grid Cards
   ========================================================================== */

.email-balance-card-wrap {
  position: relative;
}

.email-balance-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.email-balance-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.email-bal-item {
  padding: 16px 20px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.email-bal-item:hover {
  background: var(--bg-input-focus);
  border-color: var(--line-highlight);
}

.email-bal-tag {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.email-bal-amount {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--mono);
}

.email-bal-sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}

.low-saldo-alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--warn-bg);
  border: 1px solid rgba(255, 159, 10, 0.35);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  color: var(--warn);
}

/* Quick Suggestion Pills */
.quick-sites-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.quick-label {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 600;
}
.tag-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.tag-btn:hover {
  background: var(--bg-input-focus);
  color: var(--text);
  border-color: var(--line-highlight);
}

/* ==========================================================================
   Order Forms
   ========================================================================== */

.email-order-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 1fr) 130px 75px auto;
  align-items: end;
  gap: 12px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}

.email-submit-order-btn {
  height: 41px;
  padding: 0 22px;
  font-weight: 600;
}

/* Quick Reactivate Form */
.email-quick-reactivate-form {
  display: flex;
  gap: 10px;
}

.email-reactivate-input {
  flex: 1;
}

.order-compact-banner {
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text);
}

/* ==========================================================================
   SMS Table View (Apple Cupertino Clean HIG Data Table)
   ========================================================================== */

.sms-table-search {
  max-width: 220px;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: all 0.15s ease;
}
.sms-table-search:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.sms-table-container {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
  background: var(--bg-elev-2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.sms-table-header {
  display: grid;
  grid-template-columns: minmax(170px, 2fr) minmax(75px, auto) 75px minmax(130px, 1.2fr) 135px;
  align-items: center;
  padding: 12px 16px;
  background: #f0f4fa;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}

html[data-theme="dark"] .sms-table-header {
  background: #1c1c1e;
}

.sms-th {
  min-width: 0;
}

.sms-th-action {
  text-align: right;
  padding-right: 6px;
}

.sms-table-body {
  display: flex;
  flex-direction: column;
}

.sms-table-row {
  display: grid;
  grid-template-columns: minmax(170px, 2fr) minmax(75px, auto) 75px minmax(130px, 1.2fr) 135px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev-2);
  transition: background 0.15s ease;
}

.sms-cell {
  min-width: 0;
}

.sms-table-row:last-child {
  border-bottom: none;
}

.sms-table-row:hover {
  background: var(--bg-row-hover);
}

.sms-table-row.has-code {
  background: rgba(48, 209, 88, 0.035);
}

/* Cell: Number */
.sms-col-number {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sms-num-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.service-logo-pill {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  user-select: none;
}
.logo-amazon {
  background: #111111;
  color: #ff9900;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
  font-weight: bold;
}
html[data-theme="dark"] .logo-amazon {
  background: #232f3e;
  color: #ff9900;
}
.logo-wa { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.logo-tg { background: rgba(0, 136, 204, 0.15); color: #0088cc; }
.logo-google { background: rgba(234, 67, 53, 0.12); color: #ea4335; }
.logo-generic { background: var(--bg-pill); color: var(--text-dim); }

.sms-country-flag {
  font-size: 16px;
  line-height: 1;
}

.sms-phone-display {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.12s;
}
.sms-phone-display:hover {
  color: var(--accent);
}

.sms-circle-copy {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}
.sms-circle-copy:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
  transform: scale(1.08);
}

.sms-cell-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-faint);
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sms-cell-meta span {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sms-cell-meta code {
  font-family: var(--mono);
  font-size: 10.5px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sms-text-preview {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 3px;
  font-family: var(--mono);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Cell: Cost */
.sms-cost-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* Cell: Time (Apple Golden Gate Warm Sunset Countdown) */
.sms-time-badge {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--amber);
}

/* Cell: Status */
.sms-col-status {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
}

.sms-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-elev-2);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  max-width: 100%;
  box-sizing: border-box;
}
.sms-status-pill.is-waiting {
  border-color: var(--amber-glow);
  background: var(--amber-bg);
  color: var(--amber);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
  animation: pulse-dot 1.8s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.sms-status-pill.is-code {
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  background: var(--ok-bg);
  border-color: rgba(48, 209, 88, 0.45);
  color: var(--ok);
  cursor: pointer;
  transition: all 0.15s ease;
}
.sms-status-pill.is-code:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(48, 209, 88, 0.2);
}
.status-code-icon {
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.status-code-val {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-copy-hint {
  font-size: 10.5px;
  opacity: 0.85;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(48, 209, 88, 0.15);
  flex-shrink: 0;
}

.sms-no-code {
  color: var(--text-faint);
  font-size: 14px;
}

/* Cell: Action */
.sms-col-action {
  min-width: 0;
}

.sms-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.sms-circle-btn {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-pill);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.14s ease;
  padding: 0;
  flex-shrink: 0;
}
.sms-circle-btn:hover {
  background: var(--bg-pill-active);
  border-color: var(--line-highlight);
  color: var(--text);
  transform: scale(1.06);
}

.sms-circle-btn.sms-cancel-btn {
  color: var(--text-dim);
}
.sms-circle-btn.sms-cancel-btn:hover {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: rgba(255, 69, 58, 0.35);
}

.sms-pill-action {
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-pill);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.14s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.sms-pill-action:hover {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: rgba(48, 209, 88, 0.4);
}
.sms-pill-action.sms-cancel-btn {
  background: rgba(239, 68, 68, 0.08);
  color: var(--bad);
  border-color: rgba(239, 68, 68, 0.3);
}
.sms-pill-action.sms-cancel-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  color: var(--bad);
  border-color: rgba(239, 68, 68, 0.5);
}

.sms-history-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.sms-history-status.is-finished {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: rgba(48, 209, 88, 0.35);
}
.sms-history-status.is-canceled {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: rgba(255, 69, 58, 0.35);
}

/* ==========================================================================
   Litensi Rows / Active Inboxes Table
   ========================================================================== */

.email-active-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.litensi-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-sizing: border-box;
}

.litensi-row:hover {
  background: var(--bg-row-hover);
  border-color: var(--line-highlight);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.litensi-row.has-code {
  border-color: rgba(48, 209, 88, 0.3);
}

/* Tier 1 (Top) */
.litensi-tier-top,
.litensi-tier-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  width: 100%;
  min-width: 0;
}

.litensi-tier-left,
.litensi-row-info {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 360px;
  flex-wrap: wrap;
}

.litensi-row-check {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.litensi-row-check .litensi-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

.litensi-idx {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  font-family: var(--mono);
  min-width: 14px;
}

.litensi-site-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px 2px 4px;
  border-radius: 6px;
  background: var(--bg-pill);
  color: var(--text-dim);
  flex-shrink: 0;
}

.litensi-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s;
  max-width: min(100%, 340px);
  min-width: min(100%, 175px);
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.litensi-email-btn:hover {
  background: var(--bg-input-focus);
  border-color: var(--line);
}

.litensi-email-btn .email-text {
  min-width: 0;
  flex: 1;
  max-width: min(100%, 300px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.litensi-copy-icon {
  font-size: 12px;
  opacity: 0.5;
  flex-shrink: 0;
}

.litensi-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}

.live-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2px var(--ok-bg);
}

.litensi-badge-reactivated {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  flex-shrink: 0;
  white-space: nowrap;
}

.litensi-badge-new {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-glow);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Code Arrival Box on Right of Tier 1 */
.litensi-row-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  flex-shrink: 0;
  min-width: 0;
  margin-left: auto;
}

.litensi-otp-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--ok-bg);
  border: 1.5px solid rgba(48, 209, 88, 0.45);
  color: var(--ok);
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}
.litensi-otp-copy-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(48, 209, 88, 0.75);
  box-shadow: 0 3px 10px rgba(48, 209, 88, 0.22);
}
.litensi-otp-copy-pill .otp-pill-val {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}
.litensi-otp-copy-pill .otp-pill-copy {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.85;
}

.litensi-arrival-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--ok-bg);
  border: 1px solid rgba(48, 209, 88, 0.35);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  line-height: 1.15;
}

.litensi-arrival-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(48, 209, 88, 0.2);
}

.arrival-headline {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
}

.arrival-dot {
  color: var(--ok);
  font-size: 9px;
}

.arrival-title {
  font-weight: 700;
  font-size: 12px;
  color: var(--ok);
}

.arrival-status-tag {
  font-size: 10.5px;
  color: var(--text-dim);
}

.arrival-subhint {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 1px;
}

.litensi-arrival-box.is-waiting-box {
  background: var(--amber-bg);
  border-color: var(--amber-glow);
  color: var(--amber);
}

/* Tier 2 (Bottom) */
.litensi-tier-bottom,
.litensi-tier-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .litensi-tier-bottom,
html[data-theme="light"] .litensi-tier-2 {
  border-top-color: rgba(0, 0, 0, 0.05);
}

.litensi-info-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-dim);
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.litensi-info-meta code {
  font-family: var(--mono);
  font-size: 11px;
}

/* Actions on Right of Tier 2 */
.litensi-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.litensi-row-actions .btn {
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 550;
  border: 1px solid var(--line);
  background: var(--bg-pill);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.litensi-row-actions .btn:hover {
  background: var(--bg-pill-active);
  border-color: var(--line-highlight);
}

.litensi-row-actions .btn-reactivate-direct {
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 550;
  border: 1px solid var(--line);
  background: var(--bg-pill);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.litensi-row-actions .btn-reactivate-direct:hover {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-glow);
}

.litensi-row-actions .litensi-view-chip {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  background: var(--bg-pill);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 550;
  flex-shrink: 0;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.12s ease;
}

.litensi-row-actions .litensi-view-chip:hover {
  background: var(--bg-input-focus);
  border-color: var(--line-highlight);
  transform: none;
  box-shadow: none;
}

.litensi-row-actions .btn.litensi-cancel-pill {
  width: auto;
  min-width: 0;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: var(--bad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.14s ease;
  flex-shrink: 0;
}

.litensi-row-actions .btn.litensi-cancel-pill:hover {
  background: rgba(239, 68, 68, 0.16);
  color: var(--bad);
  border-color: rgba(239, 68, 68, 0.55);
  transform: translateY(-0.5px);
}

.litensi-row-actions .btn-danger.js-delete-row {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-pill);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.litensi-row-actions .btn-danger.js-delete-row:hover {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: rgba(255, 69, 58, 0.35);
  transform: scale(1.05);
}

/* ==========================================================================
   User Attribution Tag (Read-Only Consumer Pill)
   ========================================================================== */

span.user-order-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-dim);
  border: 1px solid var(--line-soft);
  cursor: default;
  user-select: none;
  flex-shrink: 0;
}

/* Operator Popover */
.operator-picker-popover {
  position: absolute;
  z-index: 10000;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-highlight);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  padding: 12px;
  min-width: 190px;
  backdrop-filter: var(--glass-blur);
  animation: popover-fade 0.15s ease-out;
}

@keyframes popover-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.popover-close-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 16px;
  cursor: pointer;
}

.popover-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.popover-op-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: left;
  transition: all 0.12s;
}
.popover-op-btn:hover {
  transform: translateX(2px);
  filter: brightness(1.2);
}
.popover-op-btn.is-selected {
  outline: 2px solid currentColor;
}
.popover-op-btn .op-check {
  margin-left: auto;
}

/* ==========================================================================
   Team Tally Dashboard
   ========================================================================== */

.team-tally-card {
  margin-top: 18px;
}

.team-tally-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.team-tally-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-tally-icon {
  font-size: 20px;
  line-height: 1;
}

.team-tally-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.team-tally-filters {
  display: inline-flex;
  background: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  gap: 2px;
}

.team-tally-pill {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.team-tally-pill:hover {
  color: var(--text);
}

.team-tally-pill.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.team-tally-summary-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.team-tally-summary-bar .summary-label {
  color: var(--text-dim);
  font-weight: 500;
}

.team-tally-summary-bar .summary-value {
  color: var(--text);
  font-weight: 700;
  font-family: var(--mono);
}

.team-tally-empty {
  grid-column: 1 / -1;
  padding: 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
}

.team-tally-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.tally-member-card {
  padding: 16px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.tally-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tally-count-badge {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.tally-spent-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.tally-spent-amount {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--mono);
}

.tally-pct {
  font-size: 12px;
  color: var(--text-dim);
}

.tally-progress-bar {
  height: 6px;
  background: var(--bg-pill);
  border-radius: 999px;
  overflow: hidden;
}

.tally-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
  background: var(--accent);
}

/* ==========================================================================
   2FA & Address Cards
   ========================================================================== */

.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.address-card {
  padding: 16px 20px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}
.address-card:hover {
  background: var(--bg-input-focus);
  border-color: var(--line-highlight);
}

/* ==========================================================================
   2FA / TOTP Checker — Apple Ecosystem Design System
   ========================================================================== */

.totp-input-card textarea.totp-input {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  min-height: 120px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.totp-input-card textarea.totp-input:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ok);
  margin-left: auto;
  font-weight: 500;
}

/* Results Header with Live Indicator & Timer Ring */
.totp-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.totp-title-group {
  margin-bottom: 0;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2px var(--ok-bg), 0 0 8px var(--ok);
  margin-right: 6px;
  animation: totpLiveGlow 2s infinite ease-in-out;
  vertical-align: middle;
}

@keyframes totpLiveGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}

/* Master Countdown Ring Widget */
.totp-master-timer {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  user-select: none;
}

.totp-master-timer svg.timer-ring {
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  transform: rotate(-90deg);
  flex-shrink: 0;
  display: block;
}

.totp-master-timer circle {
  fill: none !important;
}

.totp-master-timer .timer-ring-bg {
  stroke: var(--line) !important;
  stroke-width: 3.5;
}

.totp-master-timer .timer-ring-value {
  stroke: var(--accent) !important;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.25s linear, stroke 0.3s ease;
}

.totp-master-timer span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.totp-master-timer strong {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.totp-master-timer small {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Toolbar */
.totp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  margin-bottom: 20px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

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

.totp-toolbar .switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-dim);
  user-select: none;
  transition: color 0.15s ease;
}

.totp-toolbar .switch:hover {
  color: var(--text);
}

/* Rows Container */
.totp-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual 2FA Row Card */
.totp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.18s ease, transform 0.15s ease, background 0.18s ease;
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
}

.totp-row:hover {
  border-color: var(--line-highlight);
  background: var(--bg-elev-2);
}

/* Row Index */
.totp-index {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-pill);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Row Identity: Label, Secret pill, Meta */
.totp-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  max-width: 240px;
  flex-shrink: 0;
}

.totp-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.totp-secret {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: var(--bg-pill);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: all;
}

.totp-secret:hover {
  color: var(--text);
  background: var(--bg-input-focus);
  border-color: var(--line-highlight);
}

.totp-meta {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--mono);
}

/* 3-Window Codes Grid */
.totp-codes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 580px;
}

.totp-code {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  user-select: none;
}

.totp-code:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.totp-code:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: var(--line-highlight);
}

.totp-code-kind {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.totp-code-value {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1.2;
}

.totp-code small {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 3px;
  white-space: nowrap;
}

/* Specific Windows: Previous, Current, Next */
.totp-code-previous {
  background: var(--bg-input);
  border-color: var(--line-soft);
}
.totp-code-previous .totp-code-value {
  color: var(--text-dim);
  font-size: 14.5px;
}

.totp-code-current {
  background: var(--accent-bg);
  border-color: var(--accent);
  box-shadow: 0 2px 10px var(--accent-glow);
  flex: 1.2;
}
.totp-code-current:not(:disabled):hover {
  border-color: var(--accent-hot);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.totp-code-current .totp-code-kind {
  color: var(--accent);
}
.totp-code-current .totp-code-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--accent);
}
.totp-code-current small {
  color: var(--accent);
  font-weight: 600;
}

.totp-code-next {
  background: var(--bg-input);
  border-color: var(--line);
}
.totp-code-next .totp-code-kind {
  color: var(--ocean);
}
.totp-code-next .totp-code-value {
  color: var(--ocean);
  font-size: 14.5px;
}

/* Row Micro Timer */
.totp-row-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 65px;
  flex-shrink: 0;
  position: relative;
}

.totp-row-timer::before {
  content: "";
  display: block;
  width: 100%;
  height: 5px;
  background: var(--bg-input-focus);
  border-radius: 999px;
  position: absolute;
  top: 0;
  left: 0;
}

.totp-row-timer span {
  display: block;
  height: 5px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s linear;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.totp-row-timer small {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Remove button */
.totp-remove {
  flex-shrink: 0;
}

/* Animations & States */
@keyframes totpCodeUpdated {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); box-shadow: 0 0 16px var(--accent-glow); }
  100% { transform: scale(1); }
}

.totp-row.code-updated .totp-code-current {
  animation: totpCodeUpdated 0.6s ease;
}

.totp-row.has-error {
  border-color: rgba(255, 69, 58, 0.4);
}
.totp-row.has-error .totp-code-current {
  background: var(--bad-bg);
  border-color: var(--bad);
}
.totp-row.has-error .totp-code-value {
  color: var(--bad);
}

/* Responsive Layout */
@media (max-width: 960px) {
  .totp-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .totp-identity {
    flex: 1;
  }
  .totp-codes {
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }
  .totp-row-timer {
    order: 2;
  }
  .totp-remove {
    order: 2;
  }
}

@media (max-width: 600px) {
  .totp-codes {
    flex-direction: column;
    gap: 8px;
  }
  .totp-code {
    width: 100%;
  }
  .totp-master-timer {
    width: 100%;
    justify-content: center;
  }
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.address-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 200px auto;
  gap: 12px;
  align-items: start;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .address-form {
    grid-template-columns: 1fr 1fr;
  }
  .address-query-field,
  .address-submit {
    grid-column: 1 / -1;
  }
}

.address-query-field,
.address-control-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.address-query-field label,
.address-control-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.4;
}

.address-submit {
  margin-top: 22px;
  height: 40px;
}

@media (max-width: 900px) {
  .address-submit {
    margin-top: 4px;
  }
}

.address-examples {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.address-examples button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.15s ease;
}

.address-examples button:hover {
  background: var(--accent-bg);
  border-color: var(--accent-glow);
  color: var(--accent);
}

/* ==========================================================================
   Dynamic Island Floating Toasts
   ========================================================================== */

.toasts,
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(28, 28, 30, 0.88);
  border: 1px solid var(--line-highlight);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 550;
  pointer-events: auto;
  animation: toast-drop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-drop {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.ok   { border-color: rgba(48, 209, 88, 0.4); }
.toast.bad  { border-color: rgba(255, 69, 58, 0.4); }
.toast.warn { border-color: rgba(255, 159, 10, 0.4); }

/* ==========================================================================
   Modals (Gmail View & Details — Apple Liquid Glass Unification)
   ========================================================================== */

#emailModalsContainer {
  position: relative;
  z-index: 9000;
}

.email-gmail-modal,
.email-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9001;
  animation: modal-fade-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gmail-card,
.email-modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  background: rgba(28, 28, 30, 0.94);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-highlight);
  border-radius: 20px;
  box-shadow: var(--shadow-elevated), 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-scale 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] .gmail-card,
html[data-theme="light"] .email-modal-card {
  background: #ffffff;
}

@keyframes modal-scale {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.gmail-head,
.email-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}

.gmail-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.gmail-icon {
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.gmail-meta {
  min-width: 0;
  flex: 1;
}

.gmail-subject {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.015em;
  word-break: break-word;
}

.gmail-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
}

.gmail-to strong {
  color: var(--text);
  font-weight: 600;
}

.gmail-msgid {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--text-dim);
}

.gmail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-reactivate-direct {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}
.btn-reactivate-direct:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.gmail-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-pill);
  color: var(--text-dim);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gmail-close-btn:hover {
  color: var(--text);
  background: var(--bg-input-focus);
  border-color: var(--line-highlight);
  transform: scale(1.05);
}

.gmail-arrived-banner {
  padding: 14px 22px;
  background: var(--ok-bg);
  border-bottom: 1px solid rgba(48, 209, 88, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.gmail-arrived-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.arrived-check-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(48, 209, 88, 0.35);
}

.gmail-arrived-title {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
}

.arrived-badge-success {
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}

.gmail-arrived-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.gmail-arrived-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gmail-action-btn {
  box-shadow: 0 2px 8px var(--accent-glow);
}

.gmail-waiting-banner {
  padding: 14px 22px;
  background: var(--amber-bg);
  border-bottom: 1px solid var(--amber-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 550;
  color: var(--amber);
}

html[data-theme="light"] .gmail-waiting-banner {
  color: #b45309;
}

.litensi-spinner-sm {
  width: 14px;
  height: 14px;
  border: 2px solid var(--amber);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.gmail-body,
.email-modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
  max-height: 52vh;
}

.gmail-message-text,
.email-modal-body pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  background: var(--bg-input);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  color: var(--text);
  margin: 0;
}

.gmail-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

/* ==========================================================================
   Floating Team Chat (Right Side)
   ========================================================================== */

.team-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.team-chat-widget * {
  pointer-events: auto;
}

.chat-launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(28, 28, 30, 0.9);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-highlight);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-elevated);
  transition: transform 0.15s ease;
}
.chat-launcher-btn:hover {
  transform: scale(1.03);
}

.chat-launcher-badge {
  background: var(--bad);
  color: #fff;
  font-size: 10.5px;
  font-weight: 750;
  padding: 1px 6px;
  border-radius: 999px;
}

.chat-window,
.chat-card {
  width: 380px;
  height: 520px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-highlight);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
  animation: chat-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: width 0.22s ease, height 0.22s ease;
}

.chat-window.is-maximized {
  width: min(720px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 80px));
}

@keyframes chat-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-retention-pill {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-h-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.chat-h-btn:hover {
  background: var(--bg-input-focus);
  color: var(--text);
}

.chat-close-btn:hover {
  background: rgba(255, 69, 58, 0.18);
  color: var(--bad);
}

.chat-members-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.chat-member-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.chat-messages-container {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-msg-row.is-own {
  align-self: flex-end;
}
.chat-msg-row.is-own .chat-bubble {
  background: var(--accent);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-msg-row.is-other {
  align-self: flex-start;
}
.chat-msg-row.is-other .chat-bubble {
  background: var(--bg-input-focus);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev-2);
}

.chat-text-input {
  flex: 1;
  border-radius: var(--radius-pill) !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
}

.chat-send-btn {
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.foot {
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.litensi-empty,
.email-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  margin-top: 12px;
  border: 1px dashed var(--line-highlight);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-dim);
  gap: 6px;
}

.litensi-empty-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 4px;
}

.litensi-empty p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.litensi-empty small {
  font-size: 12.5px;
  color: var(--text-dim);
  max-width: 440px;
  line-height: 1.45;
}

.email-msg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

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

.email-msg-toolbar .toolbar-group.grow {
  flex: 1 1 220px;
  justify-content: flex-end;
}

.email-msg-toolbar .toolbar-group.grow input.search {
  width: 100%;
  max-width: 340px;
}

.creator-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--bg-pill);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: 13px;
  transition: all 0.15s ease;
}
.creator-card:hover {
  background: var(--bg-input-focus);
  color: var(--text);
  border-color: var(--line-highlight);
}
.creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 900px) {
  .topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .topbar-right {
    width: 100%;
    justify-content: flex-start;
  }
  .service-tabs {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    padding: 6px;
    gap: 6px;
  }
  .service-tab {
    padding: 7px 12px;
    font-size: 13px;
  }
  .wrap {
    padding: 16px 16px 80px;
  }
  .card {
    padding: 18px 20px;
    border-radius: var(--radius);
  }
  .email-order-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .litensi-row {
    padding: 10px 14px;
    gap: 8px;
  }
  .litensi-tier-top {
    flex-wrap: wrap;
  }
  .litensi-row-info {
    flex-wrap: wrap;
  }
  .team-chat-widget {
    right: 16px;
    bottom: 16px;
  }
  .chat-card {
    width: calc(100vw - 32px);
    max-width: 360px;
  }
}

/* ==========================================================================
   Active Numbers Responsive Table & Card Layout (< 850px)
   ========================================================================== */

@media (max-width: 850px) {
  .sms-table-header {
    display: none;
  }

  .sms-table-container {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow-x: visible;
  }

  .sms-table-body {
    min-width: 0;
    gap: 12px;
  }

  .sms-table-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "number cost time"
      "status status status"
      "action action action";
    gap: 10px 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-elev-2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    align-items: center;
  }

  .sms-col-number {
    grid-area: number;
    min-width: 0;
  }

  .sms-col-cost {
    grid-area: cost;
    text-align: right;
  }

  .sms-col-time {
    grid-area: time;
    text-align: right;
  }

  .sms-col-status {
    grid-area: status;
    min-width: 0;
  }

  .sms-col-status .sms-status-pill {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    font-size: 13.5px;
  }

  .sms-col-action {
    grid-area: action;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    min-width: 0;
  }

  .sms-col-action .sms-action-buttons {
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* 44pt touch targets per Apple HIG on mobile */
  .sms-circle-copy {
    width: 36px;
    height: 36px;
  }

  .sms-circle-btn {
    width: 44px;
    height: 44px;
  }

  .sms-circle-btn svg {
    width: 16px;
    height: 16px;
  }

  .sms-pill-action {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .sms-table-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "number number"
      "cost   time"
      "status status"
      "action action";
    gap: 10px;
    padding: 14px;
  }

  .sms-col-cost {
    text-align: left;
  }

  .sms-col-time {
    text-align: right;
  }

  /* Responsive 2-tier email cards on mobile */
  .litensi-row {
    padding: 12px 14px;
    gap: 10px;
  }
  .litensi-tier-top,
  .litensi-tier-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .litensi-tier-left,
  .litensi-row-info {
    flex: 0 0 auto;
    flex-wrap: wrap;
    width: 100%;
    align-content: flex-start;
    gap: 6px;
  }
  .litensi-email-btn {
    max-width: 100%;
    min-width: 0;
  }
  .litensi-row-code {
    width: 100%;
  }
  .litensi-row-code .litensi-arrival-box {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
  .litensi-info-meta {
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.4;
  }
  .litensi-row-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
  }
  .litensi-row-actions .btn,
  .litensi-row-actions .btn-reactivate-direct,
  .litensi-row-actions .litensi-view-chip,
  .litensi-row-actions .litensi-share-chip,
  .litensi-row-actions .litensi-cancel-pill,
  .litensi-row-actions .btn-danger.js-delete-row {
    min-height: 36px;
    min-width: 36px;
    width: auto;
    flex: 0 0 auto;
  }
  .litensi-row-actions .litensi-cancel-pill {
    padding: 0 12px;
  }
}

/* ==========================================================================
   Hero-SMS Interactive 3-Step Left Sidebar & Split View (Apple Cupertino HIG)
   ========================================================================== */

/* Sleek Apple Cupertino Top Toolbars */
.hero-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--glass-bg, var(--bg-elev-2));
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
html[data-theme="dark"] .hero-top-toolbar {
  background: var(--glass-bg, rgba(28, 28, 30, 0.72));
  border-color: var(--line);
}
.hero-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.6);
  flex-shrink: 0;
}
.hero-status-dot.is-email {
  background: var(--ocean);
  box-shadow: 0 0 8px var(--ocean-bg);
}
.hero-toolbar-heading {
  display: flex;
  flex-direction: column;
}
.hero-toolbar-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.hero-toolbar-badge {
  font-size: 11px;
  color: var(--text-dim);
}
.hero-toolbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0;
}
.hero-balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  min-height: 28px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 12px;
}
.hero-chip-label {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 500;
}
.hero-chip-val {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
}
.hero-balance-chip.is-total {
  border-color: var(--accent-glow);
  background: var(--accent-bg);
}
.hero-balance-chip.is-total .hero-chip-val {
  color: var(--accent);
}
.hero-balance-chip.is-usd {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.04);
}
.hero-balance-chip.is-usd .hero-chip-val {
  color: #818cf8;
}
.hero-balance-chip.is-counter {
  border-color: rgba(48, 209, 88, 0.3);
  background: rgba(48, 209, 88, 0.04);
}
.hero-balance-chip.is-counter .hero-chip-val {
  color: #30d158;
}
.hero-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Inline Reactivate Bar */
.hero-inline-reactivate-bar {
  margin-bottom: 14px;
}
.hero-reactivate-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.hero-reactivate-ico {
  font-size: 14px;
  color: #f59e0b;
}
.hero-reactivate-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text);
}
.hero-reactivate-btn {
  white-space: nowrap;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.hero-split-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 4px;
}

.hero-sidebar-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

html[data-theme="dark"] .hero-sidebar-card {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1180px) {
  .hero-split-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-sidebar-card,
  .hero-main-area,
  .service-panel,
  .card {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-sidebar-card {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
}

.hero-sidebar-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hero-sidebar-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-sidebar-sub {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* Sidebar Provider Selector Bar */
.hero-sidebar-providers {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: visible;
}
.hero-provider-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-provider-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
}
#emailSidebarCard .hero-provider-tabs {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 480px) {
  #smsModalProviderTabs .hero-provider-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hero-provider-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  min-height: 32px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-pill, rgba(120, 120, 128, 0.12));
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-provider-pill:hover {
  background: var(--bg-row-hover);
  color: var(--text);
  border-color: var(--line-highlight);
}
.hero-provider-pill.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 6px var(--accent-glow);
}

/* Server 1 Reactivation Callout Banner */
.email-route-callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  margin-top: 4px;
  background: rgba(234, 88, 12, 0.06);
  border: 1px solid rgba(234, 88, 12, 0.22);
  border-radius: 8px;
  line-height: 1.45;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .email-route-callout {
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.32);
}

.email-route-callout-ico {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.2;
  margin-top: 1px;
}

.email-route-callout-text {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--text);
  line-height: 1.45;
}

.email-route-callout-tag {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
  margin-right: 4px;
}

.hero-main-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Step Sections */
.hero-step-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev-1);
  padding: 12px;
  transition: all 0.2s ease;
}
.hero-step-section.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.hero-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.hero-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 8px;
}
.hero-step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero-badge-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  cursor: pointer;
}
.hero-badge-pill:hover {
  background: var(--accent-glow);
}

/* Selected Collapsed Chip */
.hero-selected-chip,
.hero-step-selected-chip,
.hero-chip-content,
.hero-step-selected-main,
.hero-chip-info,
.hero-step-selected-text,
.hero-offers-container,
.hero-offers-list,
.roxy-server-pills-grid {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-selected-chip,
.hero-step-selected-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 1px 4px var(--accent-glow);
  overflow: hidden;
}
.hero-selected-chip[hidden],
.hero-step-selected-chip[hidden] {
  display: none !important;
}
.hero-chip-content,
.hero-step-selected-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.hero-chip-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.hero-chip-info,
.hero-step-selected-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.hero-chip-info strong,
.hero-step-selected-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.hero-chip-info small,
.hero-step-selected-text small {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  min-width: 0;
}

.hero-chip-info small .badge-stock,
.hero-step-selected-text small .badge-stock {
  font-size: 11px;
  padding: 0;
  flex-shrink: 0;
}

/* Selected Chip Meta, Price & Route */
.hero-chip-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-shrink: 0;
}

.hero-chip-price {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

html[data-theme="dark"] .hero-chip-price {
  color: #fb923c;
}

.hero-chip-sep {
  color: var(--text-faint);
  flex-shrink: 0;
  user-select: none;
}

.hero-chip-route {
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.hero-chip-clear {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 650;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-input);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.hero-chip-clear:hover {
  background: var(--bg-row-hover);
  color: var(--bad);
  border-color: var(--bad);
}

/* Search Bar in Step */
.hero-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
}
.hero-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
}
.hero-search-row .hero-search-wrap {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  margin-bottom: 0;
}
.hero-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-faint);
  pointer-events: none;
  line-height: 1;
  z-index: 2;
}
.hero-search-wrap input.hero-search-input,
input.hero-search-input {
  width: 100% !important;
  min-height: 36px !important;
  padding: 6px 30px 6px 34px !important;
  font-size: 12.5px !important;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.hero-search-wrap input.hero-search-input:focus,
input.hero-search-input:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.hero-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.15s ease;
}
.hero-search-clear:hover {
  background: rgba(255, 255, 255, 0.28);
  color: var(--text);
}
.hero-search-clear[hidden] {
  display: none !important;
}

.hero-search-row .hero-sort-select,
.hero-sort-select {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 105px !important;
  max-width: 125px !important;
  min-height: 36px !important;
  padding: 5px 8px !important;
  font-size: 11.5px !important;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  outline: none;
  cursor: pointer;
}

/* Results Search in SMS Fetcher */
input.search {
  min-width: 200px;
  max-width: 280px;
  min-height: 34px !important;
  height: 34px;
  padding: 6px 12px 6px 32px !important;
  font-size: 12.5px;
  background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 10px center !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: all 0.15s ease;
}
input.search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Scrollable List Container (Services & Countries & Domains) */
.hero-list-container {
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-elev-2);
}

.hero-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s ease;
}
.hero-list-item:last-child {
  border-bottom: none;
}
.hero-list-item:hover {
  background: var(--bg-row-hover);
}
.hero-list-item.is-selected {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
}
.hero-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.hero-item-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Crisp Website & Mail Domain Brand Logos */
.roxy-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  vertical-align: middle;
}
[data-theme="dark"] .roxy-brand-logo {
  background: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.roxy-logo-md {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.roxy-logo-sm {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.roxy-logo-sm svg {
  width: 15px;
  height: 15px;
}
.roxy-logo-xs {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  box-shadow: none;
}
.roxy-logo-xs svg {
  width: 12px;
  height: 12px;
}
.roxy-brand-img {
  display: block;
  object-fit: contain;
  border-radius: 2px;
}
.roxy-brand-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.roxy-logo-xs .roxy-brand-fallback {
  font-size: 7.5px;
}

.hero-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.hero-item-name {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  line-height: 1.25;
}
.hero-item-sub {
  font-size: 10.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-item-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 4px;
}

/* Customize Section Fields */
.hero-field-block {
  margin-bottom: 10px;
}
.hero-field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.hero-field-sub {
  font-size: 11px;
  color: var(--text-dim);
}
.hero-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-radio-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
}
.hero-custom-select-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-input);
  padding: 7px 10px;
}
.hero-select-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.hero-select-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: normal;
}
.hero-select {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12.5px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  outline: none;
}

/* Offers & Price Tiers Radio List */
.hero-offers-container {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-elev-2);
}
.hero-offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
}
.hero-offer-row:last-child {
  border-bottom: none;
}
.hero-offer-row:hover {
  background: var(--bg-row-hover);
}
.hero-offer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-offer-price {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.hero-offer-stock {
  font-size: 11px;
  color: var(--text-dim);
}

/* Skeleton Loading Shimmer Animation */
@keyframes roxyShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.roxy-skeleton {
  background: linear-gradient(90deg, rgba(140, 150, 165, 0.12) 25%, rgba(140, 150, 165, 0.28) 50%, rgba(140, 150, 165, 0.12) 75%);
  background-size: 200% 100%;
  animation: roxyShimmer 1.4s infinite linear;
  border-radius: 6px;
  display: inline-block;
}

html[data-theme="dark"] .roxy-skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
}

.hero-offer-skeleton-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.hero-offer-skeleton-row:last-child {
  border-bottom: none;
}
.hero-offer-skeleton-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-offer-skeleton-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.hero-offer-skeleton-pill {
  width: 78px;
  height: 15px;
}
.hero-offer-skeleton-stock {
  width: 65px;
  height: 12px;
}

/* Stepper for Quantity */
.hero-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-input);
  overflow: hidden;
}
.hero-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.hero-qty-btn:hover {
  background: var(--bg-row-hover);
}
.hero-qty-val {
  min-width: 34px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

/* Sidebar Footer & Order Button */
.hero-sidebar-footer {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-summary-box {
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.hero-summary-box strong {
  color: var(--text);
}
.hero-order-btn {
  width: 100%;
  min-height: 40px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* ==========================================================================
   Roxyr by Roxy Cloud — Brand Badge, Wallet, ShopeePay QRIS & Owner Admin
   ========================================================================== */

.roxy-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-bg);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.roxy-empty-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 4px;
}

.email-empty-box p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.email-empty-box small {
  font-size: 12.5px;
  color: var(--text-dim);
  max-width: 440px;
  line-height: 1.45;
}

/* Floating Roxy Cloud WhatsApp Support Button */
.roxy-support-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 10px 28px var(--accent-glow), 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, box-shadow 0.18s ease;
}

.roxy-support-fab:hover {
  background: var(--accent-hot);
  color: #ffffff;
  opacity: 1;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.24);
}

.roxy-support-icon {
  font-size: 15px;
  line-height: 1;
}

/* Wallet & QRIS Preset Grid */
.wallet-section-box {
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.qris-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

@media (max-width: 560px) {
  .qris-preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.qris-preset-btn {
  appearance: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qris-preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.qris-preset-btn.is-active {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* QRIS Invoice Card (ShopeePay Orange-Red Branded Frame) */
#qrisInvoiceCard {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--bg-elev-2);
  border: 1.5px solid #EE4D2D;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 26px rgba(238, 77, 45, 0.16);
}

.qris-invoice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.qris-invoice-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 600px) {
  .qris-invoice-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.qris-qr-frame {
  width: 180px;
  height: 180px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

#qrisImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.qris-invoice-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.qris-amount-box {
  padding: 10px 12px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-sm);
}

#qrisTotalAmount {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.qris-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
}

.qris-invoice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Owner Admin KPI Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-kpi-card {
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-kpi-card.is-profit {
  background: var(--ok-bg);
  border-color: rgba(48, 209, 88, 0.35);
}

.admin-kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.admin-kpi-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.admin-kpi-card.is-profit .admin-kpi-val {
  color: var(--ok);
}

/* Owner Admin Command Center Enhancements */
.admin-tab-bar {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  min-height: 42px;
}

.admin-tab-bar .active-list-pill {
  flex-shrink: 0;
}

.admin-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.admin-card-row:hover {
  border-color: var(--line-highlight);
  background: var(--bg-row-hover);
}

@media (max-width: 680px) {
  .admin-card-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .admin-card-info,
  .admin-card-row > div:first-child {
    min-width: 100%;
  }
  .admin-card-actions,
  .admin-card-row > div:last-child {
    width: 100%;
    justify-content: flex-end;
  }
}

.admin-badge-active {
  background: var(--ok-bg) !important;
  color: var(--ok) !important;
  border: 1px solid rgba(48, 209, 88, 0.35) !important;
}

.admin-badge-inactive {
  background: var(--bad-bg) !important;
  color: var(--bad) !important;
  border: 1px solid rgba(255, 69, 58, 0.35) !important;
}

.admin-badge-role {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #f59e0b !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.admin-tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: background 0.14s ease;
}

.admin-tx-item:hover {
  background: var(--bg-row-hover);
}

.admin-empty-state {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-input);
}

.js-adjust-preset {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 8px;
}

/* GoPay Admin Command Center Tab Responsive Enhancements */
#adminPaneGopay {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.admin-gopay-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-gopay-status-row {
  max-width: 100%;
  box-sizing: border-box;
}

#adminGopayStatusDetails {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .admin-gopay-result-grid {
    flex-direction: column !important;
    align-items: center !important;
  }
}

@media (max-width: 480px) {
  .admin-gopay-phone-row,
  .admin-gopay-otp-row {
    grid-template-columns: 1fr !important;
  }
  .admin-gopay-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .admin-gopay-status-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  #adminGopayStatusDetails {
    min-width: 0 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}

/* ==========================================================================
   Top-Right Floating Order Notification (Getting Emails…)
   ========================================================================== */

.roxy-top-notify-wrap {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .roxy-top-notify-wrap {
    top: 14px;
    right: 14px;
    left: 14px;
  }
}

.roxy-top-notify {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-highlight);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--text);
  font-size: 13px;
  pointer-events: auto;
  animation: roxySlideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 250px;
  max-width: 380px;
  box-sizing: border-box;
}

@keyframes roxySlideInRight {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.roxy-top-notify.is-closing {
  opacity: 0;
  transform: translateX(24px) scale(0.96);
  pointer-events: none;
}

.roxy-top-notify.is-loading {
  border-color: rgba(255, 107, 0, 0.45);
  background: linear-gradient(135deg, var(--bg-elev-2) 0%, rgba(255, 107, 0, 0.06) 100%);
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.roxy-top-notify.is-success {
  border-color: rgba(48, 209, 88, 0.45);
  background: linear-gradient(135deg, var(--bg-elev-2) 0%, rgba(48, 209, 88, 0.08) 100%);
  box-shadow: 0 12px 32px rgba(48, 209, 88, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.roxy-top-notify.is-error {
  border-color: rgba(255, 69, 58, 0.45);
  background: linear-gradient(135deg, var(--bg-elev-2) 0%, rgba(255, 69, 58, 0.08) 100%);
  box-shadow: 0 12px 32px rgba(255, 69, 58, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.roxy-top-notify-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-pill);
}

.roxy-top-notify.is-loading .roxy-top-notify-ico {
  background: rgba(255, 107, 0, 0.12);
}

.roxy-top-notify.is-success .roxy-top-notify-ico {
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 700;
  font-size: 15px;
}

.roxy-top-notify.is-error .roxy-top-notify-ico {
  background: var(--bad-bg);
  color: var(--bad);
  font-weight: 700;
  font-size: 15px;
}

.roxy-top-notify-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 107, 0, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.roxy-top-notify-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.roxy-top-notify-title {
  font-weight: 650;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.25;
}

.roxy-top-notify-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.3;
}

/* ==========================================================================
   Email Order Skeleton Loading Card (Active Inboxes List)
   ========================================================================== */

.litensi-row.is-skeleton {
  border-style: dashed !important;
  border-color: rgba(255, 107, 0, 0.35) !important;
  background: var(--bg-elev-2);
  pointer-events: none;
  user-select: none;
  animation: skeletonPulseBorder 2s infinite ease-in-out;
}

@keyframes skeletonPulseBorder {
  0%, 100% {
    border-color: var(--line-highlight);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  50% {
    border-color: rgba(255, 107, 0, 0.45);
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.09);
  }
}

.skeleton-arrival-box {
  background: rgba(255, 107, 0, 0.05) !important;
  border: 1px dashed rgba(255, 107, 0, 0.35) !important;
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.litensi-spinner-xs {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

/* ── Binance / Crypto Payment Modal Styles ────────────────────────────────── */
.binance-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 10px;
}

.binance-brand-tag {
  font-size: 12px;
  font-weight: 750;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.binance-lang-toggle {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.binance-lang-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1.2;
}

.binance-lang-btn:hover {
  color: var(--text);
}

.binance-lang-btn.is-active {
  background: #F0B90B;
  color: #0B0E11;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.binance-invoice-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 680px) {
  .binance-invoice-body {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }
  .binance-qr-card {
    width: 174px;
    padding: 8px 8px 6px;
    margin: 0 auto;
  }
  .binance-qr-white-plate {
    width: 148px;
    height: 148px;
    padding: 5px;
  }
  .binance-top-bar {
    padding: 5px 8px;
    margin-bottom: 8px;
  }
}

/* Binance Themed QR Card (Kuning - Hitam) */
.binance-qr-card {
  width: 196px;
  background: #181A20;
  border: 2px solid #F0B90B;
  border-radius: 14px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(240, 185, 11, 0.18), 0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  box-sizing: border-box;
}

.binance-qr-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(240, 185, 11, 0.25);
  margin-bottom: 8px;
}

.binance-qr-card-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #F0B90B;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.binance-qr-white-plate {
  width: 166px;
  height: 166px;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.binance-qr-white-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.binance-qr-card-caption {
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 650;
  color: #EAECEF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  width: 100%;
}

.binance-qr-card-caption span {
  color: #F0B90B;
}

/* BEP-20 Highlight Warning Alert */
.binance-network-alert {
  background: rgba(240, 185, 11, 0.1);
  border: 1.5px solid #F0B90B;
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.binance-network-alert-icon {
  font-size: 16px;
  line-height: 1.2;
}

.binance-network-alert-body {
  flex: 1;
}

.binance-network-alert-title {
  font-size: 11.5px;
  font-weight: 750;
  color: #B45309;
  letter-spacing: 0.2px;
  line-height: 1.35;
}
[data-theme="dark"] .binance-network-alert-title {
  color: #FCD535;
}

.binance-network-badge {
  display: inline-block;
  background: #F0B90B;
  color: #0B0E11;
  font-weight: 850;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  margin: 0 2px;
}

.binance-network-alert-desc {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 2px;
  line-height: 1.35;
}

/* Header BEP-20 Pill */
.binance-pill-bep20 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F0B90B;
  color: #0B0E11;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #D4A209;
  box-shadow: 0 2px 5px rgba(240, 185, 11, 0.25);
  letter-spacing: 0.3px;
  user-select: none;
}

.binance-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0B0E11;
  display: inline-block;
  animation: binancePulseDot 1.8s infinite ease-in-out;
}

@keyframes binancePulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* Binance Amount Box */
.binance-amount-box {
  padding: 8px 10px;
  background: rgba(240, 185, 11, 0.08);
  border: 1.5px solid #F0B90B;
  border-radius: 9px;
}

.binance-exact-usdt {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--mono);
  color: #B45309;
}
[data-theme="dark"] .binance-exact-usdt {
  color: #FCD535;
}

.binance-tag-exact {
  background: rgba(240, 185, 11, 0.22);
  color: #B45309;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
[data-theme="dark"] .binance-tag-exact {
  color: #FCD535;
}

.binance-tag-bep20 {
  background: #F0B90B;
  color: #0B0E11;
  font-size: 9.5px;
  font-weight: 850;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.binance-address-code {
  word-break: break-all;
  font-size: 11.5px;
  font-family: var(--mono);
  background: var(--bg-input);
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  flex: 1;
  color: var(--text);
  line-height: 1.35;
}

/* ==========================================================================
   Dual QRIS Payment Method Selector (Top-Right Corner) & Admin Gateway Card
   ========================================================================== */
.qris-topup-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.qris-topup-header-row > .hero-field-label {
  margin: 0;
  line-height: 1.3;
}

.qris-method-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  max-width: 100%;
  flex-wrap: wrap;
}

.qris-method-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}

.qris-method-select {
  min-width: 175px;
  max-width: 220px;
  height: 34px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.qris-method-hint {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-dim);
}

@media (max-width: 520px) {
  .qris-topup-header-row {
    align-items: flex-start;
  }
  .qris-method-selector {
    width: 100%;
    justify-content: space-between;
  }
  .qris-method-select {
    flex: 1;
    max-width: none;
    min-width: 150px;
  }
}

.admin-webhook-url-box {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-secondary, var(--bg-elev-1));
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-webhook-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.admin-webhook-code {
  flex: 1;
  min-width: 200px;
  word-break: break-all;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 7px 10px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.admin-shopeepay-field-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-legacy-details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  overflow: hidden;
}

.admin-legacy-summary {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-elev-2);
}

.admin-legacy-summary::-webkit-details-marker {
  display: none;
}

.admin-legacy-summary::after {
  content: '▾';
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.16s ease;
}

.admin-legacy-details[open] > .admin-legacy-summary::after {
  transform: rotate(180deg);
}

.admin-legacy-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--line);
}

/* ── ShopeePay QRIS Payment Gateway Themed Styles (#EE4D2D Brand Border) ──── */
.shopeepay-primary-btn {
  background: linear-gradient(135deg, #EE4D2D 0%, #D73211 100%) !important;
  border-color: #EE4D2D !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(238, 77, 45, 0.28);
}

.shopeepay-primary-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #FF5733 0%, #EE4D2D 100%) !important;
  box-shadow: 0 4px 16px rgba(238, 77, 45, 0.38);
}

.shopeepay-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  background: var(--bg-elev-1);
  border: 1px solid rgba(238, 77, 45, 0.28);
  border-radius: 9px;
  margin-bottom: 12px;
}

.shopeepay-brand-tag {
  font-size: 12px;
  font-weight: 750;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.3px;
}

.shopeepay-inline-icon {
  display: block;
  flex-shrink: 0;
}

.shopeepay-qris-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(238, 77, 45, 0.08);
  border: 1px solid rgba(238, 77, 45, 0.34);
  border-left: 4px solid #EE4D2D;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.shopeepay-qris-alert-icon {
  display: flex;
  align-items: center;
  padding-top: 1px;
  flex-shrink: 0;
}

.shopeepay-qris-alert-body {
  flex: 1;
  min-width: 0;
}

.shopeepay-qris-alert-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #D73211;
  margin-bottom: 3px;
  text-transform: uppercase;
}

[data-theme="dark"] .shopeepay-qris-alert-title {
  color: #FF7A59;
}

.shopeepay-network-badge {
  display: inline-block;
  background: #EE4D2D;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 2px;
}

.shopeepay-qris-alert-desc {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.45;
}

.shopeepay-amount-box {
  border-color: rgba(238, 77, 45, 0.38) !important;
  background: rgba(238, 77, 45, 0.06) !important;
}

[data-theme="dark"] .shopeepay-settlement-badge {
  color: #FF7A59 !important;
  background: rgba(238, 77, 45, 0.16) !important;
  border-color: rgba(255, 122, 89, 0.65) !important;
}

[data-theme="dark"] #qrisAmountLabel,
[data-theme="dark"] #qrisTotalAmount,
[data-theme="dark"] #qrisExpiredAt {
  color: #FF7A59 !important;
}

.shopeepay-invoice-body {
  display: grid;
  grid-template-columns: 204px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 680px) {
  .shopeepay-invoice-body {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }
  .shopeepay-qr-card {
    width: 178px !important;
    padding: 9px 9px 8px !important;
    margin: 0 auto;
  }
  .shopeepay-qr-white-plate {
    width: 152px !important;
    height: 152px !important;
    padding: 6px !important;
  }
}

/* ShopeePay Signature #EE4D2D Orange-Red Bordered QR Card */
.shopeepay-qr-card {
  width: 200px;
  background: linear-gradient(180deg, #EE4D2D 0%, #D73211 100%);
  border: 2.5px solid #EE4D2D;
  border-radius: 14px;
  padding: 10px 10px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(238, 77, 45, 0.28), 0 2px 8px rgba(0, 0, 0, 0.16);
  position: relative;
  box-sizing: border-box;
}

.shopeepay-qr-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  margin-bottom: 9px;
}

.shopeepay-qr-card-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.shopeepay-qr-white-plate {
  width: 170px;
  height: 170px;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.shopeepay-qr-white-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.shopeepay-qr-card-caption {
  margin-top: 8px;
  width: 100%;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  gap: 4px;
  letter-spacing: 0.2px;
  opacity: 0.96;
}

.admin-shopeepay-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-shopeepay-result-grid {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.qris-breakdown-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 4px 0 6px;
  font-size: 11.5px;
  color: var(--text-dim);
}

.qris-unique-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(238, 77, 45, 0.12);
  border: 1px solid rgba(238, 77, 45, 0.35);
  color: #EE4D2D;
  font-weight: 800;
  font-family: var(--mono);
  font-size: 11px;
}

/* ==========================================================================
   Share Email Inbox — Row Button, Modal & Public Shared Inbox Live Viewer
   ========================================================================== */

.litensi-row-actions .litensi-share-chip {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  background: var(--bg-pill);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 550;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.litensi-row-actions .litensi-share-chip:hover {
  background: var(--accent-bg);
  border-color: var(--accent-glow);
  color: var(--accent);
}

.litensi-row-actions .litensi-share-chip.is-shared-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
  color: #10b981;
  font-weight: 650;
}

html[data-theme="light"] .litensi-row-actions .litensi-share-chip.is-shared-active {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.4);
  color: #059669;
}

.litensi-row-actions .litensi-share-chip.is-shared-active:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.65);
}

/* Share Inbox Modal */
.share-inbox-card-modal {
  max-width: 580px;
  width: 100%;
}

.share-modal-icon {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}

.share-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.share-status-pill.is-active {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

html[data-theme="light"] .share-status-pill.is-active {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}

.share-status-pill.is-off {
  background: var(--bg-pill);
  color: var(--text-dim);
  border: 1px solid var(--line);
}

.share-modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.share-capabilities-box {
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.share-capabilities-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.share-capabilities-list {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.45;
}

.share-capabilities-list li.is-muted {
  color: var(--text-dim);
}

.share-url-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.share-url-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.share-url-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-url-input {
  flex: 1 1 240px;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-highlight) !important;
  background: var(--bg-input) !important;
  color: var(--text) !important;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

html[data-theme="dark"] .share-url-input {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #f5f5f7 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .share-inbox-card-modal .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.share-disabled-notice {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--amber-bg);
  border: 1px solid var(--amber-glow);
  color: var(--amber);
  font-size: 12.5px;
  line-height: 1.45;
}

.share-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-danger-outline {
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.09) !important;
  color: var(--bad) !important;
  font-weight: 600 !important;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.65) !important;
}

/* Standalone Shared Inbox Live Viewer (?share=<token>) */
html.is-shared-inbox-page .topbar,
html.is-shared-inbox-page .service-tabs,
html.is-shared-inbox-page .roxy-support-fab,
html.is-shared-inbox-page footer,
html.is-shared-inbox-page .foot,
html.is-shared-inbox-page .app-footer,
html.is-shared-inbox-page .roxy-footer-bar,
html.is-shared-inbox-page #smsNumberPanel,
html.is-shared-inbox-page #totpPanel,
html.is-shared-inbox-page #addressPanel,
html.is-shared-inbox-page #smsPanel,
html.is-shared-inbox-page #emailPanel > *:not(#sharedInboxStandaloneWrap) {
  display: none !important;
}

html[data-theme="dark"] .shared-inbox-card .btn-ghost {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #f5f5f7 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .shared-inbox-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

html.is-shared-inbox-page body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 40px 16px;
}

html.is-shared-inbox-page main.wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
}

html.is-shared-inbox-page #emailPanel {
  display: block !important;
  width: 100%;
}

.shared-inbox-standalone-wrap {
  margin-bottom: 18px;
  width: 100%;
}

.shared-inbox-card {
  background: var(--bg-elev-1, var(--bg-card));
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shared-inbox-card.is-arrived {
  border-color: #10b981;
}

.shared-inbox-card.is-error {
  border-color: rgba(239, 68, 68, 0.55);
}

.shared-inbox-badge.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--bad);
  border-color: rgba(239, 68, 68, 0.35);
}

.shared-inbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.shared-inbox-top-left,
.shared-inbox-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shared-inbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}

.shared-inbox-server-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--line);
  color: var(--text);
}

.shared-inbox-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.shared-inbox-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.shared-inbox-email-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.shared-inbox-email-text {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.shared-inbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shared-inbox-actions .btn {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-pill);
  color: var(--text);
  border: 1px solid var(--line);
}

.shared-inbox-actions .btn:hover {
  background: var(--bg-input-focus);
  border-color: var(--line-highlight);
}

.shared-inbox-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.shared-inbox-status-strip.is-waiting {
  background: var(--amber-bg);
  border: 1px solid var(--amber-glow);
  color: var(--amber);
}

.shared-inbox-status-strip.is-arrived {
  background: var(--ok-bg);
  border: 1px solid rgba(48, 209, 88, 0.35);
  color: var(--text);
}

.shared-status-left,
.shared-status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shared-inbox-message-viewer {
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  max-height: 300px;
  overflow-y: auto;
}

.shared-inbox-loading-body,
.shared-inbox-error-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  font-size: 13px;
  color: var(--text);
}

.shared-inbox-error-body {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--bad);
}

@media (max-width: 680px) {
  /* Compact mobile header that scrolls naturally without blocking 35% of screen */
  .topbar {
    position: relative;
    padding: 8px 12px;
    gap: 8px;
  }
  .brand-sub,
  #healthBadge,
  #conn,
  .conn,
  #openWalletHistoryBtn {
    display: none !important;
  }
  .topbar-right {
    gap: 6px;
  }
  .topbar-right .btn,
  .top-saldo-pill,
  .current-user-badge {
    padding: 4px 10px;
    font-size: 11.5px;
  }
  .wrap {
    padding: 12px 12px 96px;
  }
  .card {
    padding: 14px 14px;
  }
  .roxy-support-fab {
    right: 14px;
    bottom: 14px;
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Prevent vertical flex-basis 360px stretching inside email rows */
  .litensi-tier-left,
  .litensi-row-info {
    flex: 0 0 auto;
    align-content: flex-start;
  }

  /* Responsive Email & Share Modals on Mobile (fixes 1-char-per-line vertical title wrap) */
  .email-gmail-modal,
  .email-modal-overlay {
    padding: 12px;
  }
  .gmail-card,
  .email-modal-card {
    max-height: 90vh;
    border-radius: 16px;
  }
  .gmail-head,
  .email-modal-header {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 10px;
    position: relative;
  }
  .gmail-brand {
    flex: 1 1 100%;
    width: 100%;
    padding-right: 36px;
  }
  .gmail-subject {
    font-size: 15px;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .gmail-sub {
    gap: 5px;
    font-size: 11.5px;
  }
  .gmail-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .gmail-head .gmail-close-btn,
  .email-modal-header .gmail-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
  }
  .gmail-waiting-banner,
  .gmail-arrived-banner {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .gmail-body,
  .email-modal-body {
    padding: 14px 16px;
  }
  .gmail-footer {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .litensi-row-actions .litensi-share-chip {
    min-height: 36px;
    padding: 0 11px;
    font-size: 11.5px;
    width: auto;
    flex: 0 0 auto;
  }
  .share-url-input-row .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .shared-inbox-main-row {
    flex-direction: column;
    align-items: stretch;
  }
  .shared-inbox-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .shared-inbox-actions .btn {
    flex: 1 1 auto;
    min-height: 38px;
    justify-content: center;
  }
}

/* ==========================================================================
   Country Flag Badges & Windows High-DPI Image Fallback
   ========================================================================== */
.country-flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 4px;
}

.country-flag-badge .country-flag-img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  width: 20px;
  height: 15px;
}

.country-flag-fallback {
  font-family: 'Twemoji Country Flags', var(--sans);
  line-height: 1;
}

.hero-offer-empty-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--amber-bg);
  border: 1px solid var(--amber);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.45;
}

.hero-offer-empty-banner strong {
  display: block;
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 2px;
}

.hero-offer-empty-banner p {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ==========================================================================
   Mobile Segmented View Switcher (Order vs Active vs History)
   Prevents overlapping of Order button & Waiting Inboxes on Phone
   ========================================================================== */
.roxy-mobile-view-tabs {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.roxy-mobile-view-pill {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  min-height: 36px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.roxy-mobile-view-pill.is-active {
  background: var(--bg-elev-2);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .roxy-mobile-view-pill.is-active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.roxy-mobile-view-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

.roxy-mobile-view-badge:empty,
.roxy-mobile-view-badge[data-count="0"] {
  display: none;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (Apple Cupertino Glass)
   ========================================================================== */
.roxy-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--line);
  z-index: 9200;
  padding: 0 8px env(safe-area-inset-bottom, 0px) 8px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  align-items: center;
  justify-content: space-around;
}

html[data-theme="light"] .roxy-mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.88);
  border-top-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-nav-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 0;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-btn:hover {
  color: var(--text);
}

.mobile-nav-btn.is-active {
  color: var(--accent);
}

.mobile-nav-icon {
  font-size: 18px;
  line-height: 1;
  display: block;
  transition: transform 0.15s ease;
}

.mobile-nav-btn.is-active .mobile-nav-icon {
  transform: scale(1.1);
}

.mobile-nav-label {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  display: block;
}

/* ==========================================================================
   Responsive Adaptations for Phone (<= 850px)
   ========================================================================== */
@media (max-width: 850px) {
  body {
    padding-bottom: 76px;
  }

  .topbar {
    position: relative !important;
    top: auto !important;
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .service-switcher,
  .service-tabs {
    display: none !important;
  }

  .hero-sidebar-card {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-main-area,
  .service-panel,
  .card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .email-subnav-bar {
    display: none !important;
  }

  .roxy-mobile-bottom-nav {
    display: flex;
  }

  .roxy-support-fab {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    bottom: 74px !important;
    right: 12px !important;
    box-shadow: 0 6px 20px var(--accent-glow), 0 2px 8px rgba(0, 0, 0, 0.22) !important;
  }

  .roxy-support-fab .roxy-support-label {
    display: none !important;
  }

  .roxy-support-fab .roxy-support-icon {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .roxy-mobile-view-tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Responsive Mobile View Mode Switching */
  .hero-split-layout[data-mobile-view="order"] .hero-sidebar-card {
    display: flex !important;
  }
  .hero-split-layout[data-mobile-view="order"] .hero-main-area {
    display: none !important;
  }

  .hero-split-layout[data-mobile-view="active"] .hero-sidebar-card {
    display: none !important;
  }
  .hero-split-layout[data-mobile-view="active"] .hero-main-area {
    display: flex !important;
    flex-direction: column;
  }
  .hero-split-layout[data-mobile-view="active"] .active-emails-section {
    display: block !important;
  }
  .hero-split-layout[data-mobile-view="active"] .history-emails-section {
    display: none !important;
  }

  .hero-split-layout[data-mobile-view="history"] .hero-sidebar-card {
    display: none !important;
  }
  .hero-split-layout[data-mobile-view="history"] .hero-main-area {
    display: flex !important;
    flex-direction: column;
  }
  .hero-split-layout[data-mobile-view="history"] .active-emails-section {
    display: none !important;
  }
  .hero-split-layout[data-mobile-view="history"] .history-emails-section {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 12px 12px 136px !important;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px 12px !important;
    gap: 6px 8px !important;
  }

  .brand {
    flex-shrink: 0;
    min-width: 0;
    gap: 8px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .topbar h1 {
    font-size: 14.5px;
    white-space: nowrap;
  }

  .roxy-brand-badge,
  #openTopupModalBtn,
  #topSaldoText strong {
    display: none !important;
  }

  #topSaldoPill {
    cursor: pointer;
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  #adminLoginLink,
  #topbarApiDocsLink,
  #numberApiDocsLink {
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .topbar-right {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
  }

  #settingsBtn span:not(#themeIcon) {
    display: none !important;
  }

  #settingsBtn {
    padding: 4px 8px;
  }

  .hero-top-toolbar {
    padding: 8px 12px;
    gap: 8px;
  }

  .hero-toolbar-badge,
  .hero-toolbar-center {
    display: none !important;
  }

  .roxy-mobile-view-tabs {
    gap: 4px;
    padding: 3px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .roxy-mobile-view-pill {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 6px;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 4px;
    box-sizing: border-box;
  }

  .roxy-mobile-view-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .roxy-mobile-view-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   Green Stock Badge (.badge-stock) & SMS Skeleton / Order Animations
   ========================================================================== */

.hero-item-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
}

.badge-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.25;
}

html[data-theme="dark"] .badge-stock {
  color: var(--text-dim);
  background: transparent;
  border: none;
}

.hero-list-skeleton-item {
  pointer-events: none;
  user-select: none;
}

@keyframes roxyOrderEnter {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.roxy-order-enter {
  animation: roxyOrderEnter 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   Roxyr Language Toggle Button (#roxyLangToggle)
   ========================================================================== */
.roxy-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--bg-pill);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.16s ease;
}

.roxy-lang-toggle:hover {
  background: var(--bg-elev-2);
  border-color: var(--line-highlight);
  transform: translateY(-1px);
}

.roxy-lang-toggle:active {
  transform: translateY(0);
}

.roxy-lang-toggle .lang-flag {
  font-size: 14px;
  line-height: 1;
}

.roxy-lang-toggle .lang-code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
}

@media (max-width: 680px) {
  .roxy-lang-toggle {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }
}

/* ==========================================================================
   M5 Executive Time-Range, Server Health Lights & Live Delivery Feed
   ========================================================================== */
.admin-exec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-range-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.admin-range-pill {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.14s ease;
}

.admin-range-pill:hover {
  color: var(--text);
  background: var(--bg-pill);
}

.admin-range-pill.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 69, 0, 0.25);
}

.admin-range-summary {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--mono);
}

.admin-ops-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-health-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 640px) {
  .admin-health-strip {
    grid-template-columns: 1fr;
  }
}

.admin-health-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.admin-health-pill .health-name {
  flex: 1;
  font-weight: 600;
  color: var(--text);
}

.admin-health-pill .health-rate {
  font-family: var(--mono);
  font-size: 12px;
}

.admin-health-pill.is-green {
  border-color: rgba(48, 209, 88, 0.35);
}

.admin-health-pill.is-yellow {
  border-color: rgba(245, 158, 11, 0.45);
}

.admin-health-pill.is-red {
  border-color: rgba(239, 68, 68, 0.45);
}

.admin-live-feed-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.admin-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok, #10b981);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.admin-live-feed-list {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--text-dim);
}

.admin-live-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--bg-pill);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.admin-live-item strong {
  color: var(--text);
}

.admin-live-item em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

/* ==========================================================================
   M4 Virtual Number Conversion UX (Favorites, Recent, Guarantee, Alerts)
   ========================================================================== */
.favorite-star {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  font-size: 14px;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.14s ease, color 0.14s ease;
}

.favorite-star:hover {
  transform: scale(1.18);
  color: #f59e0b;
}

.favorite-star.is-pinned {
  color: #f59e0b;
}

.hero-item-sub-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex-wrap: nowrap;
}

.badge-pinned {
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.32);
  flex-shrink: 0;
}

:root[data-theme="dark"] .badge-pinned {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.18);
}

.recent-order-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.recent-order-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.recent-order-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.recent-order-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.guarantee-badge {
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

:root[data-theme="dark"] .guarantee-badge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
}

.hero-offer-badges {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-offer-main-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.offer-rate-badge,
.hero-offer-row .offer-rate-badge,
.offer-recommended-badge,
.hero-offer-row .offer-recommended-badge {
  display: none !important;
}

.sms-inbox-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.sms-inbox-toggle input {
  accent-color: var(--accent);
  cursor: pointer;
}

#smsBrowserNotifyToggle.is-active {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--ok, #10b981);
}

/* M8 Polish: Unburied service/country names + clean zero-overflow Step 3 offer rows */
.hero-item-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.hero-item-right .hero-item-price {
  font-size: 12px;
  white-space: nowrap;
}

.hero-item-right .favorite-star {
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-faint, #9ca3af);
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.hero-item-right .favorite-star:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  transform: scale(1.08);
}

.hero-item-right .favorite-star.is-pinned {
  color: #f59e0b;
}

.hero-item-sub {
  white-space: normal;
  overflow: visible;
  line-height: 1.25;
}

.hero-offers-container {
  overflow-x: hidden !important;
  max-width: 100%;
}

.hero-offer-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
}

.hero-offer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.hero-offer-row .hero-offer-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

.hero-offer-server-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--text);
  letter-spacing: 0.15px;
  white-space: nowrap;
}

.hero-offer-row .hero-offer-price {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.offer-tag-most-success {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

html[data-theme="dark"] .offer-tag-most-success {
  background: rgba(255, 107, 0, 0.16);
  border-color: rgba(255, 107, 0, 0.45);
  color: #ff8533;
}

.hero-offer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-left: 22px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero-offer-footer .badge-stock {
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-list-item .roxy-logo-md {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .hero-item-right .hero-item-price,
  .hero-list-item > .hero-item-price {
    font-size: 11.5px;
  }
}

/* M9: Best OTP Rate Country Modal & Responsive Bars */
.hero-step-header.hero-step-header--wrap {
  flex-wrap: wrap;
  gap: 6px 8px;
}
.hero-step-head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-step-head-title .hero-step-num {
  margin-right: 0;
}
.hero-step-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  margin-left: auto;
  white-space: nowrap;
}
.hero-step-head-actions .hero-badge-pill {
  font-size: 10.5px;
  padding: 2px 7px;
  white-space: nowrap;
}

.hero-badge-pill.is-best-rate {
  border-color: rgba(16, 185, 129, 0.35);
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
}
[data-theme="dark"] .hero-badge-pill.is-best-rate {
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
}
.hero-badge-pill.is-best-rate:hover {
  background: rgba(16, 185, 129, 0.16);
}

.email-modal-card.best-otp-modal-dialog {
  max-width: 780px;
  width: min(94vw, 780px);
}

.best-otp-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px 22px;
  max-height: 76vh;
  overflow-y: auto;
}

.best-otp-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.best-otp-control-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 180px;
}

.best-otp-control-field.is-action {
  flex: 0 0 auto;
  min-width: auto;
}

.best-otp-control-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.best-otp-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
  padding: 2px 2px 4px;
}

.best-otp-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.best-otp-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.best-otp-dot.is-rate { background: #6366f1; }
.best-otp-dot.is-share { background: #34d399; }

.best-otp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.best-otp-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  overflow: hidden;
}

.best-otp-row-summary {
  display: grid;
  grid-template-columns: minmax(175px, 1.3fr) minmax(180px, 1.4fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  cursor: pointer;
}

.best-otp-row-summary:hover {
  background: var(--accent-bg);
}

.best-otp-country-col {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.best-otp-chevron {
  font-size: 11px;
  color: var(--text-dim);
  width: 12px;
  flex-shrink: 0;
}

.best-otp-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  min-width: 22px;
  flex-shrink: 0;
}

.best-otp-country-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.best-otp-country-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.best-otp-country-meta small {
  font-size: 11px;
  color: var(--text-dim);
}

.best-otp-metrics-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.best-otp-bar-line {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.best-otp-bar-val {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  white-space: nowrap;
}
[data-theme="dark"] .best-otp-bar-val { color: #34d399; }
.best-otp-bar-val.is-muted {
  color: var(--text-dim);
  font-weight: 600;
}

.best-otp-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  overflow: hidden;
}

.best-otp-bar-track.is-mini {
  height: 6px;
}

.best-otp-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}
.best-otp-bar-fill.is-rate {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}
.best-otp-bar-fill.is-share {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.best-otp-operators-wrap {
  border-top: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.08);
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.best-otp-ops-head {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.best-otp-op-row {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.best-otp-op-name {
  font-weight: 600;
  color: var(--text);
}

.best-otp-op-metrics {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}

.best-otp-op-metrics small {
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .hero-toolbar-actions {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
  }
  .hero-toolbar-actions .btn {
    font-size: 11.5px;
    padding: 6px 10px;
  }
  .best-otp-modal-body {
    padding: 14px 16px 20px;
  }
  .best-otp-row-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .best-otp-action-col {
    display: flex;
    justify-content: flex-end;
  }
  .best-otp-ops-head,
  .best-otp-op-row {
    grid-template-columns: 1fr auto;
  }
  .best-otp-ops-head span:last-child,
  .best-otp-op-bars {
    display: none;
  }
}





