/* ============================================================
   IngressoAI — Design System v3.0
   Premium SaaS Dark — inspired by Linear, Vercel, Stripe
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

/* ── Temas ────────────────────────────────────────────────── */
.dark-theme {
  --bg:            #08080f;
  --bg2:           #0f0f1a;
  --bg3:           #16162a;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(255,255,255,0.14);
  --text:          #f1f1f8;
  --text-secondary:#8b8baa;
  --text-muted:    #46465e;
  --primary:       #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-glow:  rgba(139,92,246,0.22);
  --primary-subtle:rgba(139,92,246,0.10);
  --accent:        #ec4899;
  --accent-glow:   rgba(236,72,153,0.18);
  --success:       #10b981;
  --success-bg:    rgba(16,185,129,0.10);
  --warning:       #f59e0b;
  --warning-bg:    rgba(245,158,11,0.10);
  --danger:        #ef4444;
  --danger-bg:     rgba(239,68,68,0.10);
  --info:          #3b82f6;
  --info-bg:       rgba(59,130,246,0.10);
  --card-bg:       #0f0f1a;
  --input-bg:      #16162a;
  --color-success: #10b981;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.5);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:     0 10px 40px rgba(0,0,0,0.7);
}
.light-theme {
  --bg:            #f5f5fc;
  --bg2:           #ffffff;
  --bg3:           #eeeef7;
  --border:        rgba(0,0,0,0.08);
  --border-hover:  rgba(0,0,0,0.16);
  --text:          #0c0c1a;
  --text-secondary:#5a5a7a;
  --text-muted:    #a0a0c0;
  --primary:       #7c3aed;
  --primary-hover: #6d28d9;
  --primary-glow:  rgba(124,58,237,0.15);
  --primary-subtle:rgba(124,58,237,0.07);
  --accent:        #db2777;
  --accent-glow:   rgba(219,39,119,0.12);
  --success:       #059669;
  --success-bg:    rgba(5,150,105,0.08);
  --warning:       #d97706;
  --warning-bg:    rgba(217,119,6,0.08);
  --danger:        #dc2626;
  --danger-bg:     rgba(220,38,38,0.08);
  --info:          #2563eb;
  --info-bg:       rgba(37,99,235,0.08);
  --card-bg:       #ffffff;
  --input-bg:      #f0f0f9;
  --color-success: #059669;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:     0 10px 40px rgba(0,0,0,0.12);
}

body { background: var(--bg); color: var(--text); }

/* ── App Layout ────────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }
.app-content-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ── Sidebar ───────────────────────────────────────────────── */
.app-sidebar {
  width: 232px; min-width: 232px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; z-index: 100;
  scrollbar-width: none;
  transition: transform 0.25s ease;
}
.app-sidebar::-webkit-scrollbar { display: none; }

.sidebar-brand {
  padding: 20px 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
.sidebar-brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  box-shadow: 0 2px 10px var(--primary-glow);
  flex-shrink: 0;
}
.sidebar-brand-name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.sidebar-brand-tag  {
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--primary-subtle); color: var(--primary);
  padding: 2px 7px; border-radius: 5px; display: inline-block; margin-top: 2px;
}

.sidebar-section-label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); padding: 16px 14px 6px;
}
.sidebar-nav { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 1px; }
.nav-tab {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-secondary);
  background: none; border: none; cursor: pointer;
  text-align: left; width: 100%;
  transition: all 0.14s; white-space: nowrap;
  font-family: inherit;
}
.nav-tab svg { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.8; }
.nav-tab:hover  { color: var(--text); background: var(--bg3); }
.nav-tab.active { color: var(--primary); background: var(--primary-subtle); font-weight: 600; }
.nav-tab.active svg { color: var(--primary); }
.nav-badge-count {
  margin-left: auto; min-width: 20px; height: 20px;
  background: var(--primary); color: #fff;
  border-radius: 10px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}
.nav-badge-dot {
  margin-left: auto; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
}

.sidebar-footer {
  padding: 10px 8px 14px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.sidebar-user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 9px; cursor: pointer;
  transition: background 0.15s;
}
.sidebar-user-row:hover { background: var(--bg3); }
.sidebar-user-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sidebar-user-plan { font-size: 11px; color: var(--text-muted); }
.sidebar-chevron { margin-left: auto; color: var(--text-muted); }
.sidebar-chevron svg { width: 14px; height: 14px; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 99; backdrop-filter: blur(2px);
}

