* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #7C5CFC;
  --primary-dark: #5A3DD6;
  --primary-light: #A78BFA;
  --primary-glow: rgba(124, 92, 252, 0.3);
  --green: #10B981;
  --green-dark: #059669;
  --red: #EF4444;
  --orange: #F59E0B;
  --bg: #0F0F1A;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.08);
  --text: #F1F1F6;
  --text-secondary: #9292A8;
  --text-muted: #6B6B80;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --radius: 16px;
  --radius-sm: 10px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F4F9;
    --bg-card: rgba(255,255,255,0.8);
    --bg-card-hover: #FFFFFF;
    --glass: rgba(255,255,255,0.7);
    --glass-border: rgba(0,0,0,0.06);
    --text: #1A1A2E;
    --text-secondary: #5A5A72;
    --text-muted: #8E8EA0;
    --border: rgba(0,0,0,0.07);
    --shadow: 0 8px 32px rgba(0,0,0,0.06);
  }
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--primary); color: white; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }
a { color: var(--primary-light); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; text-decoration: none; }

/* ─── HEADER ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (prefers-color-scheme: light) {
  .header { background: rgba(244, 244, 249, 0.85); }
}
.header .logo { font-size: 22px; font-weight: 800; letter-spacing: -1px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.header .logo span { -webkit-text-fill-color: var(--primary); }
.header nav { display: flex; gap: 20px; align-items: center; }
.header nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.header nav a:hover { color: var(--text); }
.header .user-badge { display: flex; align-items: center; gap: 10px; }
.header .user-badge .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}

/* ─── LANDING ─── */
.landing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 40px;
  animation: fadeIn 0.6s ease-out;
}

/* ─── LANDING HEADER ─── */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.landing-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.landing-header nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.landing-header nav a:hover { color: var(--text); }

