/* CPMBazar Design System — Mobile-First */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('/assets/css/cpmbazar-dashboard.css');

/* ── Variables ── */
:root {
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #0b0e14;
  --bg-card: #121722;
  --bg-hover: #171d2b;
  --border: rgba(148, 163, 184, 0.16);
  --border-soft: rgba(148, 163, 184, 0.09);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --primary: #2563eb;
  --primary-h: #1d4ed8;
  --primary-text: #60a5fa;
  --primary-dim: rgba(37, 99, 235, 0.14);
  --success: #34d399;
  --success-dim: rgba(16, 185, 129, 0.12);
  --warning: #fbbf24;
  --warning-dim: rgba(245, 158, 11, 0.12);
  --danger: #f87171;
  --danger-dim: rgba(239, 68, 68, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: none;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --sidebar-w: 252px;
  --header-h: 64px;
}

[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --border: #e2e6ee;
  --border-soft: #eef0f5;
  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #64748b;
  --primary: #2563eb;
  --primary-h: #1d4ed8;
  --primary-text: #2563eb;
  --primary-dim: rgba(37, 99, 235, 0.08);
  --success: #047857;
  --warning: #b45309;
  --danger: #b91c1c;
  --shadow: none;
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-h);
}

img, video, iframe, canvas, svg, pre {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

pre, code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

p, span, td, th, div, a, label {
  overflow-wrap: break-word;
}

button {
  font-family: var(--font);
}

/* Accessible touch targets & iOS zoom prevention */
@media (max-width: 768px) {
  input, select, textarea,
  .form-control, .form-input, .form-select, .form-textarea {
    font-size: 16px !important;
  }
}

/* ── Typography ── */
h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

h4 {
  font-size: .95rem;
  font-weight: 600;
}

/* ── Layout ── */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-drawer, 200);
  transition: transform .25s ease, box-shadow .25s ease;
}

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: calc(var(--z-drawer, 200) - 1);
}

.sidebar-overlay.active {
  display: block;
}

/* ── Topbar ── */
.topbar {
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: var(--z-header, 100);
}

.page-body {
  padding: 24px 20px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Sidebar inner ── */
.sidebar-logo {
  padding: 18px 16px 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-logo:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.sidebar-logo span {
  color: var(--primary);
}

.sidebar-nav {
  flex: 1;
  padding: 10px 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-section {
  margin-bottom: 6px;
}

.nav-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  padding: 8px 10px 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: background .12s, color .12s;
  cursor: pointer;
  min-height: 40px;
}

.nav-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.nav-link:hover,
.nav-link.active {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-dim);
}

.nav-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Stat Cards ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.stat-card .stat-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat-card .stat-value {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  margin-top: 4px;
  color: var(--text);
}

.stat-card .stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* ── Stats Grid — mobile 2-col, desktop 4-col ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* ── Country Grid — mobile 2-col ── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.country-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}

.country-card:hover,
.country-card:active {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.country-card.selected {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.country-flag {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.country-name {
  font-weight: 600;
  font-size: .88rem;
  line-height: 1.3;
}

.country-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.country-stock {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.stock-dot.low {
  background: var(--warning);
}

.stock-dot.none {
  background: var(--danger);
}

/* ── Service Tabs ── */
.service-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
  min-width: 0;
  max-width: 100%;
}

.service-tab-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.countries-panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

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

.service-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 40px;
}

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

.service-tab.active {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: background-color .16s cubic-bezier(0.22, 1, 0.36, 1), border-color .16s cubic-bezier(0.22, 1, 0.36, 1), color .16s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  font-family: var(--font);
  min-height: 36px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.2;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn:disabled,
.btn[disabled] {
  opacity: .45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  border: 1px solid var(--primary);
  box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-h);
  border-color: var(--primary-h);
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text) !important;
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text) !important;
  border-color: var(--primary);
  box-shadow: none;
}

[data-theme="light"] .btn-secondary {
  background: #f1f5f9;
  color: #0f172a !important;
  border-color: #cbd5e1;
}

[data-theme="light"] .btn-secondary:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a !important;
  border-color: #94a3b8;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border);
}

.btn-danger {
  background: #dc2626;
  color: #ffffff !important;
  border: 1px solid #dc2626;
  box-shadow: none;
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
  box-shadow: none;
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.32);
}

