/* =====================================================
   LE COMITÉ — boardroom panel
   Mahogany pulse, amber whiskey, silver rain
   ===================================================== */

:root {
  --bg: #0c0604;
  --bg-deep: #15080a;
  --wood: #3d1f15;
  --wood-mid: #4a2818;
  --wood-light: #6b3a25;
  --mahogany: #2b1410;

  --amber: #d4a849;
  --amber-light: #f0d080;
  --amber-deep: #a07b2b;
  --whiskey: #c9892d;
  --brass: #b08c3c;
  --brass-light: #d4b167;

  --cream: #d8c79e;
  --cream-bright: #f4e8c8;
  --silver: #a8a6a0;
  --silver-rain: rgba(220, 218, 210, 0.5);

  --bordeaux: #4a1414;
  --bordeaux-deep: #2a0a0a;

  --panel: rgba(28, 14, 10, 0.85);
  --panel-bright: rgba(45, 26, 18, 0.85);
  --panel-border: rgba(212, 168, 73, 0.25);
  --panel-border-bright: rgba(212, 168, 73, 0.55);
  --ink: #1a0a08;
  --danger: #8a2a2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--cream);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(212, 168, 73, 0.18), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(74, 20, 20, 0.5), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(43, 20, 16, 0.7), transparent 60%),
    linear-gradient(180deg, #15080a 0%, #1a0e0a 50%, #0c0604 100%);
  background-attachment: fixed;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* ====== SILVER RAIN ====== */
#rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: screen;
}

/* ====== SUBTLE WOOD GRAIN OVERLAY ====== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0 2px,
      rgba(107, 58, 37, 0.025) 2px 3px,
      transparent 3px 8px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 80px,
      rgba(160, 123, 43, 0.04) 80px 82px,
      transparent 82px 120px
    );
  opacity: 0.7;
}

/* ====== VIGNETTE ====== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
}

/* ====== LAYOUT ====== */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
}

/* ====== TOPBAR / BOARDROOM HEADER ====== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background:
    linear-gradient(135deg, rgba(61, 31, 21, 0.95), rgba(28, 14, 10, 0.95));
  border: 1px solid var(--panel-border-bright);
  border-radius: 4px;
  margin-bottom: 0.6rem;
  box-shadow:
    inset 0 1px 0 rgba(212, 168, 73, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 12px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 168, 73, 0.15);
  border-radius: 2px;
  pointer-events: none;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar .brand .seal {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--amber-light), var(--amber) 60%, var(--amber-deep) 100%);
  border: 2px solid var(--brass-light);
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(212, 168, 73, 0.4),
    0 0 0 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.topbar .brand .logo {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--cream-bright);
  text-shadow: 0 0 18px rgba(212, 168, 73, 0.5);
  line-height: 1;
}

.topbar .brand .sub {
  font-size: 0.72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-top: 5px;
  font-style: italic;
}

.topbar .actions {
  display: flex;
  gap: 0.5rem;
}

/* ====== TAGLINE BAND ====== */
.tagline {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--brass-light);
  letter-spacing: 2px;
  padding: 0.8rem 1rem 1.5rem;
  opacity: 0.85;
}

.tagline::before, .tagline::after {
  content: '◆';
  color: var(--amber-deep);
  font-style: normal;
  margin: 0 0.7rem;
  font-size: 0.7em;
}

/* ====== TABS ====== */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(212, 168, 73, 0.25);
  padding-bottom: 0;
}

.tab {
  flex: 1;
  padding: 1rem 1.2rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--silver);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  position: relative;
}

.tab:hover { color: var(--cream-bright); }

.tab.active {
  color: var(--amber-light);
  border-bottom-color: var(--amber);
  text-shadow: 0 0 14px rgba(240, 208, 128, 0.4);
}

.tab .count {
  display: inline-block;
  margin-left: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  background: rgba(212, 168, 73, 0.18);
  border: 1px solid rgba(212, 168, 73, 0.4);
  border-radius: 2px;
  color: var(--amber-light);
  letter-spacing: 1px;
}

.pane { display: none; }
.pane.active { display: block; }

/* ====== STATEGIC REPORT (top of inventory) ====== */
.report {
  margin-bottom: 2rem;
  padding: 1.5rem 1.5rem 1rem;
  background:
    linear-gradient(135deg, rgba(43, 20, 16, 0.9), rgba(15, 8, 6, 0.9));
  border: 1px solid var(--panel-border-bright);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(212, 168, 73, 0.15),
    0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

.report::before {
  content: 'CLASSIFIED';
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--bordeaux);
  color: var(--cream-bright);
  font-family: 'Cinzel', serif;
  letter-spacing: 4px;
  font-size: 0.7rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--brass);
  border-radius: 2px;
}