/* ── Header ────────────────────────────────────────────────── */
.app-header {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 24px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
}
.header-left { display: flex; align-items: center; gap: 10px; }
.hamburger {
  display: none; background: none; border: none;
  color: var(--text-secondary); cursor: pointer;
  padding: 6px; border-radius: 7px; transition: all 0.15s;
}
.hamburger:hover { background: var(--bg3); color: var(--text); }
.hamburger svg { width: 20px; height: 20px; display: block; }
.page-title { font-size: 14.5px; font-weight: 600; color: var(--text-secondary); }

.header-search {
  flex: 1; position: relative; max-width: 380px; margin: 0 auto;
}
.header-search svg {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); width: 15px; height: 15px;
  color: var(--text-muted); pointer-events: none;
}
.header-search input {
  width: 100%; background: var(--input-bg);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 12px 8px 34px;
  color: var(--text); font-size: 13px; font-family: inherit;
  transition: border 0.15s, box-shadow 0.15s;
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-icon-btn {
  width: 34px; height: 34px;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; position: relative;
}
.header-icon-btn svg { width: 16px; height: 16px; }
.header-icon-btn:hover { background: var(--bg3); border-color: var(--border-hover); color: var(--text); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  border: 1.5px solid var(--bg2);
}

/* Legacy compat */
.header-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: 0 2px 8px var(--primary-glow);
}
.brand-name { font-weight: 700; font-size: 15px; }
.brand-sub  { font-size: 10px; color: var(--text-secondary); display: block; line-height: 1.3; }

.user-menu { position: relative; }
.user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.15s;
}
.user-avatar:hover { box-shadow: 0 0 0 3px var(--primary-glow); }
.user-dropdown {
  position: absolute; right: 0; top: 42px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; min-width: 195px;
  padding: 6px 0; box-shadow: var(--shadow-lg); z-index: 200;
}
.user-dropdown a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; font-size: 13.5px;
  color: var(--text); text-decoration: none; transition: background 0.15s;
}
.user-dropdown a:hover { background: var(--bg3); }
.user-dropdown hr { border-color: var(--border); margin: 4px 0; }
.user-dropdown .danger-link { color: var(--danger); }
.nav-badge { font-size: 11px; color: var(--text-muted); padding: 3px 8px; background: var(--bg3); border-radius: 6px; }

/* ── Main ──────────────────────────────────────────────────── */
.app-main { padding: 24px; max-width: 1280px; width: 100%; }
.tab-content { display: none; animation: fadeIn 0.2s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ── Section header ────────────────────────────────────────── */
.section-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.section-header h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.section-sub { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.section-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none;
  transition: all 0.15s; text-decoration: none;
  white-space: nowrap; letter-spacing: -0.1px;
}
.btn svg { width: 15px; height: 15px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: #fff; box-shadow: 0 2px 10px var(--primary-glow);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-hover), #5b21b6); transform: translateY(-1px); box-shadow: 0 4px 18px var(--primary-glow); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-subtle); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-danger-ghost { background: transparent; color: var(--danger); border: 1px solid transparent; }
.btn-danger-ghost:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-whatsapp { background: #22c55e; color: #fff; }
.btn-whatsapp:hover { background: #16a34a; transform: translateY(-1px); }
.btn-sm { padding: 6px 13px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 11px; }
.full-width { width: 100%; justify-content: center; }

/* ── Inputs ─────────────────────────────────────────────────── */
.input {
  width: 100%; background: var(--input-bg);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 10px 14px; color: var(--text);
  font-size: 13.5px; font-family: inherit;
  transition: border 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.input-error { border-color: var(--danger) !important; }
.input-inline {
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  color: var(--text); font-size: 13px; min-width: 200px; font-family: inherit;
}
.input-inline:focus { outline: none; border-color: var(--primary); }
textarea.input { resize: vertical; min-height: 80px; }

/* ── Form groups ────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.01em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.form-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.form-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; letter-spacing: -0.2px; }
.field-hint { font-size: 11.5px; margin-top: 3px; color: var(--text-muted); }
.field-hint.success { color: var(--success); }
.field-hint.error   { color: var(--danger); }

/* ── Metrics ────────────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.metric-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all 0.2s; cursor: default;
}
.metric-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); }
.metric-card-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.metric-icon.purple { background: rgba(139,92,246,0.15); }
.metric-icon.green  { background: rgba(16,185,129,0.12); }
.metric-icon.blue   { background: rgba(59,130,246,0.12); }
.metric-icon.orange { background: rgba(245,158,11,0.12); }
.metric-icon.pink   { background: rgba(236,72,153,0.12); }
.metric-trend { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 3px; }
.metric-trend.up   { color: var(--success); }
.metric-trend.down { color: var(--danger); }
.metric-trend.neu  { color: var(--text-muted); }
.metric-body { display: flex; flex-direction: column; gap: 3px; }
.metric-value { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.15; }
.metric-label { font-size: 12.5px; color: var(--text-secondary); font-weight: 500; }

/* ── Chart ──────────────────────────────────────────────────── */
.chart-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; margin-bottom: 24px;
}
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chart-header h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; }
.chart-filters { display: flex; gap: 4px; }
.filter-btn {
  padding: 5px 13px; font-size: 12px; font-family: inherit;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 7px; color: var(--text-secondary); cursor: pointer; transition: all 0.15s;
}
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Quick actions ──────────────────────────────────────────── */
.quick-actions h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.2px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.quick-btn {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; font-size: 13px; font-weight: 500; font-family: inherit;
  color: var(--text); transition: all 0.18s;
}
.quick-btn .quick-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--bg3); transition: transform 0.18s;
}
.quick-btn:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow); }
.quick-btn:hover .quick-icon { background: var(--primary-subtle); transform: scale(1.08); }