.btn-danger-outline:hover:not(:disabled) {
  background: #dc2626;
  color: #ffffff !important;
  border-color: #dc2626;
  box-shadow: none;
}

.btn-success {
  background: #059669;
  color: #ffffff !important;
  border: 1px solid #059669;
  box-shadow: none;
}

.btn-success:hover:not(:disabled) {
  background: #047857;
  border-color: #047857;
  box-shadow: none;
}

/* Sizing */
.btn-xs {
  padding: 4px 10px;
  font-size: 0.74rem;
  min-height: 28px;
  border-radius: 5px;
  gap: 4px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: .8rem;
  min-height: 32px;
  border-radius: 6px;
  gap: 5px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: .98rem;
  min-height: 44px;
  border-radius: 9px;
  gap: 8px;
}

.btn-block {
  width: 100%;
}

/* Theme Toggle SaaS Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  border-radius: 8px !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background-color .16s cubic-bezier(0.22, 1, 0.36, 1), border-color .16s cubic-bezier(0.22, 1, 0.36, 1), color .16s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: none;
  position: relative;
  flex-shrink: 0 !important;
  box-sizing: border-box;
}

.theme-toggle-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary-text);
  box-shadow: none;
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: none;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #f1f5f9;
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: none;
}

.theme-toggle-btn svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.85;
}

[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle-btn .icon-sun { display: block; }
[data-theme="light"] .theme-toggle-btn .icon-sun { display: none; }
[data-theme="light"] .theme-toggle-btn .icon-moon { display: block; }

/* ── Forms ── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-input,
.form-control,
.form-select,
.form-textarea,
select.form-select,
textarea.form-textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c8194' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option {
  background: #141619;
  color: #e8eaf0;
  padding: 8px 12px;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.form-input:focus,
.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 126, 240, 0.18);
}

.form-input::placeholder,
.form-control::placeholder,
.form-textarea::placeholder {
  color: var(--text-faint);
}

.form-error {
  font-size: .78rem;
  color: var(--danger);
  margin-top: 4px;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  background: var(--success-dim);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-dim);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-dim);
  color: var(--danger);
}

.badge-primary {
  background: var(--primary-dim);
  color: var(--primary);
}

.badge-muted {
  background: var(--bg-hover);
  color: var(--text-muted);
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  min-width: 480px;
}

.table th {
  text-align: left;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}

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

.table tr:last-child td {
  border-bottom: none;
}

/* ── Activation Panel ── */
.phone-display {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
  margin: 10px 0;
  word-break: break-all;
}

.otp-display {
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--success);
  background: var(--success-dim);
  padding: 14px 20px;
  border-radius: var(--radius);
  text-align: center;
  margin: 14px 0;
  border: 1px solid var(--success);
  word-break: break-all;
}

.status-waiting {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

/* ── Spinner ── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

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

/* ── Toasts ── */
.toast-container {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: var(--z-toast, 900);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 24px);
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 16px;
  box-shadow: var(--shadow-md);
  max-width: 320px;
  font-size: .86rem;
  animation: slideIn .2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.toast-error {
  border-left: 4px solid var(--danger);
}

.toast-warning {
  border-left: 4px solid var(--warning);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-card) 50%, var(--bg-hover) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ── Auth Pages ── */
.auth-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-logo a,
.auth-logo .auth-logo-link,
.auth-logo-brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  background: transparent;
  flex-shrink: 0;
}

.auth-logo-wordmark {
  display: inline;
  letter-spacing: -0.02em;
  line-height: 1;
}

.auth-logo a:hover,
.auth-logo .auth-logo-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.auth-logo a:active,
.auth-logo .auth-logo-link:active {
  transform: scale(0.98);
}

.auth-logo span.accent,
.auth-logo .auth-logo-wordmark span,
.auth-logo > span {
  color: var(--primary-text, var(--primary));
}

.auth-bottom-links {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.4;
}

.auth-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.auth-bottom-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.auth-bottom-links .auth-link-sep {
  color: var(--border);
  font-size: 12px;
  user-select: none;
  opacity: 0.8;
}


