/* ============================================================
   PT Fan Tech Solution — Marketplace & akun pembeli
   Dimuat SETELAH site.css, jadi variabel :root dan kelas dasar
   (.card, .btn, .nav, .footer) dipakai ulang dari sana.
   ============================================================ */

/* ------------------------------------------------------------
   Kelas dasar yang belum ada di site.css
   ------------------------------------------------------------ */
.btn-block { width: 100%; }
.btn-xs { padding: 5px 11px; font-size: 0.78rem; border-radius: 8px; }

.page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.lbl-opt { font-weight: 400; color: var(--dim); }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select,
.field textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.94rem;
    padding: 11px 14px;
    outline: none;
    width: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: rgba(99, 102, 241, .6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}
.field input:disabled { opacity: .6; cursor: not-allowed; }
.hint { font-size: 0.78rem; color: var(--dim); }
.inline { display: inline-flex; gap: 6px; align-items: center; }
.form-narrow { max-width: 520px; }
.form-cols-sm-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.alert {
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid;
}
.alert.small { font-size: 0.84rem; padding: 11px 15px; }
.alert-success { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); color: #A7F3D0; }
.alert-error { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); color: #FECACA; }
.alert-warning { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); color: #FDE68A; }
.alert-info { background: rgba(99, 102, 241, .12); border-color: rgba(99, 102, 241, .4); color: #C7D2FE; }
.warn-text { color: #FDE68A; font-size: 0.85rem; }

.panel-like { padding: 26px; margin-bottom: 24px; }
.panel-like h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; }
.panel-head-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.panel-head-row h2 { margin-bottom: 0; }
.link { color: var(--cyan); font-size: 0.87rem; font-weight: 600; }
.link:hover { text-decoration: underline; }
.mono { font-family: var(--mono); font-size: 0.85em; }

/* ------------------------------------------------------------
   Kerangka halaman toko
   ------------------------------------------------------------ */
.shop-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 90px;
    min-height: 50vh;
}

.nav-links a.is-active { color: var(--text); background: rgba(255, 255, 255, .07); }


.nav-cart {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 11px;
    border: 1px solid var(--border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background .15s ease, border-color .15s ease;
}
.nav-cart:hover, .nav-cart.is-active { background: rgba(255, 255, 255, .07); border-color: rgba(99, 102, 241, .5); }
.nav-cart svg { width: 20px; height: 20px; }
.cart-badge {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 19px; height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--grad);
    color: #05070F;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remah navigasi */
.crumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    color: var(--dim);
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--text); }
.crumb span { color: var(--dim); }
.crumb-now { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------
   Hero katalog + pencarian
   ------------------------------------------------------------ */
.shop-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    padding: 66px 24px 56px;
    margin: -40px -24px 48px;
}
.shop-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.shop-hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.shop-hero-bg .blob-a { width: 420px; height: 420px; background: rgba(99, 102, 241, .35); top: -200px; right: -80px; }
.shop-hero-bg .blob-b { width: 360px; height: 360px; background: rgba(34, 211, 238, .22); bottom: -200px; left: -100px; }
.shop-hero-inner { position: relative; max-width: 1180px; margin: 0 auto; }
.shop-hero h1 {
    margin-top: 18px;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #FFFFFF 25%, #A5B4FC 65%, #67E8F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.15;
}
.shop-hero p { margin-top: 12px; color: var(--muted); max-width: 620px; }

.shop-search {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 620px;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
}
.shop-search svg { width: 19px; height: 19px; color: var(--dim); flex: none; }
.shop-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.94rem;
    min-width: 0;
}
.shop-search input::placeholder { color: var(--dim); }

/* Filter kategori */
.cat-filter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.cat-filter a {
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all .15s ease;
}
.cat-filter a:hover { color: var(--text); border-color: var(--border-strong); }
.cat-filter a.is-active {
    color: #05070F;
    background: var(--grad);
    border-color: transparent;
    font-weight: 700;
}
.catalog-count { color: var(--dim); font-size: 0.86rem; margin-bottom: 18px; }

.shop-empty { padding: 54px 32px; text-align: center; }
.shop-empty h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.shop-empty p { color: var(--muted); margin-bottom: 20px; }

/* ------------------------------------------------------------
   Kartu software
   ------------------------------------------------------------ */