/* ── Events grid ────────────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.event-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.22s;
}
.event-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 12px 38px var(--primary-glow); }
.event-card-image { height: 152px; position: relative; overflow: hidden; }
.event-card-image img { width: 100%; height: 100%; object-fit: cover; }
.event-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 44px;
}
.event-cover-music   { background: linear-gradient(135deg,#1e1b4b,#4c1d95,#7c3aed); }
.event-cover-sports  { background: linear-gradient(135deg,#052e16,#166534,#22c55e); }
.event-cover-art     { background: linear-gradient(135deg,#450a0a,#991b1b,#ec4899); }
.event-cover-tech    { background: linear-gradient(135deg,#0c1445,#1e3a8a,#3b82f6); }
.event-cover-party   { background: linear-gradient(135deg,#431407,#9a3412,#f97316); }
.event-cover-default { background: linear-gradient(135deg,#0f172a,#1e1b4b,#312e81); }

.event-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  color: #fff; border: 1px solid rgba(255,255,255,0.15);
}
.event-badge.active-badge { background: rgba(16,185,129,0.75); }
.event-badge.draft-badge  { background: rgba(245,158,11,0.75); }
.event-badge.sold-badge   { background: rgba(239,68,68,0.75); }
.event-card-body { padding: 16px; }
.event-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; line-height: 1.35; }
.event-meta { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.event-meta svg { width: 13px; height: 13px; }
.event-card-footer { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 4px; }
.event-price { font-size: 19px; font-weight: 800; color: var(--primary); letter-spacing: -0.4px; }
.remaining-badge { font-size: 11.5px; font-weight: 600; background: var(--success-bg); color: var(--success); padding: 3px 10px; border-radius: 20px; }
.remaining-badge.urgent { background: var(--danger-bg); color: var(--danger); }
.event-card-actions { display: flex; gap: 8px; margin-top: 6px; }
.progress-bar { height: 3px; background: var(--bg3); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg,var(--primary),var(--accent)); border-radius: 99px; transition: width 0.4s ease; }

/* ── Lotes ──────────────────────────────────────────────────── */
.lotes-header { display: flex; align-items: center; justify-content: space-between; }
.lotes-header label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.lote-row { display: flex; gap: 8px; align-items: center; background: var(--bg3); border-radius: 10px; padding: 10px; margin-top: 8px; flex-wrap: wrap; }
.lote-row .input { min-width: 100px; flex: 1; }
.lote-name { min-width: 120px !important; }

/* ── Image upload ───────────────────────────────────────────── */
.image-upload-zone {
  border: 2px dashed var(--border); border-radius: 14px;
  padding: 28px; text-align: center; cursor: pointer;
  transition: all 0.18s; background: var(--input-bg);
}
.image-upload-zone:hover { border-color: var(--primary); background: var(--primary-subtle); }
.image-upload-zone img { max-height: 200px; border-radius: 10px; }
#imageUploadPrompt { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-icon { font-size: 28px; }
.upload-sub { font-size: 12px; color: var(--text-muted); }

