/* Pettah Bazaar — admin panel (dense, same dark palette as the shop) */
.admin { background: #050a15; }
.a-shell { display: grid; grid-template-columns: 246px 1fr; min-height: 100vh; }

.a-side {
  background: #0c1626;
  border-right: 1px solid var(--line-soft);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.a-brand { font-family: var(--display); font-size: 1.25rem; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: baseline; gap: .35em; }
.a-brand b { color: var(--gold); font-weight: 400; }
.a-brand small { font-family: var(--body); font-size: .52rem; letter-spacing: .26em; color: var(--muted); }

.a-nav { display: grid; gap: 3px; }
.a-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; font-size: .9rem; color: var(--ink-dim); transition: .3s var(--ease); }
.a-nav a:hover { background: rgba(255, 255, 255, .04); color: var(--gold); }
.a-nav a.on { background: rgba(240, 192, 74, .12); color: var(--gold); font-weight: 600; }
.a-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; flex: none; }

.a-side-foot { margin-top: auto; display: grid; gap: 8px; }
.a-who { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; }
.a-who b { font-size: .9rem; display: block; }
.a-who small { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.a-main { padding: 26px clamp(18px, 3vw, 34px) 60px; min-width: 0; }
.a-top { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.a-top h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0; }

.a-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.a-card { background: #0a1224; border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px; }
.a-card span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.a-card b { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--gold); margin-top: 6px; line-height: 1.1; }
.a-card small { color: var(--ink-dim); font-size: .78rem; }

.a-panel { background: #0a1224; border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px; margin-bottom: 22px; }
.a-panel > h2 { font-size: 1.3rem; margin: 0 0 14px; }
.a-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }

.a-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.a-table th { text-align: left; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.a-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.a-table tr:hover td { background: rgba(255, 255, 255, .02); }
.a-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.a-table img { width: 42px; height: 52px; border-radius: 6px; object-fit: cover; }
.a-cell { display: flex; align-items: center; gap: 12px; }
.a-cell b { display: block; font-weight: 600; }
.a-cell small { color: var(--muted); font-size: .76rem; }
.a-wrap { overflow-x: auto; }

.a-two { display: grid; gap: 22px; align-items: start; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.a-two.aside { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.a-two > * { min-width: 0; }

.a-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.a-form .full { grid-column: 1 / -1; }
.a-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; }

.status { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); }
.st-pending { color: #f0c04a; border-color: rgba(240, 192, 74, .4); }
.st-processing { color: #82abeb; border-color: rgba(130, 171, 235, .4); }
.st-shipped { color: #b6c98f; border-color: rgba(182, 201, 143, .4); }
.st-delivered { color: #7fc298; border-color: rgba(127, 194, 152, .45); }
.st-cancelled { color: #f0b6a6; border-color: rgba(240, 182, 166, .45); }
.low { color: var(--ember); font-weight: 700; }

.a-in {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 9px 16px;
  font-size: .84rem;
  outline: none;
}
.a-in:focus { border-color: var(--gold); }
.a-select, select[name="cat"], select[name="state"] { background-color: #0a1224; }

.a-login { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.a-login-box { width: min(420px, 100%); background: #0a1224; border: 1px solid var(--line); border-radius: 18px; padding: 34px; }

.bar { height: 6px; border-radius: 6px; background: rgba(233, 238, 250, .1); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.chart div { flex: 1; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.chart div:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #000; color: var(--ink); font-size: .68rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.ticks { display: flex; justify-content: space-between; font-size: .66rem; color: var(--muted); margin-top: 6px; }

@media (max-width: 991px) {
  .a-shell { grid-template-columns: 1fr; }
  .a-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .a-nav { display: flex; flex-wrap: wrap; }
  .a-side-foot { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .a-who { flex: 1 1 auto; }
  .a-cards { grid-template-columns: repeat(2, 1fr); }
  .a-form { grid-template-columns: 1fr; }
  .a-two, .a-two.aside { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .a-cards { grid-template-columns: 1fr; }
  .a-main { padding: 18px 14px 46px; }
  .a-panel, .a-card { padding: 15px; }
}
