/* ============================================
   AI FASHION STYLIST — STYLES
   ============================================ */

/* --- Variables --- */
:root {
  --bg: #0f0e17;
  --bg-alt: #1a1925;
  --bg-card: #211f30;
  --bg-card-hover: #28263a;
  --text: #f5f5fa;
  --text-dim: #a0a0b8;
  --text-muted: #6e6e85;
  --brand: #e85d75;
  --brand-light: #f1788d;
  --brand-dark: #c94560;
  --accent: #7c5cff;
  --accent-light: #9b85ff;
  --success: #4ade80;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
  --max-w: 1140px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; transition: all .25s ease;
  white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; box-shadow: 0 4px 16px rgba(232,93,117,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,93,117,.4); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--accent); }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,14,23,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px;
}
.logo-icon { color: var(--brand); font-size: 22px; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: color .2s;
}
.main-nav a:hover { color: var(--text); }

/* --- Hero --- */
.hero { padding: 80px 0 60px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.badge {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: rgba(124,92,255,.12); color: var(--accent-light);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  border: 1px solid rgba(124,92,255,.2);
}
.hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { font-size: 18px; color: var(--text-dim); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 32px; font-weight: 800; color: var(--text); }
.hero-stats span { font-size: 13px; color: var(--text-muted); }

/* Hero visual — card stack */
.hero-visual { position: relative; height: 420px; }
.hero-card-stack { position: relative; width: 100%; height: 100%; }
.hero-card {
  position: absolute; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; width: 100%;
  box-shadow: var(--shadow-lg); transition: transform .4s ease;
}
.hero-card-1 { top: 0; left: 20px; z-index: 3; animation: floatCard 6s ease-in-out infinite; }
.hero-card-2 { top: 120px; left: 0; z-index: 2; animation: floatCard 6s ease-in-out infinite 1s; }
.hero-card-3 { top: 240px; left: 30px; z-index: 1; animation: floatCard 6s ease-in-out infinite 2s; }
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hc-label {
  font-size: 13px; font-weight: 700; color: var(--brand-light);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px;
}
.hc-body { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: rgba(255,255,255,.06); font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
}
.chip-dark { background: rgba(0,0,0,.2); }
.chip-brand {
  background: rgba(232,93,117,.12); color: var(--brand-light);
  border-color: rgba(232,93,117,.2);
}

/* --- Sections --- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  background: rgba(232,93,117,.1); color: var(--brand-light);
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.section-head h2 { font-size: 38px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.section-sub { font-size: 17px; color: var(--text-dim); }

/* --- Modules Flow --- */
.modules-flow {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.module-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px;
  transition: all .3s ease; position: relative;
}
.module-card:hover {
  background: var(--bg-card-hover); border-color: var(--brand);
  transform: translateY(-4px);
}
.module-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.module-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.module-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.module-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.module-tags li {
  font-size: 12px; padding: 4px 10px; border-radius: 100px;
  background: rgba(124,92,255,.1); color: var(--accent-light);
}

/* --- Demo Wizard --- */
.demo-wizard {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-lg); max-width: 860px; margin: 0 auto;
}
/* Progress */
.demo-progress { margin-bottom: 36px; }
.dp-track { height: 4px; background: var(--border); border-radius: 100px; margin-bottom: 14px; overflow: hidden; }
.dp-fill { height: 100%; width: 16.6%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 100px; transition: width .4s ease; }
.dp-steps { display: flex; justify-content: space-between; }
.dp-step {
  font-size: 12px; color: var(--text-muted); font-weight: 600;
  transition: color .3s; cursor: default;
}
.dp-step.active { color: var(--brand-light); }
.dp-step.done { color: var(--success); }

/* Panels */
.demo-panel { display: none; animation: fadeIn .4s ease; }
.demo-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.panel-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.panel-sub-text { font-size: 15px; color: var(--text-dim); margin-bottom: 24px; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.form-field input[type="number"],
.form-field input[type="text"],
.form-field select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; transition: border-color .2s;
}
.form-field input:focus, .form-field select:focus {
  outline: none; border-color: var(--accent);
}
.radio-row { display: flex; gap: 10px; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s;
}
.radio-pill:has(input:checked) {
  border-color: var(--brand); background: rgba(232,93,117,.1); color: var(--brand-light);
}
.radio-pill input { accent-color: var(--brand); }