.sw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.sw-card { overflow: hidden; display: flex; flex-direction: column; }
.sw-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, .5);
    background: var(--card-hover);
    box-shadow: 0 26px 54px -26px rgba(99, 102, 241, .55);
}
.sw-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(34, 211, 238, .14));
}
.sw-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sw-card:hover .sw-card-media img { transform: scale(1.05); }
.sw-thumb-fallback {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .32);
    background: linear-gradient(135deg, rgba(99, 102, 241, .3), rgba(34, 211, 238, .18));
}
.sw-badge-disc {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F472B6;
    color: #2A0A18;
    font-size: 0.73rem;
    font-weight: 800;
}
.sw-badge-disc.inline { position: static; background: rgba(244, 114, 182, .16); color: #F9A8D4; border: 1px solid rgba(244, 114, 182, .4); }

.sw-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.sw-cat {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--cyan);
}
.sw-card-body h3 { font-size: 1.06rem; font-weight: 700; line-height: 1.35; }
.sw-card-body h3 a:hover { color: #A5B4FC; }
.sw-short { color: var(--muted); font-size: 0.9rem; flex: 1; }

.sw-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.sw-price {
    font-size: 1.12rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sw-price.big { font-size: 1.75rem; }
.sw-price-old { color: var(--dim); font-size: 0.86rem; }

.sw-card-actions { display: flex; gap: 9px; margin-top: 8px; flex-wrap: wrap; }
.sw-card-actions > * { flex: 1; }
.sw-card-actions .btn { width: 100%; }

/* ------------------------------------------------------------
   Halaman detail software
   ------------------------------------------------------------ */
.detail-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 30px;
    align-items: start;
}
.detail-main { display: flex; flex-direction: column; gap: 24px; }
.detail-hero { overflow: hidden; aspect-ratio: 16 / 9; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .sw-thumb-fallback { font-size: 3.2rem; }

.detail-block { padding: 28px; }
.detail-block h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-top: 10px; line-height: 1.25; }
.detail-block h2 { font-size: 1.08rem; font-weight: 700; margin-bottom: 14px; }
.detail-block p { color: var(--muted); margin-bottom: 12px; }
.detail-block p:last-child { margin-bottom: 0; }
.detail-short { color: #C9D4EA !important; font-size: 1.02rem; margin-top: 8px; }

.detail-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}
.meta-chip svg { width: 14px; height: 14px; }
.meta-chip.meta-ok { color: #A7F3D0; border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .1); }

.feat-list, .req-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feat-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: 0.94rem; }
.req-list li {
    color: var(--muted);
    font-size: 0.92rem;
    padding-left: 18px;
    position: relative;
}
.req-list li::before {
    content: '';
    position: absolute;
    left: 2px; top: 9px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--cyan);
}
.why-check {
    flex: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--grad-soft);
    border: 1px solid rgba(99, 102, 241, .4);
    color: #67E8F9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.why-check svg { width: 11px; height: 11px; }

/* Kartu pembelian (sticky) */
.detail-side, .cart-side, .pay-side, .account-side { position: sticky; top: 92px; }
.buy-card { padding: 26px; }
.buy-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.buy-form { margin-bottom: 10px; }
.buy-note { font-size: 0.83rem; color: var(--dim); margin-top: 12px; line-height: 1.6; }
.buy-note a { color: var(--cyan); }
.buy-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.buy-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.87rem; color: var(--muted); }
.buy-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 16px;
    font-size: 0.87rem;
    color: #4ADE80;
    font-weight: 600;
}
.buy-wa svg { width: 17px; height: 17px; }
.buy-wa:hover { text-decoration: underline; }

