/* ============================================
   TimorJastip - Static Site Styles
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #14b8a6;
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --red: #ef4444;
  --red-light: #fef2f2;
  --amber: #f59e0b;
  --amber-light: #fffbeb;
  --green: #22c55e;
  --green-light: #f0fdf4;
  --blue: #3b82f6;
  --blue-light: #eff6ff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-800);
  background: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page {
  min-height: 100vh;
  padding-bottom: 3rem;
}

.section {
  padding: 4rem 0;
}

/* ---- Header ---- */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-teal { color: var(--teal); }
.logo-dark { color: var(--slate-900); }
.logo-white { color: white; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--slate-600);
  transition: all 0.2s;
}

.nav a:hover {
  color: var(--slate-900);
  background: var(--slate-100);
}

.nav a.btn-primary {
  color: white;
  margin-left: 0.5rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--slate-700);
  padding: 0.5rem;
}

/* ---- Buttons ---- */
.btn-primary, .btn-outline, .btn-ghost, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--teal);
  color: white;
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: white;
}

.btn-outline {
  background: white;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}

.btn-outline:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
  color: var(--slate-900);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-600);
}

.btn-ghost:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.btn-danger {
  background: var(--red);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  color: white;
}

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 0.5rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 50%, var(--teal-dark) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 50%, var(--teal-light) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, var(--teal) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.text-teal { color: var(--teal-light); }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--slate-400);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Section Title ---- */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--slate-900);
}

/* ---- Features ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--slate-900);
}

.feature-card p {
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---- How It Works (Home) ---- */
.how-it-works {
  background: white;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  flex: 1;
  min-width: 140px;
  max-width: 180px;
  text-align: center;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 0.75rem;
}

.step h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--slate-900);
}

.step p {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--slate-300);
  margin-top: 0.5rem;
  font-weight: 300;
}

/* ---- CTA ---- */
.cta {
  background: var(--teal-50);
  text-align: center;
}

.cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--slate-900);
}

.cta p {
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
  color: white;
  padding: 3rem 0 2.5rem;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--slate-400);
}

/* ---- Card ---- */
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--slate-900);
}

/* ---- Form Elements ---- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--slate-700);
}

.form-control, input[type="text"], input[type="number"], input[type="email"], select, textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--slate-800);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-control::placeholder {
  color: var(--slate-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* ---- Calculator ---- */
.calculator-card {
  max-width: 600px;
  margin: 0 auto;
}

.calc-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.currency-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rate-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  font-weight: 500;
}

.toggle-btn {
  padding: 0.375rem 1rem;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-btn:hover {
  background: var(--teal-dark);
}

.converted {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.rate-tiers {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.tier-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: var(--slate-700);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tier {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
}

.tier strong {
  display: block;
  font-size: 1.125rem;
  color: var(--teal);
  font-weight: 700;
}

.tier span {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.info-box {
  background: var(--blue-light);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #1e40af;
  margin-bottom: 1.25rem;
}

.result-box {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.result-header h3 {
  margin: 0;
}

.result-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  padding: 0.375rem 0;
  border-bottom: 1px dashed var(--teal-100);
}

.result-row.total {
  border-bottom: none;
  border-top: 2px solid var(--teal);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.result-total {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  text-align: center;
  padding: 1rem 0;
}

.result-note {
  font-size: 0.75rem;
  color: var(--slate-500);
  text-align: center;
  margin-bottom: 1rem;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- How It Works Detail ---- */
.hiw-detail {
  max-width: 800px;
  margin: 0 auto;
}

.hiw-step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.hiw-step:last-child {
  border-bottom: none;
}

.hiw-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  min-width: 60px;
  text-align: center;
}

.hiw-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--slate-900);
}

.hiw-content p {
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.link {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---- Order Form ---- */
.wizard-step h3 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.wizard-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

.product-item {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.product-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.product-item-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-700);
}

.product-item .remove-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.product-item .remove-btn:hover {
  background: var(--red-light);
}

.upload-area {
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  margin-top: 0.5rem;
}

.upload-area:hover {
  border-color: var(--teal);
  background: var(--teal-50);
}

.upload-area.has-image {
  border-style: solid;
  border-color: var(--teal);
  padding: 0.5rem;
}

.upload-preview {
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--radius);
  object-fit: cover;
}

.upload-hint {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  transition: all 0.2s;
  font-weight: 500;
  color: var(--slate-700);
}

.radio-label:hover {
  border-color: var(--teal);
  background: var(--teal-50);
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
}

.delivery-form {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

/* ---- Success Box ---- */
.success-box {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.success-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.order-confirm {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: left;
}

.order-confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--slate-200);
}

.order-confirm-row:last-child {
  border-bottom: none;
}

/* ---- Track Order ---- */
.track-card {
  max-width: 600px;
  margin: 0 auto;
}

.or-divider {
  text-align: center;
  color: var(--slate-400);
  font-size: 0.875rem;
  margin: 0.75rem 0;
  font-weight: 500;
}

.order-info {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0 1rem;
}

.order-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
}

.order-info-label {
  color: var(--slate-500);
  font-weight: 500;
}

.order-info-value {
  color: var(--slate-800);
  font-weight: 600;
}

/* ---- Timeline ---- */
.timeline {
  margin: 1.5rem 0;
}

.timeline-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--slate-800);
}

.timeline-step {
  display: flex;
  gap: 1rem;
  padding: 0.875rem 0;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--slate-200);
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  z-index: 1;
  font-weight: 600;
}

.timeline-dot.done {
  background: var(--green);
  color: white;
}