/* Upload */
.upload-row { display: flex; gap: 16px; }
.upload-box {
  flex: 1; min-height: 120px; border: 2px dashed var(--border-hover);
  border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: all .25s; color: var(--text-dim);
}
.upload-box:hover { border-color: var(--brand); color: var(--text); background: rgba(232,93,117,.04); }
.upload-box.uploaded { border-style: solid; border-color: var(--success); background: rgba(74,222,128,.06); }
.upload-icon { font-size: 32px; }
.upload-text { font-size: 14px; font-weight: 500; }

/* Demo nav */
.demo-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }

/* --- Analysis --- */
.analysis-output {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; min-height: 200px;
  margin-bottom: 20px;
}
.typing-indicator { display: flex; gap: 6px; margin-bottom: 16px; }
.typing-indicator span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand); animation: typingDot 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot {
  0%,60%,100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-6px); }
}
.analysis-text { font-size: 15px; line-height: 1.8; color: var(--text-dim); white-space: pre-wrap; }
.analysis-text .highlight { color: var(--brand-light); font-weight: 600; }
.analysis-text .accent { color: var(--accent-light); font-weight: 600; }
.analysis-result h4 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.result-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.result-chip {
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500;
}
.result-chip strong { color: var(--brand-light); }

/* --- Outfits --- */
.outfits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 8px; }
.outfit-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: all .3s ease; cursor: pointer; position: relative;
}
.outfit-card:hover { border-color: var(--brand); transform: translateY(-4px); }
.outfit-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(232,93,117,.3); }
.outfit-tier {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 14px;
}
.tier-budget { background: rgba(74,222,128,.12); color: var(--success); }
.tier-mid { background: rgba(124,92,255,.12); color: var(--accent-light); }
.tier-premium { background: rgba(232,93,117,.12); color: var(--brand-light); }
.outfit-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.outfit-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.outfit-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); font-size: 14px;
}
.outfit-item-icon { font-size: 18px; }
.outfit-explanation {
  font-size: 13px; color: var(--text-dim); line-height: 1.6;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.outfit-explanation strong { color: var(--accent-light); }

/* --- Try-On --- */
.tryon-wrap { display: flex; align-items: center; justify-content: center; gap: 40px; margin-bottom: 8px; }
.tryon-col { text-align: center; }
.tryon-label { font-size: 14px; font-weight: 600; color: var(--text-dim); margin-bottom: 14px; }
.tryon-photo {
  width: 220px; height: 320px; border-radius: var(--radius);
  border: 1px solid var(--border); display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden;
}
.tryon-before { background: linear-gradient(180deg, #1e1d2e, #151420); }
.tryon-placeholder { font-size: 48px; text-align: center; color: var(--text-muted); line-height: 1.4; }
.tryon-after { background: linear-gradient(180deg, #2a1e2e, #1a1520); position: relative; }
.tryon-arrow { font-size: 32px; color: var(--brand); }
.tryon-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--text-dim); font-size: 14px; }
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tryon-result { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tryon-outfit-mini { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 180px; }
.tryon-outfit-mini .outfit-item-icon { font-size: 24px; }
.tryon-done { color: var(--success); font-weight: 600; font-size: 14px; }

/* --- Shopping --- */
.shopping-results { display: flex; flex-direction: column; gap: 16px; }
.shop-category {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
}
.shop-cat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.shop-cat-icon { font-size: 22px; }
.shop-cat-name { font-size: 17px; font-weight: 700; }
.shop-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.shop-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--radius-sm); background: rgba(255,255,255,.03);
  border: 1px solid var(--border); transition: all .2s;
}
.shop-item:hover { border-color: var(--brand); background: rgba(232,93,117,.06); }
.shop-item-brand { font-weight: 700; font-size: 14px; }
.shop-item-name { font-size: 12px; color: var(--text-dim); }
.shop-item-price { font-size: 13px; font-weight: 600; color: var(--success); margin-left: auto; }
.shop-item-link {
  font-size: 11px; color: var(--accent-light); text-decoration: underline;
}

/* --- Architecture --- */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.arch-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all .3s ease;
}
.arch-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.arch-icon { font-size: 36px; margin-bottom: 16px; }
.arch-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.arch-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.arch-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tag {
  padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: rgba(124,92,255,.1); color: var(--accent-light);
  border: 1px solid rgba(124,92,255,.15);
}

/* --- Competitors --- */
.comp-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 32px;
}
.comp-tab {
  padding: 10px 22px; border-radius: 100px; font-size: 14px; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-dim); transition: all .2s;
}
.comp-tab:hover { color: var(--text); border-color: var(--border-hover); }
.comp-tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-color: transparent;
}
.comp-content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  max-width: 760px; margin: 0 auto; min-height: 200px;
}
.comp-detail { animation: fadeIn .4s ease; }
.comp-detail h3 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.comp-detail .comp-tagline { font-size: 16px; color: var(--brand-light); font-weight: 600; margin-bottom: 20px; }
.comp-detail .comp-desc { font-size: 15px; color: var(--text-dim); margin-bottom: 24px; line-height: 1.7; }
.comp-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.comp-pros h4, .comp-cons h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.comp-pros h4 { color: var(--success); }
.comp-cons h4 { color: var(--brand-light); }
.comp-pros li, .comp-cons li { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; padding-left: 20px; position: relative; }
.comp-pros li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.comp-cons li::before { content: '✗'; position: absolute; left: 0; color: var(--brand-light); font-weight: 700; }
.comp-takeaway {
  margin-top: 24px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(124,92,255,.08); border: 1px solid rgba(124,92,255,.15);
  font-size: 14px; color: var(--accent-light);
}
.comp-takeaway strong { color: var(--text); }