.report h2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 5px;
  color: var(--cream-bright);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.report .h-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--brass-light);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.report-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .report-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.report-cell {
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 168, 73, 0.2);
  border-radius: 2px;
  position: relative;
}

.report-cell .label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--brass-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.report-cell .value {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--amber-light);
  line-height: 1;
  text-shadow: 0 0 18px rgba(240, 208, 128, 0.35);
  letter-spacing: 1px;
}

.report-cell .value .unit {
  font-size: 0.9rem;
  color: var(--cream);
  margin-left: 0.3rem;
  letter-spacing: 2px;
}

.report-cell .breakdown {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--cream);
  opacity: 0.78;
  line-height: 1.4;
}

.report-cell .breakdown div { display: flex; justify-content: space-between; padding: 0.15rem 0; }
.report-cell .breakdown .v { color: var(--amber-light); }

.report-cell.alert .value { color: var(--bordeaux); text-shadow: 0 0 18px rgba(138, 42, 42, 0.5); }
.report-cell.alert {
  background: rgba(74, 20, 20, 0.2);
  border-color: rgba(138, 42, 42, 0.5);
}

.report-cell.alert .missing {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  padding: 0.5rem 0.7rem;
  background: rgba(0, 0, 0, 0.4);
  border-left: 2px solid var(--bordeaux);
  color: var(--cream);
}

.report-cell.alert .missing b { color: var(--amber-light); }

/* ====== CATEGORY CHIPS ====== */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.cat-chip {
  padding: 0.55rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 168, 73, 0.25);
  border-radius: 2px;
  color: var(--silver);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.5px;
}

.cat-chip:hover { color: var(--cream-bright); border-color: var(--brass); }

.cat-chip.active {
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  border-color: var(--brass-light);
  color: var(--ink);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 14px rgba(212, 168, 73, 0.3);
}

.cat-chip .count {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  color: var(--brass-light);
}

.cat-chip.active .count { background: rgba(0, 0, 0, 0.55); color: var(--amber-light); }

/* ====== PRODUCT DOSSIERS (cards) ====== */
.products-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  background:
    linear-gradient(180deg, rgba(45, 26, 18, 0.92), rgba(20, 11, 8, 0.92));
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  padding: 1.1rem 1.2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.4;
}

.product-card.expanded {
  grid-column: 1 / -1;
  border-color: var(--brass);
  box-shadow: 0 0 30px rgba(212, 168, 73, 0.2);
}

.product-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-card .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream-bright);
  letter-spacing: 0.5px;
}

.product-card .totals {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-card .pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 168, 73, 0.35);
  color: var(--cream);
  letter-spacing: 1px;
}

.product-card .pill.total {
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  border-color: var(--brass-light);
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.product-card .notes {
  font-size: 0.85rem;
  color: var(--brass-light);
  margin-top: 0.5rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.product-card .expand-btn {
  border: 1px solid rgba(212, 168, 73, 0.3);
  background: transparent;
  color: var(--brass-light);
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.product-card .expand-btn:hover {
  background: rgba(212, 168, 73, 0.12);
  border-color: var(--brass);
  color: var(--amber-light);
}

.product-card .items {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(212, 168, 73, 0.2);
  display: none;
}

.product-card.expanded .items { display: block; }

.item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(212, 168, 73, 0.1);
}

.item-row:last-child { border-bottom: none; }

.item-row .idx {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: var(--brass-light);
  width: 2.3rem;
  letter-spacing: 1px;
}

.item-row input[type=number] {
  flex: 1;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  border: 1px solid rgba(212, 168, 73, 0.25);
  border-radius: 2px;
  color: var(--cream-bright);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  max-width: 130px;
}

.item-row input[type=text] {
  flex: 2;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  border: 1px solid rgba(212, 168, 73, 0.25);
  border-radius: 2px;
  color: var(--cream);
  font-size: 0.85rem;
}

.item-row input:focus { outline: none; border-color: var(--brass); }

.item-row .unit {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: var(--brass-light);
  min-width: 60px;
  letter-spacing: 1px;
}

.icon-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 168, 73, 0.3);
  color: var(--brass-light);
  padding: 0.4rem 0.65rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.icon-btn:hover { background: rgba(212, 168, 73, 0.2); color: var(--amber-light); border-color: var(--brass); }
.icon-btn.danger:hover { background: rgba(138, 42, 42, 0.4); border-color: var(--bordeaux); color: var(--cream-bright); }

.product-card .item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}

.btn.primary {
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 4px 14px rgba(212, 168, 73, 0.35);
  border: 1px solid var(--brass-light);
}

.btn.primary:hover {
  background: linear-gradient(180deg, var(--amber-light), var(--amber));
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 22px rgba(212, 168, 73, 0.45);
}

