/* Noka Backoffice — same gold + black */
:root {
  --bo-bg: #0E0E0E;
  --bo-sidebar: #161412;
  --bo-card: #1F1D1A;
  --bo-line: rgba(201,169,97,0.18);
  --bo-cream: #F5EFE6;
  --bo-gold: #C9A961;
  --bo-gold-deep: #A88840;
  --bo-muted: #8A8275;
  --bo-muted-light: #B8AE9A;
  --bo-ok: #5BA86F;
  --bo-warn: #D4A74A;
  --bo-danger: #C8584F;
}
* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; background: var(--bo-bg); color: var(--bo-cream); font-family: "Inter", -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.bo-app { min-height: 100vh; display: flex; flex-direction: column; }
.bo-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bo-sidebar { display: none; }
.bo-main { flex: 1; min-width: 0; padding: 16px; overflow-x: hidden; }

.bo-topbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--bo-line); background: var(--bo-sidebar); position: sticky; top: 0; z-index: 50; }
.bo-burger { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--bo-line); background: transparent; color: var(--bo-cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

.bo-pagehead { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.bo-pagehead__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bo-eyebrow { font-size: 11px; color: var(--bo-muted); letter-spacing: 2px; text-transform: uppercase; }
.bo-h1 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 26px; letter-spacing: -0.4px; margin: 4px 0 0; line-height: 1.1; }
.bo-h2 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 20px; margin: 0 0 12px; }

.bo-card { background: var(--bo-card); border: 1px solid var(--bo-line); border-radius: 14px; padding: 16px; }
.bo-grid-kpi { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.bo-grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.bo-grid-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }

.bo-btn { height: 40px; border: 0; border-radius: 10px; background: var(--bo-gold); color: #1A1408; font: 600 13px "Inter", sans-serif; cursor: pointer; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.bo-btn:hover { filter: brightness(1.06); }
.bo-btn--ghost { background: transparent; border: 1px solid var(--bo-line); color: var(--bo-cream); font-weight: 500; }
.bo-btn--danger { background: var(--bo-danger); color: #fff; }
.bo-btn--sm { height: 32px; padding: 0 12px; font-size: 12px; }

.bo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--bo-line); color: var(--bo-cream); }
.bo-pill--gold { background: var(--bo-gold); color: #1A1408; border-color: transparent; }
.bo-pill--ok   { color: var(--bo-ok); border-color: rgba(91,168,111,0.4); }
.bo-pill--off  { color: var(--bo-muted); }
.bo-pill--warn { color: var(--bo-warn); border-color: rgba(212,167,74,0.4); }

.bo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bo-table th { text-align: left; font-size: 10px; color: var(--bo-muted); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--bo-line); white-space: nowrap; }
.bo-table td { padding: 12px; border-bottom: 1px solid var(--bo-line); color: var(--bo-cream); }
.bo-table tr:last-child td { border-bottom: 0; }
.bo-table .num { font-family: ui-monospace,Menlo,monospace; }

.bo-navitem { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--bo-muted-light); font-size: 13px; font-weight: 500; cursor: pointer; }
.bo-navitem:hover { color: var(--bo-cream); }
.bo-navitem--on { background: rgba(201,169,97,0.12); color: var(--bo-gold); }

.bo-input, .bo-select, .bo-textarea {
  height: 40px; border-radius: 10px; border: 1px solid var(--bo-line); background: var(--bo-bg); color: var(--bo-cream); padding: 0 12px; font: 500 13px "Inter", sans-serif; width: 100%;
}
.bo-textarea { padding: 10px 12px; height: auto; min-height: 80px; resize: vertical; }
.bo-label { font-size: 11px; color: var(--bo-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; display: block; }

.bo-flash { background: var(--bo-gold); color: #1A1408; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.bo-error { background: rgba(200,88,79,0.12); color: var(--bo-danger); padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; margin-bottom: 16px; border: 1px solid rgba(200,88,79,0.3); }

.bo-switch { display: inline-flex; align-items: center; width: 36px; height: 20px; border-radius: 999px; padding: 2px; cursor: pointer; transition: background 0.15s; }
.bo-switch--on { background: var(--bo-gold); justify-content: flex-end; }
.bo-switch--off { background: rgba(245,239,230,0.15); justify-content: flex-start; }
.bo-switch__dot { width: 16px; height: 16px; border-radius: 50%; }
.bo-switch--on .bo-switch__dot { background: #1A1408; }
.bo-switch--off .bo-switch__dot { background: var(--bo-muted); }

@media (min-width: 900px) {
  .bo-topbar { display: none; }
  .bo-shell { flex-direction: row; min-height: 100vh; flex: 1; }
  .bo-sidebar { display: flex; flex-direction: column; width: 232px; flex-shrink: 0; background: var(--bo-sidebar); border-right: 1px solid var(--bo-line); padding: 22px 14px; gap: 4px; min-height: 100vh; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
  .bo-main { padding: 28px 32px; }
  .bo-h1 { font-size: 32px; }
  .bo-grid-kpi { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .bo-grid-2 { grid-template-columns: 2fr 1fr; }
  .bo-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Simple paginator */
nav[role="navigation"][aria-label*="agination"] ul,
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 16px 0 0; }
.pagination li { display: inline; }
.pagination a, .pagination span { display: inline-block; padding: 6px 12px; border: 1px solid var(--bo-line); border-radius: 8px; color: var(--bo-cream); font-size: 12px; text-decoration: none; }
.pagination a:hover { border-color: var(--bo-gold); color: var(--bo-gold); }
.pagination .disabled span, .pagination li[aria-disabled="true"] span { color: var(--bo-muted); border-color: rgba(245,239,230,0.06); }

/* Login */
.bo-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(ellipse at top, rgba(201,169,97,0.08), transparent 70%), var(--bo-bg); }
.bo-login-card { width: 100%; max-width: 380px; background: var(--bo-card); border: 1px solid var(--bo-line); border-radius: 16px; padding: 28px; }
