:root {
    --blue-900: #0b2f5f;
    --blue-800: #0f4c81;
    --blue-700: #1268b3;
    --blue-600: #1d8bd8;
    --blue-100: #e8f4ff;
    --green-700: #0b8f72;
    --green-600: #10b981;
    --green-100: #dcfce7;
    --orange: #ff8a00;
    --red: #ef4444;
    --yellow: #facc15;
    --ink: #172033;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #f5f8fb;
    --shadow: 0 14px 34px rgba(15, 76, 129, .12);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--soft);
    font-size: 14px;
    line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 28px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mt-20 { margin-top: 20px; }

.site-header { color: #fff; background: linear-gradient(120deg, var(--blue-800), var(--green-700)); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.top-line { border-bottom: 1px solid rgba(255,255,255,.16); }
.top-line__inner { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-links { display: none; gap: 8px; align-items: center; font-size: 12px; }
.top-links a:hover, .keyword-row a:hover { text-decoration: underline; }
.top-links .strong { font-weight: 800; }
.main-header { padding: 12px 0 10px; }
.header-grid { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand cart" "search search"; gap: 12px; align-items: center; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; border: 2px solid rgba(255,255,255,.9); border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.15); font-weight: 900; font-size: 24px; line-height: 1; }
.brand-name { font-size: 26px; font-weight: 850; letter-spacing: -.7px; }
.search { grid-area: search; display: grid; grid-template-columns: 1fr auto; background: #fff; border-radius: 12px; padding: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.search input { border: 0; outline: 0; padding: 12px 14px; min-width: 0; color: var(--ink); border-radius: 9px; }
.search button { border: 0; background: linear-gradient(120deg, var(--blue-700), var(--green-600)); color: #fff; font-weight: 800; border-radius: 9px; padding: 0 18px; }
.cart-link { grid-area: cart; justify-self: end; position: relative; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 22px; }
.cart-badge { position: absolute; top: -6px; right: -5px; background: var(--yellow); color: #111827; font-size: 11px; font-weight: 900; min-width: 21px; height: 21px; border-radius: 999px; display: grid; place-items: center; border: 2px solid #fff; }
.keyword-row { display: flex; gap: 12px; overflow-x: auto; padding-top: 7px; scrollbar-width: none; font-size: 12px; white-space: nowrap; }
.keyword-row::-webkit-scrollbar { display: none; }

.flash { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-weight: 650; }
.flash--success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.flash--warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.flash--info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.hero { padding: 22px 0 16px; }
.hero-grid { display: grid; gap: 12px; }
.hero-main, .hero-side-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-main { min-height: 250px; padding: 24px; color: #fff; background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.22) 0 90px, transparent 92px),
    linear-gradient(130deg, #0f4c81 0%, #1277bd 49%, #10b981 100%);
    display: grid; align-content: space-between; position: relative; isolation: isolate;
}
.hero-main::after { content: ""; position: absolute; inset: auto 16px 12px auto; width: 180px; height: 160px; border-radius: 30px; background: rgba(255,255,255,.13); transform: rotate(-8deg); z-index: -1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 12px; background: rgba(255,255,255,.16); border-radius: 999px; font-weight: 800; font-size: 12px; }
.hero h1 { margin: 14px 0 10px; font-size: clamp(28px, 7vw, 52px); line-height: .98; letter-spacing: -1.8px; max-width: 700px; }
.hero p { margin: 0 0 18px; color: rgba(255,255,255,.92); max-width: 560px; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; min-height: 42px; padding: 10px 16px; font-weight: 850; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(120deg, var(--blue-700), var(--green-600)); box-shadow: 0 8px 20px rgba(16,185,129,.25); }
.btn-light { background: #fff; color: var(--blue-800); }
.btn-outline { color: var(--blue-700); background: #fff; border: 1px solid #bfdbfe; }
.btn-danger { background: var(--red); color: #fff; }
.btn-full { width: 100%; }
.hero-benefits { margin-top: 20px; display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-benefits span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); padding: 10px; border-radius: 12px; font-weight: 750; font-size: 12px; text-align: center; }
.hero-side { display: grid; gap: 12px; }
.hero-side-card { color: #fff; padding: 22px; min-height: 115px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-side-card h2 { margin: 0; font-size: 22px; line-height: 1; }
.hero-side-card p { margin: 6px 0 0; color: rgba(255,255,255,.88); }
.hero-side-card:nth-child(1) { background: linear-gradient(120deg, #13a3dc, #0b8f72); }
.hero-side-card:nth-child(2) { background: linear-gradient(120deg, #0b2f5f, #13a3dc); }

.quick-menu { padding: 12px 0 18px; background: #fff; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.quick-item { display: grid; justify-items: center; gap: 7px; text-align: center; font-size: 12px; color: var(--ink); }
.quick-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: 0 8px 18px rgba(15,76,129,.07); font-size: 22px; }

.section { padding: 18px 0; }
.section-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.section-title { margin: 0; font-size: 18px; letter-spacing: -.2px; }
.section-link { color: var(--blue-700); font-weight: 800; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.category-item { min-height: 132px; padding: 18px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center; }
.category-item:hover { background: #f8fbff; }
.category-icon { width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-800); font-size: 28px; }
.category-item:nth-child(even) .category-icon { background: var(--green-100); color: var(--green-700); }
.category-name { font-weight: 750; }

.product-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 750; color: var(--muted); }
.chip.active, .chip:hover { color: #fff; background: linear-gradient(120deg, var(--blue-700), var(--green-600)); border-color: transparent; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.product-card { position: relative; background: #fff; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(229,231,235,.8); box-shadow: 0 10px 22px rgba(17,32,51,.06); transition: .18s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card__image { aspect-ratio: 1 / 1; background: #f8fbff; display: grid; place-items: center; overflow: hidden; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 11px; }
.product-card__title { min-height: 39px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 720; }
.product-price { margin-top: 8px; color: var(--blue-700); font-size: 17px; font-weight: 900; }
.product-meta { margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--orange); color: #fff; font-weight: 900; font-size: 11px; padding: 5px 7px; border-radius: 8px; }
.discount { position: absolute; top: 8px; right: 8px; background: #ecfeff; color: var(--green-700); font-weight: 900; font-size: 11px; padding: 5px 7px; border-radius: 8px; }
.empty-state { padding: 36px 18px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); }

.page-shell { padding: 24px 0; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.auth-grid, .detail-grid, .seller-grid { display: grid; gap: 18px; }
.form { display: grid; gap: 13px; }
.form label { display: grid; gap: 7px; font-weight: 780; color: var(--ink); }
.form input, .form textarea, .form select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; outline: 0; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29,139,216,.12); }
.form small { color: var(--muted); font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.input-inline { display: flex; gap: 8px; }
.input-inline input { max-width: 90px; }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: linear-gradient(180deg, #fff, #f8fbff); }
.stat strong { display: block; font-size: 24px; color: var(--blue-800); }
.stat span { color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #f8fbff; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
.cart-row { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: #f8fbff; }
.cart-line-title { font-weight: 800; }
.cart-line-meta { margin: 6px 0 10px; color: var(--muted); }
.cart-summary { display: grid; gap: 10px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; }
.summary-line.total { font-size: 18px; font-weight: 900; color: var(--blue-800); }

.product-detail-image { background: #f8fbff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-detail-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-detail h1 { margin: 0 0 10px; font-size: clamp(24px, 6vw, 38px); line-height: 1.08; letter-spacing: -.8px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); margin-bottom: 12px; }
.price-large { color: var(--blue-700); font-size: clamp(26px, 7vw, 40px); font-weight: 950; margin: 12px 0; }
.description { color: #374151; white-space: pre-line; }

.benefit-list { display: grid; gap: 12px; margin-top: 18px; }
.benefit { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbff; }
.benefit strong { color: var(--blue-800); }

.site-footer { padding: 28px 0 18px; background: #fff; border-top: 1px solid var(--line); color: #4b5563; }
.footer-grid { display: grid; gap: 24px; }
.footer-grid section { display: grid; align-content: start; gap: 9px; }
.footer-grid h3 { margin: 0 0 4px; color: var(--ink); font-size: 13px; }
.footer-grid a { color: #4b5563; }
.footer-grid a:hover { color: var(--blue-700); }
.logo-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-stack span, .app-buttons span, .trust-badge { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 9px; font-weight: 750; font-size: 12px; }
.qr-box { width: 92px; height: 92px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--blue-800); font-size: 30px; font-weight: 950; background: repeating-linear-gradient(45deg, #fff, #fff 5px, #e8f4ff 5px, #e8f4ff 10px); }
.app-buttons { display: grid; gap: 8px; width: 140px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }

@media (min-width: 560px) {
    .quick-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
    .category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (min-width: 820px) {
    .top-links { display: flex; }
    .header-grid { grid-template-columns: 180px 1fr 70px; grid-template-areas: "brand search cart"; }
    .main-header { padding: 16px 0 10px; }
    .hero-grid { grid-template-columns: 2fr 1fr; }
    .quick-grid { grid-template-columns: repeat(10, minmax(0,1fr)); }
    .category-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
    .product-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
    .auth-grid { grid-template-columns: .9fr 1.1fr; align-items: center; }
    .detail-grid { grid-template-columns: minmax(320px, 460px) 1fr; }
    .seller-grid { grid-template-columns: 280px 1fr; align-items: start; }
    .footer-grid { grid-template-columns: 1.2fr 1.2fr 1.5fr 1.2fr 1.4fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1080px) {
    .category-grid { grid-template-columns: repeat(10, minmax(0,1fr)); }
    .product-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
}

.form-grid-2 { display: grid; gap: 13px; }
.choice-list { display: grid; gap: 8px; }
.choice-item { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; color: var(--ink); }
.choice-item strong { font-weight: 850; }
.choice-item small { color: var(--muted); }
.choice-item:hover, .choice-item.active { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29,139,216,.10); }
.status-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 12px 0 18px; display: grid; gap: 4px; background: #f8fbff; }
.status-card strong { color: var(--blue-800); }
.status-approved, .status-paid { border-color: #a7f3d0; background: #ecfdf5; }
.status-pending, .status-pending_payment { border-color: #fde68a; background: #fffbeb; }
.status-rejected, .status-cancelled { border-color: #fecaca; background: #fef2f2; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 850; background: var(--green-100); color: var(--green-700); }
.pill-blue { background: var(--blue-100); color: var(--blue-800); }
.legal-grid { display: grid; gap: 18px; }
.legal-doc h1 { margin-top: 0; }
.legal-doc h2 { margin: 24px 0 8px; font-size: 18px; color: var(--blue-800); }
.legal-doc p { color: #374151; }
code { background: #f3f4f6; padding: 2px 5px; border-radius: 6px; }

@media (min-width: 820px) {
    .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legal-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

.payment-box { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #f8fbff; }
.payment-box h2 { margin: 0; color: var(--blue-800); }
.copy-card { border: 1px dashed var(--blue-600); border-radius: 14px; padding: 13px; background: #fff; display: grid; gap: 6px; }
.copy-card span { color: var(--muted); font-weight: 700; }
.copy-card strong { font-size: 22px; letter-spacing: .04em; color: var(--blue-800); word-break: break-all; }
.payment-box .qr-box { width: 220px; max-width: 100%; height: auto; padding: 12px; background: #fff; }
.payment-box .qr-box img { width: 100%; height: auto; display: block; border-radius: 10px; }
.panel-soft { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
.panel-soft h2 { margin-top: 0; color: var(--blue-800); }
.panel-soft h3 { margin: 14px 0 8px; font-size: 15px; }
.instruction-list { margin: 0 0 8px 20px; padding: 0; color: #374151; }
.instruction-list li { margin-bottom: 7px; }

/* Logo gambar Tokotuku */
.brand--image { min-height: 44px; }
.brand-logo { display: block; object-fit: contain; }
.brand-logo--header { width: auto; height: 42px; max-width: 168px; }
.footer-brand-row { display: grid; gap: 10px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.footer-logo-link { display: inline-flex; width: fit-content; align-items: center; }
.brand-logo--footer { width: auto; height: 46px; max-width: 190px; }
.footer-brand-text { color: var(--blue-800); font-size: 28px; font-weight: 900; letter-spacing: -.7px; }
.footer-brand-row p { margin: 0; max-width: 760px; color: var(--muted); }

@media (min-width: 820px) {
    .header-grid { grid-template-columns: 220px 1fr 70px; }
    .brand-logo--header { height: 48px; max-width: 210px; }
    .footer-brand-row { grid-template-columns: 220px 1fr; align-items: center; }
    .brand-logo--footer { height: 52px; max-width: 220px; }
}