/* ── Empty States ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 44px;
  height: 44px;
  opacity: .4;
  margin: 0 auto 14px;
}

.empty-state p {
  margin-top: 8px;
  font-size: .88rem;
}

/* ── Page Header ── */
.page-title {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ── Utility ── */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.mt-1 {
  margin-top: 4px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.text-muted {
  color: var(--text-muted);
}

.text-sm {
  font-size: .82rem;
}

.text-xs {
  font-size: .72rem;
}

.gap-1 {
  gap: 4px;
}

.font-mono {
  font-family: 'Courier New', monospace;
}

.w-full {
  width: 100%;
}

.last-updated {
  font-size: .68rem;
  color: var(--text-faint);
  margin-top: 4px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.mb-1 {
  margin-bottom: 4px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.py-6 {
  padding-top: 24px;
  padding-bottom: 24px;
}

.grid {
  display: grid;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.text-lg {
  font-size: 1.15rem;
}

.text-danger {
  color: var(--danger);
}

.text-warning {
  color: var(--warning);
}

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

.text-cyan {
  color: var(--accent, #2563eb);
}

.font-bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.phone-copy-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.country-flag-icon {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  margin-right: 6px;
}

.api-key-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: monospace;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.key-blur {
  filter: blur(4px);
  transition: filter .2s;
  cursor: pointer;
  user-select: none;
}

.key-blur:hover {
  filter: blur(0);
}

/* ── Buy Modal — full screen on mobile ── */
#buy-modal {
  padding: 12px;
  align-items: flex-end;
  /* bottom sheet on mobile */
}

#buy-modal .card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  max-height: 90vh;
  overflow-y: auto;
}

/* ── Landing Page ── */
.landing-nav {
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.hero {
  text-align: center;
  padding: 64px 20px 56px;
}

.hero h1 {
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.hero p {
  font-size: clamp(.95rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

.hero .hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.section {
  padding: 56px 20px;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: .9rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
}

.feature-card h4 {
  margin: 10px 0 5px;
}

.feature-card p {
  font-size: .85rem;
  color: var(--text-muted);
}

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: .83rem;
}

/* ── Admin ── */
.admin-header {
  color: var(--warning);
}

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════ */

/* ── Tablet: 900px+ — show sidebar ── */
@media (min-width: 901px) {
  .sidebar {
    transform: translateX(0) !important;
  }

  #sidebar-toggle {
    display: none !important;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .country-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #buy-modal {
    align-items: center;
  }

  .page-body {
    padding: 28px 24px;
  }
}

/* ── Mobile: ≤900px — sidebar hidden ── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
  }

  .main-content {
    margin-left: 0;
  }

  #sidebar-toggle {
    display: flex !important;
  }

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

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

  .page-body {
    padding: 16px 12px;
  }

  .card {
    padding: 14px 12px;
  }

  .topbar {
    padding: 0 12px;
    gap: 8px;
  }

  /* Landing nav mobile */
  .landing-nav {
    padding: 0 14px;
  }

  .section {
    padding: 40px 16px;
  }

  .hero {
    padding: 48px 16px 40px;
  }

  /* Modal bottom sheet */
  #buy-modal {
    align-items: flex-end;
    padding: 0;
  }

  #buy-modal .card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-width: 100%;
    animation: slideUp .25s ease;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  /* Admin stats on mobile */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── Small mobile: ≤480px ── */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

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

  .auth-card {
    padding: 24px 16px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-actions>.btn-lg {
    flex: 1;
    min-width: 120px;
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  h1 {
    font-size: 1.5rem;
  }

  .page-body {
    padding: 12px 10px;
  }

  .otp-display {
    font-size: 1.8rem;
    letter-spacing: .08em;
  }

  .phone-display {
    font-size: 1.4rem;
  }

  .table {
    min-width: 400px;
  }

  .btn {
    min-height: 42px;
  }

  /* better touch targets */
  .form-input {
    min-height: 44px;
  }

  /* better touch targets */
  .country-flag {
    font-size: 1.5rem;
  }
}

/* ── Very small: ≤360px ── */
@media (max-width: 360px) {
  .country-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 6px;
  }

  .country-card {
    padding: 10px 8px;
  }

  .country-price {
    font-size: 1rem;
  }

  .badge {
    font-size: .68rem;
    padding: 2px 6px;
  }

  .btn-sm {
    padding: 5px 10px;
    font-size: .78rem;
  }
}

/* ── Subtle Micro-Interactions on Cards & Interactive Elements ── */
.card,
.stat-card,
.country-card,
.admin-card,
.bot-dev-card,
.product-card,
.pricing-card,
[data-3d-tilt] {
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease !important;
  transform: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (hover: hover) {
  .card:hover,
  .stat-card:hover,
  .country-card:hover,
  .admin-card:hover,
  .bot-dev-card:hover,
  .product-card:hover,
  .pricing-card:hover,
  [data-3d-tilt]:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(79, 126, 240, 0.45) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
  }

  .btn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  .card,
  .stat-card,
  .country-card,
  .admin-card,
  .bot-dev-card,
  .product-card,
  .pricing-card,
  .btn,
  [data-3d-tilt] {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ── Modal Overlay & Responsive Bottom Sheets ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 14, 20, 0.72);
  z-index: var(--z-modal-backdrop, 800);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.modal-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: var(--z-modal-sheet, 850);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.modal-close:hover {
  color: var(--text);
}
.modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.05));
  font-size: 0.9rem;
}
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .modal-sheet {
    max-width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    border-bottom: none !important;
    max-height: 94dvh !important;
    padding: 20px 16px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   API DOCS & DEVELOPER PLAYGROUND (Graphite + Cobalt System)
───────────────────────────────────────────────────────────── */
:root {
  --docs-accent: #60a5fa;
  --docs-accent-dim: rgba(37, 99, 235, 0.14);
  --docs-accent-glow: rgba(37, 99, 235, 0.18);
  --docs-blue: #2563eb;
  --docs-bg-card: #121722;
  --docs-bg-elevated: #171d2b;
  --docs-bg-code: #0b0e14;
  --docs-border: rgba(148, 163, 184, 0.16);
  --docs-border-soft: rgba(148, 163, 184, 0.09);
  --docs-text: #f1f5f9;
  --docs-text-muted: #94a3b8;
}

/* Hero Section */
.docs-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  padding: 24px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}
.protocol-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--docs-accent-dim);
  color: var(--docs-accent);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.docs-layout > * {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Endpoint Nav Sidebar / Segmented Controller */
.endpoint-nav {
  background: var(--docs-bg-card);
  border: 1px solid var(--docs-border);
  border-radius: var(--radius-lg, 14px);
  padding: 16px 12px;
  position: sticky;
  top: 80px;
  box-shadow: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 992px) {
  .endpoint-nav {
    position: static;
  }
}

.nav-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--docs-accent);
  letter-spacing: 0.04em;
  padding: 10px 12px 6px;
  border-bottom: 1px solid var(--docs-border-soft);
  margin-bottom: 8px;
}
.nav-group-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 12px;
  background: var(--docs-blue);
  border-radius: 2px;
}

