@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bg: #06070b;
  --bg-alt: #0a0c13;
  --card: #10131c;
  --card-hover: #151926;
  --border: #22283a;
  --border-soft: #1a1f2e;
  --text: #eceef4;
  --muted: #8a90a6;
  --gold: #d4af37;
  --gold-soft: #f3e0a8;
  --gold-dim: rgba(212, 175, 55, 0.14);
  --green: #35c58f;
  --red: #ef4b5f;
  --radius: 14px;
  --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(212, 175, 55, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(120, 90, 200, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 28px 18px 100px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; z-index: 20; flex-wrap: wrap; gap: 12px;
  background: rgba(6, 7, 11, 0.78); backdrop-filter: blur(14px) saturate(140%);
}
.brand {
  font-family: 'Playfair Display', serif;
  color: var(--gold-soft); font-weight: 700; font-size: 21px;
  text-decoration: none; letter-spacing: 0.4px;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 60%, #b8860b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color .18s ease; }
.nav a:hover { color: var(--gold-soft); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.top-link { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: color .18s ease; }
.top-link:hover { color: var(--gold-soft); }
.saldo {
  background: var(--gold-dim); border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--gold-soft);
  letter-spacing: 0.2px;
}
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13.5px; padding: 0; font-family: inherit; }
.link-btn:hover { color: var(--red); }
.inline { display: inline; }

/* Bottom app nav */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(8, 9, 14, 0.86); backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -14px 30px -18px rgba(0, 0, 0, 0.7);
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 10.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 10px; transition: color .18s ease;
  flex: 1; min-width: 0;
}
.bn-item svg {
  width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.bn-item.active { color: var(--gold-soft); }
.bn-item:hover { color: var(--gold-soft); }


.footer { text-align: center; padding: 30px 20px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--border-soft); letter-spacing: 0.2px; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13.5px; border: 1px solid; }
.alert-success { background: rgba(53, 197, 143, 0.08); color: var(--green); border-color: rgba(53, 197, 143, 0.28); }
.alert-error { background: rgba(239, 75, 95, 0.08); color: var(--red); border-color: rgba(239, 75, 95, 0.28); }

h1 { font-family: 'Playfair Display', serif; font-size: 27px; margin: 4px 0 22px; letter-spacing: 0.2px; color: var(--text); }
h2 { font-size: 17px; margin: 0 0 14px; font-weight: 700; color: var(--gold-soft); }

/* Hero */
.hero { text-align: center; padding: 30px 8px 38px; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: var(--gold-soft); background: var(--gold-dim); border: 1px solid rgba(212, 175, 55, 0.35);
  letter-spacing: 0.3px; margin-bottom: 18px;
}
.hero-title {
  font-family: 'Playfair Display', serif; font-size: 32px; line-height: 1.28;
  margin: 0 0 14px; color: var(--text);
  background: linear-gradient(120deg, var(--text), var(--gold-soft) 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); font-size: 14.5px; max-width: 480px; margin: 0 auto 26px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong { font-family: 'Playfair Display', serif; font-size: 21px; color: var(--gold-soft); }
.hero-stat span { font-size: 11.5px; color: var(--muted); letter-spacing: 0.2px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 36px; }
.feature {
  background: linear-gradient(180deg, var(--card), var(--bg-alt)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow);
}
.feature-icon { font-size: 24px; margin-bottom: 10px; }
.feature h3 { font-size: 14.5px; margin: 0 0 8px; color: var(--text); font-weight: 700; }
.feature p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }


.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--card), var(--bg-alt));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: rgba(212, 175, 55, 0.4); transform: translateY(-2px); }
.card a { color: var(--text); text-decoration: none; }
.service-card { display: flex; align-items: center; gap: 12px; }
.service-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 70%);
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: #06070b;
}

.list { display: flex; flex-direction: column; gap: 11px; }
.row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); text-decoration: none; transition: border-color .18s ease, background .18s ease;
}
.row:hover { border-color: rgba(212, 175, 55, 0.4); background: var(--card-hover); }
.price { color: var(--gold-soft); font-weight: 700; }
.stock { color: var(--muted); font-size: 12px; margin-top: 2px; }

.btn {
  display: inline-block; background: linear-gradient(120deg, var(--gold-soft), var(--gold) 65%, #b8860b);
  color: #14110a; border: none; padding: 11px 20px; border-radius: 10px; font-weight: 700;
  cursor: pointer; text-decoration: none; font-size: 14px; letter-spacing: 0.2px;
  transition: filter .15s ease, transform .15s ease; box-shadow: 0 8px 20px -8px rgba(212, 175, 55, 0.55);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.secondary:hover { border-color: rgba(212, 175, 55, 0.4); }
.btn.danger { background: linear-gradient(120deg, #ff6b7f, var(--red)); color: #fff; box-shadow: 0 8px 20px -8px rgba(239, 75, 95, 0.5); }
.btn.block { display: block; width: 100%; text-align: center; }

input, select {
  width: 100%; padding: 12px 14px; background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; font-size: 14px; margin-bottom: 14px;
  font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); }
label { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 7px; font-weight: 500; letter-spacing: 0.2px; }
form.stack { display: flex; flex-direction: column; }

.auth-shell {
  max-width: 400px; margin: 20px auto 0; background: linear-gradient(180deg, var(--card), var(--bg-alt));
  border: 1px solid var(--border); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow);
}
.auth-shell h1 { text-align: center; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }

.admin-nav {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 6px;
}
.admin-nav a {
  color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; transition: color .15s ease, background .15s ease;
}
.admin-nav a:hover { color: var(--gold-soft); }
.admin-nav a.active { color: #14110a; background: linear-gradient(120deg, var(--gold-soft), var(--gold) 65%); }
.admin-nav .link-btn { margin-left: auto; padding: 8px 10px; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 14px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.cell-input { width: auto; min-width: 84px; padding: 7px 9px; margin: 0; font-size: 12.5px; }
.btn-sm { padding: 7px 12px; font-size: 12px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2px; }
.badge.pending { background: rgba(212, 175, 55, 0.14); color: var(--gold-soft); }
.badge.completed { background: rgba(53, 197, 143, 0.14); color: var(--green); }
.badge.cancelled, .badge.expired { background: rgba(239, 75, 95, 0.14); color: var(--red); }

.otp-box {
  font-size: 30px; font-weight: 800; letter-spacing: 8px;
  background: var(--bg-alt); border: 1px solid var(--gold); padding: 20px;
  text-align: center; border-radius: 14px; color: var(--gold-soft);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
