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

:root {
  --white: #fff;
  --bg: #f0f4f8;
  --surface: #fff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --gm: #c8102e;
  --gm-light: #fde8ec;
  --green: #16a34a;
  --green-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --sidebar: #0f172a;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(15,23,42,0.07);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.12);
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 0.88rem;
  border: none; cursor: pointer; font-family: inherit; transition: 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.btn-outline { background: var(--white); border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: #94a3b8; }
.btn-ghost:hover { color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #b91c1c; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }

/* Login */
.login-screen {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.login-left {
  background: linear-gradient(145deg, var(--sidebar) 0%, #1e3a5f 100%);
  color: var(--white); padding: 60px; display: flex; flex-direction: column; justify-content: center;
}
.login-brand-big {
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
}
.logo-box {
  width: 46px; height: 46px; border: 2px solid rgba(255,255,255,0.35);
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); flex-shrink: 0;
}
.logo-box-lg { width: 72px; height: 72px; border-radius: 16px; }
.logo-box-icon { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }
.logo-box-lg .logo-box-icon { width: 40px; height: 40px; }
.sidebar-logo-text {
  font-family: 'Marck Script', 'Brush Script MT', cursive;
  font-size: 1.35rem; color: var(--white); display: block; line-height: 1.1;
}
.login-left h2 { font-size: 2rem; margin-bottom: 8px; }
.login-left > p { color: #94a3b8; margin-bottom: 32px; }
.login-features { list-style: none; }
.login-features li {
  padding: 10px 0; color: #cbd5e1; font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.login-features li::before { content: '✓ '; color: var(--blue); font-weight: 700; }

.login-card {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px; max-width: 480px; margin: 0 auto; width: 100%;
}
.login-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.login-card > p { color: var(--muted); margin-bottom: 32px; }

.input-wrap { position: relative; margin-bottom: 16px; }
.input-wrap input {
  width: 100%; padding: 14px 48px 14px 16px; border: 1px solid var(--border);
  border-radius: 12px; font-size: 1rem; font-family: inherit;
}
.input-wrap input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px;
}
.pw-toggle svg { width: 20px; height: 20px; }

.login-hint { margin-top: 16px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.login-hint code { background: var(--bg); padding: 2px 8px; border-radius: 6px; color: var(--blue); }
.back-link { display: block; margin-top: 20px; color: var(--blue); font-size: 0.88rem; text-decoration: none; text-align: center; }

/* Layout */
.admin-app { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90;
}
.sidebar {
  background: var(--sidebar); color: var(--white); padding: 20px 14px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 100;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; position: relative;
}
.sidebar-brand .logo-box { flex-shrink: 0; }
.sidebar-brand strong { display: block; font-size: 0.95rem; }
.sidebar-brand small { color: #64748b; font-size: 0.72rem; }
.sidebar-close {
  display: none; position: absolute; right: 0; top: 0;
  background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer;
}

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; color: #94a3b8; padding: 12px 14px;
  border-radius: 10px; text-align: left; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: 0.2s; width: 100%;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.nav-item.active { background: var(--blue); color: var(--white); }
.nav-badge {
  margin-left: auto; background: rgba(255,255,255,0.15); padding: 2px 8px;
  border-radius: 50px; font-size: 0.72rem; font-weight: 700;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,0.25); }
.nav-badge-alert { background: #ef4444 !important; color: white; }
.nav-badge.hidden { display: none; }

.panel-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sidebar-footer {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-footer .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.15); background: transparent; }

.admin-main { padding: 28px 32px; overflow-y: auto; min-width: 0; }

.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-left h2 { font-size: 1.5rem; line-height: 1.2; }
.header-sub { font-size: 0.85rem; color: var(--muted); }
.header-right { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

.admin-user {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); padding: 8px 16px; border-radius: 50px;
  font-size: 0.85rem; color: var(--muted); border: 1px solid var(--border);
}
.user-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Stats */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-box {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon.blue { background: var(--blue-light); color: var(--blue); }
.stat-icon.gm { background: var(--gm-light); color: var(--gm); }
.stat-icon.dark { background: #e2e8f0; color: var(--text); }
.stat-icon.green { background: var(--green-light); color: var(--green); }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-box.leads-stat strong { color: #ea580c; }
.stat-box span { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; }
.stat-box strong { font-size: 1.6rem; color: var(--blue); line-height: 1.2; }
.stat-box.gm strong { color: var(--gm); }
.stat-box.inom strong { color: var(--text); }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.bar-chart { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { width: 100px; font-size: 0.82rem; font-weight: 600; flex-shrink: 0; }
.bar-track { flex: 1; height: 10px; background: var(--bg); border-radius: 50px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 50px; transition: width 0.6s ease; }
.bar-fill.gm { background: var(--gm); }
.bar-fill.inom { background: var(--text); }
.bar-fill.ideal { background: var(--green); }
.bar-fill.yaxshi { background: var(--blue); }
.bar-fill.ortacha { background: var(--muted); }
.bar-fill.used { background: var(--muted); }
.bar-val { width: 32px; text-align: right; font-size: 0.82rem; font-weight: 700; color: var(--muted); }

.quick-actions { display: flex; flex-direction: column; gap: 10px; }
.quick-card {
  display: block; text-align: left; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; cursor: pointer; font-family: inherit; transition: 0.2s; width: 100%;
}
.quick-card:hover { border-color: var(--blue); background: var(--blue-light); }
.quick-card strong { display: block; font-size: 0.92rem; color: var(--text); margin-bottom: 2px; }
.quick-card span { font-size: 0.8rem; color: var(--muted); }

.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.recent-card {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: 0.2s; background: var(--white);
}
.recent-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.recent-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.recent-card div { padding: 12px; }
.recent-card strong { display: block; font-size: 0.9rem; }
.recent-card span { font-size: 0.82rem; color: var(--blue); font-weight: 700; }

.panel-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.panel-card h3 { margin-bottom: 16px; font-size: 1.05rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-head h3 { margin-bottom: 0; }
.card-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

/* Toolbar */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center;
}
.search-input {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0 12px;
}
.search-input svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.search-input input {
  flex: 1; border: none; background: none; padding: 10px 0;
  font-family: inherit; font-size: 0.88rem; outline: none;
}
.select-sm {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.85rem; background: var(--white); cursor: pointer;
}
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.view-btn {
  padding: 10px 14px; background: var(--white); border: none; cursor: pointer;
  font-size: 0.9rem; color: var(--muted);
}
.view-btn.active { background: var(--blue); color: var(--white); }
.table-count { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }

/* Table */
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th {
  color: var(--muted); font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg);
}
.admin-table tbody tr:hover { background: #f8fafc; }
.admin-table img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; }

.brand-badge {
  display: inline-block; padding: 4px 10px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
}
.brand-badge.gm { background: var(--gm-light); color: var(--gm); }
.brand-badge.inomarka { background: #e2e8f0; color: var(--text); }

.status-badge {
  padding: 4px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 600;
}
.status-badge.ideal { background: var(--green-light); color: var(--green); }
.status-badge.yaxshi { background: var(--blue-light); color: var(--blue); }
.status-badge.ortacha { background: var(--bg); color: var(--muted); }

.condition-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.condition-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.condition-option:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}
.condition-option.active {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 1px var(--blue);
}
.condition-option-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.condition-option-hint {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}
.form-group-full { grid-column: 1 / -1; }

.table-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.icon-btn {
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; font-size: 0.78rem; font-family: inherit; transition: 0.15s;
}
.icon-btn.edit:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.icon-btn.copy:hover { border-color: var(--green); color: var(--green); }
.icon-btn.del:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-light); }

.icon-btn.done:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }

.lead-type-badge {
  display: inline-block; padding: 4px 10px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
}
.lead-type-badge.trade-in { background: var(--blue-light); color: var(--blue); }
.lead-type-badge.valuation { background: #ffedd5; color: #ea580c; }

.lead-status-badge {
  display: inline-block; padding: 4px 10px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 600;
}
.lead-status-badge.new { background: #fef3c7; color: #d97706; }
.lead-status-badge.done { background: var(--green-light); color: var(--green); }

.leads-table td { font-size: 0.85rem; vertical-align: top; }
.lead-extra { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.lead-phone-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.lead-phone-link:hover { text-decoration: underline; }

.recent-leads { display: flex; flex-direction: column; gap: 10px; }
.recent-lead-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: 0.15s;
}
.recent-lead-item:hover { border-color: var(--blue); background: var(--blue-light); }
.recent-lead-item strong { display: block; font-size: 0.9rem; }
.recent-lead-item span { font-size: 0.78rem; color: var(--muted); }
.recent-lead-item.unread { border-left: 3px solid #ea580c; }

/* Grid view */
.cars-admin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.admin-car-card {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--white);
  transition: 0.2s;
}
.admin-car-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.admin-car-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.admin-car-card .card-body { padding: 14px; }
.admin-car-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.admin-car-card .card-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.admin-car-card .card-price { color: var(--blue); font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.admin-car-card .table-actions { padding: 0 14px 14px; }

.empty-state {
  text-align: center; padding: 48px 24px; color: var(--muted);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.4; }

/* Form layout */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.form-section-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin: 20px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.form-section-title:first-child { margin-top: 0; }

.admin-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 4px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 0.82rem; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.88rem; transition: 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light);
}
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }

.dropzone {
  border: 2px dashed var(--border); border-radius: 12px; padding: 32px 24px;
  text-align: center; cursor: pointer; transition: 0.2s; margin-bottom: 14px;
  background: var(--bg);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--blue); background: var(--blue-light); }
.dropzone svg { width: 36px; height: 36px; color: var(--muted); margin-bottom: 10px; }
.dropzone p { font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.dropzone span { font-size: 0.8rem; color: var(--muted); }
.dropzone span.warn { color: #d97706; font-weight: 600; }
.dropzone span.ok { color: var(--green); font-weight: 600; }

.image-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-bottom: 16px;
}
.preview-item { position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove-img {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  background: var(--danger); color: white; border: none; border-radius: 50%;
  cursor: pointer; font-size: 0.75rem; line-height: 1;
}
.preview-item .img-num {
  position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,0.6);
  color: white; font-size: 0.68rem; padding: 2px 6px; border-radius: 4px;
}

.form-actions { display: flex; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }

/* Live Preview */
.sticky-preview { position: sticky; top: 28px; }
.preview-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; margin-top: -8px; }
.live-preview-card {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--white);
}
.lp-image { position: relative; aspect-ratio: 16/10; background: var(--bg); }
.lp-image img { width: 100%; height: 100%; object-fit: cover; }
.lp-image img[src=""], .lp-image img:not([src]) { display: none; }
.lp-badge {
  position: absolute; top: 10px; left: 10px; background: var(--blue); color: white;
  padding: 3px 10px; border-radius: 50px; font-size: 0.68rem; font-weight: 700;
}
.lp-badge.ideal { background: var(--green); }
.lp-badge.yaxshi { background: var(--blue); }
.lp-badge.ortacha { background: var(--muted); color: var(--white); }
.lp-brand {
  position: absolute; bottom: 10px; left: 10px; padding: 4px 10px; border-radius: 50px;
  font-size: 0.68rem; font-weight: 700; background: var(--gm); color: white;
}
.lp-brand.inomarka { background: var(--text); }
.lp-body { padding: 16px; }
.lp-body h4 { font-size: 1.05rem; margin-bottom: 4px; }
.lp-body > p { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.lp-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lp-specs span {
  background: var(--bg); padding: 4px 8px; border-radius: 6px;
  font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border);
}
.lp-footer strong { font-size: 1.2rem; color: var(--blue); }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.backup-actions { display: flex; flex-direction: column; gap: 10px; }
.import-label { cursor: pointer; text-align: center; }

.danger-zone { border-color: #fecaca; background: var(--danger-light); }
.danger-zone p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 24px;
}
.modal-box {
  background: var(--white); border-radius: 16px; padding: 28px;
  max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); animation: fadeIn 0.25s ease;
}
.modal-box h3 { margin-bottom: 10px; }
.modal-box p { color: var(--muted); margin-bottom: 24px; font-size: 0.92rem; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--text); color: var(--white);
  padding: 14px 24px; border-radius: 12px; font-size: 0.88rem; z-index: 300;
  box-shadow: var(--shadow-lg); animation: fadeIn 0.3s ease;
}

@media (max-width: 1100px) {
  .form-layout { grid-template-columns: 1fr; }
  .sticky-preview { position: static; }
  .dash-grid, .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .admin-app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; width: 272px; transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .menu-btn { display: flex; }
  .admin-form .form-grid { grid-template-columns: 1fr; }
  .condition-picker { grid-template-columns: 1fr; }
  .admin-main { padding: 20px 16px; }
}
