:root {
  --ink: #0a0e14;
  --ink-2: #131a24;
  --line: #232c3a;
  --text: #e8ecf1;
  --muted: #9aa7b8;
  --accent: #d4a441;
  --accent-2: #4ab0d4;
  --success: #3fbf7f;
  --error: #e0616b;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2 { line-height: 1.2; margin: 0 0 .5em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ink-2); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav-user { color: var(--muted); font-size: .9rem; }
.btn-nav {
  background: var(--accent); color: var(--ink); padding: 8px 16px; border-radius: var(--radius);
}
.btn-nav:hover { text-decoration: none; opacity: .9; }

/* Flash */
.flash { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); font-size: .95rem; }
.flash-success { background: rgba(63,191,127,.15); color: var(--success); border: 1px solid rgba(63,191,127,.35); }
.flash-error   { background: rgba(224,97,107,.15); color: var(--error); border: 1px solid rgba(224,97,107,.35); }

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  padding: 110px 0 90px;
}
.hero-inner { max-width: 640px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 600; margin: 0 0 12px; }
.hero h1 { font-size: 2.6rem; margin-bottom: .4em; }
.lede { color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 24px; }

.btn {
  display: inline-block; padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink-2); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 8px; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding: 60px 20px; }
.feature-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.feature-card h2, .feature-card p { padding: 0 20px; }
.feature-card h2 { margin-top: 18px; font-size: 1.2rem; }
.feature-card p { color: var(--muted); padding-bottom: 20px; }

/* Auth */
.auth-page { display: flex; justify-content: center; padding: 70px 20px; }
.auth-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; width: 100%; max-width: 420px; }
.auth-card form { display: flex; flex-direction: column; }
.auth-card label { font-size: .85rem; color: var(--muted); margin: 14px 0 6px; }
.auth-card input {
  background: var(--ink); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; border-radius: 8px; font-size: 1rem;
}
.auth-card input:focus { outline: none; border-color: var(--accent-2); }
.auth-switch { margin-top: 18px; text-align: center; color: var(--muted); font-size: .9rem; }

/* Dashboard */
.dashboard { padding: 50px 20px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 24px; }
.dashboard-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.dashboard-card h2 { font-size: 1.05rem; }
.dashboard-card p { color: var(--muted); margin: 0; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: none; }
.table-actions { display: flex; gap: 12px; align-items: center; }
.muted { color: var(--muted); }

.link-btn {
  background: none; border: none; color: var(--accent-2); cursor: pointer; padding: 0; font-size: .95rem;
}
.link-btn:hover { text-decoration: underline; }

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.note-input { background: var(--ink); border: 1px solid var(--line); color: var(--text); padding: 6px 8px; border-radius: 6px; width: 160px; }
.inline-form select { background: var(--ink); border: 1px solid var(--line); color: var(--text); padding: 6px 8px; border-radius: 6px; }

.status-badge { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--ink); border: 1px solid var(--line); }
.status-confirmed, .status-ready, .status-picked_up, .status-completed, .status-delivered { color: var(--success); border-color: rgba(63,191,127,.35); }
.status-awaiting_payment, .status-in_transit { color: var(--accent); border-color: rgba(212,164,65,.35); }
.status-cancelled, .status-failed { color: var(--error); border-color: rgba(224,97,107,.35); }

.order-form select, .order-form input[type="text"], .order-form input[type="number"] {
  background: var(--ink); border: 1px solid var(--line); color: var(--text); padding: 8px 10px; border-radius: 8px;
}
.order-form label { display: block; margin: 16px 0 6px; color: var(--muted); font-size: .85rem; }
.qty-input { width: 80px; }

.price-estimate { margin-top: 20px; padding: 14px 16px; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; font-size: 1.1rem; }
.price-estimate strong { color: var(--accent); }

.tracking-timeline { list-style: none; margin: 20px 0 0; padding: 0; border-left: 2px solid var(--line); }
.tracking-timeline li { padding: 0 0 20px 20px; position: relative; }
.tracking-timeline li::before {
  content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--ink);
}
.tracking-timeline time { color: var(--muted); font-size: .8rem; display: block; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; margin-top: 40px; }
.site-footer p { color: var(--muted); font-size: .85rem; margin: 0; }
