/* Customer area (/akun): dashboard, orders, checkout. Construction theme. */
:root {
    --navy: #0B1F3A;
    --navy-2: #12305A;
    --ink: #172033;
    --muted: #677489;
    --line: #E4E8EF;
    --bg: #F3F4F7;
    --card: #FFFFFF;
    --orange: #F99720;
    --orange-d: #E07F0B;
    --yellow: #FFC21A;
    --green: #13A05A;
    --red: #E5484D;
    --blue: #2D6CDF;
    --violet: #6E56CF;
    --sky: #0EA5E9;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
    --hazard: repeating-linear-gradient(-45deg, #FFC21A 0 12px, #161616 12px 24px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

.ak-boot { min-height: 100vh; display: grid; place-items: center; }
.ak-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #D7DCE5; border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- top bar ---------- */
.ak-top {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top, 0px);
}
.ak-top-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 16px; }
.ak-logo img { height: 34px; width: auto; }
.ak-top-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ak-top-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 13px; }
.ak-top-link:hover { background: #F1F3F7; color: var(--ink); }
.ak-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), #FFB648); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; overflow: hidden; flex: none; }
.ak-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ak-lang { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 6px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .04em; cursor: pointer; transition: background .15s, border-color .15s; }
.ak-lang:hover { border-color: var(--orange); box-shadow: 0 6px 16px -10px rgba(249,151,32,.8); }
.ak-lang i { margin-right: 4px; color: var(--orange); font-size: 13px; }
.ak-lang span { padding: 4px 8px; border-radius: 999px; color: var(--muted); }
.ak-lang span.on { background: var(--orange); color: #1B1205; opacity: 1; }

/* ---------- layout ---------- */
.ak-wrap { max-width: 1240px; margin: 0 auto; padding: 24px 20px 96px; display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 24px; }
.ak-side { position: sticky; top: 88px; align-self: start; }
.ak-nav { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.ak-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #3B4557; font-weight: 600; }
.ak-nav a i { width: 20px; text-align: center; color: #8A95A8; }
.ak-nav a:hover { background: #F5F6F9; }
.ak-nav a.on { background: #FFF4E6; color: var(--orange-d); }
.ak-nav a.on i { color: var(--orange); }
.ak-nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--orange); color: #fff; font-size: 11px; display: grid; place-items: center; }
.ak-nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 4px; }
.ak-help { margin-top: 14px; border-radius: var(--radius); padding: 16px; color: #fff; background: radial-gradient(120% 120% at 100% 0, #1C467F 0, var(--navy) 60%); position: relative; overflow: hidden; }
.ak-help::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--hazard); }
.ak-help b { display: block; margin-bottom: 4px; }
.ak-help p { font-size: 12.5px; opacity: .8; margin-bottom: 12px; }
.ak-main { min-width: 0; }

/* ---------- generic ---------- */
.ak-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.ak-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.ak-card-h h3 { font-size: 16px; }
.ak-card-b { padding: 18px 20px 20px; }
.ak-section { margin-top: 20px; }
.ak-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; font-weight: 700; font-size: 13.5px; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.ak-btn:disabled { opacity: .55; cursor: not-allowed; }
.ak-btn.pri { background: linear-gradient(180deg, #FFA834, var(--orange-d)); color: #1B1205; box-shadow: 0 6px 16px rgba(249, 151, 32, .28); }
.ak-btn.pri:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(249, 151, 32, .34); }
.ak-btn.dark { background: var(--navy); color: #fff; }
.ak-btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.ak-btn.ghost:hover { background: #F7F8FA; }
.ak-btn.danger { background: #fff; border-color: #F5C2C4; color: var(--red); }
.ak-btn.sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.ak-btn.lg { height: 52px; font-size: 15px; border-radius: 13px; }
.ak-btn.block { width: 100%; }
.ak-link { color: var(--orange-d); font-weight: 700; font-size: 13px; }
.ak-link:hover { text-decoration: underline; }
.ak-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.ak-empty i { font-size: 40px; color: #C5CCD8; margin-bottom: 12px; display: block; }
.ak-empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* status pill */
.ak-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ak-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-review { background: #FFF5E0; color: #B26A00; }
.st-awaiting_payment { background: #E6F4FE; color: #0B6BB5; }
.st-verifying { background: #EEEBFF; color: var(--violet); }
.st-processing { background: #E9F0FF; color: var(--blue); }
.st-shipped { background: #E3F7FB; color: #0A7E95; }
.st-completed { background: #E5F6EC; color: var(--green); }
.st-cancelled { background: #FDECEC; color: var(--red); }
.st-overdue { background: #FDECEC; color: var(--red); }

/* ---------- dashboard hero ---------- */
.ak-hero {
    position: relative; overflow: hidden; border-radius: 20px; color: #fff; padding: 28px 28px 34px;
    background:
        linear-gradient(rgba(143, 184, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, rgba(143, 184, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px,
        radial-gradient(90% 140% at 100% 0, #1D4A86 0, var(--navy) 62%);
}
.ak-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--hazard); }
.ak-hero-art {
    position: absolute; right: 0; bottom: 8px; height: 118%; width: auto; max-width: 46%;
    object-fit: cover; object-position: right bottom; pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%), linear-gradient(to bottom, transparent 0, #000 30%, #000 84%, transparent 93%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 35%), linear-gradient(to bottom, transparent 0, #000 30%, #000 84%, transparent 93%);
    mask-composite: intersect;
}
.ak-hero small { color: #FFC56B; font-weight: 700; letter-spacing: .12em; font-size: 11px; }
.ak-hero h1 { font-size: 28px; margin: 6px 0 6px; }
.ak-hero p { color: #B9C6DA; max-width: 460px; }
.ak-hero-row { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; position: relative; z-index: 1; }
.ak-hero-kpi b { display: block; font-size: 22px; }
.ak-hero-kpi span { font-size: 12px; color: #9FB0C9; }

.ak-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.ak-stat { padding: 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.ak-stat:hover { border-color: #FAD7A8; transform: translateY(-1px); }
.ak-stat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex: none; }
.ak-stat b { display: block; font-size: 22px; line-height: 1.1; }
.ak-stat span { font-size: 12px; color: var(--muted); }

/* action banner */
.ak-action { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(90deg, #FFF6E8, #FFFFFF); border: 1px solid #FCE0B8; margin-top: 14px; }
.ak-action-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.ak-action .grow { flex: 1; min-width: 0; }
.ak-action b { display: block; }
.ak-countdown { display: inline-flex; gap: 4px; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--red); }

/* ---------- order list ---------- */
.ak-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ak-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ak-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 12.5px; color: #4A5568; white-space: nowrap; }
.ak-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ak-search { position: relative; }
.ak-search input { height: 40px; width: 240px; border-radius: 11px; border: 1px solid var(--line); padding: 0 12px 0 36px; font: inherit; background: #fff; }
.ak-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #98A2B3; }

.ak-order { display: block; padding: 18px 20px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); margin-bottom: 12px; border: 1px solid transparent; transition: border-color .15s, box-shadow .15s; }
.ak-order:hover { border-color: #F5D6AC; box-shadow: 0 8px 26px rgba(16, 24, 40, .08); }
.ak-order-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ak-order-code { font-weight: 800; }
.ak-order-date { color: var(--muted); font-size: 12.5px; }
.ak-order-mid { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.ak-thumbs { display: flex; }
.ak-thumbs img, .ak-thumbs .more { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; border: 2px solid #fff; background: #EEF1F5; margin-left: -10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.ak-thumbs img:first-child { margin-left: 0; }
.ak-thumbs .more { display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.ak-order-info { flex: 1; min-width: 0; }
.ak-order-info .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-order-total { text-align: right; }
.ak-order-total b { font-size: 17px; }
.ak-order-total small { display: block; font-size: 11.5px; color: var(--muted); }
.ak-mini-steps { display: flex; gap: 4px; margin-top: 14px; }
.ak-mini-steps i { flex: 1; height: 5px; border-radius: 3px; background: #E8EBF1; }
.ak-mini-steps i.done { background: var(--green); }
.ak-mini-steps i.now { background: var(--orange); }
.ak-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12.5px; }

/* ---------- order detail ---------- */
.ak-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.ak-detail-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ak-detail-head h1 { font-size: 22px; }
.ak-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 22px 16px 18px; position: relative; }
.ak-step { text-align: center; position: relative; font-size: 12px; color: #98A2B3; font-weight: 600; }
.ak-step::before { content: ""; position: absolute; top: 20px; left: -50%; right: 50%; height: 3px; background: #E6E9EF; z-index: 0; }
.ak-step:first-child::before { display: none; }
.ak-step.done::before, .ak-step.now::before { background: var(--green); }
.ak-step .dot { position: relative; z-index: 1; width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 50%; background: #F1F3F7; color: #A7B0BF; display: grid; place-items: center; font-size: 15px; border: 3px solid #fff; box-shadow: 0 0 0 1px #E6E9EF; }
.ak-step.done { color: var(--ink); }
.ak-step.done .dot { background: var(--green); color: #fff; box-shadow: 0 0 0 1px var(--green); }
.ak-step.now { color: var(--ink); }
.ak-step.now .dot { background: var(--orange); color: #fff; box-shadow: 0 0 0 4px rgba(249, 151, 32, .22); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(249, 151, 32, .08); } }

.ak-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 20px; align-items: start; }
.ak-state { padding: 22px; border-radius: var(--radius); display: flex; gap: 16px; align-items: flex-start; }
.ak-state-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; }
.ak-state h3 { font-size: 17px; margin-bottom: 4px; }
.ak-state.review { background: linear-gradient(120deg, #FFF7E8, #FFFDF8); border: 1px solid #FBE3BF; }
.ak-state.review .ak-state-ic { background: #FFE6BF; color: #B26A00; }
.ak-state.verifying { background: linear-gradient(120deg, #F1EEFF, #FCFBFF); border: 1px solid #DDD6FE; }
.ak-state.verifying .ak-state-ic { background: #E4DEFF; color: var(--violet); }
.ak-state.processing { background: linear-gradient(120deg, #EDF3FF, #FBFCFF); border: 1px solid #D3E0FB; }
.ak-state.processing .ak-state-ic { background: #DCE7FD; color: var(--blue); }
.ak-state.shipped { background: linear-gradient(120deg, #E8F8FB, #FBFEFF); border: 1px solid #C6EBF3; }
.ak-state.shipped .ak-state-ic { background: #CDEFF6; color: #0A7E95; }
.ak-state.completed { background: linear-gradient(120deg, #E9F8EF, #FBFEFC); border: 1px solid #C9EDD7; }
.ak-state.completed .ak-state-ic { background: #CFEFDB; color: var(--green); }
.ak-state.cancelled { background: #FFF5F5; border: 1px solid #F8D3D4; }
.ak-state.cancelled .ak-state-ic { background: #FCDDDE; color: var(--red); }

/* invoice */
.ak-invoice { overflow: hidden; }
.ak-invoice-top { background: var(--navy); color: #fff; padding: 20px 22px; position: relative; }
.ak-invoice-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--hazard); }
.ak-invoice-top small { color: #9FB0C9; }
.ak-invoice-top .amount { font-size: 30px; font-weight: 800; color: #FFB24A; letter-spacing: -.02em; }
.ak-invoice-top .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ak-due { text-align: right; }
.ak-due > * { display: block; }
.ak-due .ak-countdown { color: #FFD27A; font-size: 18px; }
.ak-bank { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed #D5DBE5; border-radius: 12px; margin-top: 10px; background: #FAFBFC; }
.ak-bank-logo { width: 54px; height: 38px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--blue); flex: none; overflow: hidden; }
.ak-bank-logo img { max-height: 30px; }
.ak-bank .num { font-size: 18px; font-weight: 800; letter-spacing: .04em; }
.ak-copy { margin-left: auto; }

.ak-upload { display: block; border: 2px dashed #D3D9E3; border-radius: 14px; padding: 22px; text-align: center; background: #FAFBFC; transition: border-color .15s, background .15s; cursor: pointer; }
.ak-upload:hover, .ak-upload.drag { border-color: var(--orange); background: #FFF8EF; }
.ak-upload i { font-size: 28px; color: var(--orange); margin-bottom: 8px; display: block; }
.ak-upload input { display: none; }
.ak-upload-preview { display: flex; align-items: center; gap: 12px; text-align: left; }
.ak-upload-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.ak-field { margin-top: 12px; }
.ak-field label { display: block; font-weight: 700; font-size: 12.5px; margin-bottom: 6px; }
.ak-input, .ak-select, .ak-textarea { width: 100%; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: #fff; padding: 0 14px; font: inherit; color: var(--ink); }
.ak-textarea { height: auto; padding: 12px 14px; resize: vertical; }
.ak-select { appearance: none; -webkit-appearance: none; padding-right: 42px; text-overflow: ellipsis; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; }
.ak-select:disabled { background-color: #f4f5f7; color: #9ca3af; cursor: not-allowed; opacity: 1; }
.ak-input:focus, .ak-select:focus, .ak-textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 151, 32, .15); }
.ak-alert { padding: 12px 14px; border-radius: 12px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.ak-alert.warn { background: #FFF5E0; color: #8A5200; }
.ak-alert.err { background: #FDECEC; color: #B42318; }
.ak-alert.info { background: #EAF2FF; color: #1D4ED8; }
.ak-alert.ok { background: #E7F7EE; color: #0F7A44; }

.ak-pkg { border-top: 1px solid var(--line); padding: 16px 20px; }
.ak-pkg:first-child { border-top: 0; }
.ak-pkg-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ak-pkg-h b { display: flex; align-items: center; gap: 8px; }
.ak-item { display: flex; gap: 12px; padding: 10px 0; align-items: center; }
.ak-item img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #EEF1F5; flex: none; }
.ak-item .info { flex: 1; min-width: 0; }
.ak-item .info .n { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ak-item .price { text-align: right; white-space: nowrap; }
.ak-old { text-decoration: line-through; color: #A0A9B8; font-size: 12px; }
.ak-changed { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: #FFF1DB; color: #A35F00; margin-left: 6px; }
.ak-sum { padding: 16px 20px; background: #FAFBFC; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.ak-sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13.5px; }
.ak-sum-row.total { font-size: 17px; font-weight: 800; padding-top: 10px; margin-top: 6px; border-top: 1px dashed #D5DBE5; }
.ak-tbd { color: var(--orange-d); font-weight: 700; font-style: italic; }
.ak-track { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #F2FBFD; border: 1px solid #CDEFF6; margin-top: 8px; }
.ak-track i { color: #0A7E95; font-size: 18px; }

.ak-timeline { list-style: none; margin: 0; padding: 0; }
.ak-timeline li { position: relative; padding: 0 0 18px 28px; }
.ak-timeline li::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: -4px; width: 2px; background: #E6E9EF; }
.ak-timeline li:last-child::before { display: none; }
.ak-timeline li::after { content: ""; position: absolute; left: 1px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #CBD2DD; }
.ak-timeline li:first-child::after { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(249, 151, 32, .15); }
.ak-timeline b { display: block; font-size: 13.5px; }
.ak-timeline p { font-size: 12.5px; color: var(--muted); }
.ak-timeline small { font-size: 11.5px; color: #98A2B3; }

/* ---------- checkout ---------- */
.ak-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.ak-flow div { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; }
.ak-flow b { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 4px; }
.ak-flow em { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.ak-addr { display: block; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; position: relative; background: #fff; transition: border-color .15s; }
.ak-addr.on { border-color: var(--orange); background: #FFFBF5; }
.ak-addr input { position: absolute; opacity: 0; }
.ak-addr .tick { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #CBD2DD; display: grid; place-items: center; color: #fff; font-size: 11px; }
.ak-addr.on .tick { background: var(--orange); border-color: var(--orange); }
.ak-check { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.ak-sticky { position: sticky; top: 88px; }

/* toast */
.ak-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 99; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); font-weight: 600; display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); }
.ak-toast.err { background: #B42318; }
.fade-enter-active, .fade-leave-active { transition: opacity .2s, transform .2s; }
.fade-enter-from, .fade-leave-to { opacity: 0; transform: translate(-50%, 8px); }

.sk { background: linear-gradient(90deg, #ECEFF3 0, #F6F7F9 50%, #ECEFF3 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

.ak-chat-grid { grid-template-columns: 320px minmax(0, 1fr); }
@media (max-width: 1080px) { .ak-chat-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .ak-main .hide-sm { display: none; } }

/* mobile tab bar */
.ak-tabbar { display: none; }

@media (max-width: 1080px) {
    .ak-grid { grid-template-columns: 1fr; }
    .ak-sticky { position: static; }
    .ak-hero-art { display: none; }
}
@media (max-width: 900px) {
    .ak-wrap { grid-template-columns: 1fr; padding: 16px 16px 110px; }
    .ak-side { display: none; }
    .ak-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ak-top-links .hide-sm { display: none; }
    .ak-tabbar {
        display: grid; grid-template-columns: repeat(4, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        background: #fff; border-top: 1px solid var(--line);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    }
    .ak-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #8A95A8; padding: 6px 0; position: relative; }
    .ak-tabbar a i { font-size: 18px; }
    .ak-tabbar a.on { color: var(--orange-d); }
    .ak-tabbar .count { position: absolute; top: 0; left: 56%; background: var(--orange); color: #fff; border-radius: 9px; font-size: 10px; padding: 0 5px; }
}
@media (max-width: 640px) {
    .ak-hero { padding: 22px 20px 28px; }
    .ak-hero h1 { font-size: 22px; }
    .ak-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 18px 4px 14px; }
    .ak-step { font-size: 10px; }
    .ak-step .dot { width: 32px; height: 32px; font-size: 12px; }
    .ak-step::before { top: 15px; }
    .ak-flow { grid-template-columns: 1fr; }
    .ak-order-mid { flex-wrap: wrap; }
    .ak-order-total { text-align: left; width: 100%; }
    .ak-search input { width: 100%; }
    .ak-search { width: 100%; }
    .ak-action { flex-wrap: wrap; }
    .ak-invoice-top .amount { font-size: 24px; }
}

/* print invoice */
@media print {
    .ak-top, .ak-side, .ak-tabbar, .no-print { display: none !important; }
    body { background: #fff; }
    .ak-wrap { display: block; padding: 0; }
    .ak-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- inbox, bell, receive confirmation ---------- */
.st-delivered { background: #E3F7FB; color: #0A7E95; }
.st-closed { background: #E5F6EC; color: var(--green); }
.ak-bell { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); background: #fff; font-size: 16px; }
.ak-bell:hover { border-color: var(--orange); color: var(--orange-d); }
.ak-bell .count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E5484D; color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.ak-notes { padding: 0; overflow: hidden; }
.ak-note { position: relative; display: flex; gap: 14px; padding: 16px 34px 16px 18px; border-bottom: 1px solid var(--line); }
.ak-note:last-child { border-bottom: 0; }
.ak-note.link { cursor: pointer; }
.ak-note.link:hover { background: #FAFBFD; }
.ak-note.unread { background: #FFFBF4; }
.ak-note-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #EEF2F8; color: #3D5A80; }
.ak-note.t-success .ak-note-ic { background: #E5F6EC; color: var(--green); }
.ak-note.t-warning .ak-note-ic { background: #FFF2DC; color: #B26A00; }
.ak-note.t-danger .ak-note-ic { background: #FDECEC; color: #C62828; }
.ak-note.t-violet .ak-note-ic { background: #EFEBFF; color: #6D4AE0; }
.ak-note-b { flex: 1; min-width: 0; }
.ak-note-t { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.ak-note-t small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.ak-note p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.ak-note-coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1.5px dashed #F5C27A; border-radius: 10px; background: #FFF8EC; }
.ak-note-coupon .mono { font-weight: 800; letter-spacing: .06em; }
.ak-note-coupon .ak-btn, .ak-note-coupon .ak-pill { margin-left: auto; }
.ak-note-dot { position: absolute; top: 22px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.ak-receive { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(120deg, #ECFAF2, #FBFEFC); border: 1px solid #BFE8D0; }
.ak-receive p { margin: 4px 0 0; font-size: 13px; }
@media (max-width: 600px) { .ak-receive .ak-btn { width: 100%; justify-content: center; } }
button.ak-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
