/* Unified Payment Gateway — portal styles.
   Warm, light, professional. White cards on a softly warm neutral background. */

:root {
  /* Surfaces — warm-light neutrals, pure white cards */
  --bg:          #faf9f7;      /* page background — warm-light */
  --surface:     #ffffff;      /* cards — pure white */
  --surface-2:   #f4f2ee;      /* nested surface / table header / hover */
  --surface-3:   #ebe8e1;      /* pressed / muted block */
  --sidebar-bg:  #ffffff;      /* sidebar — clean white */
  --topbar-bg:   #ffffff;
  --border:      #e7e2d8;      /* warm border */
  --border-soft: #f0ece4;      /* divider inside cards */

  /* Text — warm near-blacks */
  --text:        #1f1d1a;
  --text-2:      #423d36;
  --text-muted:  #6f6a61;
  --text-faint:  #a39d92;

  /* Brand & accents — professional blue */
  --primary:        #2563eb;
  --primary-hover:  #1d4ed8;
  --primary-soft:   #eef4ff;
  --primary-soft-2: #dbe7fe;
  --primary-ink:    #1e40af;

  /* Status colors */
  --success:       #15803d;
  --success-soft:  #effaf1;
  --warning:       #b45309;
  --warning-soft:  #fdf6ec;
  --danger:        #dc2626;
  --danger-soft:   #fdf1f1;
  --info:          #2563eb;
  --info-soft:     #eef4ff;

  /* Effects — warm-tinted shadows */
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(60, 50, 38, 0.05);
  --shadow:    0 1px 3px rgba(60, 50, 38, 0.07), 0 1px 2px rgba(60, 50, 38, 0.04);
  --shadow-md: 0 4px 12px rgba(60, 50, 38, 0.09), 0 2px 4px rgba(60, 50, 38, 0.05);
  --shadow-lg: 0 10px 25px rgba(60, 50, 38, 0.11), 0 4px 8px rgba(60, 50, 38, 0.05);

  /* Type */
  --font:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
           "Helvetica Neue", Arial, sans-serif;
  --mono:  "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --sidebar-w: 256px;
  --topbar-h:  60px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--primary-soft-2); color: var(--primary-ink); }

a { color: var(--primary); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 { margin: 0 0 0.4em; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: 23px; line-height: 1.25; }
h2 { font-size: 16px; line-height: 1.35; }
h3 { font-size: 13.5px; line-height: 1.4; }
p { margin: 0 0 0.6em; color: var(--text-2); }

/* ===== App shell ============================================================= */
.app {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar =============================================================== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  transition: transform 220ms ease;
}
.sidebar .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--topbar-h);
  padding: 8px 18px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.sidebar .brand .brand-logo-img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.sidebar .brand .logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.sidebar .brand .logo svg { width: 16px; height: 16px; }

.sidebar nav {
  flex: 1;
  padding: 14px 10px 24px;
  overflow-y: auto;
}
.sidebar nav .group {
  margin-top: 10px;
}
.sidebar nav .group:first-child { margin-top: 0; }
.sidebar nav .group-title {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 12px 12px 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-2);
  padding: 7px 12px;
  border-radius: var(--radius);
  margin: 1px 0;
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  transition: background 120ms ease, color 120ms ease;
}
.sidebar nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.sidebar nav a.active {
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-weight: 600;
}
.sidebar nav a.active::before {
  content: "";
  position: absolute;
  left: -10px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.sidebar nav a svg {
  width: 16px; height: 16px;
  stroke-width: 1.8;
  flex-shrink: 0;
  opacity: 0.8;
}
.sidebar nav a.active svg { opacity: 1; }

.sidebar .footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.sidebar .footer .who {
  display: flex; align-items: center; gap: 10px;
}
.sidebar .footer .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.sidebar .footer .who .meta { line-height: 1.25; overflow: hidden; }
.sidebar .footer .who .meta b { display: block; color: var(--text); font-weight: 600; font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.sidebar .footer .who .meta span { color: var(--text-muted); }

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, 0.35);
  z-index: 25;
}

/* ===== Main column =========================================================== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--topbar-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar .menu-btn {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.topbar .menu-btn svg { width: 18px; height: 18px; stroke-width: 2; }
.topbar .crumbs {
  color: var(--text-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar .crumbs a { color: var(--text-2); }
.topbar .crumbs a:hover { color: var(--primary); }
.topbar .crumbs .sep { padding: 0 6px; color: var(--text-faint); }

.topbar .right { display: flex; align-items: center; gap: 10px; }
.topbar .env-badge {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid color-mix(in srgb, var(--warning) 22%, transparent);
}
.topbar .env-badge.live {
  background: var(--success-soft);
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 22%, transparent);
}

.content {
  padding: 20px 32px 64px;
  flex: 1;
  max-width: 1280px;
  width: 100%;
}

/* ===== Cards ================================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card .card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.card .card-title h2 { margin: 0; }
.card .card-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: -4px;
  margin-bottom: 14px;
}

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

/* ===== KPI tiles ============================================================= */
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.kpi .label {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kpi .value {
  font-size: 26px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.kpi .delta {
  font-size: 12px;
  margin-top: 4px;
  color: var(--text-muted);
}

/* ===== Tables ================================================================ */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table th, .table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table th {
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 1;
}
.table tbody tr { transition: background 100ms ease; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr a { font-weight: 500; }

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}
.empty .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  color: var(--text-faint);
}
.empty .icon svg { width: 22px; height: 22px; stroke-width: 1.6; }

/* ===== Buttons =============================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background 120ms ease, border-color 120ms ease, transform 100ms ease;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.16);
}
.btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.btn:active { transform: translateY(1px); }

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn.secondary:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--text-muted);
}
.btn.ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
  box-shadow: none;
}
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }

.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.16);
}
.btn.danger:hover { background: #b91c1c; border-color: #b91c1c; }

.btn.small { padding: 5px 11px; font-size: 12.5px; gap: 5px; }
.btn.large { padding: 11px 20px; font-size: 14.5px; }
.btn svg { width: 14px; height: 14px; stroke-width: 2; }

/* ===== Forms ================================================================= */
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], input[type=search], input[type=tel], input[type=date],
select, textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  line-height: 1.3;
  box-sizing: border-box;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: .85; }
select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%236b7280' d='M4 6l4 4 4-4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 30px;
}
textarea { resize: vertical; min-height: 90px; }

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}
.form-row .help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}
.form-row input[type=text], .form-row input[type=email], .form-row input[type=password],
.form-row input[type=number], .form-row input[type=url], .form-row input[type=search],
.form-row textarea, .form-row select { width: 100%; }
.row select, .row input[type=text], .row input[type=search] { min-width: 160px; }
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

/* ===== Pills / status badges ================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill.success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 20%, transparent); }
.pill.warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 20%, transparent); }
.pill.danger  { background: var(--danger-soft);  color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 20%, transparent); }
.pill.info    { background: var(--info-soft);    color: var(--info);    border-color: color-mix(in srgb, var(--info) 20%, transparent); }
.pill.muted   { background: var(--surface-2);    color: var(--text-muted); border-color: var(--border); }

/* ===== Code ================================================================== */
.code, code {
  font-family: var(--mono);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--border-soft);
}
pre.code-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  overflow-x: auto;
  color: var(--text);
}

