/* ==========================================================================
   Marketplace - satu file gaya untuk storefront, seller center, dan admin.
   ========================================================================== */

:root {
    --brand:         #ee4d2d;
    --brand-dark:    #d5391c;
    --brand-light:   #fef2ee;
    --brand-soft:    rgba(238, 77, 45, .10);

    --bg:            #f5f5f7;
    --panel:         #ffffff;
    --panel-2:       #fafafa;
    --border:        #e8e8eb;
    --border-soft:   #f0f0f2;

    --text:          #1a1a1e;
    --text-dim:      #63636b;
    --text-faint:    #9a9aa2;

    --green:         #16a34a;
    --green-soft:    rgba(22, 163, 74, .10);
    --red:           #dc2626;
    --red-soft:      rgba(220, 38, 38, .10);
    --amber:         #d97706;
    --amber-soft:    rgba(217, 119, 6, .10);
    --blue:          #2563eb;
    --blue-soft:     rgba(37, 99, 235, .10);

    --radius:        14px;
    --radius-sm:     9px;
    --shadow:        0 8px 28px rgba(20, 20, 25, .08);
    --shadow-lg:     0 16px 44px rgba(20, 20, 25, .14);
    --sidebar-w:     236px;
    --topbar-h:      64px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.2px; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.nowrap { white-space: nowrap; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------ buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s, border-color .12s, transform .05s, opacity .12s;
    white-space: nowrap;
}
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--panel-2); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn-subtle { background: var(--panel-2); border-color: var(--border); color: var(--text); }
.btn-subtle:hover { background: var(--border-soft); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }
.spin { display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------- forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--text-dim); }
.input, select.input, textarea.input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .12s, box-shadow .12s;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input:disabled { background: var(--panel-2); color: var(--text-faint); }
.input-row { display: flex; gap: 10px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--brand); }

/* -------------------------------------------------------------------- card */
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }
.card-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-head h2, .card-head h3 { font-size: 15.5px; }

