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

:root {
  --bg:        #0f1117;
  --bg2:       #161b27;
  --bg3:       #1e2535;
  --border:    #2a3347;
  --text:      #e8ecf4;
  --text2:     #8892a4;
  --accent:    #3b82f6;
  --accent-h:  #2563eb;
  --green:     #10b981;
  --red:       #ef4444;
  --yellow:    #f59e0b;
  --sidebar-w: 240px;
  --topbar-h:  52px;
  --radius:    8px;
  --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Greek uppercase text must not have accent marks (ISO standard) */
.text-upper-el { text-transform: uppercase; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100dvh;
}

input, textarea, select, button { font-family: inherit; font-size: 14px; }
a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

/* ── AUTH SCREEN ─────────────────────────────────────────── */
.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
}

.auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 28px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

/* ── FORM FIELDS ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text2); }

.field input,
.field textarea,
.field select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 12px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); }

.field textarea { resize: vertical; min-height: 80px; }
.field select option { background: var(--bg2); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field-hint { font-size: 11px; color: var(--text2); margin-top: 2px; }

/* Badges checkboxes */
.badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge-cb {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  user-select: none;
  transition: border-color .15s, background .15s;
}
.badge-cb input { display: none; }
.badge-cb.checked { border-color: var(--accent); background: rgba(59,130,246,.15); color: var(--accent); }
.badge-cb--custom { border-style: dashed; }
.badge-cb--allergen.checked { border-color: #ef4444; background: rgba(239,68,68,.1); color: #b91c1c; }
.badge-del-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text2); font-size: 14px; padding: 0 0 0 2px;
  line-height: 1; opacity: .6;
}
.badge-del-btn:hover { color: var(--red); opacity: 1; }
.badge-add-row {
  display: flex; gap: 8px; margin-top: 10px;
}
.badge-add-row input {
  flex: 1; padding: 6px 10px; font-size: 13px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
}

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.toggle-label { font-size: 13px; color: var(--text2); }
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
}
.toggle input { display: none; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: background .2s;
  cursor: pointer;
}
.toggle input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 9px 16px;
  font-weight: 500;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--accent-h); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 16px;
  font-weight: 500;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover { background: var(--border); }

.btn-danger {
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 9px 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-danger:hover { opacity: .85; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--text2);
  transition: background .15s, color .15s;
}
.btn-icon:hover { background: var(--bg3); color: var(--text); }
.btn-icon.danger:hover { background: rgba(239,68,68,.15); color: var(--red); }

.btn-full { width: 100%; justify-content: center; }

/* ── SIDEBAR ──────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .25s;
}

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

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.sidebar-close { display: none; color: var(--text2); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text2);
  padding: 4px 8px;
  margin-top: 20px;
}
.nav-section:first-child {
  margin-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text2);
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  font-size: 14px;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: rgba(59,130,246,.15); color: var(--accent); }
.nav-item svg { flex-shrink: 0; }

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: none;
  background: none;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.nav-back:hover { background: var(--bg3); color: var(--text); }

.nav-biz-name {
  padding: 4px 10px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-info {
  font-size: 12px;
  color: var(--text2);
  padding: 4px 4px;
}
.user-info strong { display: block; color: var(--text); font-size: 13px; }

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  font-size: 13px;
  padding: 6px 4px;
  transition: color .15s;
}
.btn-logout:hover { color: var(--red); }

/* ── TOPBAR (mobile) ─────────────────────────────────────── */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  z-index: 90;
}

.topbar-menu { color: var(--text); }
.topbar-title { font-weight: 600; font-size: 15px; }