.owned-box {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, .35);
    background: rgba(52, 211, 153, .08);
    margin-bottom: 16px;
}
.owned-box strong { display: block; color: #A7F3D0; margin-bottom: 6px; }
.owned-box p { font-size: 0.86rem; color: var(--muted); margin-bottom: 14px; }
.owned-box code {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: #E6EAF5;
    background: rgba(0, 0, 0, .3);
    padding: 3px 7px;
    border-radius: 6px;
}

/* ------------------------------------------------------------
   Keranjang
   ------------------------------------------------------------ */
.cart-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    align-items: start;
}
.cart-list { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; align-items: center; gap: 18px; padding: 18px; }
.cart-thumb {
    width: 96px; height: 72px;
    flex: none;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(34, 211, 238, .14));
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .sw-thumb-fallback { font-size: 1.2rem; }
.cart-info { flex: 1; min-width: 0; }
.cart-info h3 { font-size: 1rem; font-weight: 700; margin: 4px 0 4px; }
.cart-info h3 a:hover { color: #A5B4FC; }
.cart-short { font-size: 0.86rem; color: var(--muted); }
.cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.cart-pay-note { font-size: 0.8rem; color: var(--dim); margin-top: 16px; line-height: 1.6; }

.sum-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 9px 0;
    font-size: 0.9rem;
    color: var(--muted);
    border-bottom: 1px dashed var(--border);
}
.sum-row strong { color: var(--text); font-weight: 700; }
.sum-row.total {
    border-bottom: none;
    border-top: 1px solid var(--border-strong);
    margin-top: 6px;
    padding-top: 14px;
    font-size: 1rem;
}
.sum-row.total strong { font-size: 1.15rem; color: #A5B4FC; }
.buy-card .sum-row + form, .buy-card .sum-row + a.btn { margin-top: 18px; }

/* ------------------------------------------------------------
   Halaman pembayaran
   ------------------------------------------------------------ */
.pay-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 30px;
    align-items: start;
}
.pay-main { display: flex; flex-direction: column; gap: 24px; }
.pay-status { padding: 30px; border-left: 3px solid var(--border-strong); }
.pay-status.st-paid { border-left-color: #34D399; }
.pay-status.st-pending { border-left-color: #FBBF24; }
.pay-status.st-failed, .pay-status.st-expired { border-left-color: #F87171; }
.pay-status.st-refunded { border-left-color: #A78BFA; }
.pay-status-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pay-code { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.pay-status h1 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.pay-status p { color: var(--muted); }
.pay-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.pay-note { font-size: 0.84rem; color: var(--dim); margin-top: 12px; }

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: .03em;
    border: 1px solid;
    white-space: nowrap;
}
.status-pill.st-paid { color: #A7F3D0; background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .4); }
.status-pill.st-pending { color: #FDE68A; background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .4); }
.status-pill.st-failed, .status-pill.st-expired { color: #FECACA; background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); }
.status-pill.st-refunded { color: #DDD6FE; background: rgba(167, 139, 250, .14); border-color: rgba(167, 139, 250, .4); }

.pay-facts { list-style: none; margin: 16px 0; display: flex; flex-direction: column; gap: 9px; }
.pay-facts li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.87rem; color: var(--muted); }
.pay-facts li strong { color: var(--text); text-align: right; word-break: break-word; }
.buy-card .btn-block + .btn-block { margin-top: 10px; }

.lic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.lic-item:last-of-type { margin-bottom: 0; }
.lic-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lic-info strong { font-size: 0.98rem; }
.lic-key { font-size: 0.84rem; color: var(--muted); }
.lic-key code {
    font-family: var(--mono);
    color: #67E8F9;
    background: rgba(34, 211, 238, .1);
    border: 1px solid rgba(34, 211, 238, .25);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.9em;
}
.lic-sub { font-size: 0.78rem; color: var(--dim); }

.ev-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ev-list li { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; font-size: 0.82rem; }
.ev-tag {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ev-tag.ok { background: rgba(52, 211, 153, .12); color: #A7F3D0; }
.ev-tag.bad { background: rgba(248, 113, 113, .12); color: #FECACA; }
.ev-msg { color: var(--muted); flex: 1; min-width: 120px; }
.ev-time { color: var(--dim); font-size: 0.76rem; }

/* ------------------------------------------------------------
   Masuk / daftar
   ------------------------------------------------------------ */
.auth-wrap { display: flex; justify-content: center; padding: 20px 0 40px; }
.auth-card { width: 100%; max-width: 470px; padding: 34px 32px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-logo {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: var(--grad);
    color: #05070F;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px -12px rgba(99, 102, 241, .7);
}
.auth-head h1 { font-size: 1.35rem; font-weight: 800; }
.auth-head p { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.auth-tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    margin-bottom: 22px;
}
.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    transition: all .15s ease;
}
.auth-tabs a.is-active { background: var(--grad); color: #05070F; }
.auth-note { font-size: 0.82rem; color: var(--dim); margin-top: 20px; text-align: center; line-height: 1.6; }
.auth-note a { color: var(--cyan); }

/* ------------------------------------------------------------
   Akun pembeli
   ------------------------------------------------------------ */
.account-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    align-items: start;
}
.account-main { min-width: 0; }
.acct-email { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; word-break: break-word; }
.acct-empty { text-align: center; padding: 22px 10px; }
.acct-empty p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

.table-wrap { overflow-x: auto; }
.table-acct { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table-acct th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dim);
    border-bottom: 1px solid var(--border-strong);
    white-space: nowrap;
}
.table-acct td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-acct tbody tr:last-child td { border-bottom: none; }
.table-acct tbody tr:hover { background: rgba(255, 255, 255, .025); }

.download-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Seksi marketplace di landing page */
.sec-shop { padding-bottom: 40px; }
.sec-shop-more { text-align: center; margin-top: 40px; }
.sec-shop .sw-grid { text-align: left; }

/* ------------------------------------------------------------
   Responsif
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .sw-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid, .cart-grid, .pay-grid, .account-grid { grid-template-columns: 1fr; }
    .detail-side, .cart-side, .pay-side, .account-side { position: static; }
}

@media (max-width: 640px) {
    .shop-main { padding: 28px 18px 70px; }
    .shop-hero { padding: 48px 18px 40px; margin: -28px -18px 34px; }
    .sw-grid { grid-template-columns: 1fr; gap: 20px; }
    .form-cols-sm-2 { grid-template-columns: 1fr; }
    .cart-item { flex-direction: column; align-items: flex-start; gap: 14px; }
    .cart-thumb { width: 100%; height: 130px; }
    .cart-right { align-items: flex-start; flex-direction: row; width: 100%; justify-content: space-between; }
    .pay-actions .btn { width: 100%; }
    .auth-card { padding: 26px 20px; }
    .lic-item { flex-direction: column; align-items: flex-start; }
    .lic-item .btn { width: 100%; }
    .shop-search { flex-direction: column; border-radius: 16px; padding: 14px; align-items: stretch; }
    .shop-search svg { display: none; }
    .shop-search .btn { width: 100%; }
}

/* ============================================================
   Combobox (perbaikan keterbacaan)
   ============================================================
   <option>/<optgroup> tidak mewarisi gaya <select>, jadi di tema gelap
   daftarnya tampil berlatar putih sementara teksnya terang -> tidak terbaca.
   Lihat penjelasan lengkap di admin.css. Warna <option> harus SOLID. */
select { color-scheme: dark; }
select option,
select optgroup {
    background-color: #141B30;
    color: #E6EAF5;
}
select optgroup { color: #A5B4FC; font-weight: 700; }
select option:checked { background-color: #4F46E5; color: #FFFFFF; }
.field select { color: var(--text); background-color: #101830; }

/* ============================================================
   Login dengan Google
   ============================================================ */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 18px;
    color: var(--dim);
    font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span { text-transform: uppercase; letter-spacing: .1em; }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #1F1F1F;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid #DADCE0;
    transition: box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.btn-google:hover {
    background: #F8F9FA;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5);
    transform: translateY(-1px);
}
.btn-google svg { flex: none; }
.auth-google-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--dim);
    margin-top: 10px;
}

.acct-badge-google {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Pesan flash di halaman utama (tepat di bawah navbar) */
.flash-top {
    max-width: 1132px;
    margin: 20px auto 0;
}
@media (max-width: 640px) {
    .flash-top { max-width: none; margin: 16px 20px 0; }
}

/* Penanda versi tampilan di footer publik — kecil & menyatu dengan baris hak cipta,
   dipakai untuk memastikan hosting sudah memakai berkas terbaru. */
.footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}
.build-id {
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--dim);
    letter-spacing: .04em;
    cursor: help;
}
@media (max-width: 640px) {
    .footer-meta { width: 100%; justify-content: space-between; }
}

/* ============================================================
   Instruksi transfer manual (rekening bank)
   ============================================================ */
.bank-box {
    margin: 22px 0 0;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, .38);
    background: linear-gradient(135deg, rgba(99, 102, 241, .13), rgba(34, 211, 238, .08));
}
.bank-box h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.bank-table { width: 100%; border-collapse: collapse; }
.bank-table th,
.bank-table td {
    text-align: left;
    padding: 9px 0;
    font-size: 0.93rem;
    vertical-align: top;
}
.bank-table th {
    width: 42%;
    font-weight: 600;
    color: var(--muted);
    padding-right: 14px;
}
.bank-acct {
    font-family: var(--mono);
    font-size: 1.05rem;
    color: #67E8F9;
    letter-spacing: .02em;
    word-break: break-all;
}
.bank-amount { color: #A5F3FC; font-size: 1.1rem; }
.bank-box .buy-note { margin-top: 14px; }
@media (max-width: 640px) {
    .bank-box { padding: 18px; }
    .bank-table th { width: 40%; font-size: 0.85rem; }
}

/* ============================================================
   Galeri gambar & video produk
   ============================================================ */
.detail-hero.no-img { aspect-ratio: auto; }
.gal-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
}
.gal-thumb {
    flex: none;
    width: 96px;
    height: 68px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg3);
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.gal-thumb.is-active { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .22); }

.prod-video {
    width: 100%;
    border-radius: 12px;
    background: #000;
    display: block;
    max-height: 460px;
}
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.badge-video {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(4, 7, 14, .82);
    border: 1px solid var(--border-strong);
    color: #E6EAF5;
    font-size: 0.74rem;
    font-weight: 600;
}
.badge-video svg { width: 12px; height: 12px; }
.sw-card-media { position: relative; }
@media (max-width: 640px) {
    .gal-thumb { width: 78px; height: 56px; }
}