.timeline-dot.active {
  background: var(--teal);
  color: white;
  box-shadow: 0 0 0 4px rgba(13,148,136,0.2);
}

.timeline-dot.pending {
  background: var(--slate-200);
  color: var(--slate-400);
}

.timeline-content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.15rem;
}

.timeline-content p {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.order-products {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}

.order-products h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.track-product-item {
  display: flex;
  gap: 0.875rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--slate-100);
}

.track-product-item:last-child {
  border-bottom: none;
}

.track-product-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
}

.track-product-info {
  flex: 1;
}

.track-product-info p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-800);
  margin-bottom: 0.15rem;
}

.track-product-info small {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.not-found {
  text-align: center;
  padding: 2rem;
  color: var(--slate-500);
}

/* ---- Account ---- */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.625rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--slate-500);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--slate-700);
}

.tab-btn.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.tab-content {
  animation: fadeIn 0.3s ease;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate-500);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* ---- Order List (Account) ---- */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.order-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.order-card:hover {
  box-shadow: var(--shadow-md);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.order-card-header h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate-900);
}

.order-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.order-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.order-card-label {
  color: var(--slate-500);
}

.order-card-value {
  font-weight: 600;
  color: var(--slate-800);
}

/* ---- Status Badges ---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-submitted { background: var(--blue-light); color: var(--blue); }
.status-awaiting_confirmation { background: var(--amber-light); color: #b45309; }
.status-awaiting_payment { background: #fef3c7; color: #92400e; }
.status-paid { background: #dbeafe; color: #1d4ed8; }
.status-purchased { background: #e0e7ff; color: #4338ca; }
.status-shipped { background: #cffafe; color: #0e7490; }
.status-warehouse_received { background: #d1fae5; color: #047857; }
.status-packed { background: #ede9fe; color: #6d28d9; }
.status-ready_for_pickup { background: var(--green-light); color: #15803d; }
.status-out_for_delivery { background: #ecfdf5; color: #166534; }
.status-delivered { background: #f0fdf4; color: #15803d; }
.status-completed { background: var(--green-light); color: #15803d; }
.status-cancelled { background: var(--red-light); color: #b91c1c; }
.status-refunded { background: #fef2f2; color: #991b1b; }
.status-rejected { background: var(--red-light); color: #991b1b; }

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

.admin-sidebar {
  width: 260px;
  background: var(--slate-900);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  padding: 1.5rem 0;
}

.admin-logo {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  padding: 0 0.75rem;
  flex: 1;
  gap: 0.25rem;
}

.admin-nav a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-nav-bottom {
  padding: 1rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

.admin-nav-bottom a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

.admin-nav-bottom a:hover {
  color: white;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 1.5rem 2rem;
  background: var(--slate-50);
  min-height: 100vh;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-200);
}

.admin-topbar h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-900);
}

/* ---- Stat Grid ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border-left: 4px solid;
}

.stat-card .stat-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
}

.stat-card.blue { border-left-color: var(--blue); }
.stat-card.teal { border-left-color: var(--teal); }
.stat-card.amber { border-left-color: var(--amber); }
.stat-card.green { border-left-color: var(--green); }

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 0.625rem 0.875rem;
  font-weight: 600;
  color: var(--slate-500);
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: var(--slate-50);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-bar .form-control {
  width: auto;
  min-width: 200px;
}

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

@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: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.modal-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate-400);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--slate-100);
  color: var(--slate-700);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* ---- Modal Detail Sections ---- */
.modal-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-100);
}

.modal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.modal-section h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-section h4 .section-actions {
  display: flex;
  gap: 0.5rem;
}

.modal-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.875rem;
}

.modal-detail-row .label {
  color: var(--slate-500);
}

.modal-detail-row .value {
  font-weight: 500;
  color: var(--slate-800);
}

/* ---- Quote Section ---- */
.quote-box {
  background: var(--amber-light);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.9375rem;
}

.quote-row.total {
  border-top: 2px solid #fbbf24;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.quote-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.deposit-request {
  background: var(--blue-light);
  border: 1px solid #93c5fd;
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}

.deposit-request label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: #1e3a5f;
}

.deposit-request input[type="range"] {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* ---- Payment Section ---- */
.payment-method {
  background: var(--green-light);
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.payment-method h5 {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.payment-method p {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 0.25rem;
}

/* ---- Admin Order Detail Tabs ---- */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1rem;
}

.detail-tab-btn {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-500);
  cursor: pointer;
  font-family: inherit;
  margin-bottom: -1px;
}

.detail-tab-btn.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.detail-tab-content {
  display: none;
  animation: fadeIn 0.2s ease;
}

.detail-tab-content.active {
  display: block;
}

/* ---- Status Actions ---- */
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer a {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: 0.25rem 0;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: white;
}

.footer p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* ---- Utilities ---- */
.text-muted {
  color: var(--slate-500);
}

.hidden {
  display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--slate-200);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.25rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 0.625rem;
  }

  .nav a.btn-primary {
    margin-left: 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0.25rem 0;
  }

  .section {
    padding: 2.5rem 0;
  }

  .wizard-actions {
    flex-direction: column;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    position: relative;
    padding: 1rem;
    min-height: auto;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
  }

  .admin-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .admin-nav-bottom {
    display: none;
  }

  .admin-main {
    margin-left: 0;
    padding: 1rem;
  }

  .admin-topbar {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-bar .form-control {
    width: 100%;
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-height: 90vh;
    margin: 0.5rem;
  }

  .result-actions {
    flex-direction: column;
  }

  .hiw-step {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .quote-actions {
    flex-direction: column;
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--slate-400);
}
