/* ========================================
   BIZFLOW PRO - Premium SaaS Business Suite
   Global Styles
   ======================================== */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --dark: #0f172a;
  --dark2: #1e293b;
  --dark3: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --sidebar-width: 260px;
  --header-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-dark: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--dark); line-height: 1.6; overflow-x: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }
p { color: var(--gray); }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul,ol { list-style: none; }
input,textarea,select,button { font-family: inherit; }

/* Utility */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.transition { transition: var(--transition); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid { display: grid; }

/* Containers */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1440px; margin: 0 auto; padding: 0 2rem; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 4px 15px rgba(99,102,241,0.4); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(99,102,241,0.5); transform: translateY(-1px); color: white; }
.btn-secondary { background: var(--secondary); color: white; }
.btn-success { background: var(--success); color: white; box-shadow: 0 4px 15px rgba(16,185,129,0.3); }
.btn-danger { background: var(--danger); color: white; box-shadow: 0 4px 15px rgba(239,68,68,0.3); }
.btn-warning { background: var(--warning); color: white; }
.btn-info { background: var(--info); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-outline-danger { background: transparent; border: 2px solid var(--danger); color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: white; }
.btn-ghost { background: transparent; color: var(--gray); }
.btn-ghost:hover { background: var(--bg); color: var(--dark); }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-icon { padding: 0.625rem; border-radius: var(--radius-sm); }
.btn-icon-sm { padding: 0.4rem; border-radius: 6px; }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ==========================================
   FORMS
   ========================================== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--dark); margin-bottom: 0.4rem; }
.form-control {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--dark);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-control::placeholder { color: var(--gray-light); }
.form-control:disabled { background: var(--bg); cursor: not-allowed; opacity: 0.7; }
.form-control.error { border-color: var(--danger); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .form-control { padding-left: 2.75rem; }
.input-group .input-icon { position: absolute; left: 0.875rem; color: var(--gray); font-size: 1rem; pointer-events: none; }
.input-group .input-icon-right { position: absolute; right: 0.875rem; color: var(--gray); font-size: 1rem; cursor: pointer; }
.form-hint { font-size: 0.78rem; color: var(--gray); margin-top: 0.3rem; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 0.3rem; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .form-row-2, .form-row-3 { grid-template-columns: 1fr; } }

/* ==========================================
   CARDS
   ========================================== */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg); }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }

/* Stats Card */
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.stat-card .stat-icon { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--dark); }
.stat-card .stat-label { font-size: 0.825rem; color: var(--gray); font-weight: 500; margin-top: 0.25rem; }
.stat-card .stat-change { font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem; display: flex; align-items: center; gap: 0.25rem; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ==========================================
   TABLES
   ========================================== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { background: var(--bg); padding: 0.875rem 1rem; text-align: left; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray); border-bottom: 2px solid var(--border); white-space: nowrap; }
.table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); color: var(--dark); vertical-align: middle; }
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: rgba(99,102,241,0.03); }
.table tbody tr:last-child td { border-bottom: none; }

/* ==========================================
   BADGES / STATUS
   ========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-success { background: rgba(16,185,129,0.1); color: #059669; }
.badge-danger { background: rgba(239,68,68,0.1); color: #dc2626; }
.badge-warning { background: rgba(245,158,11,0.1); color: #d97706; }
.badge-info { background: rgba(59,130,246,0.1); color: #2563eb; }
.badge-secondary { background: rgba(139,92,246,0.1); color: #7c3aed; }
.badge-gray { background: rgba(100,116,139,0.1); color: #475569; }
.badge-primary { background: rgba(99,102,241,0.1); color: #4f46e5; }

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
.modal-sm { max-width: 420px; }
.modal-lg { max-width: 900px; }
.modal-xl { max-width: 1200px; }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: white; z-index: 1; }
.modal-title { font-size: 1.15rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gray); transition: var(--transition); }
.modal-close:hover { background: var(--danger); color: white; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; }

/* ==========================================
   TABS
   ========================================== */
.tabs { border-bottom: 2px solid var(--border); display: flex; gap: 0; overflow-x: auto; }
.tab-btn { padding: 0.75rem 1.25rem; border: none; background: transparent; cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--gray); transition: var(--transition); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; display: flex; align-items: center; gap: 0.5rem; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover:not(.active) { color: var(--dark); background: var(--bg); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==========================================
   SIDEBAR LAYOUT
   ========================================== */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-width);
  background: var(--dark);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }
.sidebar-logo {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.sidebar-logo-text { color: white; font-weight: 800; font-size: 1.1rem; }
.sidebar-logo-sub { color: rgba(255,255,255,0.4); font-size: 0.7rem; font-weight: 500; }

.sidebar-section { padding: 1.25rem 1rem 0.5rem; }
.sidebar-section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); padding: 0 0.5rem; margin-bottom: 0.5rem; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  margin-bottom: 2px;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.nav-item.active { background: rgba(99,102,241,0.2); color: white; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 60%; background: var(--primary); border-radius: 0 3px 3px 0; }
.nav-item .nav-icon { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.nav-item .nav-badge { margin-left: auto; background: var(--danger); color: white; font-size: 0.65rem; padding: 0.15rem 0.45rem; border-radius: 9999px; font-weight: 700; }
.nav-item .nav-arrow { margin-left: auto; font-size: 0.7rem; transition: transform 0.2s; }
.nav-item.has-children.open .nav-arrow { transform: rotate(90deg); }
.nav-sub { padding-left: 2.25rem; overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.nav-sub.open { max-height: 500px; }
.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 2px;
  text-decoration: none;
}
.nav-sub-item:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }
.nav-sub-item.active { color: var(--primary-light); }
.sidebar-bottom { margin-top: auto; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-user { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.sidebar-user:hover { background: rgba(255,255,255,0.07); }
.sidebar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { color: white; font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { color: rgba(255,255,255,0.4); font-size: 0.72rem; }

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content { flex: 1; margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.topbar-breadcrumb { font-size: 0.8rem; color: var(--gray); }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.page-content { padding: 1.75rem; flex: 1; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
.page-header-left h1 { font-size: 1.5rem; font-weight: 800; }
.page-header-left p { color: var(--gray); font-size: 0.875rem; margin-top: 0.2rem; }
.page-header-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* Search Bar */
.search-bar { position: relative; display: flex; align-items: center; }
.search-bar input { padding: 0.5rem 1rem 0.5rem 2.5rem; border: 2px solid var(--border); border-radius: 9999px; font-size: 0.875rem; background: var(--bg); width: 260px; transition: var(--transition); outline: none; color: var(--dark); }
.search-bar input:focus { border-color: var(--primary); background: white; width: 300px; }
.search-bar .search-icon { position: absolute; left: 0.875rem; color: var(--gray); font-size: 0.9rem; pointer-events: none; }

/* Notification Bell */
.notif-btn { position: relative; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); color: var(--gray); font-size: 1rem; }
.notif-btn:hover { border-color: var(--primary); color: var(--primary); }
.notif-dot { position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; background: var(--danger); border-radius: 50%; border: 2px solid white; font-size: 0.6rem; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Mobile sidebar toggle */
.sidebar-toggle { display: none; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: white; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; color: var(--gray); }

/* ==========================================
   LANDING PAGE
   ========================================== */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
.landing-nav.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); box-shadow: var(--shadow); padding: 0.75rem 0; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-brand-icon { width: 42px; height: 42px; background: var(--gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: white; }
.nav-brand-text { font-size: 1.35rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link { padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--gray); transition: var(--transition); cursor: pointer; }
.nav-link:hover { color: var(--primary); background: rgba(99,102,241,0.05); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Hero */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #1e293b 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.1) 0%, transparent 50%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 650px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}
.hero h1 { color: white; margin-bottom: 1.25rem; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.02em; }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { color: rgba(255,255,255,0.65); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.8; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.hero-stat-value { font-size: 1.75rem; font-weight: 800; color: white; }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }
.hero-visual { position: absolute; right: -5%; top: 50%; transform: translateY(-50%); width: 50%; max-width: 680px; z-index: 1; }
.hero-mockup { background: white; border-radius: 16px; box-shadow: 0 40px 80px rgba(0,0,0,0.5); overflow: hidden; }
.hero-mockup-bar { background: var(--bg); padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-mockup-content { padding: 1.5rem; }

/* Features */
.features { padding: 6rem 0; background: white; }
.feature-card { padding: 2rem; border-radius: 16px; background: var(--bg); border: 2px solid transparent; transition: var(--transition); height: 100%; }
.feature-card:hover { border-color: var(--primary); background: white; transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; }
.feature-card h4 { margin-bottom: 0.75rem; }

/* Pricing */
.pricing { padding: 6rem 0; background: var(--bg); }
.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-5px); }
.pricing-card.popular { border-color: var(--primary); }
.pricing-card.popular::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient); }
.popular-badge { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--gradient); color: white; font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 9999px; text-transform: uppercase; }
.pricing-name { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.pricing-price { display: flex; align-items: baseline; gap: 0.25rem; margin: 1.25rem 0; }
.pricing-price .amount { font-size: 3rem; font-weight: 900; color: var(--dark); }
.pricing-price .period { color: var(--gray); font-size: 0.875rem; }
.pricing-features { list-style: none; margin: 1.5rem 0; }
.pricing-features li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; font-size: 0.875rem; color: var(--gray); border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { color: var(--success); flex-shrink: 0; }

/* Testimonials */
.testimonials { padding: 5rem 0; background: white; }
.testimonial-card { background: var(--bg); border-radius: 16px; padding: 2rem; border: 1px solid var(--border); transition: var(--transition); }
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.testimonial-stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-text { color: var(--gray); font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1rem; }

/* CTA */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(99,102,241,0.2) 0%, transparent 70%); }

/* Footer */
.footer {
  background: var(--dark);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.6);
}
.footer-brand { margin-bottom: 1.25rem; }
.footer-links { margin-top: 1rem; }
.footer-links h5 { color: white; font-size: 0.9rem; margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; }

