:root {
  --green: #16834b;
  --deep: #0b5531;
  --ink: #18231d;
  --muted: #68756d;
  --paper: #f6f8f5;
  --white: #fff;
  --sidebar-width: 260px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif }

/* Topbar */
.topbar { height: auto; min-height: 66px; background: var(--green); color: white; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(18px, 6vw, 80px); gap: 18px; flex-wrap: wrap; position: sticky; top: 0; z-index: 100; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1400px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; color: white; text-decoration: none; letter-spacing: -.04em; }
.brand-icon { font-size: 1.5rem; }
.brand-badge { background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.topbar nav { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar nav a { color: white; text-decoration: none; font-weight: 600; font-size: .94rem; }
.topbar nav a:hover { text-decoration: underline; }
.topbar-user { display: flex; align-items: center; gap: 12px; }
.user-name { font-weight: 500; font-size: 0.9rem; }

/* Buttons — Design Pro */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.btn:hover:not(:disabled)::after { opacity: 1; }
.btn:active:not(:disabled) { transform: translateY(-1px); scale: 0.98; }
.btn-primary {
  background: linear-gradient(135deg, var(--green), #0e7040);
  color: white;
  box-shadow: 0 4px 14px rgba(22,131,75,0.25);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0e7040, var(--deep));
  box-shadow: 0 6px 20px rgba(22,131,75,0.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  box-shadow: 0 0 0 0 rgba(22,131,75,0);
}
.btn-outline:hover:not(:disabled) {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 14px rgba(22,131,75,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid #e4ebe5;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--paper);
  color: var(--green);
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(22,131,75,0.12);
}
.btn-full { width: 100%; }
.btn-large { padding: 16px 28px; font-size: 1.1rem; }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-secondary {
  background: linear-gradient(135deg, #e8eee9, #d9e5dc);
  color: #244331;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.btn-secondary:hover { background: linear-gradient(135deg, #d9e5dc, #c8d8cd); transform: translateY(-1px); }
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: white;
  box-shadow: 0 4px 14px rgba(239,68,68,0.25);
}
.btn-danger:hover { background: linear-gradient(135deg, #b91c1c, #991b1b); box-shadow: 0 6px 20px rgba(239,68,68,0.35); transform: translateY(-1px); }

/* Hero / Carousel */
.hero-carousel { position: relative; overflow: hidden; }
.carousel-container { max-width: 1400px; margin: 0 auto; position: relative; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide { flex: 0 0 100%; min-width: 100%; }
.slide-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1400px; margin: 0 auto; padding: 80px clamp(20px, 6vw, 80px); }
.slide-visual { display: flex; justify-content: center; }
.illustration { max-width: 100%; height: auto; }
.slide-text { padding: 20px 0; }
.slide-badge { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.slide-badge.problem { background: #fef2f2; color: #dc2626; }
.slide-badge.solution-badge { background: #ecfdf5; color: #059669; }
.slide-text h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 16px; line-height: 1.2; color: var(--ink); }
.slide-text p { color: var(--muted); font-size: 1.1rem; line-height: 1.6; margin-bottom: 20px; }
.slide-text .lead { font-size: 1.2rem; font-weight: 500; color: var(--ink); }
.slide-points { list-style: none; padding: 0; margin: 0 0 24px; }
.slide-points li { padding: 8px 0; padding-left: 28px; position: relative; color: var(--ink); line-height: 1.5; }
.slide-points li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.solution-points li::before { content: '✅'; left: -2px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: none; box-shadow: 0 4px 16px rgba(0,0,0,0.15); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: all 0.2s; z-index: 10; }
.carousel-btn:hover { background: var(--green); color: white; }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-indicators { display: flex; justify-content: center; gap: 10px; padding: 20px; }
.carousel-indicators button { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.2s; }
.carousel-indicators button.active { background: var(--green); transform: scale(1.2); }
.carousel-autoplay-status { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); border-radius: 30px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 10; font-size: 0.85rem; color: var(--muted); }
.carousel-autoplay-status .btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* CTA Section */
.cta-section { background: var(--green); color: white; padding: 80px clamp(20px, 6vw, 80px); text-align: center; }
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-trust { margin-top: 24px; font-size: 0.9rem; opacity: 0.8; }

/* Features Section */
.features-section { padding: 80px clamp(20px, 6vw, 80px); background: var(--white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow { color: var(--green); }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 8px 0 16px; color: var(--ink); }
.section-header p { color: var(--muted); font-size: 1.1rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.feature-card { background: var(--paper); border: 1px solid #e3ebe4; border-radius: 16px; padding: 32px; transition: transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(24,59,36,0.1); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { margin: 0 0 12px; font-size: 1.25rem; color: var(--ink); }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Plans Section */
.plans-section { padding: 80px clamp(20px, 6vw, 80px); background: var(--paper); }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.plan-card { background: var(--white); border: 1px solid #e3ebe4; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(24,59,36,0.1); }
.plan-card.current { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.plan-header { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #e3ebe4; }
.plan-header h3 { margin: 0 0 12px; font-size: 1.5rem; color: var(--ink); }
.plan-price { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.plan-price .monthly { font-size: 2.5rem; font-weight: 800; color: var(--deep); }
.plan-price .period { font-size: 0.9rem; color: var(--muted); }
.plan-price .free { font-size: 2rem; font-weight: 700; color: var(--green); }
.plan-price .yearly { font-size: 0.85rem; color: var(--green); font-weight: 600; }
.plan-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-features li { padding: 10px 0; padding-left: 28px; position: relative; color: var(--ink); font-size: 0.95rem; border-bottom: 1px solid #eef3f0; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan-limits { font-size: 0.8rem; color: var(--muted); padding: 16px; background: var(--paper); border-radius: 10px; margin-bottom: 24px; text-align: center; }
.plan-actions { display: flex; gap: 12px; }
.plan-card .btn { flex: 1; }
.plans-note { text-align: center; margin-top: 24px; color: var(--muted); font-size: 0.85rem; }

/* How it Works */
.how-section { padding: 80px clamp(20px, 6vw, 80px); background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.step-card { text-align: center; padding: 32px 24px; position: relative; }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: white; font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step-icon { font-size: 2.5rem; margin-bottom: 16px; }
.step-card h3 { margin: 0 0 12px; font-size: 1.25rem; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Trust Section */
.trust-section { padding: 60px clamp(20px, 6vw, 80px); background: linear-gradient(135deg, #e8f5e9 0%, #f0fdf4 100%); }
.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; text-align: center; }
.stat-number { display: block; font-size: 3rem; font-weight: 800; color: var(--deep); line-height: 1; }
.stat-label { display: block; font-size: 0.9rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

/* Final CTA */
.final-cta { padding: 80px clamp(20px, 6vw, 80px); background: var(--deep); color: white; text-align: center; }
.final-cta h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 16px; }
.final-cta p { opacity: 0.8; margin-bottom: 32px; }

/* Footer */
.site-footer { background: #123d27; color: #dcebe0; padding: 40px clamp(20px, 6vw, 80px) 24px; }
.site-footer .container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { font-size: 1.5rem; color: white; }
.footer-brand p { margin: 16px 0 0; opacity: 0.8; font-size: 0.95rem; line-height: 1.6; }
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h4 { margin: 0 0 16px; font-size: 1rem; color: white; }
.footer-col a { display: block; color: #dcebe0; text-decoration: none; margin: 8px 0; opacity: 0.8; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; gap: 16px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: #dcebe0; font-size: 1.25rem; opacity: 0.8; transition: opacity 0.2s; }
.footer-social a:hover { opacity: 1; }

/* Forms */
.form-field { margin-bottom: 20px; position: relative; }
.form-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: 6px; cursor: pointer; }
.label-icon { font-size: 1.1rem; }
.label-text { display: block; }
.required { color: #e74c3c; font-size: .85rem; }
.field-help { font-size: .8rem; color: var(--muted); margin-top: 4px; display: block; }
.field-error { font-size: .8rem; color: #e74c3c; margin-top: 4px; display: none; }
.form-field input.error, .form-field select.error, .form-field textarea.error { border-color: #e74c3c; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 16px; border: 2px solid #e4ebe5; border-radius: 10px; font-size: 1rem; background: var(--paper); outline: none; transition: border-color .2s, box-shadow .2s; font-family: inherit; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(22,131,75,0.1); }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2368756d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-checkbox-row input { margin-top: 3px; width: auto; }
.form-checkbox-row label { font-size: .9rem; color: var(--ink); cursor: pointer; }
.form-label.check-label { flex-direction: row; align-items: center; font-weight: 400; cursor: pointer; }
.form-label.check-label input { width: auto; margin-right: 8px; }
.password-wrapper { position: relative; display: flex; align-items: center; }
.btn-toggle-password { background: none; border: none; cursor: pointer; padding: 6px; color: var(--muted); font-size: 1.1rem; line-height: 1; position: absolute; right: 12px; }
.btn-toggle-password:hover { color: var(--green); }
.password-requirements { font-size: .8rem; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.password-requirements .req { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.password-requirements .req.met { color: var(--green); }
.password-requirements .req.met::before { content: '✅ '; }
.password-requirements .req:not(.met)::before { content: '⬜ '; }

/* Login / Register Pages */
.login-main, .register-main, .track-main { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 40px clamp(18px, 6vw, 80px); }
.login-container, .register-container, .track-container { width: 100%; max-width: 480px; background: var(--white); padding: 40px 32px; border-radius: 16px; box-shadow: 0 10px 40px rgba(24,59,36,0.08); }
.register-container { max-width: 600px; }
.login-header, .register-header, .track-header { text-align: center; margin-bottom: 32px; }
.track-header { text-align: center; }
.login-header h1, .register-header h1 { font-size: 1.75rem; margin: 8px 0 12px; }
.login-header p, .register-header p, .track-header p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.track-header h1 { font-size: 2rem; margin: 12px 0 8px; }
.track-header .eyebrow { color: var(--green); }
.login-links, .form-footer { margin-top: 20px; text-align: center; font-size: .9rem; }
.login-links .link, .form-footer a { color: var(--green); text-decoration: none; margin: 0 8px; }
.login-links .link:hover, .form-footer a:hover { text-decoration: underline; }
.login-error, .register-error, .track-error { background: #fdf0f0; border: 1px solid #f5c6c6; color: #c0392b; padding: 16px; border-radius: 10px; margin-top: 20px; display: flex; align-items: flex-start; gap: 12px; }
.track-error { text-align: center; }
.login-success, .register-success { background: #e8f5e9; border: 1px solid #81c784; color: #2e7d32; padding: 24px; border-radius: 10px; text-align: center; margin-top: 20px; }
.success-icon-large { font-size: 4rem; margin-bottom: 16px; }
.error-icon, .success-icon { font-size: 1.5rem; margin-top: 2px; }

/* Voice Instructions */
.voice-instructions-section { margin-top: 24px; }
.btn-voice { background: var(--paper); color: var(--ink); border: 2px solid #e4ebe5; padding: 12px 16px; border-radius: 10px; font-weight: 700; display: flex; align-items: center; gap: 10px; font-size: .9rem; width: 100%; justify-content: center; }
.btn-voice:hover { border-color: var(--green); }
.voice-status { font-size: .8rem; margin-left: 6px; }
.voice-languages { margin-top: 12px; padding: 12px; background: var(--paper); border-radius: 8px; border: 1px solid #e4ebe5; }
.voice-languages label { font-size: .85rem; font-weight: 700; }
.voice-languages select { margin-left: 8px; padding: 6px 10px; border: 1px solid #ccc; border-radius: 6px; }

/* Password Generator */
.password-generator-section { margin-top: 24px; }
.btn-generate { background: var(--paper); color: var(--ink); border: 2px solid #e4ebe5; padding: 12px 16px; border-radius: 10px; font-weight: 700; display: flex; align-items: center; gap: 10px; width: 100%; font-size: .9rem; justify-content: center; }
.btn-generate:hover { border-color: var(--green); }
.password-generator-panel { margin-top: 16px; padding: 16px; background: var(--paper); border-radius: 10px; border: 1px solid #e4ebe5; }
.generator-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.generator-header h4 { margin: 0; font-size: 1rem; }
.btn-close-generator { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--muted); }
.generated-password-display { display: flex; gap: 8px; margin-bottom: 16px; }
.generated-password-display input { flex: 1; padding: 10px 14px; border: 2px solid #e4ebe5; border-radius: 8px; background: var(--white); font-family: monospace; font-size: .9rem; }
.generator-options { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.check-option { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink); }
.check-option input { width: auto; }
.generator-actions { display: flex; gap: 10px; }
.generator-notice { font-size: .75rem; color: var(--muted); margin-top: 8px; }

/* Phone Input */
.phone-input-wrapper { display: flex; gap: 10px; }
.phone-input-wrapper select { min-width: 180px; flex-shrink: 0; }
.phone-input-wrapper input { flex: 1; }

/* Slug Input */
.slug-input { display: flex; align-items: center; gap: 8px; }
.slug-prefix { background: var(--paper); padding: 12px 16px; border: 2px solid #e4ebe5; border-radius: 10px 0 0 10px; color: var(--muted); font-family: monospace; font-size: .9rem; }
.slug-input input { border-radius: 0 10px 10px 0; border-left: none; flex: 1; }
.slug-status { font-size: .8rem; margin-top: 6px; display: block; }
.slug-status.success { color: var(--green); }
.slug-status.error { color: #e74c3c; }

/* File Upload */
.file-upload { position: relative; }
.upload-zone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; border: 2px dashed #ccc; border-radius: 12px; background: var(--paper); cursor: pointer; transition: all 0.2s; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--green); background: #e8f5e9; }
.upload-icon { font-size: 2.5rem; }
.upload-zone span { text-align: center; }
.upload-hint { font-size: .8rem; color: var(--muted); }
.upload-preview { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--white); border: 1px solid #e3ebe4; border-radius: 10px; }
.upload-preview img { max-height: 80px; max-width: 150px; border-radius: 8px; object-fit: contain; }
.btn-remove-upload { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--muted); padding: 4px; border-radius: 4px; }
.btn-remove-upload:hover { color: #ef4444; background: #fef2f2; }

/* Dashboard Layout */
.dash-topbar { background: var(--deep); color: white; }
.dash-topbar .brand-badge { background: var(--green); color: #1a1a1a; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; font-weight: 700; margin-left: 8px; }
.dashboard-layout { display: flex; min-height: calc(100vh - 66px); }
.dash-sidebar { width: var(--sidebar-width); background: var(--white); border-right: 1px solid #e3ebe4; padding: 20px 0; position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto; flex-shrink: 0; transition: transform 0.3s, width 0.3s; }
.dash-sidebar.collapsed { transform: translateX(-100%); }
.dash-sidebar .nav-list { list-style: none; padding: 0; margin: 0; }
.dash-sidebar .nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: var(--ink); text-decoration: none; font-weight: 500; border-left: 3px solid transparent; transition: all 0.2s; white-space: nowrap; }
.dash-sidebar .nav-link:hover { background: var(--paper); color: var(--green); }
.dash-sidebar .nav-link.active { background: #e8f5e9; color: var(--green); border-left-color: var(--green); }
.dash-sidebar.collapsed .nav-link span:last-child { display: none; }
.dash-sidebar .nav-link span:first-child { font-size: 1.2rem; min-width: 24px; text-align: center; }
.sidebar-toggle { position: absolute; right: -12px; top: 20px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 1px solid #e3ebe4; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); z-index: 10; }
.dash-main { flex: 1; padding: 30px 40px; overflow-y: auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tab-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.tab-header h1 { margin: 0; font-size: 1.75rem; }
.tab-actions { display: flex; gap: 12px; align-items: center; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); border: 1px solid #e3ebe4; border-radius: 14px; padding: 24px; display: flex; align-items: center; gap: 16px; transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(24,59,36,0.1); }
.stat-card.warning { border-left: 4px solid #f59e0b; }
.stat-card.success { border-left: 4px solid #10b981; }
.stat-card.info { border-left: 4px solid #3b82f6; }
.stat-card.danger { border-left: 4px solid #ef4444; }
.stat-icon { font-size: 2.5rem; opacity: 0.8; }
.stat-content { display: flex; flex-direction: column; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.stat-label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Quick Actions */
.quick-actions { margin-bottom: 30px; }
.quick-actions h2 { margin: 0 0 16px; font-size: 1.1rem; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--white); border: 1px solid #e3ebe4; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; transition: all 0.2s; }
.action-btn:hover { background: #e8f5e9; border-color: var(--green); color: var(--green); }

/* Section Card */
.section-card { background: var(--white); border: 1px solid #e3ebe4; border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
.section-card-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e3ebe4; }
.section-card-header h2 { margin: 0; font-size: 1.1rem; }
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eef3f0; }
.data-table th { background: #f8faf7; font-weight: 600; color: var(--ink); white-space: nowrap; position: sticky; top: 0; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8faf7; }
.empty-table { text-align: center; color: var(--muted); padding: 40px 20px !important; }
.product-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; background: #f0f0f0; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.badge.active, .badge.featured { background: #e8f5e9; color: #16834b; }
.badge.inactive { background: #f5f5f5; color: #999; }
.badge.available { background: #e3f2fd; color: #1976d2; }
.badge.plan-free { background: #e8f5e9; color: #16834b; }
.badge.plan-premium { background: #fff8e1; color: #f57f17; }
.badge.plan-vip { background: #f3e5f5; color: #7b1fa2; }
.badge.commission-due { background: #fef2f2; color: #dc2626; }
.badge.commission-paid { background: #ecfdf5; color: #059669; }
.badge.commission-pending { background: #fff8e1; color: #f57f17; }
.badge.vip-new { background: #e3f2fd; color: #1976d2; }
.badge.vip-reviewing { background: #fff8e1; color: #f57f17; }
.badge.vip-designing { background: #fce4ec; color: #c2185b; }
.badge.vip-preview { background: #e8f5e9; color: #16834b; }
.badge.vip-revisions { background: #fff3e0; color: #e65100; }
.badge.vip-completed { background: #e8f5e9; color: #16834b; }
.badge.vip-published { background: #f3e5f5; color: #7b1fa2; }

.status-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.status-badge.status-pending { background: #fff8e1; color: #f57f17; }
.status-badge.status-awaiting_payment { background: #fff8e1; color: #f57f17; }
.status-badge.status-confirmed { background: #e8f5e9; color: #16834b; }
.status-badge.status-preparing { background: #e3f2fd; color: #1976d2; }
.status-badge.status-shipped { background: #f3e5f5; color: #7b1fa2; }
.status-badge.status-delivered { background: #ecfdf5; color: #059669; }
.status-badge.status-cancelled { background: #fef2f2; color: #dc2626; }
.status-badge.status-refunded { background: #f5f5f5; color: #999; }
.status-badge.payment-pending { background: #fff8e1; color: #f57f17; }
.status-badge.payment-paid { background: #e8f5e9; color: #16834b; }
.status-badge.payment-failed { background: #fef2f2; color: #dc2626; }
.status-badge.payment-refunded { background: #f5f5f5; color: #999; }
.status-badge.payment-partial { background: #fff3e0; color: #e65100; }

/* Low Stock */
.low-stock-list { display: flex; flex-direction: column; gap: 8px; }
.low-stock-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f8faf7; border-radius: 8px; }
.low-stock-item.out { background: #fef2f2; border-left: 4px solid #ef4444; }
.low-stock-name { font-weight: 500; }
.low-stock-qty { font-size: 0.85rem; font-weight: 600; }
.low-stock-item.out .low-stock-qty { color: #ef4444; }
.low-stock-item:not(.out) .low-stock-qty { color: #f59e0b; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.page-info { color: var(--muted); font-size: 0.875rem; }

/* Store Setup */
.setup-main { min-height: calc(100vh - 140px); padding: 40px clamp(18px, 6vw, 80px); }
.setup-container { max-width: 800px; margin: 0 auto; }
.setup-progress { margin-bottom: 32px; }
.progress-steps { display: flex; justify-content: space-between; position: relative; }
.progress-steps::before { content: ''; position: absolute; top: 20px; left: 10%; right: 10%; height: 2px; background: #e3ebe4; z-index: 0; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; flex: 1; }
.step-number { width: 40px; height: 40px; border-radius: 50%; background: #e3ebe4; color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; transition: all 0.3s; }
.step-label { font-size: 0.75rem; color: var(--muted); text-align: center; white-space: nowrap; }
.progress-step.active .step-number { background: var(--green); color: white; }
.progress-step.active .step-label { color: var(--green); font-weight: 600; }
.progress-step.completed .step-number { background: var(--green); color: white; }
.progress-step.completed .step-label { color: var(--ink); }

.setup-content { background: var(--white); border: 1px solid #e3ebe4; border-radius: 16px; padding: 32px; }
.setup-step { display: none; }
.setup-step.active { display: block; animation: fadeIn 0.3s ease; }
.step-header { text-align: center; margin-bottom: 32px; }
.step-header h1 { margin: 0 0 8px; font-size: 1.5rem; }
.step-header p { color: var(--muted); }
.setup-form { max-width: 600px; margin: 0 auto; }
.step-actions { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 24px; border-top: 1px solid #e3ebe4; }

/* Templates */
.templates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 24px; }
.template-card { background: var(--white); border: 2px solid #e3ebe4; border-radius: 14px; overflow: hidden; cursor: pointer; transition: all 0.2s; position: relative; }
.template-card:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(22,131,75,0.1); }
.template-card.selected { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.template-card.selected::after { content: '✓'; position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; background: var(--green); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 1; }
.template-preview { aspect-ratio: 3/2; background: #f8faf7; display: flex; align-items: center; justify-content: center; }
.template-svg { width: 80%; height: 80%; }
.template-info { padding: 16px; }
.template-info h3 { margin: 0 0 8px; font-size: 1rem; }
.template-category { display: inline-block; font-size: 0.7rem; background: var(--paper); color: var(--green); padding: 2px 8px; border-radius: 20px; font-weight: 600; margin-bottom: 8px; }
.template-desc { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* Setup Panels */
.setup-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid #e3ebe4; padding-bottom: 8px; }
.setup-tab { padding: 10px 16px; background: none; border: none; cursor: pointer; font-weight: 600; color: var(--muted); border-radius: 8px 8px 0 0; transition: all 0.2s; }
.setup-tab:hover { color: var(--ink); background: var(--paper); }
.setup-tab.active { color: var(--green); background: #e8f5e9; }
.setup-panel { display: none; }
.setup-panel.active { display: block; animation: fadeIn 0.3s ease; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full-width { grid-column: 1 / -1; }

/* Color Picker */
.color-picker-wrapper { display: flex; align-items: center; gap: 12px; }
.color-picker-wrapper input[type="color"] { width: 50px; height: 40px; border: none; border-radius: 8px; cursor: pointer; padding: 2px; }
.color-picker-wrapper input[type="text"] { flex: 1; text-transform: uppercase; }

/* Delivery Zones */
.delivery-zone-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.delivery-zone-row input { flex: 1; }
.btn-remove-zone { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e3ebe4; background: var(--white); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all 0.2s; }
.btn-remove-zone:hover { background: #fef2f2; color: #ef4444; border-color: #ef4444; }

/* Review Card */
.review-card { background: #f8faf7; border: 1px solid #e3ebe4; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.review-card h2 { margin: 0 0 16px; font-size: 1.1rem; }
.review-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.review-summary dt { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.review-summary dd { margin: 0; font-weight: 600; color: var(--ink); }
.color-preview { display: inline-block; width: 20px; height: 20px; border-radius: 4px; margin-right: 8px; vertical-align: middle; border: 1px solid #e3ebe4; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { margin: 0 0 8px; font-size: 1.25rem; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* Storefront */
.store-topbar { background: var(--green); color: white; position: sticky; top: 0; z-index: 100; }
.store-brand { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand-logo img { border-radius: 50%; }
.store-nav { display: flex; align-items: center; gap: 24px; }
.store-nav .nav-link { color: white; text-decoration: none; font-weight: 500; padding: 8px 0; position: relative; }
.store-nav .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: white; transition: width 0.3s; }
.store-nav .nav-link:hover::after { width: 100%; }
.cart-toggle { position: relative; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 8px; display: flex; align-items: center; gap: 6px; }
.cart-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; background: #ef4444; color: white; border-radius: 9px; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; transform: translate(50%, -50%); }
.store-hero { min-height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; background: linear-gradient(135deg, #e8f5e9 0%, #f8faf7 100%); position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0 0 16px; color: var(--ink); line-height: 1.1; }
.hero-subtitle { font-size: 1.25rem; color: var(--muted); margin: 0 0 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.store-section { padding: 60px 20px; }
.store-section .container { max-width: 1200px; margin: 0 auto; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section-header h2 { margin: 0; font-size: 1.75rem; }
.products-toolbar { display: flex; gap: 16px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border: 1px solid #e3ebe4; border-radius: 14px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(24,59,36,0.12); }
.product-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f0f0f0; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.featured-badge, .promo-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; z-index: 1; }
.featured-badge { background: #f59e0b; color: white; }
.promo-badge { background: #ef4444; color: white; }
.product-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 0.75rem; color: var(--green); font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.product-name { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.product-description { margin: 0 0 16px; font-size: 0.875rem; color: var(--muted); line-height: 1.5; flex: 1; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.current-price { font-size: 1.25rem; font-weight: 700; color: var(--deep); }
.old-price { font-size: 0.9rem; color: var(--muted); text-decoration: line-through; }
.product-stock { font-size: 0.8rem; font-weight: 500; margin-bottom: 16px; }
.product-stock.out { color: #ef4444; }
.product-stock.low { color: #f59e0b; }
.product-stock:not(.out):not(.low) { color: #10b981; }
.btn-add-cart { width: 100%; justify-content: center; }
.btn-add-cart:disabled { opacity: 0.6; cursor: not-allowed; }

/* Cart Sidebar */
.cart-sidebar { position: fixed; inset: 0; z-index: 1000; display: flex; }
.cart-overlay { flex: 1; background: rgba(0,0,0,0.3); }
.cart-panel { width: 100%; max-width: 420px; background: var(--white); height: 100%; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(0,0,0,0.15); animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #e3ebe4; }
.cart-header h2 { margin: 0; font-size: 1.25rem; }
.cart-close { width: 40px; height: 40px; border-radius: 50%; border: none; background: #f0f0f0; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-empty { text-align: center; padding: 40px 20px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8faf7; border-radius: 10px; }
.cart-item-img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { margin: 0 0 4px; font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 0.85rem; color: var(--muted); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-qty .btn-qty { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e3ebe4; background: var(--white); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.cart-item-qty span { min-width: 24px; text-align: center; font-weight: 600; }
.cart-item-total { font-weight: 700; color: var(--deep); min-width: 80px; text-align: right; }
.cart-item-remove { width: 32px; height: 32px; border-radius: 50%; border: none; background: #fef2f2; color: #ef4444; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cart-footer { padding: 20px; border-top: 1px solid #e3ebe4; background: #f8faf7; border-radius: 0 0 14px 14px; }
.cart-summary { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { font-size: 1.1rem; font-weight: 700; color: var(--ink); border-top: 1px solid #e3ebe4; padding-top: 12px; margin-top: 8px; }
.cart-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 12px 0 0; }
.cart-sidebar.hidden { display: none; }

/* Product Modal */
.product-modal { display: flex; gap: 24px; }
.product-gallery { flex: 0 0 300px; }
.main-image { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: #f0f0f0; margin-bottom: 12px; }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumbnails { display: flex; gap: 8px; }
.thumbnails img { flex: 1; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.6; border: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s; }
.thumbnails img.active, .thumbnails img:hover { opacity: 1; border-color: var(--green); }
.product-details { flex: 1; min-width: 0; }
.product-rating { margin: 8px 0; color: #f59e0b; }
.rating-note { color: var(--muted); font-size: 0.85rem; margin-left: 8px; }
.product-price-modal { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.product-description-full { color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.product-stock-modal { padding: 12px; border-radius: 8px; font-weight: 500; margin-bottom: 20px; }
.product-stock-modal.out { background: #fef2f2; color: #ef4444; }
.product-stock-modal.low { background: #fff8e1; color: #f59e0b; }
.product-stock-modal:not(.out):not(.low) { background: #ecfdf5; color: #059669; }
.quantity-selector { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.btn-qty { width: 40px; height: 40px; border-radius: 8px; border: 1px solid #e3ebe4; background: var(--white); cursor: pointer; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; }
.qty-controls input { width: 60px; text-align: center; border: 1px solid #e3ebe4; border-radius: 8px; padding: 10px; font-size: 1.1rem; font-weight: 600; }
.btn-add-cart-modal { width: 100%; padding: 16px; font-size: 1rem; }

/* Checkout Modal */
.checkout-form { max-width: 100%; }
.checkout-steps { display: flex; justify-content: space-between; margin-bottom: 32px; position: relative; }
.checkout-steps::before { content: ''; position: absolute; top: 16px; left: 10%; right: 10%; height: 2px; background: #e3ebe4; z-index: 0; }
.step-indicator { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; flex: 1; max-width: 120px; }
.step-indicator span { width: 32px; height: 32px; border-radius: 50%; background: #e3ebe4; color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; transition: all 0.3s; }
.step-indicator.completed span { background: var(--green); color: white; }
.step-indicator.active span { background: var(--green); color: white; box-shadow: 0 0 0 4px rgba(22,131,75,0.2); }
.step-indicator small { font-size: 0.7rem; color: var(--muted); text-align: center; white-space: nowrap; }
.step-indicator.active small { color: var(--green); font-weight: 600; }
.checkout-step { animation: fadeIn 0.3s ease; }
.checkout-step fieldset { border: none; padding: 0; margin: 0; }
.checkout-step legend { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #e3ebe4; }
.step-actions { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e3ebe4; }
.pickup-info { padding: 16px; background: #e8f5e9; border-radius: 8px; color: var(--deep); }

/* Payment Options */
.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.payment-option { display: flex; align-items: center; gap: 16px; padding: 16px; border: 2px solid #e3ebe4; border-radius: 12px; cursor: pointer; transition: all 0.2s; position: relative; }
.payment-option:hover { border-color: var(--green); }
.payment-option.selected { border-color: var(--green); background: #e8f5e9; }
.payment-option input[type="radio"] { position: absolute; opacity: 0; }
.payment-option-content { flex: 1; }
.payment-provider { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.payment-number { font-family: monospace; color: var(--ink); }
.payment-holder { font-size: 0.85rem; color: var(--muted); }
.payment-ussd { margin-top: 4px; font-size: 0.8rem; }
.payment-ussd code { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-family: monospace; }
.payment-radio { width: 24px; height: 24px; border: 2px solid #ccc; border-radius: 50%; position: relative; flex-shrink: 0; }
.payment-option.selected .payment-radio::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; background: var(--green); border-radius: 50%; }

/* Order Summary */
.order-summary { background: #f8faf7; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.summary-items { margin-bottom: 16px; }
.summary-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e3ebe4; }
.summary-item:last-child { border-bottom: none; }
.summary-totals { border-top: 1px solid #e3ebe4; padding-top: 16px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-row.total { font-size: 1.1rem; font-weight: 700; color: var(--ink); border-top: 1px solid #e3ebe4; padding-top: 12px; margin-top: 8px; }
.summary-customer, .summary-delivery, .summary-payment { padding: 16px; background: var(--white); border-radius: 8px; margin-bottom: 16px; }
.summary-customer h4, .summary-delivery h4, .summary-payment h4 { margin: 0 0 8px; font-size: 0.9rem; font-weight: 600; }
.summary-customer p, .summary-delivery p, .summary-payment p { margin: 0; color: var(--ink); white-space: pre-line; }

/* Success Modal */
.success-content { text-align: center; padding: 20px 0; }
.order-details { background: #f8faf7; border-radius: 12px; padding: 20px; margin: 20px 0; text-align: left; }
.order-details p { margin: 8px 0; }
.payment-instructions { background: #fff8e1; border: 1px solid #ffe082; border-radius: 12px; padding: 20px; margin: 20px 0; text-align: left; }
.payment-instructions code { background: var(--white); padding: 2px 8px; border-radius: 4px; font-family: monospace; }
.important-note { color: var(--deep); font-weight: 500; margin-top: 20px !important; }

/* Track Page */
.track-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 16px; padding: 32px; text-align: center; }
.track-error h2 { margin: 0 0 12px; color: #dc2626; }
.track-error p { color: var(--muted); margin-bottom: 20px; }
.order-details { background: var(--white); border: 1px solid #e3ebe4; border-radius: 16px; overflow: hidden; }
.order-header { padding: 24px; border-bottom: 1px solid #e3ebe4; }
.order-main-info { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; gap: 16px; }
.order-main-info h2 { margin: 0; font-size: 1.5rem; }
.order-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.meta-value { font-weight: 600; color: var(--ink); }
.timeline-section, .order-items-section, .delivery-section, .payment-section { padding: 24px; border-bottom: 1px solid #e3ebe4; }
.timeline-section:last-child, .payment-section { border-bottom: none; }
.timeline-section h2, .order-items-section h2, .delivery-section h2, .payment-section h2 { margin: 0 0 20px; font-size: 1.1rem; }
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: #e3ebe4; }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { position: absolute; left: -24px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #e3ebe4; border: 3px solid var(--white); box-shadow: 0 0 0 1px #e3ebe4; }
.timeline-item.completed .timeline-marker { background: var(--green); }
.timeline-item.current .timeline-marker { background: var(--green); box-shadow: 0 0 0 3px rgba(22,131,75,0.2); }
.timeline-content { padding-left: 16px; }
.timeline-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.timeline-icon { font-size: 1.1rem; }
.timeline-label { font-weight: 600; color: var(--ink); }
.timeline-current { background: var(--green); color: white; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.timeline-date { font-size: 0.85rem; color: var(--muted); }
.delivery-method, .payment-method-display { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #f8faf7; border-radius: 10px; margin-bottom: 12px; }
.method-icon, .payment-icon { font-size: 1.5rem; }
.delivery-method strong, .payment-method-display strong { display: block; margin-bottom: 4px; color: var(--ink); }
.delivery-contact { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #e3f2fd; border-radius: 10px; color: #1976d2; text-decoration: none; font-weight: 500; }
.payment-status-display { margin-top: 12px; }
.payment-ref { font-size: 0.9rem; color: var(--muted); }
.payment-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px !important; }
.track-actions { display: flex; gap: 12px; justify-content: center; padding: 24px; flex-wrap: wrap; }

/* Error Page */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--paper); }
.error-content { text-align: center; max-width: 400px; }
.error-icon { font-size: 4rem; margin-bottom: 16px; }
.error-content h1 { margin: 0 0 12px; font-size: 2rem; }
.error-content p { color: var(--muted); margin-bottom: 24px; }

/* Commissions Summary */
.commissions-summary, .commissions-summary-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; }
.summary-card { background: var(--white); border: 1px solid #e3ebe4; border-radius: 14px; padding: 24px; text-align: center; }
.summary-card.total-due { border-left: 4px solid #ef4444; }
.summary-card.total-paid { border-left: 4px solid #10b981; }
.summary-card.pending-count { border-left: 4px solid #f59e0b; }
.summary-label { display: block; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.summary-value { font-size: 1.75rem; font-weight: 700; color: var(--ink); }

/* VIP Requests */
.vip-requests-list { display: flex; flex-direction: column; gap: 16px; }
.vip-request-card { background: var(--white); border: 1px solid #e3ebe4; border-radius: 14px; overflow: hidden; }
.vip-request-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid #e3ebe4; background: #f8faf7; gap: 16px; }
.vip-request-header h3 { margin: 0 0 4px; font-size: 1.1rem; }
.vip-meta { margin: 0; font-size: 0.85rem; color: var(--muted); }
.vip-request-body { padding: 20px 24px; }
.vip-field { margin-bottom: 12px; font-size: 0.9rem; }
.vip-field strong { display: block; margin-bottom: 4px; color: var(--ink); }
.vip-request-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 24px; border-top: 1px solid #e3ebe4; background: #f8faf7; align-items: center; }
.vip-request-actions .vip-status-select { flex: 1; min-width: 200px; }
.vip-request-actions .vip-preview-url, .vip-request-actions .vip-published-url { flex: 1; min-width: 200px; }
.vip-request-actions .vip-admin-notes { width: 100%; min-height: 80px; }

/* Plans Admin */
.plans-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 24px; }
.plan-admin-card { background: var(--white); border: 1px solid #e3ebe4; border-radius: 14px; overflow: hidden; }
.plan-admin-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e3ebe4; background: #f8faf7; }
.plan-admin-header h3 { margin: 0; font-size: 1.1rem; }
.plan-admin-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px 24px; border-bottom: 1px solid #e3ebe4; }
.plan-admin-fields .field { display: flex; flex-direction: column; gap: 4px; }
.plan-admin-fields label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.plan-admin-fields span { font-weight: 600; color: var(--ink); }
.plan-admin-limits, .plan-admin-features { padding: 20px 24px; border-bottom: 1px solid #e3ebe4; }
.plan-admin-limits h4, .plan-admin-features h4 { margin: 0 0 12px; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.plan-admin-limits pre { margin: 0; font-size: 0.75rem; background: #f8faf7; padding: 12px; border-radius: 8px; overflow-x: auto; }
.plan-admin-features ul { margin: 0; padding-left: 20px; font-size: 0.85rem; color: var(--muted); }
.plan-admin-features li { margin-bottom: 4px; }
.plan-admin-actions { padding: 16px 24px; display: flex; gap: 12px; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px; }
.settings-card { background: var(--white); border: 1px solid #e3ebe4; border-radius: 14px; padding: 24px; }
.settings-card h2 { margin: 0 0 20px; font-size: 1.1rem; padding-bottom: 12px; border-bottom: 1px solid #e3ebe4; }
.operator-item, .country-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f8faf7; border-radius: 8px; margin-bottom: 8px; font-size: 0.9rem; }
.operator-country { font-weight: 600; min-width: 80px; }
.operator-provider { color: var(--ink); }
.operator-ussd { font-family: monospace; font-size: 0.8rem; color: var(--muted); }
.country-flag { font-size: 1.2rem; }
.country-name { flex: 1; font-weight: 500; }
.country-code { color: var(--muted); font-family: monospace; }
.business-types-list { display: flex; flex-wrap: wrap; gap: 8px; }
.business-types-list .tag { background: var(--white); border: 1px solid #e3ebe4; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; color: var(--ink); }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
.modal-content { position: relative; background: var(--white); border-radius: 16px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 48px rgba(0,0,0,0.2); animation: modalIn 0.2s ease; }
.modal-large { max-width: 800px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e3ebe4; }
.modal-header h2 { margin: 0; font-size: 1.25rem; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: none; background: #f0f0f0; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.modal-close:hover { background: #e0e0e0; }
.modal-body { padding: 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e3ebe4; }

/* Search Results */
.search-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border: 1px solid #e3ebe4; border-radius: 8px; margin-top: 4px; max-height: 300px; overflow-y: auto; z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid #eef3f0; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f8faf7; }
.search-result-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-store { font-size: 0.8rem; color: var(--muted); }

/* Chart Legend */
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e3ebe4; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.legend-color { width: 12px; height: 12px; border-radius: 3px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.page-info { color: var(--muted); font-size: 0.875rem; }

/* Responsive */
@media (max-width: 1024px) {
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.collapsed { transform: translateX(0); width: 260px; box-shadow: 4px 0 24px rgba(0,0,0,0.15); }
  .dash-main { padding: 20px; }
  .dashboard-charts { grid-template-columns: 1fr; }
  .admin-main { padding: 20px; }
}

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-input, .filter-select { width: 100%; }
  .checkout-steps::before { display: none; }
  .checkout-steps { flex-direction: column; gap: 16px; }
  .step-indicator { flex-direction: row; justify-content: flex-start; max-width: none; }
  .step-indicator small { display: none; }
  .product-modal { flex-direction: column; }
  .product-gallery { flex: none; }
  .order-meta { grid-template-columns: 1fr; }
  .vip-request-actions { flex-direction: column; align-items: stretch; }
  .vip-request-actions .vip-status-select, .vip-request-actions .vip-preview-url, .vip-request-actions .vip-published-url { width: 100%; }
  .plans-admin-grid { grid-template-columns: 1fr; }
  .plan-admin-fields { grid-template-columns: 1fr; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .admin-main { padding: 16px; }
  .tab-header { flex-direction: column; align-items: flex-start; }
  .stat-card { padding: 16px; }
  .stat-icon { font-size: 2rem; }
  .stat-value { font-size: 1.5rem; }
  .review-summary { grid-template-columns: 1fr; }
  .slid-content { grid-template-columns: 1fr; text-align: center; }
  .slide-visual { order: -1; }
  .hero-title { font-size: 2rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; }
  .plan-card { padding: 24px; }
  .plan-actions { flex-direction: column; }
  .plan-card .btn { width: 100%; }
}