/* --- Advantages --- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all .3s ease;
}
.adv-card:hover { border-color: var(--brand); transform: translateY(-4px); }
.adv-icon { font-size: 36px; margin-bottom: 16px; }
.adv-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.adv-card p { font-size: 14px; color: var(--text-dim); }

/* --- CTA --- */
.cta-section {
  padding: 80px 0; text-align: center;
  background: linear-gradient(135deg, rgba(232,93,117,.08), rgba(124,92,255,.08));
}
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 17px; color: var(--text-dim); margin-bottom: 32px; }

/* --- Footer --- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-desc { font-size: 14px; color: var(--text-dim); margin-top: 16px; max-width: 360px; }
.footer-links h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 10px; transition: color .2s; }
.footer-links a:hover { color: var(--brand-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero-visual { height: 360px; }
  .modules-flow { grid-template-columns: repeat(2, 1fr); }
  .arch-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .outfits-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 24px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 28px; }
  .modules-flow { grid-template-columns: 1fr; }
  .arch-grid, .adv-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .demo-wizard { padding: 24px 20px; }
  .dp-steps { display: none; }
  .comp-pros-cons { grid-template-columns: 1fr; }
  .tryon-wrap { flex-direction: column; gap: 20px; }
  .tryon-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .upload-row { flex-direction: column; }
}


/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

/* --- Login Screen --- */
.admin-body { background: var(--bg); min-height: 100vh; }
.login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px;
  background: radial-gradient(ellipse at top, rgba(232,93,117,0.12), transparent 60%),
              radial-gradient(ellipse at bottom, rgba(124,92,255,0.12), transparent 60%),
              var(--bg);
}
.login-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 40px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-header .logo-icon { font-size: 36px; color: var(--brand); display: block; margin-bottom: 12px; }
.login-header h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.login-header p { color: var(--text-dim); font-size: 14px; }
.login-form { display: flex; flex-direction: column; gap: 20px; }
.login-form .form-field { display: flex; flex-direction: column; gap: 8px; }
.login-form label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.login-form input, .login-form select {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; color: var(--text); font-size: 15px; font-family: var(--font);
  transition: border-color .2s;
}
.login-form input:focus, .login-form select:focus {
  outline: none; border-color: var(--brand);
}
.login-error {
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3);
  color: #f87171; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px;
}
.login-hint {
  margin-top: 24px; padding: 16px; background: var(--bg-alt); border-radius: var(--radius-sm);
  border: 1px dashed var(--border-hover);
}
.login-hint p { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.login-hint strong { color: var(--accent-light); }
.back-link { display: block; text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 13px; text-decoration: none; transition: color .2s; }
.back-link:hover { color: var(--brand-light); }

/* --- Admin Dashboard Layout --- */
.admin-dashboard { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 260px; background: var(--bg-alt); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 24px 0; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100; overflow-y: auto;
}
.sidebar-logo {
  padding: 0 24px 24px; font-size: 18px; font-weight: 800; color: var(--text);
  border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.sidebar-logo .logo-icon { color: var(--brand); margin-right: 4px; }
.sidebar-user { padding: 0 24px 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.su-email { font-size: 13px; font-weight: 600; color: var(--text); word-break: break-all; }
.su-role { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm); transition: all .2s;
}
.sidebar-link:hover { background: var(--bg-card); color: var(--text); }
.sidebar-link.active { background: var(--brand); color: #fff; }
.sidebar-footer { padding: 16px 12px 0; border-top: 1px solid var(--border); margin-top: auto; }

/* Main */
.admin-main { flex: 1; margin-left: 260px; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  display: flex; align-items: center; gap: 16px; padding: 20px 32px;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar h2 { font-size: 20px; font-weight: 700; flex: 1; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* Role badges */
.role-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.role-developer { background: rgba(124,92,255,0.2); color: var(--accent-light); border: 1px solid rgba(124,92,255,0.3); }
.role-admin { background: rgba(232,93,117,0.2); color: var(--brand-light); border: 1px solid rgba(232,93,117,0.3); }
.role-user { background: rgba(74,222,128,0.15); color: var(--success); border: 1px solid rgba(74,222,128,0.3); }

/* Content */
.admin-content { padding: 32px; flex: 1; }
.admin-tab { display: none; }
.admin-tab.active { display: block; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-icon { font-size: 28px; margin-bottom: 12px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* Admin card */
.admin-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin-bottom: 24px;
}
.admin-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-header h3 { margin-bottom: 0; }

/* Activity list */
.activity-list { display: flex; flex-direction: column; gap: 16px; }
.activity-item { display: flex; gap: 14px; align-items: flex-start; }
.activity-icon { font-size: 20px; flex-shrink: 0; }
.activity-body { flex: 1; }
.activity-action { font-size: 14px; font-weight: 500; color: var(--text); }
.activity-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Style bars */
.style-bars { display: flex; flex-direction: column; gap: 14px; }
.style-bar-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.style-bar-head span:last-child { color: var(--text-dim); }
.style-bar-track { height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.style-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 4px; transition: width .5s; }

/* Table */
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.text-muted { color: var(--text-muted); font-size: 13px; }

/* Status badges */
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.status-active { background: rgba(74,222,128,0.15); color: var(--success); }
.status-blocked { background: rgba(239,68,68,0.15); color: #f87171; }

/* Settings form */
.settings-form { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.settings-form .form-field { display: flex; flex-direction: column; gap: 8px; }
.settings-form label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.settings-form input, .settings-form select {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; color: var(--text); font-size: 14px; font-family: var(--font);
}
.settings-form input:focus, .settings-form select:focus { outline: none; border-color: var(--brand); }
.form-checkbox { flex-direction: row !important; align-items: center; gap: 10px !important; }
.form-checkbox input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-checkbox label { font-size: 14px; color: var(--text); font-weight: 500; }
.settings-saved { color: var(--success); font-size: 14px; font-weight: 600; margin-left: 12px; }

/* Logs */
.logs-list { display: flex; flex-direction: column; gap: 8px; max-height: 500px; overflow-y: auto; }
.log-item {
  display: flex; gap: 12px; align-items: center; padding: 10px 14px;
  background: var(--bg-alt); border-radius: var(--radius-sm); font-size: 13px;
  border-left: 3px solid var(--border);
}
.log-info { border-left-color: var(--accent); }
.log-success { border-left-color: var(--success); }
.log-warning { border-left-color: #fbbf24; }
.log-error { border-left-color: #f87171; }
.log-time { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.log-level { font-weight: 700; font-size: 11px; min-width: 60px; }
.log-info .log-level { color: var(--accent-light); }
.log-success .log-level { color: var(--success); }
.log-warning .log-level { color: #fbbf24; }
.log-error .log-level { color: #f87171; }
.log-msg { color: var(--text); flex: 1; }

/* Dev tools */
.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dev-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.dev-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.dev-card .form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.dev-card label { font-size: 12px; color: var(--text-dim); }
.dev-card input { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text-muted); font-size: 13px; }
.info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-dim); }
.info-row strong { color: var(--text); }
.dev-card .btn { margin-bottom: 10px; width: 100%; }

/* Danger button */
.btn-danger { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }

/* Modal */
.modal-overlay {
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; padding: 20px;
}
.modal-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
}
.modal-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.modal-card .form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.modal-card label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.modal-card input, .modal-card select {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; color: var(--text); font-size: 14px; font-family: var(--font);
}
.modal-card input:focus, .modal-card select:focus { outline: none; border-color: var(--brand); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* --- Admin Responsive --- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%); transition: transform .3s;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .mobile-menu-btn { display: block; }
  .admin-content { padding: 20px 16px; }
  .admin-topbar { padding: 16px 20px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
  .admin-card { padding: 20px 16px; }
}