/* ==========================================
   AUTH PAGES
   ========================================== */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.2) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 30%, rgba(139,92,246,0.15) 0%, transparent 50%);
}
.auth-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}
.auth-card-wide { max-width: 900px; }
.auth-header { padding: 2.5rem 2.5rem 1.5rem; text-align: center; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1.75rem; text-decoration: none; }
.auth-logo-icon { width: 48px; height: 48px; background: var(--gradient); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.auth-logo-text { font-size: 1.5rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-body { padding: 0 2.5rem 2.5rem; }
.auth-footer-text { text-align: center; font-size: 0.875rem; color: var(--gray); margin-top: 1.5rem; }
.auth-divider { position: relative; text-align: center; margin: 1.5rem 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: white; padding: 0 1rem; color: var(--gray); font-size: 0.8rem; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; }
.auth-split-left { background: linear-gradient(135deg, #4f46e5, #7c3aed); padding: 3rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.auth-split-left h2 { color: white; font-size: 1.75rem; margin-bottom: 1rem; }
.auth-split-left p { color: rgba(255,255,255,0.7); line-height: 1.8; }
.auth-split-right { padding: 2.5rem; overflow-y: auto; }
@media (max-width: 768px) { .auth-split { grid-template-columns: 1fr; } .auth-split-left { display: none; } }

/* ==========================================
   DASHBOARD
   ========================================== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 1.75rem; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.chart-container { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.chart-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.mini-chart { height: 200px; display: flex; align-items: flex-end; gap: 6px; padding-top: 1rem; }
.chart-bar { flex: 1; background: var(--gradient); border-radius: 4px 4px 0 0; transition: var(--transition); cursor: pointer; min-height: 4px; position: relative; }
.chart-bar:hover { filter: brightness(1.1); }
.chart-bar-tooltip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--dark); color: white; font-size: 0.7rem; padding: 0.25rem 0.5rem; border-radius: 4px; white-space: nowrap; margin-bottom: 4px; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.chart-bar:hover .chart-bar-tooltip { opacity: 1; }

/* ==========================================
   POS INTERFACE
   ========================================== */
.pos-layout { display: grid; grid-template-columns: 1fr 380px; height: calc(100vh - var(--header-height)); gap: 0; }
.pos-products { overflow-y: auto; padding: 1.25rem; background: var(--bg); }
.pos-cart { background: white; border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.pos-cart-header { padding: 1.25rem; border-bottom: 1px solid var(--border); }
.pos-cart-items { flex: 1; overflow-y: auto; padding: 0.75rem; }
.pos-cart-footer { border-top: 1px solid var(--border); padding: 1.25rem; }
.pos-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.875rem; }
.pos-product-card { background: white; border-radius: var(--radius); padding: 1rem; cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-align: center; box-shadow: var(--shadow); }
.pos-product-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pos-product-card.out-of-stock { opacity: 0.5; cursor: not-allowed; }
.pos-product-img { width: 70px; height: 70px; border-radius: var(--radius-sm); background: var(--bg); margin: 0 auto 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.pos-product-name { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.4rem; }
.pos-product-price { font-size: 0.9rem; font-weight: 700; color: var(--primary); }
.pos-product-stock { font-size: 0.7rem; color: var(--gray); margin-top: 0.25rem; }
.cart-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius-sm); transition: var(--transition); border: 1px solid var(--border); margin-bottom: 0.5rem; }
.cart-item:hover { background: var(--bg); }
.cart-item-name { flex: 1; font-size: 0.85rem; font-weight: 600; }
.cart-item-price { font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.cart-qty { display: flex; align-items: center; gap: 0.4rem; }
.cart-qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--transition); color: var(--dark); }
.cart-qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.cart-qty-num { font-size: 0.9rem; font-weight: 700; min-width: 24px; text-align: center; }

/* ==========================================
   INVOICE TEMPLATES
   ========================================== */
.invoice-preview { background: white; max-width: 800px; margin: 0 auto; font-size: 0.875rem; }
.invoice-t1 { padding: 2.5rem; font-family: 'Arial', sans-serif; }
.invoice-t1 .inv-header { display: flex; justify-content: space-between; margin-bottom: 2rem; }
.invoice-t1 .inv-company-name { font-size: 1.75rem; font-weight: 900; color: var(--primary); }
.invoice-t1 .inv-title { font-size: 2rem; font-weight: 900; color: var(--gray); text-align: right; text-transform: uppercase; letter-spacing: 0.05em; }
.invoice-t1 .inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.invoice-t1 .inv-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.invoice-t1 .inv-table th { background: var(--primary); color: white; padding: 0.75rem 1rem; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.invoice-t1 .inv-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.invoice-t1 .inv-table tr:nth-child(even) td { background: rgba(99,102,241,0.03); }
.invoice-t1 .inv-totals { width: 300px; margin-left: auto; }
.invoice-t1 .inv-totals table { width: 100%; }
.invoice-t1 .inv-totals td { padding: 0.5rem; font-size: 0.875rem; }
.invoice-t1 .inv-totals .total-row td { font-weight: 800; font-size: 1rem; border-top: 2px solid var(--dark); padding-top: 0.75rem; }

/* Template 2 - Modern Dark Header */
.invoice-t2 { padding: 0; font-family: 'Arial', sans-serif; overflow: hidden; }
.invoice-t2 .inv-header-dark { background: linear-gradient(135deg, #1e293b, #0f172a); color: white; padding: 2.5rem; display: flex; justify-content: space-between; align-items: flex-start; }
.invoice-t2 .inv-body { padding: 2rem 2.5rem; }

/* ==========================================
   ALERTS & TOASTS
   ========================================== */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid transparent; display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.alert-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); color: #065f46; }
.alert-danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); color: #991b1b; }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.3); color: #92400e; }
.alert-info { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.3); color: #1e40af; }

.toast-container { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; max-width: 380px; }
.toast { background: white; border-radius: var(--radius); box-shadow: var(--shadow-xl); padding: 1rem 1.25rem; display: flex; align-items: flex-start; gap: 0.875rem; animation: slideInRight 0.3s ease; border-left: 4px solid var(--primary); min-width: 300px; }
.toast-success { border-left-color: var(--success); }
.toast-danger { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.875rem; }
.toast-message { font-size: 0.8rem; color: var(--gray); margin-top: 0.2rem; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--gray); font-size: 1rem; padding: 0; flex-shrink: 0; }

/* ==========================================
   DROPDOWN
   ========================================== */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
  animation: fadeInDown 0.15s ease;
}
.dropdown-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; font-size: 0.875rem; color: var(--dark); cursor: pointer; transition: var(--transition); border: none; background: none; width: 100%; text-align: left; }
.dropdown-item:hover { background: rgba(99,102,241,0.05); color: var(--primary); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.05); }
.dropdown-divider { height: 1px; background: var(--border); margin: 0.25rem 0; }
.dropdown-header { padding: 0.6rem 1rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray); }