/* ─── LANDING FOOTER ─── */
.landing-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-grid a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--primary-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-made { color: var(--text-muted); font-size: 12px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
.landing .hero {
  text-align: center;
  padding: 80px 0 60px;
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.landing .hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  width: min(600px, 100vw); height: min(600px, 100vw);
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.landing .hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  position: relative;
}
.landing .hero h1 span {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing .hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}
.landing .hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.landing .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 80px 0;
}
.landing .feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 32px;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.landing .feature:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-glow);
}
.landing .feature .icon { font-size: 36px; margin-bottom: 16px; }
.landing .feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.landing .feature p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.landing h2.section-title { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.landing .section-sub { text-align: center; color: var(--text-secondary); margin-bottom: 48px; }
.landing .plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 60px 0;
}
.landing .plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.landing .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.landing .plan.pro {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--bg-card), rgba(124, 92, 252, 0.06));
}
.landing .plan .badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.landing .plan h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.landing .plan .price { font-size: 44px; font-weight: 800; background: linear-gradient(135deg, var(--primary-light), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 4px; }
.landing .plan .price span { font-size: 16px; font-weight: 400; -webkit-text-fill-color: var(--text-secondary); }
.landing .plan ul { list-style: none; margin: 24px 0; text-align: left; }
.landing .plan ul li { padding: 8px 0; font-size: 14px; color: var(--text-secondary); }
.landing .plan ul li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ─── REVIEWS ─── */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 48px 0 56px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-glow);
}
.review-stars { font-size: 16px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
  flex: 1;
  margin-bottom: 14px;
}
.review-author {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.review-author strong { color: var(--text); }

/* ─── AUTH ─── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: "";
  position: absolute;
  top: -40%; left: -20%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}
.auth-page::after {
  content: "";
  position: absolute;
  bottom: -30%; right: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.5s ease-out;
}
.auth-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 28px; text-align: center; }
.auth-card .logo-text { text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 12px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ─── TYPE SELECT (searchable) ─── */
.type-select-group { position: relative; }
.type-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.type-select-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.25s;
}
.type-select-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.type-select-wrapper input::placeholder { color: var(--text-muted); }
.type-select-wrapper .search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
datalist { display: none; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); letter-spacing: 0.2px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group .help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ─── INLINE INPUTS (quick-add, etc.) ─── */
.input {
  padding: 8px 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.input::placeholder { color: var(--text-muted); }

/* ─── SELECT DROPDOWN CONTRAST ─── */
select { cursor: pointer; appearance: auto; }
select option {
  background: #1a1a2e;
  color: #f1f1f6;
  padding: 6px 10px;
}
@media (prefers-color-scheme: light) {
  select option {
    background: #ffffff;
    color: #1a1a2e;
  }
}
.config-section select {
  min-height: 38px;
  padding: 8px 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
}
.config-section select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 6px 24px var(--primary-glow); transform: translateY(-1px); }
.btn-green { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: white; }
.btn-green:hover { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3); transform: translateY(-1px); }
.btn-red { background: linear-gradient(135deg, var(--red), #DC2626); color: white; }
.btn-red:hover { box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(124, 92, 252, 0.05); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ─── DASHBOARD ─── */
.dashboard {
  display: flex;
  min-height: calc(100vh - 64px);
  animation: fadeIn 0.4s ease-out;
}
.dashboard .sidebar {
  width: 240px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.dashboard .sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
  text-decoration: none;
  margin-bottom: 4px;
}
.dashboard .sidebar a:hover { background: var(--glass); color: var(--text); }
.dashboard .sidebar a.active {
  background: rgba(124, 92, 252, 0.1);
  color: var(--primary-light);
  font-weight: 600;
}
.branch-selector {
  padding: 8px 16px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.branch-selector label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 6px; }
.branch-selector select {
  width: 100%;
  padding: 8px 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}
.branch-filter-select {
  padding: 8px 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}
.dashboard .main {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  max-width: 100%;
}

/* ─── STATS ─── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  transition: all 0.3s;
}
.stat-card:hover { border-color: var(--primary-glow); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card h3 { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.stat-card .value { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.stat-card .value.pending { color: var(--orange); }
.stat-card .value.validated { color: var(--green); }

/* ─── ORDERS ─── */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  border-left: 4px solid var(--orange);
  transition: all 0.3s;
}
.order-card:hover { border-color: var(--primary-glow); }
.order-card.status-validated { border-left-color: var(--green); }
.order-card.status-cancelled { border-left-color: var(--red); opacity: 0.7; }
.order-card.new-order { animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
.order-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.order-header .customer { font-weight: 600; font-size: 16px; }
.order-header .time { font-size: 12px; color: var(--text-muted); }
.order-item { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; color: var(--text-secondary); }
.order-total { font-weight: 700; text-align: right; margin: 12px 0; font-size: 15px; }
.order-notes {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 12px;
}
.order-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.order-card.status-ready { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), var(--shadow); }
.order-card.status-preparing { border-color: #3b82f6; }
.order-card.status-confirmed { border-color: var(--green); }

/* ─── BADGES ─── */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.badge-pending,
.badge-cancelled { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.badge-confirmed,
.badge-validated { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.badge-preparing { background: rgba(59, 130, 246, 0.12); color: #60A5FA; }
.badge-ready { background: rgba(16, 185, 129, 0.2); color: var(--green); font-weight: 700; }
.badge-completed { background: rgba(107, 114, 128, 0.12); color: var(--text-muted); }

/* ─── CONFIG ─── */
.config-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.config-section:hover { border-color: var(--primary-glow); }
.config-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.config-section .section-body { flex: 1; }
.config-section .section-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.config-section .section-footer .btn { margin-left: auto; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.menu-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.menu-item:focus-within { border-color: var(--primary); }
.menu-item input {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  transition: all 0.2s;
}
.menu-item input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
}
.menu-item .btn { flex-shrink: 0; }

/* ─── SUBSCRIPTION ─── */
.subscription-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  transition: all 0.3s;
}
.subscription-card:hover { border-color: var(--primary-glow); box-shadow: var(--shadow); }
.subscription-card .plan-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.subscription-card .plan-price { font-size: 40px; font-weight: 800; background: linear-gradient(135deg, var(--primary-light), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.subscription-card .plan-price span { font-size: 16px; font-weight: 400; -webkit-text-fill-color: var(--text-secondary); }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  font-weight: 500;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── HAMBURGER MENU ─── */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  z-index: 101;
  transition: opacity 0.2s;
}
.hamburger-btn:hover { opacity: 0.7; }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0,0,0,0.5);
}
.mobile-menu-overlay.open { display: block; }

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  z-index: 99;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu .mobile-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .mobile-user .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: white;
  flex-shrink: 0;
}
.mobile-menu .mobile-user span {
  font-weight: 600;
  font-size: 15px;
}
.mobile-menu .branch-selector {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
  text-decoration: none;
}
.mobile-menu a:hover { background: var(--glass); color: var(--text); }
.mobile-menu a.active {
  background: rgba(124, 92, 252, 0.1);
  color: var(--primary-light);
  font-weight: 600;
}
.mobile-menu hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

@media (max-width: 900px) {
  .header nav { display: none; }
  .hamburger-btn { display: block; }
  .dashboard .sidebar { display: none; }
  .landing-header nav { display: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .landing { padding: 0 16px 32px; }
  .landing .hero { padding: 48px 0 40px; }
  .landing .hero h1 { font-size: 30px; letter-spacing: -1px; }
  .landing .hero p { font-size: 16px; }
  .landing .hero .cta { flex-direction: column; align-items: stretch; }
  .landing .hero .cta .btn { width: 100%; }
  .landing-header { padding: 14px 0; margin-bottom: 24px; }
  .landing .features { margin: 48px 0; gap: 14px; }
  .landing .feature { padding: 24px 20px; }
  .landing .feature .icon { font-size: 30px; margin-bottom: 12px; }
  .landing .feature h3 { font-size: 16px; }
  .landing h2.section-title { font-size: 22px; }
  .landing .section-sub { font-size: 14px; margin-bottom: 32px; }
  .landing .plans { grid-template-columns: 1fr; margin: 40px 0; }
  .landing .plan { padding: 32px 24px; }
  .landing .plan .price { font-size: 36px; }
  .reviews { gap: 14px; margin: 32px 0 40px; }
  .review-card { padding: 20px 18px; }
  .landing-footer { margin-top: 48px; padding-top: 28px; }
  .config-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .header { padding: 0 16px; height: 56px; }
  .mobile-menu { top: 56px; }
  .dashboard .main { padding: 16px; }
  .config-section { padding: 20px 16px; }
  .order-card { padding: 16px; }
  .subscription-card { padding: 28px 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 18px 16px; }
  .stat-card .value { font-size: 24px; }
}
@media (max-width: 480px) {
  .landing { padding: 0 12px 24px; }
  .landing .hero { padding: 36px 0 32px; }
  .landing .hero h1 { font-size: 26px; }
  .landing .hero p { font-size: 15px; }
  .landing-header { padding: 12px 0; margin-bottom: 16px; }
  .landing .features { margin: 36px 0; gap: 12px; }
  .landing .feature { padding: 20px 16px; border-radius: 12px; }
  .landing .feature .icon { font-size: 26px; }
  .landing h2.section-title { font-size: 20px; }
  .landing .plan { padding: 28px 20px; }
  .landing .plan .price { font-size: 32px; }
  .reviews { gap: 12px; }
  .review-card { padding: 18px 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 12px; }
  .stat-card .value { font-size: 22px; }
  .stat-card h3 { font-size: 11px; }
  .dashboard .main { padding: 12px; }
  .config-section { padding: 16px 12px; }
  .config-grid { gap: 12px; }
  .auth-card { padding: 28px 20px; }
  .auth-card h2 { font-size: 20px; }
  .modal-box { padding: 20px 16px; }
  .modal-box h3 { font-size: 16px; }
  .order-card { padding: 14px 12px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
  .header { padding: 0 12px; height: 52px; }
  .notif-panel { right: 4px; left: 4px; }
}
@media (max-width: 360px) {
  .landing .hero h1 { font-size: 22px; }
  .landing .hero p { font-size: 14px; }
  .landing .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card .value { font-size: 20px; }
}

/* ─── MOBILE TOUCH IMPROVEMENTS ─── */
@media (hover: none) and (pointer: coarse) {
  .btn, .order-card, .stat-card, .feature, .review-card, .plan, .landing-header nav a,
  .sidebar a, .config-section, .menu-item { cursor: default; }
  .btn:active { transform: scale(0.97); }
  .feature:active, .stat-card:active, .order-card:active { transform: translateY(-2px); }
  input, select, textarea, button, a { font-size: 16px; }
}
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px; }
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
  overflow-y: auto;
  padding: 20px;
}
.modal-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%; max-width: 440px;
  max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow);
  animation: slideUp .25s ease;
  margin: auto;
}
.modal-box h3 { margin-bottom: 16px; }
.modal-box .form-group { margin-bottom: 14px; }
.modal-box .form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.modal-box .form-group input,
.modal-box .form-group select {
  width: 100%; padding: 10px 14px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  color: var(--text); transition: all 0.2s;
}
.modal-box .form-group input:focus,
.modal-box .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ─── STAT INFO ICON ─── */
.stat-card { position: relative; }
.stat-info-icon {
  position: absolute; top: 10px; right: 12px;
  cursor: pointer; font-size: 16px; opacity: 0.5;
  transition: opacity 0.2s; z-index: 2;
  color: var(--text-muted);
}
.stat-info-icon:hover { opacity: 1; color: var(--primary-light); }

/* ─── STAT INFO MODAL ─── */
.stat-info-modal {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
.stat-info-box {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  width: 90%; max-width: 380px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: slideUp .25s ease;
}
.stat-info-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 18px; cursor: pointer;
  padding: 4px; line-height: 1;
  transition: color 0.2s;
}
.stat-info-close:hover { color: var(--text); }

/* ─── NOTIFICATION BELL ─── */
.notif-bell {
  position: relative;
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  transition: transform 0.2s;
}
.notif-bell:hover { transform: scale(1.15); }
.notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}

