/* ═══════════════════════════════════════════════════════════════════════════
   FastQR.pro – Design System
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --primary:        #7C3AED;
  --primary-dark:   #6D28D9;
  --primary-light:  #EDE9FE;
  --accent:         #06B6D4;
  --accent-light:   #CFFAFE;

  --bg:             #FFFFFF;
  --surface:        #F9FAFB;
  --surface-2:      #F3F4F6;
  --border:         #E5E7EB;
  --border-dark:    #D1D5DB;

  --text:           #111827;
  --text-secondary: #374151;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;

  --success:        #10B981;
  --success-light:  #D1FAE5;
  --error:          #EF4444;
  --error-light:    #FEE2E2;
  --warning:        #F59E0B;
  --warning-light:  #FEF3C7;
  --info:           #3B82F6;
  --info-light:     #DBEAFE;

  --hero-bg:        #0D0826;
  --hero-surface:   #160F3A;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.1),  0 8px 16px rgba(0,0,0,.06);
  --shadow-glow: 0 0 40px rgba(124,58,237,.25);

  --transition: 180ms ease;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-secondary); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  border: 1.5px solid transparent; transition: all var(--transition);
  white-space: nowrap; text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm  { padding: 7px 16px; font-size: 13px; }
.btn-lg  { padding: 14px 32px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4F46E5);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 15px rgba(124,58,237,.4);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(124,58,237,.55); }

.btn-secondary {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary-light); }

.btn-ghost {
  background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }

.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #DC2626; }

.btn-white {
  background: #fff; color: var(--primary); border-color: #fff;
}
.btn-white:hover { background: var(--primary-light); }

/* ── Form elements ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }

.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 15px; color: var(--text);
  background: var(--bg); transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.form-control::placeholder { color: var(--text-light); }
.form-control.error { border-color: var(--error); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--error); margin-top: 5px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 18px; font-weight: 700; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 13px 18px; border-radius: var(--radius); font-size: 14px;
  font-weight: 500; margin-bottom: 20px; border: 1px solid transparent;
}
.alert-success  { background: var(--success-light);  color: #065F46; border-color: #A7F3D0; }
.alert-error    { background: var(--error-light);    color: #991B1B; border-color: #FECACA; }
.alert-info     { background: var(--info-light);     color: #1E40AF; border-color: #BFDBFE; }
.alert-warning  { background: var(--warning-light);  color: #92400E; border-color: #FDE68A; }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
}
.badge-pro     { background: linear-gradient(135deg,var(--primary),#4F46E5); color:#fff; }
.badge-free    { background: var(--surface-2); color: var(--text-muted); }
.badge-active  { background: var(--success-light); color: #065F46; }
.badge-expired { background: var(--error-light); color: #991B1B; }

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(13,8,38,.85);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(13,8,38,.97); }
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none !important;
}
.nav-logo-icon {
  width: 36px; height: 36px; background: linear-gradient(135deg,var(--primary),#4F46E5);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
}
.nav-logo-text { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link { color: rgba(255,255,255,.75); font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: var(--radius-sm); text-decoration: none !important; transition: color var(--transition), background var(--transition); }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; }

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: rgba(13,8,38,.98); flex-direction: column; padding: 16px 24px 24px; border-bottom: 1px solid rgba(255,255,255,.1); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: block; }
  .nav-actions .btn-secondary { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--hero-bg);
  padding: 140px 24px 100px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.35);
  color: #C4B5FD; font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 99px; margin-bottom: 28px;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }

.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 span { background: linear-gradient(135deg,#A78BFA,#38BDF8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto 40px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

/* Free QR Generator Widget */
.qr-widget {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl); padding: 36px; max-width: 640px; margin: 0 auto;
  backdrop-filter: blur(8px);
}
.qr-widget h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.qr-widget p  { color: rgba(255,255,255,.5); font-size: 14px; margin-bottom: 24px; }
.qr-input-row { display: flex; gap: 10px; }
.qr-input-row .form-control {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; flex: 1;
}
.qr-input-row .form-control::placeholder { color: rgba(255,255,255,.35); }
.qr-input-row .form-control:focus { border-color: var(--primary); background: rgba(255,255,255,.1); }
.qr-preview { margin-top: 28px; display: flex; align-items: center; gap: 28px; }
.qr-preview canvas, .qr-preview img { border-radius: var(--radius); background: #fff; padding: 12px; }
.qr-preview-info h4 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.qr-preview-info p  { color: rgba(255,255,255,.5); font-size: 13px; margin-bottom: 16px; }
.qr-hidden { display: none; }
@media (max-width: 560px) {
  .qr-input-row { flex-direction: column; }
  .qr-preview { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
.section { padding: 96px 24px; }
.section-sm { padding: 64px 24px; }
.section-dark { background: var(--hero-bg); }
.section-gray { background: var(--surface); }

.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 56px; }

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

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.08); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); }