.endpoint-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--docs-text-muted);
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1), color 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  margin-bottom: 6px;
  border: 1px solid transparent;
  background: transparent;
  min-height: 44px;
  user-select: none;
  box-sizing: border-box;
}
.endpoint-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--docs-text);
  border-color: rgba(96, 165, 250, 0.25);
}
.endpoint-item.active {
  background: var(--docs-accent-dim);
  color: #ffffff;
  font-weight: 600;
  border-color: var(--docs-blue);
  box-shadow: none;
}

/* Method Badges */
.method-badge {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.method-get {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.method-post {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Playground Cards */
.playground-card {
  background: var(--docs-bg-card);
  border: 1px solid var(--docs-border);
  border-radius: var(--radius-lg, 14px);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .playground-card {
    padding: 16px 14px;
  }
}
.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--docs-border-soft);
  flex-wrap: wrap;
  gap: 12px;
}
.endpoint-url-box {
  background: var(--docs-bg-code);
  border: 1px solid var(--docs-border);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.82rem;
  color: var(--docs-accent);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
}

/* Form Controls */
.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--docs-text-muted);
  margin-bottom: 6px;
}

/* Language Segmented Control */
.snippet-tabs-control {
  display: inline-flex;
  align-items: center;
  background: var(--docs-bg-code);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--docs-border);
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
}
.snippet-tab-btn {
  background: transparent;
  border: none;
  outline: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--docs-text-muted);
  cursor: pointer;
  transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1), color 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 32px;
  white-space: nowrap;
}
.snippet-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.snippet-tab-btn.active {
  background: var(--docs-blue);
  color: #ffffff;
  font-weight: 600;
  box-shadow: none;
}
@media (max-width: 640px) {
  .snippet-tabs-control {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
    overflow-x: auto;
  }
  .snippet-tab-btn {
    flex: 1;
    text-align: center;
    padding: 5px 6px;
    font-size: 0.72rem;
  }
}
@media (max-width: 360px) {
  .snippet-tab-btn {
    padding: 4px 4px;
    font-size: 0.68rem;
  }
}