/* ── Customers ──────────────────────────────────────────────── */
.two-col-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.customers-list { display: flex; flex-direction: column; gap: 10px; }
.customer-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
  display: flex; align-items: center; gap: 12px; transition: all 0.15s;
}
.customer-card:hover { border-color: var(--border-hover); }
.customer-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg,var(--primary),var(--accent));
  border-radius: 50%; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.customer-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.customer-info strong { font-size: 13.5px; font-weight: 600; }
.customer-info span { font-size: 12px; color: var(--text-secondary); }
.customer-actions { display: flex; gap: 6px; }

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-steps {
  display: flex; align-items: center;
  margin-bottom: 24px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 20px; gap: 8px; flex-wrap: wrap;
}
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); flex: 1; font-weight: 500; }
.step span {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.step.active { color: var(--primary); }
.step.active span { background: var(--primary); color: #fff; border-color: var(--primary); }
.step.done  span { background: var(--success); color: #fff; border-color: var(--success); }
.step-divider { width: 24px; height: 1px; background: var(--border); flex-shrink: 0; }
.checkout-step-content {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; max-width: 600px;
}
.checkout-step-content h3 { font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.qty-control { display: flex; align-items: center; gap: 16px; background: var(--bg3); border-radius: 12px; padding: 8px 16px; width: fit-content; }
.qty-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; border: none; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.qty-btn:hover { background: var(--primary-hover); transform: scale(1.1); }
#cartQty { font-size: 20px; font-weight: 800; min-width: 24px; text-align: center; }
.coupon-row { display: flex; gap: 10px; margin-top: 16px; }
.coupon-feedback { font-size: 13px; padding: 8px 12px; border-radius: 8px; margin-top: 8px; }
.coupon-feedback.show.success { background: var(--success-bg); color: var(--success); }
.coupon-feedback.show.error   { background: var(--danger-bg);  color: var(--danger); }
.cart-summary { background: var(--bg3); border-radius: 12px; padding: 16px; margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.cart-row { display: flex; justify-content: space-between; font-size: 14px; }
.cart-row.total { font-size: 17px; font-weight: 800; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--primary); }
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.payment-option { display: flex; align-items: center; gap: 12px; background: var(--bg3); border-radius: 12px; padding: 14px 16px; cursor: pointer; border: 1.5px solid var(--border); transition: border-color 0.15s; }
.payment-option:hover { border-color: var(--primary); }
.payment-option input[type="radio"] { accent-color: var(--primary); }
.payment-label { font-size: 14px; font-weight: 600; }
.payment-info { background: var(--bg3); border-radius: 12px; padding: 16px; margin-bottom: 16px; text-align: center; }
.pix-key { font-size: 14px; margin-top: 10px; }
.order-summary-box { background: var(--bg3); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.order-summary-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.summary-row.total { font-weight: 800; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; color: var(--primary); }
.or-divider { text-align: center; color: var(--text-muted); font-size: 13px; margin: 10px 0; }

/* ── Check-in ───────────────────────────────────────────────── */
.checkin-layout { display: flex; flex-direction: column; gap: 24px; }
.scanner-card, .checkin-result, .checkin-history { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px; max-width: 500px; }
.scanner-frame { width: 100%; aspect-ratio: 1; max-width: 260px; margin: 0 auto 20px; border: 2px solid var(--primary); border-radius: 18px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg3); }
.scanner-line { position: absolute; width: 90%; height: 2px; background: linear-gradient(90deg,transparent,var(--primary),transparent); animation: scan 2s ease-in-out infinite; box-shadow: 0 0 10px var(--primary-glow); }
@keyframes scan { 0%,100%{top:10%} 50%{top:85%} }
.scanner-hint { font-size: 13px; color: var(--text-muted); text-align: center; }
.scanner-actions { display: flex; flex-direction: column; gap: 10px; }
.checkin-valid,.checkin-invalid,.checkin-used { text-align: center; padding: 20px; }
.checkin-valid span,.checkin-invalid span,.checkin-used span { font-size: 48px; display: block; margin-bottom: 8px; }
.checkin-valid  h3 { color: var(--success); font-size: 22px; margin: 10px 0; }
.checkin-invalid h3 { color: var(--danger);  font-size: 22px; margin: 10px 0; }
.checkin-used   h3 { color: var(--warning); font-size: 22px; margin: 10px 0; }
.checkin-history h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 14px; }
.checkin-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.checkin-item:last-child { border-bottom: none; }
.checkin-icon { font-size: 18px; }
.checkin-item div { display: flex; flex-direction: column; gap: 2px; }
.checkin-item span { font-size: 12px; color: var(--text-secondary); }

/* ── Reports ────────────────────────────────────────────────── */
.report-table-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-top: 24px; }
.report-table-card h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 16px; }
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg3); }
.empty-td { text-align: center; color: var(--text-muted); padding: 40px !important; font-size: 14px; }
.badge-payment { background: var(--primary-subtle); color: var(--primary); padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.badge-success { background: var(--success-bg); color: var(--success); padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.ticket-code,.ticket-code-sm { font-family: monospace; font-size: 11.5px; color: var(--text-secondary); }

/* ── Admin ──────────────────────────────────────────────────── */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-events-list { display: flex; flex-direction: column; gap: 4px; }
.admin-event-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; flex-wrap: wrap; }
.admin-event-name { font-weight: 600; flex: 1; }
.admin-event-meta { color: var(--text-secondary); font-size: 12.5px; }
.admin-event-revenue { color: var(--success); font-weight: 700; }
.coupons-list { display: flex; flex-direction: column; gap: 8px; }
.coupon-item { display: flex; align-items: center; gap: 12px; background: var(--bg3); border-radius: 10px; padding: 10px 14px; font-size: 13px; flex-wrap: wrap; }
.coupon-item code { font-weight: 700; color: var(--primary); font-size: 13px; }

/* ── Modais ─────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.76); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; backdrop-filter: blur(4px); animation: fadeIn 0.15s ease; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 28px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); animation: slideUp 0.2s ease; }
@keyframes slideUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg3); border: none; color: var(--text-secondary); font-size: 16px; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-success { text-align: center; }
.success-icon { font-size: 52px; margin-bottom: 12px; display: block; }
.modal-success h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.3px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.receipt-box { background: var(--bg3); border-radius: 12px; padding: 16px; margin: 16px 0; text-align: left; }
.receipt-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.receipt-row:last-child { border-bottom: none; }
.receipt-row.total { font-weight: 800; font-size: 16px; color: var(--primary); }
.receipt-row .ticket-code { font-size: 13px; color: var(--primary); }
.qr-container { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0; }

/* ── Loading / Toast ────────────────────────────────────────── */
.loading-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.88); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; gap: 16px; backdrop-filter: blur(4px); }
.loading-spinner { width: 42px; height: 42px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }
.hidden { display: none !important; }
.toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 9998; }
.toast { padding: 13px 18px; border-radius: 12px; font-size: 13.5px; max-width: 320px; font-weight: 500; transform: translateX(120%); transition: transform 0.25s ease; box-shadow: var(--shadow-md); }
.toast.show { transform: translateX(0); }
.toast-success { background: rgba(16,185,129,0.14); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.28); }
.toast-error   { background: rgba(239,68,68,0.14);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.28); }
.toast-warning { background: rgba(245,158,11,0.14); color: #fcd34d; border: 1px solid rgba(245,158,11,0.28); }

/* ── Empty states ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); background: var(--card-bg); border: 1px dashed var(--border); border-radius: 16px; }
.empty-state .empty-icon, .empty-state > span:first-child { font-size: 48px; display: block; margin-bottom: 14px; opacity: 0.7; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; margin-bottom: 18px; }
.empty-small { color: var(--text-muted); font-size: 13px; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ── PIX ────────────────────────────────────────────────────── */
#pixQrCodeDiv { display: flex; justify-content: center; margin: 10px 0; }
#pixQrCodeDiv img, #pixQrCodeDiv canvas { border-radius: 10px; }

/* ── Pills ──────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.pill-purple { background: var(--primary-subtle); color: var(--primary); }
.pill-green  { background: var(--success-bg);     color: var(--success); }
.pill-red    { background: var(--danger-bg);      color: var(--danger);  }
.pill-orange { background: var(--warning-bg);     color: var(--warning); }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .app-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); z-index: 200; box-shadow: var(--shadow-lg); }
  .app-sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .hamburger { display: flex !important; }
  .app-header { padding: 10px 16px; }
  .app-main { padding: 16px; }
}
@media (max-width: 768px) {
  .header-search { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .two-col-layout { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .lote-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-value { font-size: 22px; }
  .quick-grid { grid-template-columns: repeat(2,1fr); }
}