/* ── MAIN CONTENT ────────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  padding: 32px;
  min-height: 100dvh;
}

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

.page-title {
  font-size: 22px;
  font-weight: 700;
}

.page-sub {
  font-size: 13px;
  color: var(--text2);
  margin-top: 2px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 20px;
}
.breadcrumb button { color: var(--accent); font-size: 13px; }
.breadcrumb > span { color: var(--border); }
.breadcrumb .credit-pill { color: var(--green); }

/* Right-aligned pill group in breadcrumb */
.bc-pills {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Credit balance pill — matches btn-live style */
.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid;
  white-space: nowrap;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--green);
}
.credit-pill--green  { border-color: var(--green);  background: rgba(16,185,129,.08); }
.credit-pill--green  .live-dot { background: var(--green);  box-shadow: 0 0 5px var(--green); }
.credit-pill--orange { border-color: #f97316; background: rgba(249,115,22,.08); }
.credit-pill--orange .live-dot { background: #f97316; box-shadow: 0 0 5px #f97316; }
.credit-pill--red    { border-color: var(--red);   background: rgba(239,68,68,.08); }
.credit-pill--red    .live-dot { background: var(--red);   box-shadow: 0 0 5px var(--red); }

/* ── TABS ────────────────────────────────────────────────── */
/* ── MENU TAB LANGUAGE BAR ───────────────────────────────── */
.menu-lang-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.menu-lang-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  margin-right: 4px;
  white-space: nowrap;
}

.menu-lang-tab {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.menu-lang-tab:hover { border-color: var(--accent); color: var(--accent); }
.menu-lang-tab.active {
  border-color: var(--accent);
  background: rgba(59,130,246,.1);
  color: var(--accent);
}

/* Language indicator badge in venue header */
.lang-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  background: rgba(59,130,246,.12);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ── TAB PANELS ──────────────────────────────────────────── */
.tab-panel.hidden { display: none; }

/* ── QR CODE TAB ─────────────────────────────────────────── */
.qr-panel {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 380px;
  width: 100%;
}
.qr-img {
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.qr-url {
  font-size: 12px;
  color: var(--text2);
  word-break: break-all;
  text-align: center;
}

/* ── SETTINGS TAB ─────────────────────────────────────────── */
.settings-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: -8px;
}

/* ── HOURS EDITOR ─────────────────────────────────────────── */
.hours-editor { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.h-day-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.h-day-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  min-width: 52px;
  cursor: pointer;
  user-select: none;
}
.h-day-lbl input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.h-slots { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.h-slot { display: flex; align-items: center; gap: 6px; }
.h-slot input[type="time"] {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  width: 90px;
}
.h-sep { color: var(--text-muted); font-size: 13px; }
.h-del-slot { font-size: 16px; padding: 0 4px; color: var(--text-muted); }
.h-del-slot:hover { color: var(--red); }
.h-add-slot { font-size: 12px; white-space: nowrap; }

/* Payment history section below venues */
.pay-history {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.pay-history-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pay-history-title strong { color: var(--text); }

/* Payment modal days preview */
.pay-preview {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin: 4px 0 12px;
  min-height: 18px;
}

/* Live link pill inside breadcrumb */
.btn-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid;
  letter-spacing: .02em;
  transition: opacity .15s;
  color: var(--green);
}
.btn-live:hover { opacity: .8; }
.btn-live--on  { border-color: var(--green); background: rgba(16,185,129,.08); }
.btn-live--off { border-color: var(--red);   background: rgba(239,68,68,.08); }
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.btn-live--on  .live-dot { background: var(--green); box-shadow: 0 0 5px var(--green); }
.btn-live--off .live-dot { background: var(--red);   box-shadow: 0 0 5px var(--red); }

/* Three-button top action row on venue detail */
.top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

/* ── CARDS GRID ──────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s;
}
.card:hover { border-color: var(--accent); }
.card--clickable { cursor: pointer; }
.card--clickable:active { background: var(--bg3); }

.card-title {
  font-weight: 600;
  font-size: 15px;
}

.card-sub {
  font-size: 12px;
  color: var(--text2);
}

.card-remaining {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-top: 4px;
}
.card-remaining--red { color: var(--red); }

.card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── TABLE ───────────────────────────────────────────────── */
.table-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  border-bottom: 1px solid var(--border);
}

th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text2);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

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

.td-name { font-weight: 500; }
.td-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.td-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.td-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* ── BADGES / CHIPS ──────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.chip-green  { background: rgba(16,185,129,.15);  color: var(--green); }
.chip-red    { background: rgba(239,68,68,.15);   color: var(--red); }
.chip-blue   { background: rgba(59,130,246,.15);  color: var(--accent); }
.chip-gray   { background: var(--bg3);            color: var(--text2); }
.chip-yellow { background: rgba(245,158,11,.15);  color: var(--yellow); }

/* ── GROUP SECTION ───────────────────────────────────────── */
.group-section { margin-bottom: 8px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface);
}

