/* ═══════════════════════════════════════════════════════
   GERADOR PRO 2.0 — Design System
   Dark glassmorphism · Animated · Responsive
══════════════════════════════════════════════════════════ */

:root {
  --bg:          #080d18;
  --bg2:         #0e1525;
  --sidebar:     #0b1120;
  --card:        rgba(255,255,255,0.04);
  --card-hover:  rgba(255,255,255,0.08);
  --border:      rgba(255,255,255,0.08);
  --primary:     #3b82f6;
  --primary-glow:#3b82f640;
  --cyan:        #06b6d4;
  --violet:      #8b5cf6;
  --green:       #10b981;
  --orange:      #f97316;
  --red:         #ef4444;
  --yellow:      #eab308;
  --text:        #f1f5f9;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;
  --sidebar-w:   220px;
  --header-h:    60px;
  --radius:      14px;
  --radius-sm:   8px;
  --transition:  0.25s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Animated background ───────────────────────────────── */
body::before {
  content:'';
  position:fixed;
  inset:0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139,92,246,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 60% 40%, rgba(6,182,212,0.04) 0%, transparent 50%);
  pointer-events:none;
  z-index:0;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.12); border-radius:99px; }
::-webkit-scrollbar-thumb:hover { background:rgba(255,255,255,0.2); }

/* ── Layout shell ──────────────────────────────────────── */
#app { position:relative; z-index:1; }

/* ── Sidebar ───────────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--transition);
}

.sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.brand-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}
.brand-logo .g { color: #3b82f6; }
.brand-logo .p { color: #eab308; }

.brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  padding: 10px 0;
  flex: 1;
}

.nav-section {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 12px 18px 4px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-item.active {
  color: var(--primary);
  background: rgba(59,130,246,0.1);
}

.nav-item.active::before {
  content:'';
  position:absolute;
  left:0; top:0; bottom:0;
  width:3px;
  background:var(--primary);
  border-radius:0 3px 3px 0;
}

.nav-item .icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  flex-shrink: 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  margin-left: auto;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-badge.soon { background:rgba(234,179,8,0.15); color:#eab308; }

/* ── Main content ──────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,13,24,0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

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

.header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vence-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: #93c5fd;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.main-body {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

/* ── Page view ─────────────────────────────────────────── */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.card:hover {
  background: var(--card-hover);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* ── Dashboard ─────────────────────────────────────────── */
.welcome-block {
  margin-bottom: 28px;
}
.welcome-block h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.welcome-block h1 span {
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.welcome-block p {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 14px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.02));
  pointer-events:none;
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.15);
}

.dash-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.dash-card-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

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

/* ── Section header ────────────────────────────────────── */
.section-header {
  margin-bottom: 24px;
  text-align: center;
}
.section-header h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-header p {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 14px;
}

/* ── Banner grid ───────────────────────────────────────── */
.banners-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.banners-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
}

.banners-count strong {
  color: var(--cyan);
  font-weight: 700;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: all var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  background: rgba(59,130,246,0.05);
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.banner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: rgba(59,130,246,0.4);
}

.banner-card-img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  background: linear-gradient(135deg, #1a2035, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--text-muted);
}

.banner-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-card-body {
  padding: 12px;
}

.banner-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.banner-card-options {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s;
}

.color-dot:hover { transform: scale(1.3); }
.color-dot.active { border-color: white; }

.banner-options-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--red);
  color: white;
}

.banner-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
}

.banner-fav-btn:hover { transform: scale(1.15); }
.banner-fav-btn.active { color: var(--yellow); }

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(59,130,246,0.04);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

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

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: white;
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa, var(--primary));
  box-shadow: 0 6px 20px rgba(59,130,246,0.4);
  transform: translateY(-1px);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), #0284c7);
  color: white;
  box-shadow: 0 4px 15px rgba(6,182,212,0.25);
}
.btn-cyan:hover {
  box-shadow: 0 6px 20px rgba(6,182,212,0.35);
  transform: translateY(-1px);
}