/* How it works */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; position: relative; }
.step { text-align: center; padding: 0 16px; }
.step-number {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),#4F46E5); color: #fff;
  font-size: 20px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 8px 20px rgba(124,58,237,.35);
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p   { font-size: 14px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: 760px; margin: 0 auto; }
.pricing-card {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-xl);
  padding: 36px 32px; position: relative; transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,58,237,.1), var(--shadow-lg);
  background: linear-gradient(180deg, #FAFAFF, #fff);
}
.pricing-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,var(--primary),#4F46E5); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 18px; border-radius: 99px;
  white-space: nowrap;
}
.pricing-name { font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 6px; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.pricing-features li.no::before { content: '✗'; color: var(--text-light); }
.pricing-features li.no { color: var(--text-light); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #3B0764, #1E1B4B);
  text-align: center; padding: 80px 24px;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 36px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--hero-bg); border-top: 1px solid rgba(255,255,255,.07);
  padding: 56px 24px 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,.45); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.45); font-size: 14px; text-decoration: none; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: rgba(255,255,255,.3); font-size: 13px; }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES  (login / register)
   ═══════════════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--hero-bg) 0%, #1A0B4B 100%);
  padding: 24px;
}
.auth-card {
  background: #fff; border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo a { text-decoration: none !important; display: inline-flex; align-items: center; gap: 10px; }
.auth-logo span { font-size: 22px; font-weight: 800; color: var(--text); }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-divider { text-align: center; color: var(--text-light); font-size: 13px; margin: 20px 0; position: relative; }
.auth-divider::before,.auth-divider::after { content:''; position:absolute; top:50%; width:42%; height:1px; background:var(--border); }
.auth-divider::before { left:0; }
.auth-divider::after  { right:0; }
.pw-toggle-wrap { position: relative; }
.pw-toggle-wrap .form-control { padding-right: 44px; }
.pw-toggle { position:absolute; right:12px; top:50%; transform:translateY(-50%); background:none; border:none; color:var(--text-muted); padding:4px; line-height:1; }

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 240px; flex-shrink: 0; background: var(--hero-bg);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  transition: transform var(--transition);
}
.sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sidebar-nav-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.3); padding: 14px 10px 6px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.55); font-size: 14px; font-weight: 500;
  padding: 9px 12px; border-radius: var(--radius-sm); text-decoration: none !important;
  transition: all var(--transition); margin-bottom: 2px;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-link.active { color: #fff; background: rgba(124,58,237,.35); }
.sidebar-link .icon { font-size: 18px; flex-shrink: 0; width: 20px; text-align: center; }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-user { display:flex; align-items:center; gap:10px; padding:10px; border-radius:var(--radius-sm); }
.sidebar-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,var(--primary),#4F46E5); display:flex; align-items:center; justify-content:center; color:#fff; font-size:15px; font-weight:700; flex-shrink:0; }
.sidebar-user-info { flex:1; overflow:hidden; }
.sidebar-user-name { color:#fff; font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-user-plan { font-size:11px; color:rgba(255,255,255,.4); }

/* Mobile sidebar overlay */
.sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:49; }
.sidebar-overlay.open,.sidebar.mobile-open { display:block; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
}

/* Main content */
.main-content {
  flex: 1; margin-left: 240px; min-width: 0;
  display: flex; flex-direction: column;
}
@media (max-width: 900px) { .main-content { margin-left: 0; } }

/* Top bar */
.topbar {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: var(--bg); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-menu-btn { background: none; border: none; padding: 6px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 20px; display: none; }
@media (max-width: 900px) { .topbar-menu-btn { display: flex; } }
.topbar-title { font-size: 18px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* Page content */
.page-content { padding: 32px 28px; flex: 1; }
@media (max-width: 640px) { .page-content { padding: 20px 16px; } }
.page-header { margin-bottom: 28px; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.page-header h1 { font-size: 26px; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-change { font-size: 12px; margin-top: 6px; color: var(--text-muted); }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--error); }

/* QR codes table */
.qr-table-wrap { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.table-header h3 { font-size: 16px; }
table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; padding: 12px 24px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .7px; background: var(--surface); border-bottom: 1px solid var(--border); }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
tbody td { padding: 14px 24px; font-size: 14px; vertical-align: middle; }
.td-name { font-weight: 600; color: var(--text); }
.td-url  { color: var(--text-muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-code { font-family: monospace; font-size: 13px; background: var(--surface-2); padding: 3px 8px; border-radius: var(--radius-sm); }
.td-actions { display: flex; align-items: center; gap: 8px; }
.action-btn { background: none; border: none; padding: 6px; border-radius: var(--radius-sm); color: var(--text-muted); transition: all var(--transition); font-size: 16px; }
.action-btn:hover { background: var(--surface-2); color: var(--text); }
.action-btn.danger:hover { background: var(--error-light); color: var(--error); }
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
@media (max-width: 760px) { .hide-mobile { display: none; } }

/* Upgrade banner */
.upgrade-banner {
  background: linear-gradient(135deg,var(--primary-light),#EFF6FF);
  border: 1.5px solid rgba(124,58,237,.2); border-radius: var(--radius-lg);
  padding: 24px 28px; display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; margin-bottom: 28px;
}
.upgrade-banner-text h3 { font-size: 16px; margin-bottom: 4px; }
.upgrade-banner-text p  { font-size: 13px; color: var(--text-muted); }
.upgrade-banner .btn { flex-shrink: 0; }

/* QR Stats page */
.stats-chart { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.chart-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; background: linear-gradient(180deg,var(--primary),#4F46E5); border-radius: 4px 4px 0 0; transition: opacity .2s; min-height: 2px; }
.bar:hover { opacity: .8; }
.bar-label { font-size: 10px; color: var(--text-muted); }
.device-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.device-card { background: var(--surface); border-radius: var(--radius); padding: 16px; text-align: center; }
.device-card .icon { font-size: 28px; margin-bottom: 8px; }
.device-card .label { font-size: 12px; color: var(--text-muted); }
.device-card .value { font-size: 20px; font-weight: 700; }

/* Plans page */
.plans-page { max-width: 860px; margin: 0 auto; }
.current-plan-card {
  background: linear-gradient(135deg,var(--hero-bg),#1A0B4B); color:#fff;
  border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 36px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.current-plan-card h3 { font-size: 18px; margin-bottom: 4px; }
.current-plan-card p  { color: rgba(255,255,255,.6); font-size: 14px; }

/* Modal */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:200; display:flex; align-items:center; justify-content:center; padding:16px; }
.modal { background:#fff; border-radius:var(--radius-xl); padding:36px; max-width:480px; width:100%; box-shadow:var(--shadow-lg); }
.modal h3 { font-size:20px; margin-bottom:8px; }
.modal p  { color:var(--text-muted); font-size:14px; margin-bottom:24px; }
.modal-actions { display:flex; gap:12px; justify-content:flex-end; }
.hidden { display:none !important; }

/* ── Misc utilities ───────────────────────────────────────────────────────── */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}
.gap-1{gap:8px}.gap-2{gap:16px}.gap-3{gap:24px}
.fw-600{font-weight:600}.fw-700{font-weight:700}
.text-muted{color:var(--text-muted)}.text-small{font-size:13px}
.w-full{width:100%}