.group-toggle { cursor: pointer; user-select: none; }
.group-toggle:hover { background: var(--surface-2); }

.group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.group-count {
  font-size: 11px;
  font-weight: 600;
  background: var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 1px 7px;
}

.group-chevron {
  transition: transform .2s;
  color: var(--text-muted);
  flex-shrink: 0;
}

.group-body {
  padding: 12px 14px 4px;
}

.group-section.group-collapsed .group-body { display: none; }
.group-section.group-collapsed .group-chevron { transform: rotate(-90deg); }

.subcat-block { margin-bottom: 20px; }

.subcat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.subcat-toggle { cursor: pointer; user-select: none; }
.subcat-toggle:hover .subcat-title { color: var(--text); }

.subcat-chevron {
  transition: transform .2s;
  color: var(--text-muted);
  flex-shrink: 0;
}

.subcat-block.subcat-collapsed .subcat-items { display: none; }
.subcat-block.subcat-collapsed .subcat-chevron { transform: rotate(-90deg); }
.subcat-block.subcat-collapsed { margin-bottom: 4px; }
.subcat-block.subcat-collapsed .subcat-header { margin-bottom: 0; border-bottom-color: transparent; }

.subcat-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── STATS ROW ───────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-label { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 700; }

/* ── SEARCH / FILTER BAR ─────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px 12px;
  outline: none;
  flex: 1;
  min-width: 200px;
}
.search-input:focus { border-color: var(--accent); }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text2);
}
.empty svg { margin-bottom: 12px; opacity: .4; }
.empty p { font-size: 15px; margin-bottom: 16px; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
}

.modal-sm { max-width: 380px; }
.modal-lg { max-width: 760px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title { font-size: 16px; font-weight: 700; }

.modal-close {
  color: var(--text2);
  transition: color .15s;
}
.modal-close:hover { color: var(--text); }

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  transition: opacity .3s;
  max-width: 320px;
}
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error   { border-color: var(--red);   color: var(--red); }

/* ── UTILITY ──────────────────────────────────────────────── */
.hidden { display: none !important; }
.error-msg {
  color: var(--red);
  font-size: 13px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 6px;
  padding: 8px 12px;
}
.loading { opacity: .5; pointer-events: none; }
.text-muted { color: var(--text2); }
.mt-4 { margin-top: 16px; }

/* ── SUBSCRIPTION BANNER ─────────────────────────────────── */
.sub-banner {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sub-banner-status {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.sub-banner-date {
  font-size: 12px;
  color: var(--text2);
}

/* ── TRANSLATE ───────────────────────────────────────────── */
.translate-row {
  display: flex;
  gap: 8px;
  margin: -6px 0 4px;
}

.btn-translate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  cursor: pointer;
  transition: background .15s;
}
.btn-translate:hover { background: rgba(59,130,246,.2); }
.btn-translate:disabled { opacity: .5; cursor: wait; }

/* ── LANGUAGE TABS ───────────────────────────────────────── */
.lang-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}
.lang-tab {
  padding: 7px 18px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 4px 4px 0 0;
  transition: color .15s;
}
.lang-tab:hover { color: var(--text); }
.lang-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.lang-panel.hidden { display: none !important; }
.lang-auto-translate { margin-bottom: 12px; }

/* Language chips (settings tab) */
.lang-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lang-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; background: var(--bg3); border-radius: 20px;
  font-size: 12px; font-weight: 600; color: var(--text);
}
.lang-chip-badge {
  font-size: 10px; font-weight: 700; color: var(--accent); text-transform: uppercase;
}
.lang-chip-del {
  background: none; border: none; color: var(--text2); cursor: pointer;
  padding: 0 2px; font-size: 15px; line-height: 1;
}
.lang-chip-del:hover { color: var(--red); }
.lang-add-row { display: flex; gap: 8px; align-items: center; }