/* ==========================================
   PAGINATION
   ========================================== */
.pagination { display: flex; align-items: center; gap: 0.4rem; justify-content: center; margin-top: 1.5rem; }
.page-btn { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 2px solid var(--border); background: white; cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--gray); transition: var(--transition); }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ==========================================
   FILTERS & SEARCH
   ========================================== */
.filters-bar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding: 1rem 1.25rem; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-select { padding: 0.5rem 0.875rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--dark); background: white; cursor: pointer; outline: none; transition: var(--transition); }
.filter-select:focus { border-color: var(--primary); }
.filter-date { padding: 0.5rem 0.875rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--dark); outline: none; transition: var(--transition); }
.filter-date:focus { border-color: var(--primary); }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.animate-fade-in { animation: fadeIn 0.4s ease; }
.animate-slide-up { animation: slideUp 0.4s ease; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s ease infinite; }

/* Skeleton loader */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }

/* Loading spinner */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner-sm { width: 20px; height: 20px; border-width: 2px; }

/* ==========================================
   PROGRESS BAR
   ========================================== */
.progress { height: 8px; background: var(--bg); border-radius: 9999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient); border-radius: 9999px; transition: width 0.6s ease; }

/* ==========================================
   AVATAR GROUP
   ========================================== */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; border: 2px solid white; }
