/* ==========================================================================
   ScriptStore design system
   ========================================================================== */

:root {
    --navy: #0b1a3a;
    --navy-soft: #13274f;
    --blue: #1f4ed8;
    --royal: #2f5bff;
    --cyan: #06b6d4;
    --accent: #ff7a1a;
    --accent-soft: #fff1e5;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #182135;
    --muted: #5b6479;
    --line: #e5eaf3;
    --line-strong: #d3dbe9;
    --green: #0a7d4b;
    --green-soft: #e7f7ef;
    --red: #c02626;
    --red-soft: #fdecec;
    --amber: #b45309;
    --amber-soft: #fff7e5;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 28, 56, .05), 0 6px 18px -12px rgba(16, 28, 56, .25);
    --shadow: 0 4px 10px rgba(16, 28, 56, .05), 0 24px 48px -28px rgba(16, 28, 56, .35);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: 34px; font-weight: 800; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 22px; }
code { background: #eef2fb; padding: 2px 6px; border-radius: 6px; font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
::selection { background: rgba(31, 78, 216, .18); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.icon { flex: none; vertical-align: -3px; }

/* ------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 11px; cursor: pointer;
    padding: 11px 20px; font-weight: 650; font-size: 14.5px; font-family: var(--font);
    background: linear-gradient(135deg, var(--blue), var(--navy));
    color: #fff; text-decoration: none; transition: .18s ease;
    white-space: nowrap; line-height: 1.2;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(31, 78, 216, .7); }
.btn:not(.btn-ghost):not(.btn-outline):not(.btn-outline-light):not(.btn-link):not(.btn-danger):not(.btn-success):hover,
.btn:not(.btn-ghost):not(.btn-outline):not(.btn-outline-light):not(.btn-link):not(.btn-danger):not(.btn-success):active {
    background: linear-gradient(135deg, #ff9a4d, var(--accent)); color: #fff;
    box-shadow: 0 10px 20px -12px rgba(255, 122, 26, .8);
}
.btn:focus-visible { outline: 2px solid #ffb27a; outline-offset: 2px; }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-accent { background: linear-gradient(135deg, #ff8f3c, var(--accent)); color: #fff; }
.btn-accent:hover { box-shadow: 0 10px 20px -12px rgba(255, 122, 26, .8); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--navy); }
.btn-ghost:hover { background: #fff4ea; border-color: #f3b98a; color: #b45309; box-shadow: none; }
.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--navy); }
.btn-outline:hover { background: #fff4ea; border-color: #f3b98a; color: #b45309; box-shadow: none; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { background: #ff7a1a; border-color: #ff7a1a; color: #fff; }
.btn-danger { background: linear-gradient(135deg, #e25555, #b81f1f); }
.btn-success { background: linear-gradient(135deg, #17a86a, #0a7d4b); }
.btn-link { background: none; border: 0; color: var(--blue); padding: 0; font-weight: 600; cursor: pointer; }
.btn-link:hover { color: #c2410c; text-decoration: underline; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; box-shadow: none; }
.btn-icon { padding: 8px; border-radius: 9px; }

/* --------------------------------------------------------------- badges */
.badge {
    display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
    padding: 3px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
    background: #eef2fb; color: #2b3f6b; white-space: nowrap;
}
.badge-accent { background: var(--accent-soft); color: #b45309; }
.badge-green, .badge-completed { background: var(--green-soft); color: var(--green); }
.badge-blue, .badge-paid { background: #e8efff; color: #1b41b8; }
.badge-amber, .badge-waiting-verification, .badge-processing { background: var(--amber-soft); color: var(--amber); }
.badge-red, .badge-cancelled { background: var(--red-soft); color: var(--red); }
.badge-secondary, .badge-pending-payment { background: #eef2fb; color: #44547a; }
.badge-refunded { background: #f3e8ff; color: #6b21a8; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- forms */
label { display: block; font-weight: 650; font-size: 13.5px; margin: 0 0 6px; color: #2c3853; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="url"], input[type="file"], select, textarea {
    width: 100%; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
    font-family: var(--font); font-size: 14px; color: var(--text); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 78, 216, .14); }
input:disabled, select:disabled { background: #f2f5fa; color: #7a8499; }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6479' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
input[type="file"] { padding: 8px; background: #f8faff; }
.form-group { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.form-help { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; }
.form-check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; font-weight: 500; color: #3a465c; margin: 8px 0; }
.form-check input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.form-section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.form-section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.input-group { display: flex; }
.input-group input { border-radius: 10px 0 0 10px; }
.input-group .btn { border-radius: 0 10px 10px 0; }
.input-display { background: #f6f8fd; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 9px 13px; font-size: 13px; color: var(--muted); word-break: break-all; }
.char-counter { font-size: 12px; color: var(--muted); text-align: right; }

/* --------------------------------------------------------------- alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border-radius: 12px; font-size: 14px; margin: 0 0 16px; border: 1px solid transparent; }
.alert .icon { margin-top: 2px; }
.alert-success { background: var(--green-soft); color: #085c38; border-color: #bfe8d2; }
.alert-error { background: var(--red-soft); color: #8d1d1d; border-color: #f5c2c2; }
.alert-info { background: #eef4ff; color: #1b3a78; border-color: #cfe0ff; }
.alert-warning { background: var(--amber-soft); color: #8a4a06; border-color: #ffe1ad; }
.alert ul { margin: 4px 0 0; }
.alert a { font-weight: 700; }

/* --------------------------------------------------------------- header */
.site-topbar { background: var(--navy); color: #c5d0e6; font-size: 12.5px; }
.site-topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.site-topbar a { color: #dbe3f3; display: inline-flex; align-items: center; gap: 6px; }
.site-topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-social { display: flex; gap: 12px; align-items: center; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -.02em; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--royal), var(--navy)); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 800; box-shadow: 0 6px 16px -8px rgba(31, 78, 216, .8); }
.brand img { width: 38px; height: 38px; border-radius: 11px; object-fit: contain; background: #fff; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav > a, .site-nav .nav-drop > button {
    display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: 9px;
    color: #33415c; font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; font-family: var(--font);
}
.site-nav > a:hover, .site-nav .nav-drop > button:hover, .site-nav > a.active { background: #f0f4fc; color: var(--navy); }
.nav-drop { position: relative; }
.nav-drop-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px;
    display: none; z-index: 60;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: flex; padding: 8px 11px; border-radius: 8px; color: #33415c; font-size: 13.5px; font-weight: 500; }
.nav-drop-menu a:hover { background: #f3f6fd; color: var(--navy); }
.header-search { flex: 1; max-width: 360px; margin-left: auto; }
.header-search form { position: relative; }
.header-search input { padding: 10px 14px 10px 38px; border-radius: 999px; background: #f4f7fc; border-color: transparent; font-size: 13.5px; }
.header-search input:focus { background: #fff; border-color: var(--blue); }
.header-search .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8a93a8; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: #f0f4fc; color: var(--navy); }
.header-cart:hover { background: #e3eafb; color: var(--navy); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; }
.user-drop { position: relative; }
.user-drop > button { display: inline-flex; align-items: center; gap: 8px; background: #f0f4fc; border: 0; border-radius: 10px; padding: 5px 10px 5px 5px; cursor: pointer; font-family: var(--font); font-size: 13.5px; font-weight: 650; color: var(--navy); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--royal), var(--navy)); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.user-drop-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 60; }
.user-drop.open .user-drop-menu { display: block; }
.user-drop-menu a, .user-drop-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border-radius: 8px; color: #33415c; font-size: 13.5px; font-weight: 550; background: none; border: 0; text-align: left; cursor: pointer; font-family: var(--font); }
.user-drop-menu a:hover, .user-drop-menu button:hover { background: #f3f6fd; color: var(--navy); }
.mobile-menu { display: none; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 18px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 10px 8px; color: #33415c; font-weight: 600; border-radius: 8px; }
.mobile-menu a:hover { background: #f3f6fd; }
.mobile-search { margin-top: 8px; }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 500px at 85% -10%, rgba(47, 91, 255, .5), transparent 60%), radial-gradient(800px 400px at 0% 110%, rgba(6, 182, 212, .25), transparent 60%), linear-gradient(135deg, #0a1730 0%, #0e2350 55%, #102a63 100%); color: #fff; padding: 72px 0 84px; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); font-size: 12.5px; font-weight: 600; color: #d9e3fa; backdrop-filter: blur(4px); }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #37e39f; box-shadow: 0 0 0 4px rgba(55, 227, 159, .18); }
.hero h1 { color: #fff; font-size: 44px; line-height: 1.12; margin: 18px 0 16px; letter-spacing: -.03em; }
.hero h1 .grad { background: linear-gradient(95deg, #7ea2ff, #4fd7ee 60%, #ffb267); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Animasi mengetik judul hero */
.typing-title { position: relative; }
.typing-title .typing-ghost { visibility: hidden; }
.typing-title .typing-live { position: absolute; inset: 0; }
.typing-caret { display: inline-block; width: 2px; height: .95em; margin-left: 3px; background: currentColor; vertical-align: -.08em; animation: typingBlink .9s steps(1) infinite; }
@keyframes typingBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typing-caret { animation: none; } }
.hero p { color: #b8c5e2; font-size: 16.5px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-meta { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta .hm { display: flex; align-items: center; gap: 10px; }
.hero-meta .hm b { font-size: 20px; color: #fff; display: block; line-height: 1.1; }
.hero-meta .hm span { font-size: 12px; color: #93a4c8; }
.hero-visual { position: relative; }
.browser-mock { background: #0f1f41; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); overflow: hidden; transform: rotate(-1deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; display: block; }
.browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-url { flex: 1; margin-left: 8px; background: rgba(255, 255, 255, .08); border-radius: 6px; font-size: 10px; color: #9db0d6; padding: 4px 10px; }
.mock-body { padding: 18px; }
.mock-hero { height: 74px; border-radius: 10px; background: linear-gradient(120deg, #1d3f96, #2f5bff); position: relative; overflow: hidden; margin-bottom: 14px; }
.mock-hero::after { content: ""; position: absolute; right: -20px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; padding: 8px; }
.mock-thumb { height: 42px; border-radius: 6px; background: linear-gradient(135deg, #22407e, #183064); margin-bottom: 7px; }
.mock-line { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); margin-bottom: 5px; }
.mock-line.s { width: 60%; background: rgba(255, 255, 255, .1); }
.mock-line.price { width: 40%; background: rgba(255, 122, 26, .8); }
.floating-card { position: absolute; background: #fff; color: var(--text); border-radius: 13px; box-shadow: 0 24px 50px -20px rgba(3, 12, 34, .55); padding: 12px 15px; display: flex; gap: 10px; align-items: center; font-size: 12px; }
.floating-card b { display: block; font-size: 13px; color: var(--navy); }
.floating-card .fc-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #17a86a, #0a7d4b); }
.floating-card.fc-1 { left: -34px; bottom: 36px; }
.floating-card.fc-2 { right: -18px; top: 28px; }
.floating-card.fc-2 .fc-icon { background: linear-gradient(135deg, var(--orange, #ff8f3c), var(--accent)); }
.hero-slider { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: #0f1f41; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; }
.hero-slider-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .2s, border-radius .2s, background .2s; }
.hero-slider-dots button.is-active { width: 24px; border-radius: 5px; background: #fff; }
.hero-slider-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-visual-box { position: relative; }
.hero-promo-note { margin-top: 18px; display: flex; align-items: center; gap: 11px; padding: 11px 15px; border-radius: 13px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(5px); }
.hero-promo-note .hpn-icon { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff9a3c, #ff6a00); box-shadow: 0 8px 18px -8px rgba(255, 122, 26, .7); }
.hero-promo-note .hpn-body { min-width: 0; }
.hero-promo-note b { display: block; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; letter-spacing: .02em; }
.hero-promo-note .hpn-sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: #d7e1f6; line-height: 1.35; }
.hero-promo-note .hpn-count { display: block; margin-top: 3px; font-size: 12.5px; color: #a9bce0; }
.hero-promo-note .hpn-count strong { color: #ffc98f; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; }
.hero-promo-note.is-expired { display: none; }

/* -------------------------------------------------------------- sections */
.section { padding: 64px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 6px; }
.section-head p { margin: 0; color: var(--muted); max-width: 640px; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 750; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.section-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14px; color: var(--blue); }
.link-more:hover { gap: 9px; }

/* ---------------------------------------------------------- category tiles */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 14px; transition: .18s; box-shadow: var(--shadow-sm); }
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d7f7; }
.category-tile .cat-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #eef3ff, #dfe9ff); color: var(--blue); flex: none; }
.category-tile b { display: block; color: var(--navy); font-size: 14.5px; line-height: 1.3; }
.category-tile span { font-size: 12px; color: var(--muted); }

/* ----------------------------------------------------------- product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s ease; position: relative; box-shadow: var(--shadow-sm); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ccd9f5; }
.product-thumb { position: relative; display: block; aspect-ratio: 16/10; background: linear-gradient(135deg, #12275a, #1f4ed8 60%, #3f6dff); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.thumb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 18px 18px; }
.thumb-placeholder span { font-size: 54px; font-weight: 800; color: rgba(255, 255, 255, .32); letter-spacing: -.04em; }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.product-badges .badge { background: rgba(9, 18, 40, .78); color: #fff; backdrop-filter: blur(4px); }
.product-badges .badge-accent { background: var(--accent); color: #fff; }
.product-badges .badge-green { background: #0a7d4b; color: #fff; }
.wish-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #4a5670; display: grid; place-items: center; cursor: pointer; transition: .15s; }
.wish-btn:hover, .wish-btn.on { color: #e0245e; }
.wish-btn.on { background: #fff; }
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11.5px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.product-name { font-size: 15.5px; font-weight: 750; line-height: 1.35; margin: 0 0 6px; min-height: 42px; }
.product-name a { color: var(--navy); }
.product-name a:hover { color: var(--blue); }
.product-desc { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stars { display: inline-flex; align-items: center; gap: 1px; color: #f5a623; font-size: 12px; }
.stars .star-off { color: #d7dce7; }
.rating-count { color: var(--muted); font-size: 11.5px; margin-left: 3px; }
.product-rating { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.product-rating .sold { margin-left: auto; }
.product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.price-old { font-size: 12.5px; color: #97a0b5; text-decoration: line-through; }
.discount-tag { font-size: 11px; font-weight: 800; color: #d9480f; background: var(--accent-soft); padding: 2px 7px; border-radius: 6px; }
.product-actions { display: flex; gap: 7px; margin-top: 12px; }
.product-actions .btn { flex: 1; padding: 8px 10px; font-size: 13px; border-radius: 9px; }
.demo-row { display: flex; gap: 7px; margin-top: 8px; }
.demo-row .btn { flex: 1; padding: 6px 8px; font-size: 11.5px; border-radius: 8px; }

/* ---------------------------------------------------------------- catalog */
.catalog-header { background: #fff; border-bottom: 1px solid var(--line); padding: 30px 0 26px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: #b9c1d1; }
.catalog-layout { display: grid; grid-template-columns: 268px 1fr; gap: 26px; align-items: start; padding: 34px 0 64px; }
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px; box-shadow: var(--shadow-sm); }
.filter-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); font-weight: 750; color: var(--navy); }
.filter-group { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 11px; }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; padding: 7px 9px; border-radius: 8px; color: #3f4b63; font-size: 13.5px; }
.filter-list a:hover { background: #f3f6fd; color: var(--navy); }
.filter-list a.active { background: #eaf0ff; color: var(--blue); font-weight: 700; }
.filter-list a span { font-size: 11.5px; color: var(--muted); background: #f0f3f9; padding: 1px 7px; border-radius: 999px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { padding: 8px 10px; font-size: 13px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.catalog-toolbar .count { font-size: 13.5px; color: var(--muted); }
.catalog-toolbar .count b { color: var(--navy); }
.toolbar-actions { display: flex; gap: 8px; align-items: center; }
.toolbar-actions select { width: auto; min-width: 170px; padding: 8px 34px 8px 12px; font-size: 13px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: #eaf0ff; color: #1b41b8; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 650; }
.empty-state { background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 60px 24px; text-align: center; color: var(--muted); }
.empty-state .empty-icon { width: 62px; height: 62px; border-radius: 50%; background: #f0f4fc; color: #8a93a8; display: grid; place-items: center; margin: 0 auto 14px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.page-link { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: #3f4b63; font-weight: 650; font-size: 13.5px; padding: 0 10px; }
.page-link:hover { border-color: var(--blue); color: var(--blue); }
.page-link.active { background: linear-gradient(135deg, var(--blue), var(--navy)); border-color: transparent; color: #fff; }
.page-link.disabled { opacity: .4; pointer-events: none; }
.page-gap { color: var(--muted); padding: 0 4px; }

/* ------------------------------------------------------------ product page */
.product-page { padding: 26px 0 64px; }
.product-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #12275a, #1f4ed8 60%, #3f6dff); aspect-ratio: 16/10; position: relative; box-shadow: var(--shadow-sm); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .thumb-placeholder span { font-size: 84px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb { width: 92px; height: 62px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: linear-gradient(135deg, #12275a, #1f4ed8); opacity: .75; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--blue); opacity: 1; }
.product-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.product-info h1 { font-size: 27px; margin: 6px 0 10px; }
.product-info .meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.price-box { background: #f7f9ff; border: 1px solid #e3eafb; border-radius: 13px; padding: 16px 18px; margin: 18px 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-box .price { font-size: 30px; }
.price-box .discount-tag { font-size: 12px; }
.price-box .save-note { width: 100%; font-size: 12px; color: var(--green); font-weight: 650; }
.spec-list { display: grid; gap: 9px; margin: 16px 0; }
.spec-item { display: flex; gap: 10px; font-size: 13.5px; color: #3f4b63; }
.spec-item b { min-width: 120px; color: var(--navy); font-weight: 650; }
.buy-actions { display: grid; gap: 9px; margin-top: 18px; }
.buy-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.secondary-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.demo-note { display: flex; gap: 9px; background: #fff8ec; border: 1px solid #ffe3b3; color: #7c4a03; border-radius: 11px; padding: 11px 13px; font-size: 12.5px; margin-top: 16px; }
.demo-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: #fff; margin-bottom: 9px; }
.demo-card .demo-icon { width: 38px; height: 38px; border-radius: 10px; background: #eef3ff; color: var(--blue); display: grid; place-items: center; flex: none; }
.demo-card b { display: block; font-size: 13.5px; color: var(--navy); }
.demo-card span { font-size: 12px; color: var(--muted); }
.demo-card .btn { margin-left: auto; }
.product-tabs { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tabs-nav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tab-btn { background: none; border: 0; padding: 15px 16px; font-size: 14px; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-family: var(--font); white-space: nowrap; }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel { padding: 26px 28px; display: none; }
.tab-panel.active { display: block; }
.tab-panel:target { display: block; }
.product-tabs:has(.tab-panel:target) .tab-panel.active:not(:target) { display: none; }
.tab-panel h3:first-child { margin-top: 0; }
.content-prose { color: #33415c; font-size: 14.5px; line-height: 1.75; }
.content-prose h2, .content-prose h3 { margin-top: 1.4em; }
.content-prose img { border-radius: 12px; margin: 14px 0; }
.content-prose li { margin-bottom: 6px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: #33415c; background: #f8faff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; }
.feature-list .icon { color: var(--green); margin-top: 2px; }
.changelog { display: grid; gap: 12px; }
.changelog-item { border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; }
.changelog-item .ver { display: flex; justify-content: space-between; gap: 10px; font-weight: 750; color: var(--navy); font-size: 13.5px; margin-bottom: 5px; }
.changelog-item .ver span { font-weight: 500; color: var(--muted); font-size: 12px; }
.review-summary { display: flex; gap: 30px; align-items: center; padding: 18px 20px; background: #f8faff; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 22px; flex-wrap: wrap; }
.review-score { font-size: 42px; font-weight: 800; color: var(--navy); line-height: 1; }
.review-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review-item:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-head b { font-size: 13.5px; color: var(--navy); }
.review-head time { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.review-item p { margin: 4px 0 0; font-size: 13.5px; color: #3f4b63; }
.rating-input { display: flex; gap: 6px; }
.rating-input input { display: none; }
.rating-input label { cursor: pointer; color: #d7dce7; margin: 0; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f5a623; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 650; color: var(--navy); font-size: 14px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; color: var(--blue); flex: none; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 18px 16px; font-size: 13.5px; color: #3f4b63; }
.sidebar-buy { position: sticky; top: 90px; }

/* --------------------------------------------------------------- home extras */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: .18s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #eaf0ff, #dbe6ff); color: var(--blue); margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; margin: 0 0 6px; }
.feature-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.testimonial-card p { font-size: 13.5px; color: #3f4b63; margin: 0; flex: 1; }
.testimonial-person { display: flex; align-items: center; gap: 10px; }
.testimonial-person b { display: block; font-size: 13px; color: var(--navy); }
.testimonial-person span { font-size: 11.5px; color: var(--muted); }
.stats-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px 38px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background-image: radial-gradient(500px 240px at 90% -20%, rgba(47, 91, 255, .5), transparent), radial-gradient(400px 200px at 0% 120%, rgba(6, 182, 212, .25), transparent); }
.stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.stat span { font-size: 12.5px; color: #a9b8d8; }
.newsletter { background: linear-gradient(135deg, #0c1c3d, #13306b); border-radius: var(--radius); padding: 40px; color: #fff; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.newsletter h2 { color: #fff; margin-bottom: 6px; }
.newsletter p { color: #adbcdd; margin: 0; font-size: 14px; }
.newsletter form { display: flex; gap: 9px; }
.newsletter input { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.newsletter input::placeholder { color: #9fb0d2; }
.newsletter input:focus { background: #fff; color: var(--text); }
.cta-band { text-align: center; padding: 54px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cta-band h2 { font-size: 28px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #081327; color: #9fb0d2; margin-top: 70px; font-size: 13.5px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; padding: 54px 0 38px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand:hover { color: #fff; }
.footer-main p { font-size: 13px; color: #8fa1c4; }
.footer-main h4 { color: #fff; font-size: 13.5px; text-transform: uppercase; letter-spacing: .07em; margin: 4px 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: #9fb0d2; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; }
.footer-contact .icon { color: #6f87b8; margin-top: 2px; flex: none; }
.footer-social { display: flex; gap: 9px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; color: #b9c7e4; }
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #7688ab; }
.footer-bottom a { color: #a9b8d8; }

/* ----------------------------------------------------------------- auth */
.auth-wrap { padding: 52px 0 70px; min-height: 60vh; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 980px; margin: 0 auto; }
.auth-aside { background: radial-gradient(600px 300px at 100% 0, rgba(47, 91, 255, .55), transparent 60%), linear-gradient(150deg, #0a1730, #102a63); color: #fff; border-radius: 22px; padding: 40px 36px; min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.auth-aside h2 { color: #fff; font-size: 27px; }
.auth-aside p { color: #b4c2e0; font-size: 14px; }
.auth-aside ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.auth-aside li { display: flex; gap: 10px; font-size: 13.5px; color: #d3ddf3; align-items: flex-start; }
.auth-aside li .icon { color: #6fd6a8; margin-top: 2px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.demo-cred { border: 1px dashed #ffd3a8; background: #fff9f2; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: #7c4a03; margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; }
.demo-cred code { background: #fff; }

/* ------------------------------------------------------------ cart/checkout */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 30px 0 26px; }
.page-head h1 { margin: 0; font-size: 28px; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; padding: 34px 0 64px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-head { padding: 17px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 16px; }
.panel-body { padding: 22px; }
.panel-body.tight { padding: 0; }
.cart-item { display: flex; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 82px; height: 58px; border-radius: 9px; background: linear-gradient(135deg, #12275a, #1f4ed8); overflow: hidden; flex: none; position: relative; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .thumb-placeholder span { font-size: 24px; }
.cart-info { flex: 1; min-width: 0; }
.cart-info b { display: block; font-size: 14px; color: var(--navy); line-height: 1.35; }
.cart-info .lic { font-size: 11.5px; color: var(--blue); font-weight: 650; }
.cart-info .price { font-size: 14px; }
.cart-qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.cart-qty button { width: 30px; height: 34px; background: #f7f9fd; border: 0; cursor: pointer; color: var(--navy); font-weight: 700; }
.cart-qty input { width: 42px; text-align: center; border: 0; padding: 6px 2px; font-size: 13px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; }
.cart-remove { background: none; border: 0; color: #97a0b5; cursor: pointer; padding: 6px; border-radius: 8px; }
.cart-remove:hover { color: var(--red); background: var(--red-soft); }
.summary-panel { position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 7px 0; color: #3f4b63; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 16px; font-weight: 800; color: var(--navy); }
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.coupon-form input { padding: 9px 11px; font-size: 13px; }
.checkout-section { padding: 22px; border-bottom: 1px solid var(--line); }
.checkout-section:last-child { border-bottom: 0; }
.checkout-section h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; margin: 0 0 14px; }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.payment-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: 11px; padding: 13px 15px; cursor: pointer; margin-bottom: 9px; transition: .15s; }
.payment-option:hover { border-color: #b7c7ec; }
.payment-option:has(input:checked) { border-color: var(--blue); background: #f7f9ff; box-shadow: 0 0 0 3px rgba(31, 78, 216, .1); }
.payment-option input { margin-top: 4px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.payment-option b { display: block; font-size: 13.5px; color: var(--navy); }
.payment-option span { font-size: 12px; color: var(--muted); }
.order-success { max-width: 720px; margin: 0 auto; text-align: center; padding: 50px 0 70px; }
.success-mark { width: 76px; height: 76px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.order-success .invoice-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 24px; text-align: left; box-shadow: var(--shadow-sm); }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; padding: 30px 0 64px; }
.detail-list { display: grid; gap: 0; }
.detail-list .row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.detail-list .row:last-child { border-bottom: 0; }
.detail-list .row span:first-child { color: var(--muted); }
.detail-list .row span:last-child { text-align: right; }
.bank-box { background: #f7f9ff; border: 1px solid #e3eafb; border-radius: 12px; padding: 16px; margin: 12px 0; }
.bank-box .bank-name { font-weight: 750; color: var(--navy); font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bank-box .bank-number { font-size: 19px; font-weight: 800; letter-spacing: .04em; color: var(--navy); margin: 4px 0 1px; }
.bank-box .bank-holder { font-size: 12px; color: var(--muted); }
.copy-btn { background: #eaf0ff; border: 0; border-radius: 7px; padding: 4px 9px; font-size: 11px; font-weight: 700; color: var(--blue); cursor: pointer; }
.proof-preview { width: 100%; border-radius: 11px; border: 1px solid var(--line); max-height: 420px; object-fit: contain; background: #f6f8fd; }
.timeline { display: grid; gap: 0; position: relative; margin-top: 4px; }
.timeline-item { display: flex; gap: 12px; padding: 0 0 18px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 22px; height: 22px; border-radius: 50%; background: #eef2fb; color: #7a8499; display: grid; place-items: center; flex: none; z-index: 1; }
.timeline-item.done .timeline-dot { background: var(--green-soft); color: var(--green); }
.timeline-item b { font-size: 13px; color: var(--navy); display: block; }
.timeline-item span { font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------------- account */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; padding: 30px 0 64px; }
.account-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px; box-shadow: var(--shadow-sm); }
.account-user { padding: 20px; background: linear-gradient(135deg, #0c1c3d, #16336f); color: #fff; display: flex; align-items: center; gap: 12px; }
.account-user .avatar { width: 42px; height: 42px; font-size: 14px; background: rgba(255, 255, 255, .16); }
.account-user b { display: block; font-size: 14px; line-height: 1.3; }
.account-user span { font-size: 11.5px; color: #a9b8d8; word-break: break-all; }
.account-nav { padding: 9px; display: grid; gap: 2px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: #3f4b63; font-size: 13.5px; font-weight: 600; }
.account-nav a:hover { background: #f3f6fd; color: var(--navy); }
.account-nav a.active { background: #eaf0ff; color: var(--blue); }
.account-nav a .badge { margin-left: auto; }
.account-nav .sep { height: 1px; background: var(--line); margin: 6px 8px; }
.account-content { min-width: 0; display: grid; gap: 20px; }
.account-hero { background: linear-gradient(135deg, #0c1c3d, #173a7d); border-radius: var(--radius); padding: 26px 28px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.account-hero h1 { color: #fff; font-size: 23px; margin: 0 0 4px; }
.account-hero p { color: #b4c2e0; margin: 0; font-size: 13.5px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat-card .stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; background: #eef3ff; color: var(--blue); }
.stat-card b { display: block; font-size: 22px; color: var(--navy); letter-spacing: -.02em; line-height: 1.2; }
.stat-card span { font-size: 12px; color: var(--muted); }
.stat-card.green .stat-icon { background: var(--green-soft); color: var(--green); }
.stat-card.amber .stat-icon { background: var(--amber-soft); color: var(--amber); }
.stat-card.accent .stat-icon { background: var(--accent-soft); color: #c05600; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 11px 14px; background: #f8faff; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: #3a465c; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcff; }
.table .cell-main { display: flex; align-items: center; gap: 10px; }
.table .cell-thumb { width: 46px; height: 34px; border-radius: 7px; overflow: hidden; background: linear-gradient(135deg, #12275a, #1f4ed8); position: relative; flex: none; }
.table .cell-thumb img { width: 100%; height: 100%; object-fit: cover; }
.table .cell-thumb .thumb-placeholder span { font-size: 14px; }
.table .cell-main b { display: block; color: var(--navy); font-size: 13px; line-height: 1.3; }
.table .cell-main span { font-size: 11.5px; color: var(--muted); }
.table-actions { display: flex; gap: 5px; justify-content: flex-end; }
.table-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-toolbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.table-toolbar input, .table-toolbar select { width: auto; padding: 8px 11px; font-size: 13px; }
.table-toolbar input[type="search"] { min-width: 220px; }
.table-empty { padding: 46px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.status-select { padding: 6px 8px; font-size: 12px; border-radius: 8px; width: auto; }
.btn-xs { padding: 5px 9px; font-size: 11.5px; border-radius: 7px; }

/* -------------------------------------------------------------- download */
.download-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.download-card + .download-card { margin-top: 12px; }
.download-main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.file-icon { width: 46px; height: 46px; border-radius: 12px; background: #eef3ff; color: var(--blue); display: grid; place-items: center; flex: none; }
.download-main b { display: block; font-size: 14px; color: var(--navy); }
.download-main .meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 3px; }
.download-side { text-align: right; display: grid; gap: 6px; justify-items: end; }
.progress { height: 5px; background: #edf1f8; border-radius: 99px; overflow: hidden; margin-top: 6px; width: 140px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 99px; }

/* ---------------------------------------------------------------- modals */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 15, 31, .55); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; backdrop-filter: blur(3px); }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); animation: modalIn .18s ease; }
@keyframes modalIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 5px; border-radius: 7px; }
.modal-close:hover { background: #f1f4fa; color: var(--navy); }
.modal-body { padding: 22px; }
.demo-credentials { background: #f8faff; border: 1px solid var(--line); border-radius: 11px; padding: 14px; margin-top: 14px; font-size: 13px; }
.demo-credentials .row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.demo-credentials code { font-size: 12.5px; }

/* ---------------------------------------------------------------- toasts */
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 300; display: grid; gap: 9px; max-width: 380px; }
.toast { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 11px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 13.5px; animation: toastIn .25s ease; }
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--amber); }
.toast .icon { margin-top: 1px; }
.toast.success .icon { color: var(--green); } .toast.error .icon { color: var(--red); } .toast.warning .icon { color: var(--amber); }
.toast button { background: none; border: 0; color: var(--muted); cursor: pointer; margin-left: auto; padding: 0; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* -------------------------------------------------------------- utilities */
.badge-soft { background: #eef2fb; color: #44547a; }
.inline-form { display: inline; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv b { color: var(--navy); text-align: right; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.page-404 { text-align: center; padding: 90px 20px; }
.page-404 .code { font-size: 90px; font-weight: 800; background: linear-gradient(135deg, var(--blue), var(--navy)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.prose { color: #33415c; line-height: 1.75; font-size: 14.5px; }
.prose h2 { font-size: 22px; margin-top: 1.5em; } .prose h3 { font-size: 17px; margin-top: 1.3em; }
.prose li { margin-bottom: 6px; }
.hide { display: none !important; }
.promo-banner { position: relative; display: flex; align-items: center; gap: 26px; background: linear-gradient(135deg, #0c1c3d, #1f4ed8); color: #fff; border-radius: var(--radius); padding: 28px 32px; overflow: hidden; margin: 24px 0; }
.promo-banner:hover { color: #fff; }
.promo-banner.has-image { padding: 0; min-height: 150px; }
.promo-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.promo-banner-body { position: relative; z-index: 1; flex: 1; }
.promo-banner.has-image .promo-banner-body { padding: 28px 32px; background: linear-gradient(90deg, rgba(9, 22, 48, .88), rgba(9, 22, 48, .25)); }
.promo-banner h3 { font-size: 24px; color: #fff; margin-bottom: 6px; }
.promo-banner p { color: #c9d6f2; margin: 0 0 14px; font-size: 14px; max-width: 560px; }
.promo-banner .btn { flex-shrink: 0; }
@media (max-width: 720px) {
    .promo-banner { flex-direction: column; align-items: flex-start; padding: 22px; }
    .promo-banner.has-image .promo-banner-body { padding: 22px; }
    .promo-banner h3 { font-size: 19px; }
}
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 960px) {
    .site-nav { display: none; }
    .header-search { display: none; }
    .nav-toggle { display: inline-flex; }
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 36px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .filter-card { position: static; }
    .product-detail { grid-template-columns: 1fr; }
    .sidebar-buy { position: static; }
    .cart-layout, .detail-grid { grid-template-columns: 1fr; }
    .summary-panel { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .account-side { position: static; }
    .account-nav { grid-template-columns: repeat(2, 1fr); }
    .auth-grid { grid-template-columns: 1fr; }
    .auth-aside { min-height: 0; }
    .feature-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
    .stats-band { grid-template-columns: 1fr 1fr; }
    .newsletter { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .floating-card { display: none; }
}
@media (max-width: 720px) {
    h1 { font-size: 27px; }
    .section { padding: 44px 0; }
    .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 13px; }
    .category-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
    .category-tile { padding: 14px; gap: 10px; }
    .category-tile .cat-icon { width: 38px; height: 38px; border-radius: 10px; }
    .category-tile b { font-size: 12.5px; }
    .category-tile span { font-size: 11px; }
    .product-body { padding: 12px; }
    .product-name { font-size: 13.5px; min-height: 38px; }
    .product-desc { display: none; }
    .price { font-size: 15.5px; }
    .demo-row { display: none; }
    .product-actions .btn { padding: 7px 6px; font-size: 11.5px; }
    .hero { padding: 48px 0 56px; }
    .hero h1 { font-size: 30px; }
    .hero-meta { gap: 18px; }
    .feature-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .stats-band { padding: 26px 24px; }
    .footer-main { gap: 24px; }
    .form-grid, .form-grid-3, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .account-nav { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
    .product-tabs { margin-top: 26px; }
    .tab-panel { padding: 20px; }
    .feature-list { grid-template-columns: 1fr; }
    .download-card { grid-template-columns: 1fr; }
    .download-side { justify-items: start; text-align: left; }
    .newsletter { padding: 26px; }
    .newsletter form { flex-direction: column; }
    .section-head { margin-bottom: 20px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* Scroll reveal (aktif hanya lewat JS; elemen di atas layar tidak dianimasikan) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, .7, .3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