/* Option groups manager (settings tab) */
.optgroups-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.optgroup-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
}
.optgroup-row-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.optgroup-row-name { font-size: 13px; font-weight: 600; color: var(--text); }
.optgroup-row-meta { font-size: 11px; color: var(--text2); }
.optgroup-row-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Option group choice rows (modal) */
.optchoice-list { display: flex; flex-direction: column; gap: 6px; }
.optchoice-row { display: grid; grid-template-columns: 1fr 90px auto; gap: 6px; align-items: center; }
.optchoice-row .oc-price { text-align: right; }

/* Primary language selector (business creation) */
.lang-option-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-opt-btn {
  padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 20px;
  background: none; font-size: 13px; font-weight: 500; color: var(--text2);
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.lang-opt-btn.active {
  border-color: var(--accent); color: var(--accent); background: rgba(59,130,246,.08);
}

/* ── IMAGE UPLOAD ────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s;
}
.upload-zone:hover { border-color: var(--accent); }
.upload-zone input { display: none; }

.img-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 10px;
}

/* ── ITEM ROWS (drag & drop + multi-select) ──────────────── */
.items-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; min-height: 12px; border-radius: 6px; transition: background-color .15s, outline-color .15s; outline: 2px dashed transparent; outline-offset: 2px; }
.items-list.drag-over { outline-color: var(--accent); background: var(--bg2); }

.items-empty { font-size: 13px; padding: 8px 4px; color: var(--text2); margin: 0; }

.item-row {
  display: grid;
  grid-template-columns: 16px 20px 1fr 72px minmax(80px,auto) 48px auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background .15s;
  user-select: none;
  cursor: grab;
}
.item-row:active { cursor: grabbing; }
.item-row:hover { background: var(--bg3); }

.drag-icon { display: flex; align-items: center; flex-shrink: 0; opacity: .4; }

.item-cb { cursor: pointer; width: 14px; height: 14px; accent-color: var(--accent); }

.item-row-name {
  min-width: 0;
  cursor: pointer;
}
.item-row-name:hover .td-name { color: var(--accent); }

.item-row-price { font-size: .82rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.item-row-badges { display: flex; flex-wrap: wrap; gap: 3px; }

.item-row.drag-ghost { opacity: 0.35; box-shadow: none; }
.item-row.drag-over-top { border-top: 2px solid var(--accent); }
.item-row.drag-over-bot { border-bottom: 2px solid var(--accent); }

.group-section { border-radius: 8px; }
.group-section.drag-ghost { opacity: .35; }
.group-section.drag-over-top { border-top: 2px solid var(--accent); }
.group-section.drag-over-bot { border-bottom: 2px solid var(--accent); }

.subcat-block.drag-ghost { opacity: .35; }
.subcat-block.drag-over-top { border-top: 2px solid var(--accent); }
.subcat-block.drag-over-bot { border-bottom: 2px solid var(--accent); }
.group-body.drag-over { outline: 2px dashed var(--accent); outline-offset: -2px; border-radius: 6px; }

/* ── BULK BAR ─────────────────────────────────────────────── */
.bulk-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: 40px;
  padding: 10px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  z-index: 200;
  white-space: nowrap;
}
.bulk-count {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  margin-right: 4px;
}

/* ── FINANCE DASHBOARD ───────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.kpi-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon--green  { background: rgba(52,211,153,.12); color: var(--green); }
.kpi-icon--blue   { background: rgba(99,102,241,.12);  color: var(--accent); }
.kpi-icon--yellow { background: rgba(251,191,36,.12);  color: var(--yellow); }
.kpi-icon--red    { background: rgba(239,68,68,.12);   color: var(--red); }
.kpi-body { min-width: 0; }
.kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.kpi-label {
  font-size: 0.72rem;
  color: var(--text2);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fin-section {
  margin-bottom: 36px;
}
.fin-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Revenue bar chart */
/* Vertical bar chart */
.rev-chart-v {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 220px;
  padding: 0 4px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.rev-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  cursor: default;
  min-width: 0;
}
.rev-col-val {
  font-size: 10px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
}
.rev-col:hover .rev-col-val { opacity: 1; }
.rev-col--current .rev-col-val { opacity: 1; color: var(--green); }

