@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #E7F1FB;
  font-family: 'Inter', sans-serif;
  color: #16305E;
  min-height: 100vh;
}
a { color: inherit; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: #FFFFFF;
  border-bottom: 1px solid #D7E7F8; position: sticky; top: 0; z-index: 20;
}
/* Storefront header — navy blue, matches the reference site */
.site-topbar {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 18px; background: #16305E;
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 6px rgba(10,25,55,0.15);
}
.site-topbar .brand { color: #FFFFFF; font-size: 18px; }
.site-topbar .diamond { filter: brightness(1.3) saturate(1.1); }
.menu-btn { background:transparent; border:none; color:#fff; font-size:22px; cursor:pointer; padding:4px 8px; position:absolute; right:10px; top:50%; transform:translateY(-50%); line-height:1; }
.menu-dropdown {
  display:none; position:absolute; top:100%; right:10px; margin-top:6px;
  background:#fff; border:1px solid #D7E7F8; border-radius:12px; box-shadow:0 8px 24px rgba(20,40,80,0.15);
  min-width:190px; overflow:hidden; z-index:30;
}
.menu-dropdown.open { display:block; }
.menu-dropdown a { display:block; padding:12px 16px; color:#16305E; text-decoration:none; font-size:14px; font-weight:600; border-bottom:1px solid #EEF3FA; }
.menu-dropdown a:last-child { border-bottom:none; }
.menu-dropdown a:hover { background:#F6FAFF; }
.brand { display:flex; align-items:center; gap:10px; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:17px; color:#16305E; }
.diamond { width: 30px; height: 30px; background: linear-gradient(135deg,#5FA8F5,#2F6FED,#16305E); clip-path: polygon(50% 4%, 92% 32%, 50% 96%, 8% 32%); }
.page { max-width: 560px; margin: 0 auto; padding: 20px 16px 60px; }
.hero { text-align: center; padding: 24px 8px 8px; }
.hero .diamond { width: 46px; height: 46px; margin: 0 auto 14px; }
.hero h1 { font-family:'Space Grotesk',sans-serif; font-size: 26px; margin: 6px 0; color:#16305E; }
.hero p { color: #6B7390; font-size: 14px; max-width: 340px; margin: 0 auto; line-height:1.5; }
.card { background:#FFFFFF; border:1px solid #D7E7F8; border-radius:16px; padding:18px; margin-top:14px; box-shadow: 0 1px 2px rgba(20,30,60,0.04); }
.section-title { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:15px; display:flex; align-items:center; gap:8px; margin:0 0 6px; color:#16305E; }
label.field-label { display:block; font-size:12px; color:#6B7390; font-weight:600; margin:12px 0 6px; letter-spacing:.3px; }
input[type=text], input[type=number], input[type=password], input[type=tel], input[type=url] {
  width:100%; background:#EAF3FC; border:1px solid #CFE2F7; border-radius:10px;
  padding:11px 12px; color:#16305E; font-size:14px; font-family:'Inter',sans-serif;
}
.hint { color:#8891A8; font-size:12px; margin-top:6px; line-height:1.5; }
.grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px; }
.pkg-card { position:relative; background:#EAF3FC; border:1.5px solid #CFE2F7; border-radius:12px; padding:12px 8px; text-align:center; cursor:pointer; }
.pkg-card.active { border:2px solid #16305E; background:#DCEBFA; }
.pkg-check {
  position:absolute; top:6px; right:6px; width:18px; height:18px; border-radius:50%;
  background:#2F6FED; color:#fff; font-size:11px; display:none; align-items:center; justify-content:center; font-weight:700;
}
.pkg-card.active .pkg-check { display:flex; }
.pkg-card .pnum { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:15px; color:#16305E; }
.pkg-card .pprice { color:#7C8AA5; font-size:12px; margin-top:4px; font-weight:400; font-family:'Inter',sans-serif; }
.pkg-top { display:flex; align-items:center; justify-content:center; gap:5px; }
.pkg-top .diamond { width:14px; height:14px; }
.btn-primary {
  width:100%; margin-top:14px; padding:13px 0; border-radius:12px; border:none;
  background:linear-gradient(135deg,#4A5D7A,#2C3B54); color:#fff; font-weight:700;
  font-size:14px; font-family:'Inter',sans-serif; cursor:pointer;
}
.btn-secondary {
  padding:11px 16px; border-radius:10px; border:1px solid #CFE2F7; background:#EAF3FC;
  color:#16305E; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif;
}
.pill { background:#EAF3FC; border:1px solid #CFE2F7; color:#16305E; padding:7px 14px; border-radius:999px; font-size:13px; font-weight:600; text-decoration:none; }
.badge { font-size:11px; font-weight:700; padding:4px 9px; border-radius:999px; display:inline-block; }
.st-await { background:#FFF3DA; color:#9A6B12; }
.st-paid { background:#E3F1FF; color:#1E6FA8; }
.st-done { background:#E1F8EC; color:#1B8A4D; }
.st-rejected { background:#FDE5E5; color:#B23B3B; }
.qr-box { display:flex; flex-direction:column; align-items:center; }
.qr-box img { width:200px; height:200px; border-radius:12px; margin-top:14px; background:#fff; padding:8px; border:1px solid #D7E7F8; }
.pay-amount { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:24px; margin:10px 0; color:#16305E; }
table { width:100%; border-collapse: collapse; margin-top:4px; }
th { text-align:left; font-size:11px; color:#8891A8; font-weight:700; letter-spacing:.4px; padding:8px 10px; border-bottom:1px solid #D7E7F8; white-space:nowrap; }
td { padding:10px; font-size:13px; color:#33395A; border-bottom:1px solid #EDF0F7; white-space:nowrap; }
.mono { font-family:'JetBrains Mono',monospace; }

/* method choices */
.method-btn { display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:#EAF3FC; border:1px solid #CFE2F7; border-radius:12px; padding:14px; margin-top:10px; cursor:pointer; font-family:'Inter',sans-serif; }
.method-btn:hover { border-color:#2F6FED; }
.method-icon { width:36px; height:36px; border-radius:10px; background:#fff; border:1px solid #D7E7F8; display:flex; align-items:center; justify-content:center; font-size:18px; }
.icon-whatsapp { background:#DCF8E8; border-color:#B9EFD1; }
.icon-imo { background:#DCEEFC; border-color:#B7DBFA; }

/* Top announcement banner (admin-editable link) */
.top-banner {
  display:block; background:#FFF7E6; border-bottom:1px solid #F3E3B8;
  padding:9px 14px; text-decoration:none; overflow:hidden; white-space:nowrap;
}
.top-banner .marquee {
  display:inline-block; color:#8A5A00; font-weight:700; font-size:13px;
  padding-left:100%; animation: banner-scroll 16s linear infinite;
}
@keyframes banner-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.method-title { font-weight:700; color:#16305E; font-size:14px; }
.method-sub { color:#8891A8; font-size:12px; }

/* admin */
.admin-body { background:#EEF1F8; }
.auth-wrap { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:20px; }
.auth-card { background:#FFFFFF; border:1px solid #D7E7F8; border-radius:16px; padding:28px; width:100%; max-width:340px; box-shadow:0 1px 2px rgba(20,30,60,0.05); }
.auth-card h2 { font-family:'Space Grotesk',sans-serif; margin-top:0; color:#16305E; }
.err-msg { color:#B23B3B; font-size:13px; }
.ok-msg { color:#1B8A4D; font-size:14px; }
.admin-shell { max-width: 900px; margin:0 auto; padding: 20px 16px 60px; }
.admin-tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom: 14px; }
.admin-tab { background:#FFFFFF; border:1px solid #D7E7F8; color:#6B7390; padding:8px 13px; border-radius:10px; font-size:13px; font-weight:600; text-decoration:none; }
.admin-tab.active { background:#DCEBFA; color:#16305E; border:1px solid #BBD6F5; }
.dash-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.stat-card { background:#FFFFFF; border:1px solid #D7E7F8; border-radius:14px; padding:16px; }
.stat-value { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:26px; margin-top:6px; color:#16305E; }
.stat-label { color:#8891A8; font-size:12px; margin-top:2px; }
.filter-row { display:flex; gap:6px; flex-wrap:wrap; margin:12px 0; }
.filter-chip { background:#EAF3FC; border:1px solid #CFE2F7; color:#6B7390; padding:6px 12px; border-radius:999px; font-size:12px; font-weight:600; text-decoration:none; }
.filter-chip.active { background:linear-gradient(135deg,#2F6FED,#2C3B54); color:#fff; border:none; }
.check-row { display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-bottom:1px solid #EDF0F7; }
.check-row input { margin-top:4px; }
.check-row .t { font-weight:600; color:#16305E; }
.check-row .d { color:#8891A8; font-size:13px; }
.table-input { width:90px; background:#EAF3FC; border:1px solid #CFE2F7; border-radius:6px; color:#16305E; padding:5px 8px; font-family:'JetBrains Mono',monospace; }
select.status-select { font-size:12px; font-weight:700; padding:6px 10px; border-radius:8px; border:1px solid #CFE2F7; background:#fff; color:#16305E; }
select.status-select.st-await { background:#FFF3DA; color:#9A6B12; border-color:#F0D9A0; }
select.status-select.st-paid { background:#E3F1FF; color:#1E6FA8; border-color:#B7DBFA; }
select.status-select.st-done { background:#E1F8EC; color:#1B8A4D; border-color:#A9E7C4; }
select.status-select.st-rejected { background:#FDE5E5; color:#B23B3B; border-color:#F5B8B8; }
.toast-ok { background:#E1F8EC; color:#1B8A4D; padding:10px 14px; border-radius:10px; font-size:13px; margin-bottom:12px; }