.btn.secondary {
  background: rgba(0, 0, 0, 0.4);
  color: var(--brass-light);
  border: 1px solid var(--brass);
}

.btn.secondary:hover { background: rgba(212, 168, 73, 0.15); color: var(--amber-light); }

.btn.ghost {
  background: transparent;
  color: var(--silver);
  border: 1px dashed rgba(212, 168, 73, 0.35);
}

.btn.ghost:hover { color: var(--cream-bright); border-color: var(--brass); border-style: solid; }

/* ====== ADD PRODUCT ====== */
.add-product-card {
  background:
    linear-gradient(180deg, rgba(20, 11, 8, 0.6), rgba(10, 5, 3, 0.6));
  border: 1px dashed rgba(212, 168, 73, 0.35);
  border-radius: 3px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
}

.add-product-card > div:first-child {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brass-light);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.add-product-card > div:first-child i {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  text-transform: none;
  color: var(--cream-bright);
  letter-spacing: 0.5px;
}

.add-product-card input, .add-product-card select {
  padding: 0.55rem 0.75rem;
  background: var(--ink);
  border: 1px solid rgba(212, 168, 73, 0.3);
  border-radius: 2px;
  color: var(--cream-bright);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}

.add-product-card input:focus, .add-product-card select:focus {
  outline: none; border-color: var(--brass);
}

.add-product-card input::placeholder { color: var(--silver); opacity: 0.6; }

.row { display: flex; gap: 0.5rem; align-items: center; }
.row > * { flex: 1; }

/* ====== PAGES TAB — surveillance posts ====== */
.page-group { margin-bottom: 2.2rem; }

.page-group h2 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cream-bright);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 168, 73, 0.25);
}

.page-list {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) { .page-list { grid-template-columns: repeat(2, 1fr); } }

.page-card {
  background:
    linear-gradient(180deg, rgba(45, 26, 18, 0.85), rgba(20, 11, 8, 0.85));
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s;
  position: relative;
}

.page-card:hover {
  border-color: var(--brass);
  box-shadow: 0 0 24px rgba(212, 168, 73, 0.15);
}

.page-card .title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream-bright);
  letter-spacing: 0.5px;
}

.page-card .desc {
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.85;
}

.page-card .url {
  font-size: 0.75rem;
  color: var(--brass-light);
  font-family: 'Consolas', 'Menlo', monospace;
  word-break: break-all;
  letter-spacing: 0;
  padding: 0.3rem 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  border-left: 2px solid var(--amber-deep);
}

.page-card .tag {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  background: rgba(212, 168, 73, 0.12);
  border: 1px solid rgba(212, 168, 73, 0.4);
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brass-light);
  align-self: flex-start;
}

.page-card .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

/* ====== LOGIN PAGE ====== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  z-index: 2;
}

.login-card {
  background:
    linear-gradient(135deg, rgba(61, 31, 21, 0.95), rgba(15, 8, 6, 0.97));
  border: 1px solid var(--panel-border-bright);
  border-radius: 4px;
  padding: 3rem 2.4rem 2.4rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(212, 168, 73, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 30px 80px rgba(0, 0, 0, 0.7);
  position: relative;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 168, 73, 0.15);
  border-radius: 2px;
  pointer-events: none;
}

.login-card .seal {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--amber-light), var(--amber) 60%, var(--amber-deep) 100%);
  border: 3px solid var(--brass-light);
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(212, 168, 73, 0.55),
    0 0 0 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-card h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 9px;
  color: var(--cream-bright);
  text-shadow: 0 0 22px rgba(212, 168, 73, 0.5);
  margin-bottom: 0.4rem;
}

.login-card .sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--brass-light);
  margin-bottom: 0.8rem;
}

.login-card .mantra {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--silver);
  margin-bottom: 2rem;
  opacity: 0.7;
  letter-spacing: 1px;
}

.login-card .field-label {
  display: block;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--brass-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.login-card input[type=password] {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--ink);
  border: 1px solid var(--panel-border-bright);
  border-radius: 2px;
  color: var(--cream-bright);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

.login-card input[type=password]:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 18px rgba(212, 168, 73, 0.25);
}

.login-card .err {
  color: #e08080;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  min-height: 1.2em;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  letter-spacing: 1px;
}

.login-card .btn { width: 100%; justify-content: center; padding: 0.95rem; font-size: 0.85rem; }

.login-card .footer {
  margin-top: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--silver);
  opacity: 0.5;
}

/* ====== TOAST ====== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(2rem);
  background: linear-gradient(135deg, rgba(43, 20, 16, 0.97), rgba(10, 5, 3, 0.97));
  border: 1px solid var(--brass);
  color: var(--cream-bright);
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 1000;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: var(--bordeaux); color: #e08080; }