.rev-col-bar {
  width: 100%;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  opacity: 0.55;
  transition: height .4s ease, opacity .15s;
  min-width: 8px;
}
.rev-col:hover .rev-col-bar { opacity: 0.85; }
.rev-col--current .rev-col-bar { background: var(--green); opacity: 1; }

.rev-col-mo {
  font-size: 10px;
  color: var(--text2);
  text-align: center;
  white-space: nowrap;
  padding-top: 6px;
  line-height: 1.3;
}
.rev-col--current .rev-col-mo { color: var(--green); font-weight: 600; }
.rev-col-mo small { opacity: .7; }

/* Keep old horizontal classes for backwards compat */
.rev-chart { display: flex; flex-direction: column; gap: 10px; }
.rev-row { display: grid; grid-template-columns: 52px 1fr 80px 100px; align-items: center; gap: 12px; }
.rev-month { font-size: .72rem; color: var(--text2); text-align: right; white-space: nowrap; }
.rev-bar-wrap { background: var(--bg3); border-radius: 4px; height: 20px; overflow: hidden; }
.rev-bar { height: 100%; background: var(--accent); border-radius: 4px; opacity: .7; min-width: 2px; }
.rev-bar--current { background: var(--green); opacity: 1; }
.rev-amount { font-size: .82rem; font-weight: 600; color: var(--text); text-align: right; white-space: nowrap; }
.rev-count { font-size: .7rem; color: var(--text2); }

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.data-table th {
  background: var(--bg3);
  color: var(--text2);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg3); }

.text-green  { color: var(--green); }
.text-warning{ color: var(--yellow); }
.text-danger { color: var(--red); }
.btn-sm { padding: 4px 10px; font-size: 0.72rem; gap: 4px; }