.avatar-sm { width: 28px; height: 28px; font-size: 0.75rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.5rem; }

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state h4 { color: var(--dark); margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray); font-size: 0.875rem; max-width: 350px; margin: 0 auto 1.5rem; }

/* ==========================================
   COLOR PICKER
   ========================================== */
.color-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.color-swatch { width: 28px; height: 28px; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.color-swatch.active, .color-swatch:hover { border-color: var(--dark); transform: scale(1.15); }

/* ==========================================
   SWITCH TOGGLE
   ========================================== */
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; cursor: pointer; inset: 0; background: var(--gray-light); border-radius: 24px; transition: 0.3s; }
.switch-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .switch-slider { background: var(--primary); }
input:checked + .switch-slider::before { transform: translateX(22px); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .pos-layout { grid-template-columns: 1fr; }
  .pos-cart { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; max-height: 50vh; border-top: 2px solid var(--border); }
}
@media (max-width: 768px) {
  .container, .container-lg { padding: 0 1rem; }
  .page-content { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .table th:nth-child(n+4), .table td:nth-child(n+4) { display: none; }
  .hero h1 { font-size: 2rem; }
  .landing-nav .nav-links { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 1.5rem; }
  .auth-header, .auth-body { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0; }
  .page-content { padding: 0; }
  body { background: white; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  @page { size: A4; margin: 1.5cm; }
}

/* ==========================================
   DARK MODE VARIABLES (future)
   ========================================== */
.theme-dark {
  --bg: #0f172a;
  --white: #1e293b;
  --border: #334155;
  --dark: #f1f5f9;
  --gray: #94a3b8;
}

/* ==========================================
   MISC
   ========================================== */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 0.875rem; }
.kbd { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 0.15rem 0.4rem; font-size: 0.75rem; font-family: monospace; }
.tag { display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(99,102,241,0.1); color: var(--primary); border-radius: 9999px; padding: 0.2rem 0.65rem; font-size: 0.75rem; font-weight: 600; }
.tag-close { cursor: pointer; opacity: 0.6; }
.tag-close:hover { opacity: 1; }
.tooltip { position: relative; }
.tooltip::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--dark); color: white; font-size: 0.72rem; padding: 0.3rem 0.6rem; border-radius: 4px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.tooltip:hover::after { opacity: 1; }
.overlay-spinner { position: absolute; inset: 0; background: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; z-index: 10; border-radius: inherit; }
.floating-action { position: fixed; bottom: 2rem; right: 2rem; z-index: 500; }
.fab { width: 56px; height: 56px; border-radius: 50%; background: var(--gradient); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; box-shadow: 0 8px 20px rgba(99,102,241,0.5); transition: var(--transition); }
.fab:hover { transform: scale(1.1); box-shadow: 0 12px 28px rgba(99,102,241,0.6); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.sidebar-overlay.show { display: block; }