/* Code Display Box */
.code-window {
  background: var(--docs-bg-code);
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
}
.code-window-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
  font-size: 0.75rem;
  color: var(--docs-text-muted);
}
.code-body {
  padding: 16px 18px;
  font-family: 'JetBrains Mono', Consolas, 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--accent, #60a5fa);
  background: var(--docs-bg-code);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}
#response-output {
  color: var(--accent, #60a5fa);
}

/* Action Copy Buttons */
.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--docs-accent-dim);
  border: 1px solid var(--docs-border);
  color: var(--docs-accent);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1), color 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 28px;
}
.btn-copy-code:hover {
  background: var(--docs-blue);
  color: #ffffff;
  border-color: var(--docs-blue);
  box-shadow: none;
}

/* Parameter Documentation Matrix Table */
.docs-table-wrap {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  background: var(--docs-bg-code);
}
.param-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.param-table th {
  background: var(--docs-bg-elevated);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--docs-accent);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--docs-border);
  white-space: nowrap;
}
.param-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--docs-border-soft);
  vertical-align: middle;
  color: var(--docs-text);
}
.param-table tr:hover td {
  background: rgba(37, 99, 235, 0.04);
}
.param-table tr:last-child td {
  border-bottom: none;
}
.param-name {
  color: var(--docs-accent) !important;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Badges */
.req-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.req-yes {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.req-no {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.btn-execute-api {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: 1px solid #2563eb !important;
  box-shadow: none !important;
  transition: background-color 160ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  min-height: 42px;
}
.btn-execute-api:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

/* ── Audited Template Utility Classes ── */
.anim-in {
  animation: fadeIn 0.25s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.countdown {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
}

.modal-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 0 auto 12px;
  display: none;
}
@media (max-width: 640px) {
  .modal-handle {
    display: block;
  }
}

.ph-rank, .pr-rank { font-weight: 600; }
.ph-count, .pr-count { color: var(--text-muted); font-size: 0.82rem; }

.result-waiting {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--primary-dim);
  border: 1px solid rgba(79, 126, 240, 0.25);
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.pulse-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(79, 126, 240, 0.7);
  animation: pulseRing 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulseRing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 126, 240, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(79, 126, 240, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 126, 240, 0); }
}

.flex-1 {
  flex: 1 1 0%;
  min-width: 0;
}

.flex-wrap {
  flex-wrap: wrap;
}

.app-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
}

.dashboard-body {
  padding: 24px 20px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .dashboard-body {
    padding: 16px 12px;
  }
}

.adm-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  min-width: 0;
}
@media (max-width: 768px) {
  .adm-grid2 {
    grid-template-columns: 1fr;
  }
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-danger {
  background: rgba(232, 85, 85, 0.12);
  border: 1px solid rgba(232, 85, 85, 0.3);
  color: #f87171;
}

.badge-info {
  background: rgba(37, 99, 235, 0.14);
  color: var(--accent, #60a5fa);
  border: 1px solid rgba(37, 99, 235, 0.32);
}

.btn-warning {
  background: #d97706;
  color: #ffffff !important;
  border: 1px solid #d97706;
}
@media (hover: hover) {
  .btn-warning:hover:not(:disabled) {
    background: #b45309;
    border-color: #b45309;
  }
}

.text-success {
  color: var(--success) !important;
}

.justify-end {
  justify-content: flex-end;
}

.bot-tab-pane {
  display: block;
  min-width: 0;
}

.prov-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-hover);
  color: var(--text-muted);
}

.section-heading {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.btn-card-demo, .btn-details-order, .btn-upgrade-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms cubic-bezier(0.22, 1, 0.36, 1), color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-select-status {
  padding: 4px 8px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-left {
  flex: 1;
  min-width: 0;
}

.text-faint {
  color: var(--text-muted);
  opacity: 0.6;
}


/* ── Global CPMBazar Dashboard Design System Bridge ── */
.bell-panel {
  display: none !important;
}
.bell-panel.open {
  display: block !important;
}