/* ── THEME PICKER ────────────────────────────────────────── */
.theme-picker {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.theme-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.theme-opt:hover {
  border-color: var(--accent);
  background: var(--bg3);
}
.theme-opt.active {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}
.theme-preview {
  display: block;
  width: 100%;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.theme-preview--default {
  background: #0a0f1e;
  border: 1px solid rgba(201,169,110,.3);
}
.theme-preview--default::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1526 50%, #111d35 100%);
}
.theme-preview--default::after {
  content: '';
  position: absolute;
  left: 8px; top: 8px;
  width: 40%; height: 6px;
  background: rgba(201,169,110,.6);
  border-radius: 3px;
  box-shadow: 0 14px 0 rgba(201,169,110,.25), 0 26px 0 rgba(201,169,110,.15);
}
.theme-preview--minimal {
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,.12);
}
.theme-preview--minimal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.theme-preview--minimal::after {
  content: '';
  position: absolute;
  left: 8px; top: 20px;
  width: 40%; height: 5px;
  background: rgba(26,115,232,.7);
  border-radius: 3px;
  box-shadow: 0 12px 0 rgba(26,115,232,.3), 0 22px 0 rgba(26,115,232,.15);
}
.theme-opt-label {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── COLOR SCHEME PICKER ─────────────────────────────────── */
.cs-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.cs-opt {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s;
  outline: none;
}
.cs-opt:hover    { border-color: rgba(0,0,0,.2); }
.cs-opt.active   { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(59,130,246,.25); }

/* ── LIST LAYOUT PICKER ──────────────────────────────────── */
.ll-picker { display: flex; gap: 10px; margin-top: 4px; }
.ll-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 10px; border: 2px solid var(--border);
  background: var(--bg2); color: var(--text2); cursor: pointer; font-size: 12px;
  font-weight: 600; font-family: inherit; transition: border-color .15s;
}
.ll-opt:hover  { border-color: var(--border2); }
.ll-opt.active { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 2px rgba(59,130,246,.2); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,.5);
  }
  .sidebar-close { display: flex; }

  .topbar { display: flex; }

  .main {
    margin-left: 0;
    margin-top: var(--topbar-h);
    padding: 16px 14px;
  }

  /* Page header stacks */
  .page-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-title { font-size: 18px; }

  /* Breadcrumb pills wrap to new line */
  .breadcrumb { flex-wrap: wrap; }
  .bc-pills { margin-left: 0; width: 100%; }

  /* Tables scroll horizontally instead of clipping */
  .table-wrap { overflow-x: auto; }

  /* Item rows: remove badges column, tighten grid */
  .item-row {
    grid-template-columns: 16px 20px 1fr auto 40px auto;
    padding: 8px 8px;
    gap: 6px;
  }
  .item-row-badges { display: none; }

  /* Modals */
  .modal-overlay { padding: 12px; }
  .modal { max-height: 95dvh; }
  .modal-header { padding: 14px 16px; }
  .modal-body { padding: 14px 16px; gap: 12px; }
  .modal-footer { padding: 12px 16px; }

  /* Bulk action bar: full width at bottom */
  .bulk-bar {
    left: 12px;
    right: 12px;
    transform: none;
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Lang bar & lang tabs: horizontal scroll */
  .menu-lang-bar { overflow-x: auto; flex-wrap: nowrap; }
  .lang-tabs { overflow-x: auto; flex-wrap: nowrap; }

  /* Top action buttons: align left */
  .top-actions { justify-content: flex-start; }

  /* Fields */
  .field-row { grid-template-columns: 1fr; }

  /* Filter bar: search takes full width */
  .search-input { min-width: 0; }

  /* Stats row: 2 columns */
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .main { padding: 14px 12px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ── WARN CONFIRM ────────────────────────────────────────── */
.warn-box {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.warn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.warn-label {
  color: var(--text2);
  width: 72px;
  flex-shrink: 0;
}
.warn-code {
  font-family: monospace;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  word-break: break-all;
}
.warn-code--old { background: rgba(239,68,68,.15); color: var(--red); text-decoration: line-through; }
.warn-code--new { background: rgba(16,185,129,.15); color: var(--green); }
.warn-msg {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── IMAGE SLOTS (Settings: Logo / Favicon / Cover) ─────── */
.img-slots { display: flex; flex-direction: column; gap: 10px; }

.img-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
}

.img-slot-preview {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
}
.img-slot-preview--wide {
  width: 88px;
}
.img-slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-slot-ph { opacity: .35; display: flex; }

.img-slot-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.img-slot-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.img-slot-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.img-slot-hint {
  font-size: 11px;
  color: var(--text2);
}

/* ── MEDIA LIBRARY ───────────────────────────────────────── */
.media-toolbar { margin-bottom: 10px; }
.media-picker-toolbar { margin-bottom: 4px; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.media-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg3);
  cursor: pointer;
  transition: outline-color .15s;
  outline: 2px solid transparent;
  outline-offset: -2px;
}
.media-thumb--pickable:hover { outline-color: var(--accent); }

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb-size {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: 1px 5px;
  border-radius: 4px;
}

.media-thumb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}
.media-thumb-del:hover { background: var(--red); }

/* ── PRICING CARDS ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.pricing-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.pricing-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.pricing-option:last-child { border-bottom: none; }
.pricing-option:hover { background: var(--bg3); }
.pricing-option.selected {
  background: rgba(59,130,246,.06);
  border-left: 3px solid var(--accent);
}

.pricing-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  flex-shrink: 0;
  transition: border-color .12s, background .12s;
}
.pricing-option.selected .pricing-radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg2);
}

.pricing-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pricing-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pricing-desc {
  font-size: 12px;
  color: var(--muted);
}
.pricing-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.pricing-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(59,130,246,.12);
  color: var(--accent);
}
.pricing-badge--green {
  background: rgba(16,185,129,.12);
  color: var(--green);
}

/* Stripe CTA button */
/* Pricing wrapper — narrower on desktop */
.pricing-wrapper {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 4px;
}
@media (min-width: 900px) {
  .pricing-wrapper { max-width: 50%; }
}

/* Stripe CTA — smooth slide-in when plan selected */
.btn-stripe-pay-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 14px;
  /* slide-in transition */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
}
.btn-stripe-pay-cta.visible {
  max-height: 64px;
  opacity: 1;
  padding-top: 16px;
  padding-bottom: 16px;
}
.btn-stripe-pay-cta:hover  { opacity: .9; }
.btn-stripe-pay-cta:active { transform: scale(.99); }
.btn-stripe-pay-cta:disabled { opacity: .6; cursor: not-allowed; }