/* ------------------------------------------------------------------ badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}
.badge-brand { background: var(--brand-soft); color: var(--brand-dark); }
.badge-success { background: var(--green-soft); color: var(--green); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-neutral { background: var(--border-soft); color: var(--text-dim); }

/* ---------------------------------------------------------------- top nav */
.topnav {
    position: sticky; top: 0; z-index: 40;
    background: var(--brand);
    color: #fff;
}
.topnav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
    height: 64px; display: flex; align-items: center; gap: 16px;
}
.topnav .brand-logo { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.3px; flex-shrink: 0; }
.topnav .brand-logo:hover { text-decoration: none; }
.searchbar {
    flex: 1; display: flex; align-items: center;
    background: #fff; border-radius: 8px; overflow: hidden; max-width: 640px;
}
.searchbar input {
    flex: 1; height: 40px; border: 0; padding: 0 14px; font-size: 14px; outline: none; color: var(--text);
}
.searchbar button {
    width: 48px; height: 40px; border: 0; background: var(--brand-dark); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.topnav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topnav-actions a, .topnav-actions button {
    color: #fff; padding: 8px; border-radius: 50%; position: relative;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 0; cursor: pointer;
}
.topnav-actions a:hover, .topnav-actions button:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.topnav-actions .icon-badge {
    position: absolute; top: 2px; right: 2px;
    background: #fff; color: var(--brand-dark); font-size: 10px; font-weight: 800;
    min-width: 16px; height: 16px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.auth-links { display: flex; gap: 8px; }
.auth-links a {
    padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: #fff;
}
.auth-links a.solid { background: #fff; color: var(--brand-dark); }
.auth-links a.solid:hover { background: #f5f5f5; text-decoration: none; }
.auth-links a:not(.solid):hover { background: rgba(255,255,255,.15); text-decoration: none; }
.avatar-btn {
    width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--brand-dark);
    font-weight: 800; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0;
}
.user-menu {
    position: absolute; right: 16px; top: 60px; width: 220px; background: var(--panel);
    border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    z-index: 50; overflow: hidden;
}
.user-menu-head { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.user-menu-head .name { font-weight: 700; font-size: 13.5px; }
.user-menu-head .email { font-size: 12px; color: var(--text-faint); }
.user-menu a, .user-menu button {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px;
    font-size: 13.5px; color: var(--text); background: none; border: 0; text-align: left; cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: var(--panel-2); text-decoration: none; }
.user-menu .danger { color: var(--red); }

/* --------------------------------------------------------------- mobile bar */
.mobile-search { display: none; padding: 0 12px 10px; background: var(--brand); }
.mobile-search .searchbar { max-width: none; }

/* ------------------------------------------------------------------- hero */
.hero {
    background: linear-gradient(120deg, var(--brand), var(--brand-dark));
    color: #fff; border-radius: 18px; padding: 44px 36px; position: relative; overflow: hidden;
}
.hero h1 { font-size: 26px; max-width: 520px; }
.hero p { margin-top: 10px; max-width: 480px; opacity: .92; font-size: 14.5px; }
.hero .btn { margin-top: 18px; background: #fff; color: var(--brand-dark); border: 0; }
.hero-blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.10); }

/* --------------------------------------------------------------- category */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.category-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 6px; text-align: center; transition: box-shadow .12s, transform .1s;
}
.category-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.category-icon {
    width: 42px; height: 42px; border-radius: 50%; background: var(--brand-light);
    display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.category-item span:last-child { font-size: 11px; font-weight: 600; color: var(--text); line-height: 1.3; }

/* ----------------------------------------------------------------- product */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.product-card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .12s;
}
.product-card:hover { box-shadow: var(--shadow-lg); text-decoration: none; }
.product-thumb { position: relative; aspect-ratio: 1; background: var(--panel-2); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-discount {
    position: absolute; top: 6px; left: 6px; background: var(--brand); color: #fff;
    font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 5px;
}
.product-body { padding: 9px 10px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-name {
    font-size: 12.5px; color: var(--text); min-height: 32px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price { color: var(--brand); font-weight: 800; font-size: 15px; }
.product-price-old { color: var(--text-faint); font-size: 11.5px; text-decoration: line-through; }
.product-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.product-shop { font-size: 10.5px; color: var(--text-faint); display: flex; align-items: center; gap: 3px; }

/* -------------------------------------------------------------------- sort */
.sort-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    border: 1px solid var(--border); background: var(--panel); border-radius: 999px;
    padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--text-dim);
}
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:hover { text-decoration: none; }

/* ---------------------------------------------------------------- layout: dashboard */
.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; gap: 20px; align-items: start; }
.dash-sidebar {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px; position: sticky; top: 80px;
}
.dash-sidebar .shop-chip {
    display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 8px;
    background: var(--panel-2); border-radius: var(--radius-sm);
}
.dash-nav a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--text-dim); font-weight: 600; font-size: 13.5px; margin-bottom: 2px;
}
.dash-nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.dash-nav a.active { background: var(--brand); color: #fff; }
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; }
}

/* ------------------------------------------------------------------ stat */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat-card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; display: flex; align-items: center; gap: 12px;
}
.stat-icon {
    width: 44px; height: 44px; border-radius: 50%; background: var(--brand-light); color: var(--brand);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-value { font-size: 19px; font-weight: 800; }
.stat-label { font-size: 11.5px; color: var(--text-faint); }

/* ------------------------------------------------------------------- table */
table.simple { width: 100%; border-collapse: collapse; font-size: 13px; }
table.simple th {
    text-align: left; padding: 10px 12px; color: var(--text-faint); font-size: 11px;
    text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--border);
}
table.simple td { padding: 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.simple tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------- empty */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 20px; text-align: center; color: var(--text-faint); }
.empty-state svg { opacity: .35; }
.empty-state .title { font-weight: 700; color: var(--text-dim); font-size: 14.5px; }

/* -------------------------------------------------------------------- spinner */
.spinner-wrap { display: flex; justify-content: center; padding: 40px 0; }
.spinner {
    width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--border);
    border-top-color: var(--brand); animation: spin .7s linear infinite;
}

