
:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0f766e;
  --danger: #dc2626;
  --success: #16a34a;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.12), transparent 30%),
    radial-gradient(circle at top right, rgba(15,118,110,.10), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #fff;
  padding: 28px 22px;
  position: sticky;
  top: 0;
  min-height: 100vh;
  box-shadow: 16px 0 40px rgba(15,23,42,.08);
}
.brand { display:flex; align-items:center; gap:14px; margin-bottom:24px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color:#fff; font-weight:800; letter-spacing:.04em;
  box-shadow: 0 10px 25px rgba(37,99,235,.35);
}
.brand h2 { margin:0; font-size: 18px; }
.brand p { margin: 4px 0 0; color: #94a3b8; font-size: 13px; }
.sidebar nav { display: grid; gap: 8px; margin-top: 20px; }
.sidebar nav a {
  color: #e2e8f0; padding: 12px 14px; border-radius: 12px;
  transition: .2s ease; border: 1px solid transparent; font-weight: 500;
}
.sidebar nav a:hover {
  background: rgba(255,255,255,.06); border-color: rgba(148,163,184,.18);
  transform: translateX(2px);
}
.main { flex: 1; padding: 28px; }
.topbar {
  background: rgba(255,255,255,.78); backdrop-filter: blur(14px);
  border: 1px solid rgba(226,232,240,.9); box-shadow: var(--shadow);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 22px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.topbar strong { display:block; font-size: 20px; margin-top: 2px; }
.topbar-user { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.public-main { max-width: 1180px; margin: 0 auto; padding: 32px 20px 48px; }
.card {
  background: var(--surface-strong);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.glass {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(14px);
}
.page-hero { margin-bottom: 18px; }
.page-hero h1, .hero h1, .auth-card h1, .public-header h1 { margin: 8px 0 10px; font-size: 32px; line-height: 1.1; }
.eyebrow {
  display:inline-flex; align-items:center; gap:8px; font-size:12px; letter-spacing:.12em;
  text-transform: uppercase; color: var(--primary); font-weight: 700;
}
.eyebrow-light { color: rgba(255,255,255,.88); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { font-size: 34px; font-weight: 800; margin: 10px 0 6px; }
.badge {
  display:inline-flex; align-items:center; gap:8px; padding: 7px 12px; border-radius:999px;
  background: #e0e7ff; color: #3730a3; font-size: 12px; font-weight: 700;
}
.badge-soft { background: #eff6ff; color: var(--primary); }
.badge-light { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.small { font-size: 13px; color: var(--muted); }
.flash {
  border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; font-weight: 600; border: 1px solid transparent;
}
.flash-success { background: #ecfdf5; border-color: #a7f3d0; color: #166534; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.field, label { display:block; margin-bottom: 14px; }
.field span, label > span { display:block; margin-bottom: 8px; font-size: 13px; color: #334155; font-weight: 700; }
input, select, textarea {
  width:100%; padding: 13px 14px; border-radius: 14px; border: 1px solid #cbd5e1;
  background: #fff; color: var(--text); font: inherit; outline: none; transition: .2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
textarea { min-height: 110px; resize: vertical; }
button, .btn {
  display:inline-flex; align-items:center; justify-content:center; gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff; border: 0; border-radius: 14px; padding: 13px 18px;
  font-weight: 700; cursor:pointer; box-shadow: 0 10px 24px rgba(37,99,235,.24);
  transition: transform .16s ease, box-shadow .16s ease;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 16px 28px rgba(37,99,235,.28); }
.btn-secondary {
  background: #fff; color: var(--text); border: 1px solid #cbd5e1; box-shadow: none;
}
.btn-light {
  background: #fff; color: #0f172a; box-shadow: none;
}
.inline-form { display:flex; gap:10px; align-items:center; }
.table { width:100%; border-collapse: collapse; margin-top: 12px; overflow: hidden; }
.table thead th {
  text-align:left; font-size:12px; letter-spacing:.08em; text-transform: uppercase;
  color:#64748b; padding: 12px 10px; border-bottom: 1px solid var(--border);
}
.table tbody td { padding: 14px 10px; border-bottom: 1px solid #edf2f7; vertical-align: top; }
.table tbody tr:hover { background: #f8fafc; }
.row { display:flex; gap: 12px; flex-wrap:wrap; }
.row > * { flex:1 1 180px; min-width: 180px; }
.center-box { max-width: 760px; margin: 36px auto; }
.hero, .auth-shell {
  display:grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 22px; align-items: stretch;
}
.hero-home { min-height: 68vh; align-items: center; }
.hero-copy, .auth-card { padding: 30px; }
.hero-copy p { font-size: 17px; color: #334155; max-width: 60ch; }
.hero-actions { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.feature-list { margin: 16px 0 0; padding-left: 18px; }
.feature-list li { margin-bottom: 10px; color: #334155; }
.auth-aside, .hero-card { display:flex; }
.auth-aside .card, .hero-card { width:100%; }
.public-header {
  display:flex; justify-content:space-between; gap: 18px; align-items:flex-end; flex-wrap: wrap;
  background: linear-gradient(135deg, #0f766e 0%, #0f172a 100%); color:#fff; padding: 28px;
  border-radius: 24px; margin-bottom: 22px; box-shadow: 0 18px 35px rgba(15,118,110,.18);
}
.public-cta { display:flex; gap: 12px; align-items:center; flex-wrap: wrap; }
.product-list { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:18px; }
.product-card {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(226,232,240,.92); border-radius: 18px; padding: 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}
.product-card h3 { margin: 12px 0 8px; }
.price { font-size: 22px; font-weight: 800; margin: 10px 0 14px; color: #0f172a; }
.tracking-card { border-top: 6px solid var(--primary); }
code { background: #eef2ff; padding: 2px 8px; border-radius: 8px; }
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .auth-shell { grid-template-columns: 1fr; }
  .sidebar { width: 100%; min-height: auto; position: relative; }
  .shell { flex-direction: column; }
}
@media (max-width: 720px) {
  .main { padding: 18px; }
  .public-main { padding: 20px 14px 34px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .public-header { padding: 22px; }
  .page-hero h1, .hero h1, .auth-card h1, .public-header h1 { font-size: 28px; }
  .inline-form { flex-direction: column; align-items: stretch; }
}
