:root {
  --ink: #071422;
  --ink-soft: #1a2b3c;
  --teal: #0d9488;
  --teal-deep: #0f766e;
  --teal-glow: #14b8a6;
  --coral: #ff6b4a;
  --coral-deep: #e85a3a;
  --mist: #e8eef4;
  --mist-2: #f3f7fa;
  --paper: #ffffff;
  --line: rgba(7, 20, 34, 0.08);
  --muted: #5b6b7c;
  --success: #059669;
  --danger: #dc2626;
  --warn: #d97706;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(7, 20, 34, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --nav-w: 260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
p { margin: 0 0 1em; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; border-radius: 999px; padding: 0.85rem 1.4rem;
  font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #0e2438; }
.btn-accent { background: var(--teal); color: #fff; }
.btn-accent:hover { background: var(--teal-deep); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(7,20,34,0.04); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 650; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 0.85rem 1rem; outline: none; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13,148,136,0.12);
}
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.checkbox { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.checkbox input { margin-top: 0.2rem; width: auto; }

.alert {
  border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 1rem; font-weight: 600; font-size: 0.95rem;
  animation: fadeUp .4s ease both;
}
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-error { background: #fef2f2; color: #991b1b; }
.alert-info { background: #eff6ff; color: #1e40af; }

.badge {
  display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
}
.badge-teal { background: rgba(13,148,136,.12); color: var(--teal-deep); }
.badge-coral { background: rgba(255,107,74,.14); color: var(--coral-deep); }
.badge-ink { background: rgba(7,20,34,.08); color: var(--ink); }
.badge-warn { background: #fff7ed; color: #9a3412; }
.badge-ok { background: #ecfdf5; color: #065f46; }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
}
table.data th, table.data td {
  text-align: left; padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle;
}
table.data th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
table.data tr:hover td { background: rgba(13,148,136,0.03); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulseSoft {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.05); }
}
.reveal { animation: fadeUp .6s ease both; }
.reveal-delay-1 { animation-delay: .1s; }
.reveal-delay-2 { animation-delay: .2s; }
.reveal-delay-3 { animation-delay: .3s; }

.mkt-body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(13,148,136,0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255,107,74,0.14), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
  min-height: 100vh;
}
.mkt-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 1.25rem 1.5rem;
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), #0ea5e9);
  display: grid; place-items: center; color: #fff; font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(13,148,136,0.35);
}
.mkt-nav-links { display: flex; gap: 1rem; align-items: center; }
.mkt-nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }

.hero {
  max-width: 1120px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem;
  min-height: calc(100vh - 80px);
  display: grid; align-content: center; gap: 1.25rem;
  position: relative;
}
.hero-brand {
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; color: var(--ink);
}
.hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem); max-width: 16ch; color: var(--ink-soft); font-weight: 700;
}
.hero p.lead { max-width: 36ch; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.hero-visual {
  position: absolute; right: 1.5rem; top: 18%; width: min(420px, 42vw);
  aspect-ratio: 0.72; border-radius: 28px;
  background: linear-gradient(160deg, var(--teal) 0%, #0e7490 55%, var(--ink) 100%);
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
  overflow: hidden; color: #fff; padding: 1.5rem;
}
.hero-visual::before {
  content: ""; position: absolute; inset: -30% auto auto -20%; width: 220px; height: 220px;
  background: rgba(255,255,255,0.12); border-radius: 50%; animation: pulseSoft 5s ease-in-out infinite;
}
.pass-preview-mini h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.pass-preview-mini .tag { opacity: 0.8; margin-bottom: 1.5rem; }
.stamp-row { display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 1.5rem 0; }
.stamp-dot {
  width: 38px; height: 38px; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.45);
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
}
.stamp-dot.filled { background: rgba(255,255,255,0.2); border-style: solid; }

@media (max-width: 900px) {
  .hero-visual { position: relative; right: auto; top: auto; width: 100%; max-width: 340px; margin-top: 1.5rem; animation: none; }
  .hero { min-height: auto; padding-top: 1.5rem; }
}

.section { max-width: 1120px; margin: 0 auto; padding: 4rem 1.5rem; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 18ch; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.feature-list article h3 { font-size: 1.2rem; }
@media (max-width: 800px) { .feature-list { grid-template-columns: 1fr; } }

.mkt-footer {
  border-top: 1px solid var(--line); padding: 2rem 1.5rem; text-align: center; color: var(--muted); font-size: 0.9rem;
}

.auth-body {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(13,148,136,0.2), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(255,107,74,0.12), transparent 55%),
    #eef3f7;
}
.auth-shell {
  width: min(460px, 100%);
  background: rgba(255,255,255,0.86); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 24px;
  padding: 2rem; box-shadow: var(--shadow); animation: fadeUp .5s ease both;
}
.auth-shell.wide { width: min(560px, 100%); }
.auth-shell h1 { font-size: 1.8rem; }
.auth-shell .sub { margin-bottom: 1.5rem; }
.auth-links { margin-top: 1.25rem; text-align: center; font-size: 0.92rem; color: var(--muted); }
.auth-links a { color: var(--teal-deep); font-weight: 700; }

.app-shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #071422 0%, #0b2538 100%);
  color: #fff; padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { color: #fff; margin-bottom: 1.75rem; padding: 0.25rem 0.5rem; }
.sidebar nav a {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border-radius: 12px;
  color: rgba(255,255,255,0.72); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.2rem;
  transition: background .2s, color .2s;
}
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar nav .section-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4);
  margin: 1.1rem 0.85rem 0.4rem; font-weight: 700;
}
.main { padding: 1.5rem 1.75rem 3rem; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.topbar h1 { font-size: 1.75rem; margin: 0; }
.biz-chip {
  display: flex; align-items: center; gap: 0.65rem; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 0.4rem 0.85rem 0.4rem 0.4rem; font-weight: 700; font-size: 0.88rem;
}
.biz-chip img, .biz-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
}

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 30px rgba(7,20,34,0.03);
}
.panel + .panel { margin-top: 1rem; }
.panel-title { font-size: 1.1rem; margin-bottom: 0.75rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem;
  animation: fadeUp .5s ease both;
}
.stat .label { font-size: 0.8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; margin-top: 0.25rem; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.quick-actions a {
  background: linear-gradient(180deg, #fff, #f8fbfd); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.1rem; font-weight: 700; transition: transform .2s, border-color .2s;
}
.quick-actions a:hover { transform: translateY(-2px); border-color: rgba(13,148,136,0.35); }
.quick-actions a span { display: block; color: var(--muted); font-weight: 500; font-size: 0.85rem; margin-top: 0.25rem; }

@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .stat-grid, .quick-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .stat-grid, .quick-actions { grid-template-columns: 1fr; }
  .main { padding: 1rem; }
}

.pass-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; }
.wallet-pass {
  border-radius: 24px; padding: 1.5rem; color: #fff; min-height: 420px;
  box-shadow: 0 25px 60px rgba(7,20,34,0.2); position: relative; overflow: hidden;
  animation: fadeUp .5s ease both;
}
.wallet-pass::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: rgba(255,255,255,0.1); border-radius: 50%;
}
.wallet-pass .logo-circle {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.18);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 1rem; overflow: hidden;
}
.wallet-pass .logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.progress-bar {
  height: 10px; background: rgba(255,255,255,0.2); border-radius: 999px; overflow: hidden; margin: 0.75rem 0;
}
.progress-bar > span { display: block; height: 100%; background: #fff; border-radius: 999px; }

@media (max-width: 900px) { .pass-layout { grid-template-columns: 1fr; } }

.cust-body {
  min-height: 100vh;
  background:
    radial-gradient(700px 400px at 50% -10%, rgba(13,148,136,0.22), transparent 60%),
    linear-gradient(180deg, #f4f8fb, #e8eef3);
  padding: 1.5rem 1rem 3rem;
}
.cust-shell { width: min(480px, 100%); margin: 0 auto; }
.cust-hero { text-align: center; margin-bottom: 1.25rem; animation: fadeUp .5s ease both; }
.cust-logo {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 1rem; object-fit: cover;
  background: var(--teal); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 12px 30px rgba(13,148,136,0.3);
}
.cust-panel {
  background: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px; padding: 1.4rem; box-shadow: var(--shadow); animation: fadeUp .55s ease both;
}
.reward-summary {
  background: linear-gradient(135deg, rgba(13,148,136,0.1), rgba(14,165,233,0.08));
  border-radius: 16px; padding: 1rem; margin-bottom: 1.1rem;
}
.wallet-btns { display: grid; gap: 0.75rem; margin-top: 1rem; }
.wallet-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1rem; border-radius: 14px; font-weight: 800; color: #fff;
}
.wallet-btn.apple { background: #111; }
.wallet-btn.google { background: #1a73e8; }
.wallet-btn.web { background: var(--teal); }

.success-ring {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem;
  background: rgba(13,148,136,0.12); color: var(--teal-deep);
  display: grid; place-items: center; font-size: 2rem; font-weight: 800;
  animation: fadeUp .4s ease both;
}

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.plan {
  border: 1px solid var(--line); border-radius: 20px; padding: 1.35rem; background: #fff;
  position: relative; transition: transform .2s, border-color .2s;
}
.plan:hover { transform: translateY(-3px); border-color: rgba(13,148,136,0.4); }
.plan.featured { border-color: var(--teal); box-shadow: 0 16px 40px rgba(13,148,136,0.12); }
.plan .price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; margin: 0.4rem 0; }
.plan ul { padding-left: 1.1rem; color: var(--muted); margin: 0 0 1rem; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }

.mobile-nav-toggle {
  display: none; background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 0.5rem 0.75rem;
}
@media (max-width: 1000px) {
  .mobile-nav-toggle { display: inline-flex; }
  .sidebar.collapsed nav { display: none; }
}

.chart-bars {
  display: flex; align-items: flex-end; gap: 4px; height: 140px; margin-top: 1rem;
}
.chart-bars .bar {
  flex: 1; background: linear-gradient(180deg, var(--teal-glow), var(--teal-deep));
  border-radius: 6px 6px 2px 2px; min-width: 4px; opacity: 0.85;
}

.split-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; }