/* ===== Messages (Django flash) =============================================== */
.msgs { list-style: none; padding: 0; margin: 0 0 18px; }
.msgs li {
  padding: 11px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 13.5px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.msgs li::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.msgs li.success { background: var(--success-soft); color: #065f46; border-color: color-mix(in srgb, var(--success) 28%, transparent); }
.msgs li.success::before { background: var(--success); }
.msgs li.error   { background: var(--danger-soft);  color: #991b1b; border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.msgs li.error::before { background: var(--danger); }
.msgs li.warning { background: var(--warning-soft); color: #92400e; border-color: color-mix(in srgb, var(--warning) 28%, transparent); }
.msgs li.warning::before { background: var(--warning); }
.msgs li.info    { background: var(--info-soft);    color: #1e40af; border-color: color-mix(in srgb, var(--info) 28%, transparent); }
.msgs li.info::before { background: var(--info); }

/* ===== Auth / hosted pages =================================================== */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.auth .panel {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.auth .brand-row {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth .logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.auth .logo svg { width: 18px; height: 18px; }

.hosted {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}
.hosted .panel {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 30px 28px;
  box-shadow: var(--shadow-lg);
}

/* ===== Utilities ============================================================= */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.gap-16 { gap: 16px; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.flex-1 { flex: 1; }

/* Section header used on list pages */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header .titles h1 { margin-bottom: 4px; }
.page-header .titles p { color: var(--text-muted); font-size: 13.5px; margin: 0; }
.page-header .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Responsive ============================================================ */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  body.sidebar-open .sidebar-overlay { display: block; }
  .topbar .menu-btn { display: inline-flex; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .content { padding: 18px 16px 48px; }
  .table th, .table td { padding: 10px 12px; font-size: 13px; }
  .table-wrap { overflow-x: auto; }
  .table { min-width: 640px; }
}

@media (max-width: 600px) {
  h1 { font-size: 20px; }
  .topbar { padding: 0 14px; }
  .auth .panel, .hosted .panel { padding: 26px 22px; }
  .card { padding: 18px; }
}

/* ============================================================================
   V2 component layer — shared bits used through the template-tag library.
   Builds on the tokens above; nothing here overrides existing styles.
   ============================================================================ */

/* Required marker + inline field errors */
.req { color: var(--danger); font-weight: 700; }
.error-text { color: var(--danger) !important; }
.form-row input.is-invalid, .form-row select.is-invalid, .form-row textarea.is-invalid {
  border-color: var(--danger);
}

/* Pagination row */
.pager { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.btn.disabled, .btn[disabled] {
  opacity: 0.5; pointer-events: none; cursor: default;
}

/* Toolbar — a filter/search bar above tables */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar .grow { flex: 1; min-width: 160px; }
.toolbar .spacer { flex: 1; }

/* Clickable cards / KPI tiles */
a.card, a.kpi { text-decoration: none; color: inherit; display: block; }
a.card:hover, a.kpi:hover {
  border-color: var(--primary-soft-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  transition: box-shadow 140ms ease, transform 140ms ease, border-color 140ms ease;
}

/* Description list — for detail pages (label / value pairs) */
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 2px 16px; }
.dl dt { color: var(--text-muted); font-size: 12.5px; padding: 8px 0; }
.dl dd { margin: 0; padding: 8px 0; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.dl dt { border-bottom: 1px solid var(--border-soft); }
.dl > dt:last-of-type, .dl > dd:last-of-type { border-bottom: 0; }
@media (max-width: 600px) { .dl { grid-template-columns: 1fr; } .dl dt { padding-bottom: 0; border: 0; } .dl dd { padding-top: 2px; } }

/* Method badge — a payment method chip with optional icon */
.method-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.method-badge svg, .method-badge img { width: 16px; height: 16px; }
.method-badge.selectable { cursor: pointer; transition: all 120ms ease; }
.method-badge.selectable:hover { border-color: var(--primary); }
.method-badge.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }

/* Segmented control — for test/live or small choice groups */
.segmented { display: inline-flex; background: var(--surface-2); border-radius: var(--radius); padding: 3px; gap: 3px; }
.segmented button, .segmented a {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; text-decoration: none;
}
.segmented button.active, .segmented a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a {
  padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Toasts — bottom-right stack, used for HTMX/JS feedback */
.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px 16px; font-size: 13.5px;
  max-width: 360px; animation: toast-in 180ms ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Modal / dialog (Alpine-driven via x-show) */
.modal-backdrop { position: fixed; inset: 0; background: rgba(17,24,39,0.45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal {
  background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 480px; padding: 24px; animation: toast-in 160ms ease;
}
.modal h2 { margin-bottom: 6px; }

/* HTMX loading: top progress bar + inline spinner */
#htmx-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 70;
  background: var(--primary); transition: width 200ms ease, opacity 300ms ease; opacity: 0;
}
.htmx-request #htmx-progress { width: 80%; opacity: 1; }
.htmx-indicator { opacity: 0; transition: opacity 120ms ease; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.spinner {
  width: 15px; height: 15px; border: 2px solid var(--primary-soft-2);
  border-top-color: var(--primary); border-radius: 50%; display: inline-block;
  animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; border-radius: 6px; animation: shimmer 1.4s ease infinite; min-height: 14px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Small helpers added for V2 */
.stack { display: flex; flex-direction: column; gap: 16px; }
.muted-box { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; }
.divider { height: 1px; background: var(--border-soft); margin: 18px 0; border: 0; }

/* ===== Provider catalog (add provider page) ================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.catalog-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 120ms ease;
  user-select: none;
}
.catalog-card:hover {
  border-color: var(--primary-soft-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.catalog-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.catalog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.catalog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.catalog-meta .pill { font-size: 9.5px; }

/* Alpine fade-in transition */
[x-cloak] { display: none !important; }
.fade-in { animation: toast-in 200ms ease; }

/* ===== Inline verify result ================================================== */
.verify-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  border: 1px solid transparent;
  animation: toast-in 160ms ease;
}
.verify-result.success {
  background: var(--success-soft);
  color: #065f46;
  border-color: color-mix(in srgb, var(--success) 28%, transparent);
}
.verify-result.danger {
  background: var(--danger-soft);
  color: #991b1b;
  border-color: color-mix(in srgb, var(--danger) 28%, transparent);
}
.verify-icon {
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Hosted checkout — method grid ========================================= */
.checkout-brand {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.checkout-amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  line-height: 1.1;
}
.checkout-interval {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}
.checkout-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0 0 6px;
}
.checkout-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-faint);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: var(--surface);
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
  text-align: center;
}
.method-card:hover { border-color: var(--primary-soft-2); box-shadow: var(--shadow-sm); }
.method-card.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.method-card-icon { font-size: 22px; line-height: 1; }
.method-card-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.method-card.active .method-card-label { color: var(--primary-ink); }

@media (max-width: 600px) {
  .checkout-amount { font-size: 26px; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Documentation page ==================================================== */

[x-cloak] { display: none !important; }

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
}
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
}

/* Docs sidebar */
.docs-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 8px;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.docs-sidebar-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  padding: 6px 8px 4px;
}
.docs-sidebar-divider { height: 1px; background: var(--border-soft); margin: 10px 4px; }

.docs-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  color: var(--text);
  margin-bottom: 2px;
}
.docs-tab:hover { background: var(--surface-2); }
.docs-tab-active {
  background: var(--primary-soft) !important;
  border-color: var(--primary-soft-2) !important;
  color: var(--primary-ink) !important;
}
.docs-tab-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.docs-tab-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.docs-tab-name { font-size: 13px; font-weight: 600; color: inherit; }
.docs-tab-sub { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs-tab-active .docs-tab-name { color: var(--primary-ink); }
.docs-tab-active .docs-tab-sub { color: var(--primary); opacity: .85; }

.docs-quick-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: background 140ms, color 140ms;
  text-decoration: none;
}
.docs-quick-link:hover { background: var(--surface-2); color: var(--primary-ink); }

/* Docs content */
.docs-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.docs-provider-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px 18px;
  margin-bottom: 16px;
}
.docs-provider-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.docs-provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.docs-provider-links { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-link-sm {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  text-decoration: none;
  transition: background 140ms, color 140ms;
}
.btn-link-sm:hover { background: var(--primary-soft); color: var(--primary); }
.docs-tagline { font-size: 14px; color: var(--text-2); margin: 0 0 10px; }
.docs-meta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.docs-meta-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 3px 10px;
}

/* Sections */
.docs-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.docs-section-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.docs-body { font-size: 13.5px; color: var(--text-2); line-height: 1.65; margin: 0; }
.docs-body-sm { font-size: 12.5px; color: var(--text-2); margin: 0 0 10px; }

/* Capability grid */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
.capability-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 12.5px;
  border: 1px solid transparent;
}
.cap-yes { background: var(--success-soft); border-color: #bbf7d0; }
.cap-no  { background: var(--danger-soft);  border-color: #fecaca; opacity: .75; }
.cap-info { background: var(--surface-2); border-color: var(--border-soft); }
.cap-icon { font-size: 14px; line-height: 1; flex-shrink: 0; }
.cap-label { font-weight: 500; color: var(--text-2); }

/* Table */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.docs-table th {
  text-align: left;
  padding: 8px 10px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: .05em;
}
.docs-table th:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.docs-table th:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.docs-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-2);
  vertical-align: top;
}
.docs-table tr:last-child td { border-bottom: none; }
.docs-table code {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--primary-ink);
}

.badge-secret { background: #fef3c7; color: #78350f; border: 1px solid #fcd34d; border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; }
.badge-plain  { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 600; }
.badge-yes    { background: var(--success-soft); color: #14532d; border: 1px solid #bbf7d0; border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; }
.badge-opt    { background: var(--warning-soft); color: #7c2d12; border: 1px solid #fcd9b6; border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; }
.docs-placeholder { color: var(--text-muted); font-size: 11.5px; font-style: italic; }

/* Setup steps */
.docs-steps {
  margin: 0; padding: 0 0 0 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.docs-steps li {
  font-size: 13.5px; color: var(--text-2); line-height: 1.6;
}
.docs-steps li code {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 4px; padding: 1px 5px;
  font-family: var(--mono); font-size: 12px; color: var(--primary-ink);
}

/* Code blocks */
.docs-code-block {
  background: #1e1e2e;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.docs-code-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  background: #16161f;
  font-size: 12px;
  font-weight: 500;
  color: #d9dbe5;
  border-bottom: 1px solid #2a2a3a;
}
.docs-code-lang {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  background: #3a3a55; color: #e6e6f5; border-radius: 4px; padding: 2px 7px;
  font-weight: 700;
}
.docs-code-block pre {
  margin: 0; padding: 14px 16px;
  overflow-x: auto;
}
.docs-code-block code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #cdd6f4;
  line-height: 1.7;
  white-space: pre;
}

/* Event badges */
.code-event {
  background: var(--primary-soft);
  color: var(--primary-ink);
  border: 1px solid var(--primary-soft-2);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 11.5px;
}

/* Details / raw events */
.docs-details {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.docs-details summary {
  cursor: pointer; padding: 6px 0;
  color: var(--text-2); font-weight: 600;
  list-style: none;
}
.docs-details summary:hover { color: var(--primary-ink); }
.docs-details summary::before { content: '▶ '; font-size: 9px; }
.docs-details[open] summary::before { content: '▼ '; }
.docs-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.docs-tag {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 9px; font-size: 11.5px;
  font-family: var(--mono); color: var(--text-2);
}

/* Notes */
.docs-notes {
  margin: 0; padding: 0 0 0 18px;
  display: flex; flex-direction: column; gap: 7px;
}
.docs-notes li { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.docs-notes li code {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 4px; padding: 1px 5px;
  font-family: var(--mono); font-size: 12px; color: var(--primary-ink);
}
.docs-notes li b { color: var(--text); }

/* CTA strip */
.docs-cta {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 16px 0 4px;
}

@media (max-width: 640px) {
  .docs-provider-header { padding: 16px; }
  .docs-section { padding: 16px; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Mobile money checkout (MTN MoMo etc.) ================================ */
.momo-badge {
  display: flex; align-items: center; gap: 12px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.momo-logo { font-size: 28px; line-height: 1; }
.momo-title { font-weight: 700; color: #92400e; font-size: 14px; }
.momo-sub   { font-size: 12.5px; color: #b45309; margin-top: 2px; }

/* Pending poll page */
.pending-card {
  text-align: center;
  padding: 32px 20px 20px;
}
.pending-card.failed { color: var(--danger); }
.pending-spinner {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid var(--primary-soft-2);
  border-top-color: var(--primary);
  animation: pending-spin 0.9s linear infinite;
  margin: 0 auto 18px;
}
@keyframes pending-spin { to { transform: rotate(360deg); } }
.pending-icon {
  font-size: 36px;
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
}
.pending-title { font-size: 18px; margin: 0 0 8px; color: var(--text); }
.pending-card.failed .pending-title { color: var(--danger); }
.pending-body { font-size: 13.5px; color: var(--text-2); margin: 0 0 14px; }
.pending-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 14px; }
.pending-meta code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); }

/* ===== SaaS upgrade — multi-provider picker & creation UI =================== */

/* Copy row & button styles defined later in file with modern dark-mode treatment. */

/* ── Provider checkbox cards (creation form) ─────────────────────── */
.provider-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.provider-checkbox-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 150ms, background 150ms;
  background: var(--surface);
  user-select: none;
}
.provider-checkbox-card:hover { border-color: var(--primary); background: var(--primary-soft); }
.provider-checkbox-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.pcc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--text-muted);
  flex-shrink: 0;
}
.pcc-body { flex: 1; min-width: 0; }
.pcc-name { font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcc-type { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.pcc-env  { font-size: 10px; font-weight: 600; margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.pcc-env.live { color: var(--success); }
.pcc-env.test { color: var(--warning); }
.pcc-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.provider-checkbox-card.selected .pcc-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── Public multi-provider picker cards ──────────────────────────── */
.provider-picker-grid {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.provider-picker-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms, box-shadow 150ms, transform 80ms;
  width: 100%;
  font-family: var(--font);
}
.provider-picker-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.provider-picker-card:active { transform: translateY(0); }
.ppc-accent {
  width: 4px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ppc-body { flex: 1; min-width: 0; }
.ppc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.ppc-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ppc-arrow { color: var(--text-faint); flex-shrink: 0; }

/* ── Provider pills (detail page) ────────────────────────────────── */
.provider-pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.provider-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  font-size: 11.5px; font-weight: 500;
  background: var(--primary-soft);
  color: var(--primary-ink);
  border-radius: 20px;
  border: 1px solid var(--primary-soft-2);
}

/* ── Creation layout (form + live preview side by side) ──────────── */
.link-create-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.link-create-form {}
.link-create-preview {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
}
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.form-section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  margin: 0 0 14px;
}

/* ── Live preview card ────────────────────────────────────────────── */
.preview-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  margin-bottom: 10px;
}
.checkout-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-lg);
}
.checkout-preview-brand {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
  margin-bottom: 12px;
}
.checkout-preview-amount {
  font-size: 26px; font-weight: 700; color: var(--text);
  letter-spacing: -.03em; margin-bottom: 4px;
}
.checkout-preview-sub-badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; font-size: 11.5px; font-weight: 600;
  background: #ede9ff; color: #5b21b6;
  border-radius: 20px; margin-bottom: 8px;
}
.checkout-preview-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.checkout-preview-methods { margin-top: 12px; }
.checkout-preview-methods-label { font-size: 10.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.checkout-preview-method-card {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  font-size: 12px; color: var(--text);
}
.checkout-preview-method-card.default { border-style: dashed; }
.cpm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.checkout-preview-footer {
  font-size: 10.5px; color: var(--text-faint);
  text-align: center; margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

/* ── Info card for how-it-works panel ────────────────────────────── */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.info-step {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 16px;
}
.info-step:last-child { margin-bottom: 0; }
.info-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Checkout preview tool (dashboard) ───────────────────────────── */
.preview-tool-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.preview-tool-left {}
.preview-tool-right {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
}

/* Phone frame */
.checkout-phone-frame {
  width: 280px;
  margin: 0 auto;
  background: #fff;
  border-radius: 36px;
  border: 8px solid #1c1c1e;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
}
.checkout-phone-frame.empty { border-color: #ddd; }
.phone-notch {
  width: 80px; height: 20px;
  background: #1c1c1e;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
}
.phone-screen {
  padding: 16px;
  min-height: 380px;
  background: #f7f7f8;
}
.phone-method-card {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border-left: 3px solid var(--primary);
}

/* ── API snippet box ─────────────────────────────────────────────── */
.api-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.api-snippet {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
  margin: 0;
  white-space: pre;
  word-break: normal;
  color: #e5e7eb;
  background: #0f172a;
  padding: 18px 20px 18px 20px;
  border-radius: 10px;
  border: 1px solid #1e293b;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 460px;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.04);
  tab-size: 2;
}
.api-snippet::-webkit-scrollbar { height: 8px; width: 8px; }
.api-snippet::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
  border: 1.5px solid #0f172a;
}
.api-snippet::-webkit-scrollbar-thumb:hover { background: #475569; }
.api-snippet::-webkit-scrollbar-track { background: transparent; }
.api-snippet::-webkit-scrollbar-corner { background: transparent; }

/* ── Tab group (creation forms) ──────────────────────────────────── */
.tab-group {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  width: fit-content;
}
.tab-btn {
  padding: 7px 16px;
  border-radius: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font);
  transition: background 120ms, color 120ms;
}
.tab-btn:hover { color: var(--text); background: var(--surface-3); }
.tab-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ── Timeline ─────────────────────────────────────────────────────── */
ul.timeline { list-style: none; margin: 0; padding: 0; }
ul.timeline li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 13px; color: var(--text-2);
  border-left: 2px solid var(--border);
  margin-left: 6px;
}
ul.timeline li::before {
  content: '';
  position: absolute;
  left: -5px; top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
ul.timeline li:last-child { border-left-color: transparent; }

/* ── Badge ────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; font-size: 11px; font-weight: 600;
  border-radius: 20px; letter-spacing: .02em;
}
.badge.info    { background: var(--info-soft);    color: var(--info); }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.danger  { background: var(--danger-soft);  color: var(--danger); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .link-create-layout,
  .preview-tool-layout { grid-template-columns: 1fr; }
  .link-create-preview,
  .preview-tool-right  { position: static; }
  .checkout-phone-frame { width: 100%; max-width: 280px; }
}
@media (max-width: 600px) {
  .provider-checkbox-grid { grid-template-columns: 1fr; }
}

/* ===== Branded provider icons (pay-icon component) ========================= */
.pay-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 0 0 0.5px rgba(255,255,255,0.15);
}
.pay-icon svg { display: block; width: 100%; height: 100%; }
.pay-icon-sm { width: 28px; height: 28px; border-radius: 6px; }
.pay-icon-md { width: 40px; height: 40px; }
.pay-icon-lg { width: 56px; height: 56px; border-radius: 10px; }

/* ── Picker label (sentence above the picker) ──────────────────── */
.picker-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  margin: 0 0 12px;
}

/* ── Provider pill with icon (detail / preview cards) ──────────── */
.provider-pill-icon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px; font-weight: 500;
  color: var(--text);
}
.provider-pill-icon .pay-icon-sm { width: 22px; height: 22px; border-radius: 5px; }

/* ── Polished provider-picker-card ─────────────────────────────── */
.provider-picker-card { padding: 14px; gap: 14px; }
.provider-picker-card .pay-icon-md { width: 44px; height: 44px; }

/* ── Polished provider-checkbox-card ───────────────────────────── */
.provider-checkbox-card { padding: 12px; gap: 12px; }
.provider-checkbox-card .pay-icon-md { width: 36px; height: 36px; }

/* Hide the old initial-letter pcc-icon (it's been replaced by pay-icon) */
.pcc-icon { display: none; }

/* ── Phone preview tweaks (uses pay-icon-sm) ───────────────────── */
.phone-method-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
  cursor: pointer;
  transition: box-shadow 120ms;
}
.phone-method-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.06); }
.phone-method-card .pay-icon-sm { width: 28px; height: 28px; border-radius: 6px; }

.phone-cta {
  margin-top: 16px; padding: 10px 12px;
  background: #1f1d1a; color: white;
  border-radius: 10px; text-align: center;
  font-size: 12px; font-weight: 600;
  cursor: pointer; letter-spacing: .01em;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.phone-secure {
  margin-top: 12px; text-align: center;
  font-size: 10px; color: #aaa;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}

/* ── Inline provider chip (icon + name) ───────────────────────── */
.pay-chip {
  display: inline-flex; align-items: center; gap: 6px;
  vertical-align: middle; line-height: 1;
}
.pay-chip .pay-icon-sm { width: 22px; height: 22px; border-radius: 5px; }
.pay-chip-name { font-weight: 500; color: var(--text); }

/* Update existing provider-pill to use icon-friendly spacing */
.provider-pill { display: inline-flex; align-items: center; }

/* Payment Module detail layout */
.module-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .module-layout { grid-template-columns: 1fr; }
}

/* Module provider toggle rows */
.module-provider-row {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.module-provider-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  background: var(--bg-card);
}
.module-provider-toggle:hover { background: var(--bg-subtle); }
.module-provider-meta {
  padding: 0 14px 12px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
.module-provider-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Toggle switch */
.toggle-track {
  width: 36px; height: 20px;
  background: var(--border);
  border-radius: 10px;
  flex-shrink: 0;
  position: relative;
  transition: background .2s;
  display: inline-block;
}
.toggle-track.active { background: var(--primary); }
.toggle-thumb {
  position: absolute;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-track.active .toggle-thumb { transform: translateX(16px); }

/* Form field inline error */
.field-error { font-size: 12px; color: #ef4444; margin-top: 4px; }

/* Password field with show/hide eye toggle */
.password-field {
  position: relative;
  display: block;
}
.password-field input[type="password"],
.password-field input[type="text"] {
  width: 100%;
  padding-right: 40px;
  box-sizing: border-box;
}
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  border-radius: 6px;
}
.password-toggle:hover { color: #374151; background: #f3f4f6; }
.password-toggle svg { width: 18px; height: 18px; display: block; }

/* Integration mode switcher (Embed Widget vs Payment Link API vs Send Payout) */
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}
.mode-btn {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}
.mode-btn:hover {
  border-color: #c7d2fe;
  background: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.12);
  transform: translateY(-1px);
}
.mode-btn.active {
  border-color: #4f46e5;
  background: linear-gradient(180deg, #ffffff 0%, #fafaff 100%);
  box-shadow:
    0 0 0 3px rgba(79, 70, 229, 0.14),
    0 6px 16px -6px rgba(79, 70, 229, 0.25);
}
.mode-btn.active::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='2,8 6,12 14,4'/%3e%3c/svg%3e"), linear-gradient(135deg, #4f46e5, #7c3aed);
  background-size: 10px, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
.mode-title { font-size: 12.5px; font-weight: 700; color: #111827; letter-spacing: -0.01em; }
.mode-btn.active .mode-title { color: #4f46e5; }
.mode-desc { font-size: 11px; color: #6b7280; line-height: 1.4; }
.mode-switch.mode-switch-3 { grid-template-columns: 1fr 1fr 1fr; }
.mode-switch.mode-switch-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
@media (max-width: 720px) {
  .mode-switch.mode-switch-4 { grid-template-columns: 1fr 1fr; }
}

/* Warning callout used for payout API (money OUT) notice */
.callout-warn {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: #92400e;
  line-height: 1.5;
  margin: 12px 0;
}
.callout-warn a { color: #92400e; text-decoration: underline; font-weight: 500; }
.callout-warn svg { flex-shrink: 0; margin-top: 2px; }

/* Empty-state hero card (used on Integrations list when no rows) */
.empty-hero {
  text-align: center;
  padding: 56px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 1.5px dashed #e5e7eb;
}
.empty-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px -8px rgba(79, 70, 229, 0.4);
}
.empty-hero h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  color: #111827;
}
.empty-hero p {
  max-width: 480px;
  margin: 0 auto 24px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* Larger primary button used in empty-hero */
.btn.large {
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
}

/* ── Integrations list: modern card grid ───────────────────── */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.integration-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  position: relative;
  overflow: hidden;
}
.integration-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 16px 32px -16px rgba(79, 70, 229, 0.18);
  transform: translateY(-2px);
}
.integration-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  opacity: 0;
  transition: opacity 0.18s;
}
.integration-card:hover::before { opacity: 1; }

.ic-head { display: flex; align-items: center; gap: 12px; }
.ic-avatar {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.ic-meta { flex: 1; min-width: 0; }
.ic-meta h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ic-meta p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7280;
}
.ic-count {
  font-size: 11px;
  font-weight: 500;
  color: #4f46e5;
  background: #eef2ff;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.ic-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 8px;
}
.ic-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ic-method-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}
.ic-method-pill .pay-icon-sm { width: 18px; height: 18px; border-radius: 4px; }

.ic-key code {
  display: block;
  font-size: 11px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  border-radius: 6px;
  color: #374151;
  font-family: ui-monospace, monospace;
  word-break: break-all;
}

.ic-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  margin-top: auto;
}
.ic-cta svg { transition: transform 0.18s; }
.integration-card:hover .ic-cta svg { transform: translateX(4px); }

/* ── Method picker: dropdown-add + ordered list ───────────── */
.method-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.method-row {
  display: grid;
  grid-template-columns: 32px 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  transition: border-color 0.15s;
}
.method-row:hover { border-color: #c7d2fe; }

.method-row-handle {
  display: flex;
  align-items: center;
  justify-content: center;
}
.method-order {
  width: 24px; height: 24px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.method-row-icon { display: flex; align-items: center; }
.method-row-icon .pay-icon-sm { width: 28px; height: 28px; border-radius: 6px; }

.method-row-body { min-width: 0; }
.method-row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
}
.method-row-env {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
}
.method-row-env.test { background: #f3f4f6; color: #6b7280; }
.method-row-env.live { background: #dcfce7; color: #15803d; }

.method-row-meta {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
  font-style: italic;
}
.method-row-label {
  width: 100%;
  font-size: 12px !important;
  padding: 5px 8px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 5px !important;
  background: #fafafa !important;
}
.method-row-label:focus { background: #fff !important; border-color: #c7d2fe !important; }

.method-row-actions { display: flex; gap: 4px; align-items: center; }
.method-icon-btn {
  background: none;
  border: 1px solid transparent;
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.method-icon-btn:hover:not(:disabled) {
  background: #f3f4f6;
  color: #111827;
  border-color: #e5e7eb;
}
.method-icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.method-icon-btn-danger:hover:not(:disabled) {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.method-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  background: #fafafa;
  border: 1.5px dashed #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  color: #6b7280;
}

/* Add-method dropdown */
.method-add { position: relative; }
.method-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #fff;
  border: 1.5px solid #c7d2fe;
  border-radius: 8px;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.method-add-btn:hover { background: #eef2ff; border-color: #4f46e5; }
.method-add-chevron { transition: transform 0.15s; }

.method-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 320px;
  max-width: 480px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12);
  z-index: 30;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.method-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.method-dropdown-item:last-child { border-bottom: none; }
.method-dropdown-item:hover { background: #f9fafb; }
.method-dropdown-icon { flex-shrink: 0; }
.method-dropdown-icon .pay-icon-sm { width: 28px; height: 28px; border-radius: 6px; }
.method-dropdown-body { flex: 1; min-width: 0; }
.method-dropdown-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 2px;
}
.method-dropdown-adapter { font-size: 11px; color: #6b7280; }

.method-add-empty {
  margin: 4px 0 0;
  font-size: 12px;
}

/* Sidebar: collapsible Advanced group */
.group-collapsible {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}
.group-collapsible:hover { color: var(--text); }

/* "What is this" intro panel on the module detail page */
.intro-panel {
  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.intro-panel .intro-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.intro-panel h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.intro-panel p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Snippet tabs - primary language strip */
.snippet-tabs {
  display: flex;
  gap: 2px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 14px;
  overflow-x: auto;
}
.snippet-tabs::-webkit-scrollbar { display: none; }
.snippet-tab {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-radius: 7px;
  flex-shrink: 0;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.snippet-tab.active {
  color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(79, 70, 229, 0.12);
}
.snippet-tab:hover:not(.active) { color: #111827; background: rgba(255, 255, 255, 0.5); }

/* Sub-tabs (mobile language picker inside Mobile tab) */
.snippet-subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
}
.snippet-subtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 11.5px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.snippet-subtab:hover { border-color: #c7d2fe; color: #4f46e5; background: #ffffff; }
.snippet-subtab.active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 10px -2px rgba(79, 70, 229, 0.4);
}
.snippet-subtab svg { opacity: 0.9; }
.snippet-subtab.active svg { opacity: 1; }

/* The Copy button shown under (or floating over) code blocks */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.copy-btn::before {
  content: "";
  width: 13px; height: 13px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3e%3cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
}
.copy-btn:hover {
  background: #ffffff;
  border-color: #4f46e5;
  color: #4f46e5;
}
.copy-btn:hover::before {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3e%3cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3e%3c/svg%3e");
}

/* Floating Copy button on snippet blocks. The snippet div containing
   an .api-snippet becomes the relative parent; the Copy button floats top-right. */
.module-docs .panel > div:has(> .api-snippet) {
  position: relative;
  margin-bottom: 12px;
}
.module-docs .panel > div:has(> .api-snippet) > .copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(71, 85, 105, 0.6);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin: 0;
  padding: 5px 11px;
  font-size: 11px;
}
.module-docs .panel > div:has(> .api-snippet) > .copy-btn::before {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3e%3cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3e%3c/svg%3e");
}
.module-docs .panel > div:has(> .api-snippet) > .copy-btn:hover {
  background: rgba(79, 70, 229, 0.95);
  border-color: rgba(139, 92, 246, 0.7);
  color: #ffffff;
}
.module-docs .panel > div:has(> .api-snippet) > .copy-btn:hover::before {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3e%3cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3e%3c/svg%3e");
}

/* The code block needs extra top padding so it doesn't slide under the floating Copy button */
.module-docs .panel > div:has(> .api-snippet) > .api-snippet {
  padding-top: 18px;
  padding-right: 80px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 12px 14px;
}
.copy-row code {
  flex: 1;
  color: #e5e7eb !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-x: auto;
  white-space: nowrap;
}
.copy-row .copy-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(71, 85, 105, 0.6);
  color: #e2e8f0;
  flex-shrink: 0;
}
.copy-row .copy-btn::before {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3e%3cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3e%3c/svg%3e");
}
.copy-row .copy-btn:hover {
  background: rgba(79, 70, 229, 0.95);
  border-color: rgba(139, 92, 246, 0.7);
  color: #ffffff;
}
.copy-row .copy-btn:hover::before {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3e%3cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3e%3c/svg%3e");
}
/* Dashboard "ready to integrate" CTA card */
.ready-card {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ready-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: #fff; }
.ready-card p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.85); }
.ready-card .btn {
  background: #fff;
  color: #4f46e5;
  border: none;
  font-weight: 600;
}
.ready-card .btn:hover { background: #f3f4f6; }

/* ──────────────────────────────────────────────────────────────
   Professional table refresh - applied to all data tables
   ────────────────────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.table thead th {
  background: #fafafa;
  border-bottom: 1.5px solid #e5e7eb;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  text-align: left;
  white-space: nowrap;
}
.table tbody td {
  padding: 13px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: #fafafa; }
.table tbody td a { color: #4f46e5; font-weight: 500; text-decoration: none; }
.table tbody td a:hover { text-decoration: underline; }
.table tbody td code {
  font-size: 11.5px;
  background: #f3f4f6;
  color: #374151;
  padding: 2px 6px;
  border-radius: 4px;
}
.table tbody td.text-right { text-align: right; }
.table tbody td.nowrap { white-space: nowrap; }
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Filter toolbar (transactions, audit log, etc.) */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar select,
.toolbar input[type="text"],
.toolbar input[type="search"] {
  background: #fafafa;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: #111827;
  transition: border-color 0.15s, background 0.15s;
}
.toolbar select:focus,
.toolbar input:focus {
  outline: none;
  border-color: #c7d2fe;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.toolbar .spacer { flex: 1; }

/* ──────────────────────────────────────────────────────────────
   Team page: card-style member rows
   ────────────────────────────────────────────────────────────── */
.member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.member-row:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px -6px rgba(79, 70, 229, 0.15);
}
.member-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 14px; font-weight: 600; color: #111827; }
.member-email { font-size: 12px; color: #6b7280; margin-top: 1px; }
.member-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.role-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: capitalize;
}
.role-pill.merchant { background: #fef3c7; color: #92400e; }
.role-pill.admin { background: #dbeafe; color: #1e40af; }
.role-pill.viewer { background: #f3f4f6; color: #4b5563; }

/* ──────────────────────────────────────────────────────────────
   Activity (audit log): timeline-style entries
   ────────────────────────────────────────────────────────────── */
.activity-list {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.activity-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}
.activity-row:last-child { border-bottom: none; }
.activity-row:hover { background: #fafafa; }
.activity-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-icon.success { background: #dcfce7; color: #15803d; }
.activity-icon.danger { background: #fee2e2; color: #b91c1c; }
.activity-icon.warn { background: #fef3c7; color: #92400e; }
.activity-body { min-width: 0; }
.activity-action {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}
.activity-action code {
  font-size: 11.5px;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
  color: #374151;
  margin-right: 4px;
}
.activity-meta {
  font-size: 11.5px;
  color: #6b7280;
  margin-top: 2px;
}
.activity-time {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  text-align: right;
}
.activity-time-rel { font-weight: 500; color: #374151; display: block; }

/* Plain page header used across portal pages */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.page-header .titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}
.page-header .titles p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}
.page-header .actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Compact action button group used in table rows */
.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn.small {
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 6px;
}

/* Webhook URL list on Gateways page */
.webhook-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.webhook-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.webhook-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  font-size: 13px;
}

/* Method-type badges used in gateway rows */
.method-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  margin: 1px 2px 1px 0;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ──────────────────────────────────────────────────────────────
   Global polish: form inputs, buttons, cards
   Higher specificity overrides earlier rules.
   ────────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
  font-family: inherit;
  font-size: 13.5px;
  padding: 9px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  width: 100%;
  box-sizing: border-box;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
input::placeholder, textarea::placeholder { color: #6b7280; opacity: .85; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}

/* Polished primary + secondary buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  border: 1px solid #4338ca;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 2px rgba(67, 56, 202, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn:hover {
  background: linear-gradient(180deg, #5b52ea 0%, #4f46e5 100%);
  box-shadow: 0 4px 10px -2px rgba(67, 56, 202, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(67, 56, 202, 0.2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.secondary {
  background: #ffffff;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.btn.secondary:hover {
  background: #fafafa;
  border-color: #c7d2fe;
  color: #111827;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.06);
}

.btn.danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  border-color: #dc2626;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn.danger:hover {
  background: linear-gradient(180deg, #f55b5b 0%, #ef4444 100%);
  box-shadow: 0 4px 10px -2px rgba(220, 38, 38, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Card refresh */
.card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.card h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.005em;
}
.card .card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.card .card-subtitle {
  font-size: 12.5px;
  color: #6b7280;
  margin: 4px 0 0;
}

/* Polished status pills */
.pill, .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill.success, .status-pill.succeeded, .status-pill.active, .status-pill.done, .status-pill.paid {
  background: #dcfce7;
  color: #15803d;
}
.pill.warning, .status-pill.pending, .status-pill.processing, .status-pill.awaiting_vendor {
  background: #fef3c7;
  color: #92400e;
}
.pill.danger, .status-pill.failed, .status-pill.disabled, .status-pill.cancelled, .status-pill.expired {
  background: #fee2e2;
  color: #b91c1c;
}
.pill.info, .status-pill.refunded, .status-pill.partially_refunded {
  background: #dbeafe;
  color: #1e40af;
}
.pill.muted, .status-pill.muted {
  background: #f3f4f6;
  color: #4b5563;
}

/* Env pill - dot + label */
.env-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.env-pill.test { background: #f3f4f6; color: #4b5563; }
.env-pill.live { background: #dcfce7; color: #15803d; }
.env-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ──────────────────────────────────────────────────────────────
   Topbar polish (user dropdown, env badge)
   ────────────────────────────────────────────────────────────── */
.env-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.env-badge.live { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #15803d; }
.env-badge .env-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6b7280;
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.2);
}
.env-badge.live .env-dot { background: #15803d; box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.25); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* User dropdown in topbar */
.topbar-user { position: relative; }
.topbar-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  color: #374151;
  transition: all 0.15s;
}
.topbar-user-btn:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
}
.topbar-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.topbar-user-name { font-size: 13px; font-weight: 500; }

.topbar-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.18);
  padding: 6px;
  z-index: 100;
}
.topbar-dropdown-header {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 4px;
}
.topbar-dropdown-name { font-size: 13px; font-weight: 600; color: #111827; }
.topbar-dropdown-email { font-size: 11.5px; color: #6b7280; margin-top: 1px; word-break: break-all; }
.topbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.12s;
}
.topbar-dropdown-item:hover { background: #f9fafb; color: #111827; }
.topbar-dropdown-item.danger { color: #b91c1c; }
.topbar-dropdown-item.danger:hover { background: #fef2f2; }
.topbar-dropdown-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 4px 0;
}

/* ──────────────────────────────────────────────────────────────
   Email verification banner
   ────────────────────────────────────────────────────────────── */
.verify-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.verify-banner-icon {
  width: 36px; height: 36px;
  background: #f59e0b;
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.verify-banner-text {
  flex: 1;
  font-size: 13px;
  color: #78350f;
}
.verify-banner-text strong { display: block; font-size: 13.5px; margin-bottom: 1px; }
.verify-banner-text code {
  background: rgba(120, 53, 15, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11.5px;
  color: #78350f;
}
.verify-banner-cta {
  background: #ffffff;
  color: #92400e;
  border: 1px solid #fcd34d;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.verify-banner-cta:hover {
  background: #fef9c3;
  border-color: #f59e0b;
}

/* ──────────────────────────────────────────────────────────────
   Transaction detail: hero
   ────────────────────────────────────────────────────────────── */
.tx-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #fafaff 100%);
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.tx-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #4f46e5, #7c3aed);
}
.tx-hero.succeeded::before { background: linear-gradient(180deg, #16a34a, #15803d); }
.tx-hero.failed::before { background: linear-gradient(180deg, #ef4444, #dc2626); }
.tx-hero.refunded::before, .tx-hero.partially_refunded::before { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.tx-hero.pending::before { background: linear-gradient(180deg, #f59e0b, #d97706); }

.tx-hero-amount {
  font-size: 30px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tx-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12.5px;
  color: #6b7280;
  flex-wrap: wrap;
}
.tx-hero-meta code {
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 5px;
  color: #374151;
  font-size: 11.5px;
}
.tx-hero-divider {
  width: 3px; height: 3px;
  background: #d1d5db;
  border-radius: 50%;
}

/* Detail row list (used in transaction detail) */
.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.detail-row:last-child { border-bottom: none; }
.detail-key { color: #6b7280; font-weight: 500; }
.detail-val { color: #111827; text-align: right; max-width: 60%; word-break: break-word; }
.detail-val code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 11.5px; color: #374151; }

/* Info callout (used in provider credentials page) */
.info-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #3730a3;
  line-height: 1.5;
}
.info-callout svg { flex-shrink: 0; margin-top: 2px; }

/* 2:1 grid for credentials + webhook layout */
.grid.cols-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .grid.cols-2-1 { grid-template-columns: 1fr; }
}

/* Form helpers polish */
.form-row { margin-bottom: 14px; }
.form-row .form-label, .form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.form-row .help {
  font-size: 11.5px;
  color: #6b7280;
  margin-top: 5px;
  line-height: 1.5;
}
.form-row .req { color: #ef4444; }
.form-row .text-faint { color: var(--text-muted); font-weight: 500; font-size: 11px; }

.form-section {
  margin-bottom: 24px;
}
.form-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0 0 12px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid #f3f4f6;
}

/* ──────────────────────────────────────────────────────────────
   Step-section UI used on multi-step forms (Add gateway, etc.)
   ────────────────────────────────────────────────────────────── */
.step-section { margin-bottom: 28px; }
.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.step-number {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(79, 70, 229, 0.4);
}

/* Gateway catalog grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.catalog-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.catalog-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.18);
  transform: translateY(-1px);
}
.catalog-card.selected {
  border-color: #4f46e5;
  background: linear-gradient(180deg, #ffffff 0%, #fafaff 100%);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.catalog-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.catalog-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f3f4f6;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  border: 1.5px solid #e5e7eb;
}
.catalog-card.selected .catalog-check {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}
.catalog-hint {
  margin: 6px 0 10px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}
.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.catalog-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.catalog-tag.info { background: #eef2ff; color: #4338ca; }
.catalog-tag.success { background: #dcfce7; color: #15803d; }
.catalog-tag.muted { background: #f3f4f6; color: #4b5563; }
.catalog-meta {
  font-size: 10.5px;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
  line-height: 1.4;
}

.fade-in { transition: opacity 0.2s; opacity: 1; }

/* ──────────────────────────────────────────────────────────────
   Final polish overrides (later in file = higher specificity)
   ────────────────────────────────────────────────────────────── */

/* Auth pages - modern landing-style */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 58, 237, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(79, 70, 229, 0.06), transparent 50%),
    #fafaff;
  padding: 24px;
}
.auth .panel {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 36px 34px 32px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 12px 32px -16px rgba(79, 70, 229, 0.18);
}
.auth .brand-row {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth .auth-logo-img {
  max-height: 68px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.auth .logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px -2px rgba(79, 70, 229, 0.4);
}
.auth h1 {
  font-size: 22px !important;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.auth .panel > p {
  font-size: 13.5px;
  color: #6b7280;
}
.auth .btn.large {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.auth a { color: #4f46e5; font-weight: 500; text-decoration: none; }
.auth a:hover { text-decoration: underline; }

/* Flash messages - cleaner, more refined */
.msgs { list-style: none; padding: 0; margin: 0 0 18px; }
.msgs li {
  padding: 12px 14px 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.msgs li::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.msgs li.success { background: #f0fdf4; color: #14532d; border-color: #bbf7d0; }
.msgs li.success::before { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
.msgs li.error { background: #fef2f2; color: #7f1d1d; border-color: #fecaca; }
.msgs li.error::before { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); }
.msgs li.warning { background: #fffbeb; color: #78350f; border-color: #fde68a; }
.msgs li.warning::before { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18); }
.msgs li.info { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.msgs li.info::before { background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }

/* Empty state used inline (in tables) - cleaner */
.empty {
  text-align: center;
  padding: 32px 16px;
  color: #6b7280;
  font-size: 13px;
}
.empty .icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.empty .icon svg { width: 20px; height: 20px; }

/* Pagination - modern button group */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 0;
}
.pager .text-muted {
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
}
.pager .btn.disabled,
.pager .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────
   Integration live preview page (mock browser + widget)
   ────────────────────────────────────────────────────────────── */
.preview-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) { .preview-layout { grid-template-columns: 1fr; } }

.preview-controls { position: sticky; top: 80px; }

.preview-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mock browser window */
.preview-browser {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 24px 60px -20px rgba(79, 70, 229, 0.22);
}
.preview-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}
.preview-browser-bar .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.preview-browser-bar .dot.red { background: #ef4444; }
.preview-browser-bar .dot.yellow { background: #f59e0b; }
.preview-browser-bar .dot.green { background: #22c55e; }
.preview-browser-url {
  margin-left: 16px;
  flex: 1;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preview-browser-content {
  padding: 28px 24px;
  background: #ffffff;
}

.preview-store-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f3f4f6;
}
.preview-store-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.preview-store-name { font-size: 14px; font-weight: 600; color: #111827; }
.preview-store-sub { font-size: 12px; color: #6b7280; margin-top: 1px; }

.preview-cart {
  background: #fafafa;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.preview-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #374151;
  padding: 4px 0;
}
.preview-cart-row.total {
  font-weight: 700;
  color: #111827;
  font-size: 14px;
}
.preview-cart-amount {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  color: #111827;
}
.preview-cart-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

/* ──────────────────────────────────────────────────────────────
   MTN MoMo gateway-hosted Collection Widget
   ────────────────────────────────────────────────────────────── */
.momo-widget {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 24px 60px -20px rgba(255, 203, 5, 0.35);
  border: 1px solid #f3f4f6;
}
.momo-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #FFCB05 0%, #FDB813 100%);
  border-bottom: 3px solid #003B5C;
}
.momo-widget-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.momo-widget-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 59, 92, 0.18);
}
.momo-widget-title {
  font-size: 14px;
  font-weight: 700;
  color: #003B5C;
  letter-spacing: -0.01em;
}
.momo-widget-merchant {
  font-size: 11.5px;
  color: rgba(0, 59, 92, 0.75);
  margin-top: 1px;
}
.momo-widget-secure {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 59, 92, 0.12);
  color: #003B5C;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.momo-widget-body { padding: 24px 22px 18px; }

.momo-widget-amount {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}
.momo-widget-amount-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 6px;
}
.momo-widget-amount-value {
  font-size: 30px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.momo-widget-interval {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}
.momo-widget-desc {
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 6px;
}

.momo-widget-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}
.momo-widget-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #78350f;
}
.momo-widget-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFCB05;
  color: #003B5C;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.momo-widget-phone-input {
  position: relative;
  display: flex;
  align-items: center;
}
.momo-widget-phone-icon {
  position: absolute;
  left: 12px;
  color: #6b7280;
  pointer-events: none;
  z-index: 1;
}
.momo-widget-phone-input input {
  padding-left: 36px !important;
  font-size: 15px !important;
  letter-spacing: 0.5px;
}

.momo-widget-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(180deg, #003B5C 0%, #002B45 100%);
  color: #FFCB05;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: all 0.18s;
  box-shadow: 0 4px 14px -4px rgba(0, 59, 92, 0.45);
  margin-top: 6px;
}
.momo-widget-submit:hover {
  background: linear-gradient(180deg, #004566 0%, #003554 100%);
  box-shadow: 0 6px 20px -4px rgba(0, 59, 92, 0.55);
  transform: translateY(-1px);
}
.momo-widget-submit:active { transform: translateY(0); }
.momo-widget-submit:disabled { cursor: wait; transform: none; }

.momo-widget-footer {
  padding: 12px 20px;
  background: #fafafa;
  border-top: 1px solid #f3f4f6;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Preview summary bar (top of preview page) */
.preview-summary-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.preview-summary-divider {
  width: 1px;
  align-self: stretch;
  background: #f3f4f6;
}
.preview-summary-item { display: flex; flex-direction: column; gap: 3px; }
.preview-summary-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}
.preview-summary-value {
  color: #111827;
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
}
.preview-summary-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.preview-summary-icons .pay-icon-sm {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

/* Store brand row inside preview frame */
.preview-store-secure {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Device-tabs (Desktop / Mobile) */
.preview-device-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.preview-device-tabs > button {
  margin: 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.preview-device-tabs > button.active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 10px -3px rgba(79, 70, 229, 0.4);
}
.preview-device-tabs > button:hover:not(.active) { border-color: #c7d2fe; color: #111827; }

/* Larger browser frame with desktop/mobile modes */
.preview-browser.desktop { max-width: 580px; }
.preview-browser.mobile {
  max-width: 360px;
  border-radius: 28px;
  border-width: 8px;
  border-color: #1f2937;
  box-shadow:
    0 24px 60px -20px rgba(31, 41, 55, 0.4),
    0 0 0 1px #374151;
}
.preview-browser.mobile .preview-browser-bar {
  background: #ffffff;
  border-bottom: none;
  padding: 8px 14px 4px;
  justify-content: center;
}
.preview-browser.mobile .dot { display: none; }
.preview-browser.mobile .preview-browser-url {
  margin: 0;
  background: #f3f4f6;
  padding: 3px 14px;
  font-size: 10.5px;
}
.preview-browser.mobile .preview-browser-content {
  padding: 18px 16px;
}

/* Pulse animation for the "Apply changes" button */
@keyframes pulse-attention-anim {
  0%, 100% { box-shadow: 0 1px 2px rgba(67, 56, 202, 0.18), 0 0 0 0 rgba(124, 58, 237, 0.5); }
  50% { box-shadow: 0 1px 2px rgba(67, 56, 202, 0.18), 0 0 0 8px rgba(124, 58, 237, 0); }
}
.pulse-attention {
  animation: pulse-attention-anim 1.6s ease-out infinite;
}

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