/* ─── NOTIFICATION PANEL ─── */
.notif-panel {
  position: fixed;
  top: 60px;
  right: 16px;
  width: 380px;
  max-height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
}
.notif-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
}
.notif-panel-close:hover { color: var(--text); }
.notif-panel-body {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}
.notif-empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.notif-item {
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--glass-border);
}
.notif-item:hover { background: var(--glass); }
.notif-item.unread { background: rgba(124, 92, 252, 0.06); }
.notif-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.notif-item-msg {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.notif-item-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}
.notif-item-action {
  font-size: 11px;
  color: var(--primary-light);
  margin-top: 4px;
  font-weight: 600;
}
.notif-item.has-action {
  border-left: 3px solid var(--primary);
}
.notif-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.notif-overlay.open { display: block; }

/* ─── TOGGLE ROW ─── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.toggle-row input[type="checkbox"].toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
  margin: 0;
}
.toggle-row input[type="checkbox"].toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}
.toggle-row input[type="checkbox"].toggle:checked {
  background: var(--primary);
}
.toggle-row input[type="checkbox"].toggle:checked::after {
  transform: translateX(20px);
  background: #fff;
}

@media (max-width: 600px) {
  .notif-panel {
    right: 8px;
    left: 8px;
    width: auto;
    top: 56px;
    max-height: calc(100vh - 80px);
  }
}
