:root {
    --blue: #1769e0;
    --navy: #10264b;
    --ink: #17243a;
    --muted: #68778d;
    --line: #e4eaf2;
    --bg: #f5f8fc;
    --green: #16834a
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif
}

a {
    color: var(--blue);
    text-decoration: none
}

.topbar {
    height: 68px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(22px, calc((100% - 1120px)/2));
    position: sticky;
    top: 0;
    z-index: 5
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-size: 17px;
    font-weight: 700
}

.brand b {
    color: var(--blue)
}

.brand-mark {
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center
}

nav {
    display: flex;
    gap: 20px
}

nav a {
    font-weight: 600;
    color: #43536b
}

.container {
    max-width: 1120px;
    margin: 34px auto;
    padding: 0 20px;
    min-height: 72vh
}

.footer {
    text-align: center;
    color: var(--muted);
    padding: 25px;
    border-top: 1px solid var(--line);
    font-size: 13px
}

.hero {
    background: linear-gradient(120deg, #10264b, #1769e0);
    color: white;
    border-radius: 22px;
    padding: 32px;
    margin-bottom: 24px
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 30px
}

.hero p {
    margin: 0;
    color: #dce9ff
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 5px 18px #10264b08
}

.card h2,
.card h3 {
    margin-top: 0;
    color: var(--navy)
}

.stat {
    font-size: 30px;
    font-weight: 800;
    color: var(--blue)
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    padding: 11px 17px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px
}

.btn.secondary {
    background: #edf3ff;
    color: var(--blue)
}

.btn.dark {
    background: var(--navy)
}

button:disabled {
    opacity: .45;
    cursor: not-allowed
}

form.stack {
    display: grid;
    gap: 14px
}

.field {
    display: grid;
    gap: 6px
}

label {
    font-weight: 650;
    color: #34445d
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #d7e0ec;
    border-radius: 10px;
    padding: 12px 13px;
    background: #fff;
    color: var(--ink);
    font: inherit
}

textarea {
    min-height: 110px;
    resize: vertical
}

.table-wrap {
    overflow: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px
}

table {
    width: 100%;
    border-collapse: collapse
}

th,
td {
    text-align: left;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap
}

th {
    background: #f7f9fc;
    color: #53627a;
    font-size: 12px;
    text-transform: uppercase
}

.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 18px;
    background: #e9f8ef;
    color: #17653a
}

.alert.error {
    background: #fff0f0;
    color: #a32727
}

.badge {
    display: inline-block;
    border-radius: 30px;
    padding: 4px 9px;
    background: #edf3ff;
    color: #245ab0;
    font-size: 12px;
    font-weight: 700
}

.muted {
    color: var(--muted)
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.login-card {
    max-width: 440px;
    margin: 50px auto
}

.review-shell {
    max-width: 680px;
    margin: 24px auto
}

.review-brand {
    text-align: center;
    padding: 24px 10px
}

.stars {
    font-size: 25px;
    letter-spacing: 4px;
    color: #e6a000
}

.topic {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    border: 1px solid #dce5f1;
    border-radius: 30px;
    background: #f7faff;
    color: #36516f;
    font-size: 13px
}

.counter {
    font-size: 12px;
    color: var(--muted);
    text-align: right
}

.qr {
    background: #fff;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: inline-block
}

@media(max-width:600px) {
    .topbar {
        padding: 0 14px
    }

    .container {
        margin: 20px auto;
        padding: 0 14px
    }

    .hero {
        padding: 24px
    }

    .hero h1 {
        font-size: 25px
    }

    nav {
        gap: 12px
    }
}

.btn.danger,
button.danger {
    background: #b42332;
    color: #fff
}

.btn.danger:hover,
button.danger:hover {
    background: #921b28
}

/* Platform logo — shared header for Super Admin and Client */
.brand-logo {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
    max-height: 47px;
    object-fit: contain;
    object-position: left center
}

@media(max-width:600px) {
    .brand-logo {
        width: 180px;
        max-height: 40px
    }

    .topbar {
        gap: 12px
    }

    nav {
        gap: 10px
    }
}

@media(max-width:380px) {
    .brand-logo {
        width: 155px
    }

    nav {
        gap: 7px
    }

    nav a {
        font-size: 12px
    }
}

/* Header logo hard bounds; prevent original PNG dimensions from expanding header */
.topbar {
    min-height: 68px;
    height: 68px;
    overflow: visible
}

.topbar .brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: calc(100% - 140px);
    flex: 0 1 auto
}

.topbar .brand .brand-logo {
    display: block !important;
    width: 220px !important;
    height: 42px !important;
    max-height: 42px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: left center !important
}

.topbar nav {
    flex-shrink: 0
}

@media(max-width:600px) {
    .topbar .brand {
        max-width: calc(100% - 125px)
    }

    .topbar .brand .brand-logo {
        width: 170px !important;
        height: 34px !important;
        max-height: 34px !important
    }
}

@media(max-width:380px) {
    .topbar .brand .brand-logo {
        width: 145px !important;
        height: 30px !important;
        max-height: 30px !important
    }
}

/* Center Review Action Buttons */
.review-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}
.review-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}
/* Phase 2: review stock and bulk management */
.review-stats{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.review-stat{display:inline-flex;gap:6px;padding:9px 13px;border:1px solid #dce5f2;border-radius:10px;background:#f4f8ff;color:#17335c}
.bulk-panel{border:1px solid #dce5f2;border-radius:12px;padding:15px;margin:20px 0;background:#f8fbff}
.bulk-panel summary{cursor:pointer;color:#075ce5}
.bulk-panel form{margin-top:14px}
.stock-low{color:#a43b18;font-weight:700}.stock-ok{color:#117a45;font-weight:700}