/* -------------------------------------------------------------------- toast */
.toast-host { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: #17181c; color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13.5px;
    box-shadow: var(--shadow-lg); max-width: 320px;
}
.toast.success { background: #14532d; }
.toast.error { background: #7f1d1d; }
.toast.warn { background: #78350f; }

/* ------------------------------------------------------------------- drawer/modal */
.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; opacity: 0; pointer-events: none;
    transition: opacity .15s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 420px; background: var(--panel);
    z-index: 95; transform: translateX(100%); transition: transform .2s; display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; display: none;
    align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal { background: var(--panel); border-radius: var(--radius); width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.modal-head { padding: 16px 18px; border-bottom: 1px solid var(--border); font-weight: 700; }
.modal-body { padding: 18px; }
.modal-foot { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ---------------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tab {
    padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-faint); cursor: pointer;
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab.active { color: var(--brand); border-color: var(--brand); }

/* --------------------------------------------------------------- pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.pagination button {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* --------------------------------------------------------------------- chat */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; height: 72vh; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; }
.chat-list-item {
    display: flex; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border-soft);
    cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left;
}
.chat-list-item:hover { background: var(--panel-2); }
.chat-list-item.active { background: var(--brand-light); }
.chat-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--brand-light); color: var(--brand-dark);
    display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.chat-list-info { flex: 1; min-width: 0; }
.chat-list-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list-preview { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread {
    background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; min-width: 18px; height: 18px;
    border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.chat-main { display: flex; flex-direction: column; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 700; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble-row { display: flex; }
.chat-bubble-row.mine { justify-content: flex-end; }
.chat-bubble {
    max-width: 72%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; background: var(--panel-2);
    border-bottom-left-radius: 4px;
}
.chat-bubble-row.mine .chat-bubble { background: var(--brand); color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.chat-bubble time { display: block; font-size: 10px; opacity: .65; margin-top: 4px; }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; }
@media (max-width: 760px) { .chat-shell { grid-template-columns: 1fr; height: auto; } .chat-list { max-height: 220px; } }

/* --------------------------------------------------------------- QRIS pay page */
.pay-card { max-width: 380px; margin: 0 auto; text-align: center; }
.qr-box {
    width: 260px; height: 260px; margin: 16px auto; padding: 10px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: #fff;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.countdown { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; color: var(--text-dim); }

/* ------------------------------------------------------------------ footer */
.footer { margin-top: 48px; background: var(--panel); border-top: 1px solid var(--border); padding: 36px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; font-size: 13px; }
.footer-grid h4 { font-size: 13px; margin-bottom: 10px; }
.footer-grid li { color: var(--text-dim); margin-bottom: 6px; list-style: none; }
.footer-bottom { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-soft); }

/* ---------------------------------------------------------------- product detail */
.gallery-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--panel-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumb { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; }
.gallery-thumb.active { border-color: var(--brand); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.price-box { background: var(--brand-light); border-radius: var(--radius-sm); padding: 14px 16px; margin: 14px 0; }
.price-box .now { font-size: 24px; font-weight: 800; color: var(--brand-dark); }
.price-box .old { font-size: 13px; color: var(--text-faint); text-decoration: line-through; }
.variant-row { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill {
    border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; background: var(--panel);
}
.variant-pill.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.qty-box button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty-box span { width: 40px; text-align: center; font-weight: 700; }
.shop-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }

/* ------------------------------------------------------------------- cart */
.cart-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.cart-row img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--panel-2); }
.cart-shop-head { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--border); }

/* --------------------------------------------------------------- upload box */
.upload-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.upload-thumb { position: relative; width: 82px; height: 82px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb .remove {
    position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(0,0,0,.6); color: #fff; border: 0; font-size: 11px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.upload-add {
    width: 82px; height: 82px; border: 2px dashed var(--border); border-radius: 8px; display: flex;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-faint);
    cursor: pointer; font-size: 10px;
}
.upload-add:hover { border-color: var(--brand); color: var(--brand); }

/* --------------------------------------------------------------------- misc */
.divider { height: 1px; background: var(--border-soft); margin: 14px 0; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-14 { gap: 14px; }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; }
.section { padding: 20px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; }
.alert-warn { background: var(--amber-soft); color: #92400e; border: 1px solid rgba(217,119,6,.25); }
.alert-info { background: var(--blue-soft); color: #1e40af; border: 1px solid rgba(37,99,235,.25); }

@media (max-width: 640px) {
    .topnav-inner .searchbar { display: none; }
    .mobile-search { display: block; }
    .hero { padding: 28px 20px; }
    .hero h1 { font-size: 21px; }
}
