/* Agni admin — brand colours on Bootstrap. */
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-800.woff) format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Lato"; src: url(../fonts/lato-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(../fonts/lato-700.woff) format("woff"); font-weight: 700; font-display: swap; }
:root { --green: #213d2c; --green-700: #2c4f3a; --gold: #e6a417; --cream: #fbf4e8; --line: #e4dccb; }
body { font-family: "Lato", system-ui, sans-serif; background: #f6f3ec; color: #1d2a21; }
a { color: var(--green); }
.wordmark { font: 800 1.5rem "Montserrat", sans-serif; letter-spacing: .12em; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-shell { background: linear-gradient(90deg, var(--green) 220px, transparent 220px); }
.admin-nav { background: var(--green); color: #fff; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { color: var(--gold); text-decoration: none; display: flex; align-items: baseline; gap: .5rem; }
.admin-brand small { color: #fff; opacity: .7; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.admin-brand.dark { justify-content: center; margin-bottom: 1.5rem; color: var(--green); }
.admin-brand.dark small { color: var(--green); }
.admin-nav nav { display: flex; flex-direction: column; gap: .15rem; }
.admin-nav nav a { color: #e8efe9; text-decoration: none; padding: .5rem .75rem; border-radius: 8px; font-weight: 700; }
.admin-nav nav a:hover { background: var(--green-700); }
.admin-nav nav a.active { background: var(--gold); color: var(--green); }
.admin-modes { font-size: .8rem; opacity: .9; background: rgba(255,255,255,.07); border-radius: 8px; padding: .6rem .75rem; }
.admin-user { margin-top: auto; font-size: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.admin-user small { display: block; opacity: .7; }
.mode-live { color: #7fd39a; } .mode-test { color: #ffd166; } .mode-fake { color: #ffb38a; }
.card .mode-live, .alert .mode-live { color: #1d7a3a; } .card .mode-test { color: #9a6b00; } .card .mode-fake { color: #b3541e; }
.admin-main { padding: 1.75rem 2rem; min-width: 0; }
.admin-title { font: 800 1.5rem "Montserrat", sans-serif; color: var(--green); margin-bottom: 1rem; }
.admin-login { min-height: 100vh; display: grid; place-items: center; background: var(--cream); }
.login-card { width: min(380px, 92vw); background: #fff; border-radius: 14px; border-top: 4px solid var(--gold); padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.btn-gold { background: var(--gold); color: var(--green); font-weight: 700; border: 0; }
.btn-gold:hover { background: #c98b0c; color: #fff; }
.btn-green { background: var(--green); color: #fff; font-weight: 700; border: 0; }
.btn-green:hover { background: var(--green-700); color: #fff; }
.card { border-color: var(--line); border-radius: 12px; }
.card-header { background: #fff; border-color: var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 1rem 1.25rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.stat span { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #5d6b61; }
.stat b { font: 800 1.6rem "Montserrat", sans-serif; color: var(--green); }
.stat small { color: #5d6b61; }
a.stat:hover { border-left-color: var(--green); }
.pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #eee7d8; color: var(--green); white-space: nowrap; }
.st-pending_payment, .pay-pending { background: #fbecc8; color: #6b4c00; }
.st-confirmed, .st-processing { background: #e3eefa; color: #1d4f86; }
.st-packed { background: #def3f3; color: #19605f; }
.st-shipped { background: #efe6fa; color: #5a2d8a; }
.st-delivered, .pay-paid { background: #dff1e4; color: #1d6b35; }
.st-delivery_failed, .st-cancelled, .st-returned, .pay-failed, .pay-refunded { background: #fbe3dc; color: #a33a22; }
.status-tabs .nav-link { color: var(--green); padding: .3rem .7rem; font-size: .9rem; }
.status-tabs .nav-link.active { background: var(--green); }
.status-tabs .count { opacity: .6; font-size: .8em; }
.sev { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .1rem .45rem; border-radius: 4px; background: #eee; }
.sev-critical { background: #a33a22; color: #fff; } .sev-warning { background: #e6a417; color: #213d2c; } .sev-info { background: #dbe7f3; }
.action-card { border-color: var(--gold); }
.ship-fields { border-top: 1px dashed var(--line); padding-top: .75rem; }
.settings-form h2 { color: var(--green); font-weight: 700; }
table.orders td { font-size: .92rem; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; background: none; }
  .admin-nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-nav nav { flex-direction: row; flex-wrap: wrap; }
  .admin-modes, .admin-user { margin: 0; }
  .admin-main { padding: 1rem; }
}
.nav-tabs .nav-link { color: var(--green); font-weight: 700; }
.nav-tabs .nav-link.active { border-top: 3px solid var(--gold); }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(230,164,23,.25); }
.sandbox-card { border-style: dashed; border-color: var(--gold); }
.kind-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.kind-option { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; cursor: pointer; background: #fff; }
.kind-option:has(input:checked) { border-color: var(--gold); background: #fbecc8; }
.kind-option small { display: block; color: #5d6b61; }
.kind-option input { margin-top: .25rem; accent-color: var(--green); }
.admin-nav .nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; opacity: .6; padding: .75rem .75rem .2rem; }
.problem-checks { max-height: 22rem; overflow-y: auto; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.photo-slot { display: flex; flex-direction: column; gap: .4rem; }
.photo-slot.main { grid-column: span 2; }
.photo-thumb { aspect-ratio: 4 / 3; border: 1px dashed var(--line); border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #fbf8f1; color: #8a948c; font-size: .85rem; }
.photo-slot.main .photo-thumb { aspect-ratio: 16 / 9; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Reviews */
.review-stars { color: #e6a417; letter-spacing: 1px; }
.review-text { white-space: pre-line; }
.review-mod .badge { text-transform: capitalize; }

/* Shipment booking */
.book-steps { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.book-steps li { border: 1px solid #e4dccb; border-radius: 8px; padding: .45rem .6rem; color: #6b6b6b; }
.book-steps li::before { content: "○ "; }
.book-steps li.done { border-color: #9cc9a8; background: #eef7f0; color: #1d4f2c; }
.book-steps li.done::before { content: "✓ "; font-weight: 700; }
@media (max-width: 700px) { .book-steps { grid-template-columns: 1fr 1fr; } }

/* Two-step sign-in */
.mfa-card { max-width: 420px; }
.code-input { letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.qr { border: 1px solid #e4dccb; border-radius: 8px; padding: 6px; background: #fff; }
.setup-key { font-size: .95rem; word-break: break-all; letter-spacing: .05em; }
.recovery-codes { columns: 2; font-size: 1rem; padding-left: 1.4rem; }
.recovery-codes li { margin-bottom: .3rem; }
.narrow-card { max-width: 640px; }