.btn-violet {
  background: linear-gradient(135deg, var(--violet), #7c3aed);
  color: white;
  box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}

.btn-green {
  background: linear-gradient(135deg, var(--green), #059669);
  color: white;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

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

.btn-ghost:hover {
  background: var(--card-hover);
  color: var(--text);
}

.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; }

/* ── Tabs ──────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  transition: all var(--transition);
}

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

.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

/* ── Panels / Info boxes ───────────────────────────────── */
.info-box {
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.info-box h3 { color: var(--cyan); font-size: 14px; margin-bottom: 10px; }
.info-box ul { padding-left: 18px; }
.info-box li { color: var(--text-dim); font-size: 13px; line-height: 1.8; }

.top-box {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.top-box h3 { color: #93c5fd; font-size: 14px; margin-bottom: 12px; }
.top-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.top-item:last-child { border-bottom: none; }
.top-rank { color: var(--yellow); font-weight: 700; min-width: 20px; }
.top-count { color: var(--text-muted); margin-left: auto; font-size: 12px; }

/* ── Video cards ───────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-color: rgba(139,92,246,0.3);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1035, #0f0a1e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-muted);
  position: relative;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-body {
  padding: 10px 12px;
}

.video-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* ── Guia futebol ──────────────────────────────────────── */
.guia-box {
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(6,182,212,0.04));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.guia-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
  color: var(--cyan);
}

.guia-textarea {
  width: 100%;
  min-height: 280px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.guia-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* ── Logo page ─────────────────────────────────────────── */
.logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.logo-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.logo-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  background: var(--bg2);
}

.logo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.logo-upload-area:hover,
.logo-upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(59,130,246,0.04);
}

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  width: 100%;
  max-width: 1150px;
  max-height: 94vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

@media (max-width: 900px) {
  .modal { max-width: 98vw; padding: 16px; }
  .modal-two-col { grid-template-columns: 1fr !important; }
}

@keyframes slideUp {
  from { transform:translateY(20px); opacity:0; }
  to   { transform:translateY(0); opacity:1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
  color: var(--text-muted);
}
.modal-close:hover { color: var(--text); background: var(--card-hover); }

/* ── Canvas banner ─────────────────────────────────────── */
.banner-preview-area {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 200px;
  margin-bottom: 16px;
}

.banner-canvas {
  max-width: 100%;
  border-radius: 8px;
}

/* ── Toast ─────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #1e293b;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  max-width: 320px;
}

@keyframes slideInRight {
  from { transform:translateX(100%); opacity:0; }
  to   { transform:translateX(0); opacity:1; }
}
@keyframes fadeOut {
  from { opacity:1; }
  to   { opacity:0; transform:translateX(20px); }
}

.toast-item.success { border-color: rgba(16,185,129,0.3); }
.toast-item.error   { border-color: rgba(239,68,68,0.3); }

/* ── Login page ────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #0e1525;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.login-left {
  background: linear-gradient(135deg, #0b1736, #070d1c);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content:'';
  position:absolute;
  width:300px; height:300px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -50px; left: -50px;
}

.login-logo-3d {
  font-size: 70px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.login-logo-3d .g {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.login-logo-3d .p {
  background: linear-gradient(180deg, #fde047, #ca8a04);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-tagline {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  max-width: 260px;
}

.login-right {
  padding: 50px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-right h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-right p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 28px;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Express/lote page ─────────────────────────────────── */
.express-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.express-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.express-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-3px);
}

.express-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.express-thumb {
  width: 100%;
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, #1a2035, #0f1525);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.express-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.express-card.selected .express-check {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.express-name {
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.global-data-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.global-data-box h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Loading spinner ───────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  }
  .main { margin-left: 0; }
  .main-header { padding: 0 16px; }
  .main-body { padding: 18px 16px; }
  .login-container { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: 1fr; }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 18px;
    color: var(--text-dim);
  }
}

@media (min-width: 769px) {
  .menu-toggle { display: none; }
  .sidebar-overlay { display: none !important; }
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* ── Utility ───────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11.5px; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.hidden { display: none !important; }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-cyan {
  text-shadow: 0 0 30px rgba(6,182,212,0.5);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ── Pulse dot ─────────────────────────────────────────── */
.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ── Result banner ─────────────────────────────────────── */
.result-box {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.result-img {
  max-width: 260px;
  border-radius: 12px;
  margin: 0 auto 14px;
  display: block;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
