* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #111; color: #eee; font-family: 'Inter', 'Noto Sans Thai', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  box-shadow: 0 1px 0 rgba(212, 175, 55, 0.15);
}
.brand {
  font-family: 'Playfair Display', 'Noto Sans Thai', serif;
  font-weight: 700; font-size: 1.25rem;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #f0cc55 0%, #d4af37 60%, #a88224 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
nav { display: flex; align-items: center; gap: 0.25rem; }
nav > a { margin-left: 0.25rem; opacity: 0.85; }
nav a:hover { opacity: 1; }

/* dropdown menus */
.nav-dd { position: relative; margin-left: 0.25rem; }
.nav-dd-trigger {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.3rem 0.65rem; border-radius: 6px; font-size: 0.85rem;
  cursor: pointer; opacity: 0.8; user-select: none;
  transition: background 0.15s, opacity 0.15s;
}
.nav-dd:hover .nav-dd-trigger { background: #222; opacity: 1; }
.nav-chevron { font-size: 0.7rem; opacity: 0.6; transition: transform 0.2s; }
.nav-dd:hover .nav-chevron { transform: rotate(180deg); }
.nav-dd-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 6px; min-width: 140px;
  z-index: 200; flex-direction: column; gap: 0;
}
.nav-dd-menu-box {
  background: #1a1a1a; border: 1px solid #2a2a2a;
  border-radius: 8px; padding: 0.35rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 0.1rem;
}
.nav-dd:hover .nav-dd-menu { display: flex; }
.nav-dd-menu-box a {
  padding: 0.45rem 0.75rem; border-radius: 5px; font-size: 0.875rem;
  opacity: 0.8; white-space: nowrap; display: block;
}
.nav-dd-menu-box a:hover { background: #252525; opacity: 1; }
.lang-switch { display: inline-flex; margin-left: 1rem; padding: 0.15rem 0.2rem; background: #0a0a0a; border: 1px solid #333; border-radius: 20px; gap: 0.1rem; }
.lang-switch a { margin: 0; padding: 0.2rem 0.7rem; font-size: 0.75rem; border-radius: 14px; opacity: 0.55; }
.lang-switch a.active { background: #d4af37; color: #111; opacity: 1; font-weight: 600; }
.login-lang { position: fixed; top: 1rem; right: 1rem; }

main { padding: 1rem; }

/* ---- tabs list ---- */
.tabs-list { max-width: 640px; margin: 0 auto; }
.new-tab { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.new-tab input { flex: 1; padding: 0.75rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 6px; font-size: 1rem; }
.new-tab button { padding: 0.75rem 1.2rem; background: #d4af37; color: #111; font-weight: 700; border: none; border-radius: 6px; font-size: 1rem; }

.tab-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.tab-cards li a { display: block; padding: 1rem; background: #222; border: 1px solid #333; border-radius: 8px; }
.tab-cards li a:hover { background: #2a2a2a; }
.tab-cards strong { display: block; font-size: 1.1rem; }
.tab-cards .tab-total { display: block; font-size: 1rem; color: #d4af37; font-variant-numeric: tabular-nums; font-weight: 600; margin-top: 0.2rem; }
.tab-cards .time { font-size: 0.8rem; opacity: 0.6; }
.empty { opacity: 0.6; font-style: italic; }

/* ---- tab view ---- */
.tab-layout { display: grid; grid-template-columns: 340px 1fr; gap: 1rem; height: calc(100vh - 100px); }
@media (max-width: 800px) { .tab-layout { grid-template-columns: 1fr; height: auto; } }

.order-panel { background: #1a1a1a; border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; min-height: 0; }
.order-panel h2 { margin: 0 0 0.75rem 0; }
.order-lines { flex: 1; overflow-y: auto; }
.order-lines .lines { list-style: none; padding: 0; margin: 0; }
.order-lines .lines li { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.6rem 0; border-bottom: 1px solid #2a2a2a; }
.line-main { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.line-name { font-weight: 500; }
.line-price { opacity: 0.75; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.line-ctrls { display: flex; align-items: center; gap: 0.35rem; }
.qty-btn {
  width: 28px; height: 28px; background: #222; color: #eee;
  border: 1px solid #333; border-radius: 6px;
  font-size: 1rem; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.qty-btn:active { background: #d4af37; color: #111; }
.line-qty { min-width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.line-del { background: transparent; border: none; color: #f66; font-size: 1.3rem; padding: 0 0.3rem; margin-left: auto; cursor: pointer; }

/* voided lines on paid tabs */
li.voided .line-main { text-decoration: line-through; opacity: 0.4; }
.voided-tag { padding: 0.15rem 0.5rem; background: #2a1a1a; color: #f99; border-radius: 10px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.void-btn { padding: 0.3rem 0.75rem; background: transparent; color: #f88; border: 1px solid #633; border-radius: 6px; font-size: 0.8rem; cursor: pointer; }
.void-btn:hover { background: #2a1a1a; }

/* paid tab view */
.paid-tab { max-width: 640px; margin: 0 auto; }
.paid-head { background: #1a1a1a; padding: 1.25rem; border-radius: 10px; margin-bottom: 1rem; }
.paid-head h2 { margin: 0 0 0.75rem; display: flex; gap: 0.75rem; align-items: center; }
.paid-badge { padding: 0.15rem 0.6rem; background: #1e3e1e; color: #9f9; border-radius: 10px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.paid-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.5rem; font-size: 0.85rem; }
.paid-meta div { display: flex; flex-direction: column; gap: 0.2rem; }
.paid-meta span { opacity: 0.5; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.paid-lines { background: #1a1a1a; padding: 1rem 1.25rem; border-radius: 10px; }
.tab-cards.paid li a { opacity: 0.8; }
.tab-cards.paid li a:hover { opacity: 1; }
.total { display: flex; justify-content: space-between; padding: 1rem 0.25rem 0.5rem; font-size: 1.2rem; border-top: 1px solid #333; margin-top: 0.5rem; }
.pay-btn { display: block; text-align: center; margin-top: 0.75rem; padding: 1rem; background: #00b050; color: #fff; border-radius: 8px; font-weight: 700; font-size: 1.1rem; }
.discard-tab-btn { display: block; width: 100%; margin-top: 0.5rem; padding: 0.6rem; background: transparent; color: #f66; border: 1px solid #633; border-radius: 8px; font-size: 0.9rem; cursor: pointer; }
.discard-tab-btn:hover { background: #2a1a1a; }

/* ---- receipt photo upload ---- */
.receipt-upload-section { margin-top: 1.25rem; }
.receipt-upload-btn, .receipt-replace-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: 8px; cursor: pointer;
  font-size: 1rem; font-family: inherit; font-weight: 600;
  border: 2px dashed #444; background: #1a1a1a; color: #aaa;
  transition: border-color 0.15s, color 0.15s;
}
.receipt-upload-btn:hover { border-color: #d4af37; color: #d4af37; }
.receipt-replace-btn { font-size: 0.82rem; padding: 0.35rem 0.75rem; border-style: solid; border-color: #333; color: #888; }
.receipt-replace-btn:hover { border-color: #555; color: #ccc; }
.receipt-photo-wrap { display: flex; flex-direction: column; gap: 0.6rem; }
.receipt-photo-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.5; margin: 0; font-weight: 600; }
.receipt-photo-thumb { max-width: 100%; max-height: 320px; border-radius: 8px; border: 1px solid #333; display: block; object-fit: contain; background: #111; }
.receipt-replace-form { margin-top: 0.25rem; }

/* ---- menu panel ---- */
.menu-panel { background: #1a1a1a; border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; min-height: 0; }
.item-search { width: 100%; padding: 0.55rem 0.75rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 6px; font-size: 0.95rem; margin-bottom: 0.5rem; font-family: inherit; }
.item-search:focus { outline: none; border-color: #555; }
.cat-tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.5rem; border-bottom: 1px solid #333; }
.cat-tab { flex: 0 0 auto; padding: 0.5rem 1rem; background: #222; color: #ccc; border: 1px solid #333; border-radius: 20px; font-size: 0.9rem; }
.cat-tab.active { background: #d4af37; color: #111; border-color: #d4af37; font-weight: 700; }

.cat-group { flex: 1; overflow-y: auto; padding-top: 0.75rem; }
.cat-group h3 { margin: 0 0 0.75rem 0; opacity: 0.7; font-weight: 500; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem; }
.item-grid form { margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.item-grid input[type="number"] { padding: 0.4rem; background: #111; color: #eee; border: 1px solid #333; border-radius: 4px; font-size: 0.9rem; }
.item-btn {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  min-height: 70px; padding: 0.6rem;
  background: #2a2a2a; color: #eee; border: 1px solid #333; border-radius: 6px;
  font-size: 0.9rem; text-align: left; width: 100%;
}
.item-btn:hover { background: #333; }
.item-btn:active { background: #d4af37; color: #111; }
.item-name { font-weight: 600; }
.item-price { font-size: 0.8rem; opacity: 0.7; margin-top: 0.25rem; }

/* ---- pay screen ---- */
.pay-screen { max-width: 480px; margin: 0 auto; text-align: center; }
.qr-box { margin: 1.5rem 0; }
.qr-placeholder {
  max-width: 380px; margin: 0 auto; padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
  background: #1a1a1a; border: 1px solid #333;
  border-radius: 12px; text-align: center;
}
.qr-amount { font-size: 2.8rem; font-weight: 700; color: #d4af37; font-variant-numeric: tabular-nums; }
.qr-hint { opacity: 0.75; font-size: 0.95rem; line-height: 1.4; }
.qr-hint strong { color: #eee; }
.pay-total { display: flex; justify-content: space-between; padding: 1rem; background: #222; border-radius: 8px; font-size: 1.4rem; margin-bottom: 1rem; }
.confirm-btn { width: 100%; padding: 1rem; background: #00b050; color: #fff; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 700; }
details { text-align: left; margin-bottom: 1rem; background: #1a1a1a; border-radius: 6px; padding: 0.5rem 1rem; }
details .lines { list-style: none; padding: 0; margin: 0.5rem 0 0; }
details .lines li { display: flex; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px solid #2a2a2a; }
.back { display: inline-block; margin-top: 1rem; opacity: 0.7; }

/* ---- login ---- */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.login-card { background: #1a1a1a; border: 1px solid #333; padding: 1.75rem; border-radius: 14px; width: 320px; text-align: center; }
.login-card h1 { margin: 0 0 0.25rem; font-size: 1.8rem; }
.login-card p { opacity: 0.7; margin: 0 0 1.25rem; }
.login-error { color: #f66; font-size: 0.9rem; margin: 1rem 0 0; }

.pin-dots { display: flex; justify-content: center; gap: 0.85rem; margin-bottom: 1.5rem; height: 22px; align-items: center; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #444; box-sizing: border-box; transition: background 0.1s; }
.pin-dot.filled { background: #d4af37; border-color: #d4af37; }

.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.pin-key {
  aspect-ratio: 1;
  font-size: 1.6rem; font-weight: 500;
  background: #222; color: #eee;
  border: 1px solid #333; border-radius: 10px;
  cursor: pointer; user-select: none;
  transition: background 0.05s, transform 0.05s;
}
.pin-key:active { background: #d4af37; color: #111; transform: scale(0.96); }
.pin-clear { color: #f88; font-size: 1.2rem; }
.pin-back  { font-size: 1.3rem; }

/* ---- settings ---- */
.settings-page { max-width: 800px; margin: 0 auto; padding: 1.5rem 1rem 3rem; display: flex; flex-direction: column; gap: 1.5rem; }

.settings-section {
  background: #181818; border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden;
}
.settings-section-danger { border-color: #3a1a1a; }

.settings-section-header {
  padding: 0.85rem 1.25rem 0.75rem; border-bottom: 1px solid #252525;
  background: #1e1e1e;
}
.settings-section-header h2 {
  margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: 0.03em;
  color: #d4af37; text-transform: uppercase;
}
.settings-section-body { padding: 1.1rem 1.25rem; }

.settings-inline-form { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.settings-inline-form input {
  flex: 1; padding: 0.6rem 0.8rem; background: #222; color: #eee;
  border: 1px solid #333; border-radius: 6px; font-size: 0.95rem;
}
.settings-inline-form button {
  padding: 0.6rem 1.1rem; background: #d4af37; color: #111;
  font-weight: 700; border: none; border-radius: 6px; font-size: 0.95rem; white-space: nowrap;
}

.settings-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.settings-list-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.9rem; background: #1e1e1e; border: 1px solid #2a2a2a;
  border-radius: 8px;
}
.settings-list-dim .settings-list-row { opacity: 0.55; }
.settings-list-name { flex: 1; font-weight: 500; }
.settings-list-row-fx { flex-wrap: wrap; }

.settings-rm-btn {
  padding: 0.25rem 0.65rem; background: transparent; color: #e07070;
  border: 1px solid #5a2a2a; border-radius: 5px; font-size: 0.8rem; cursor: pointer;
}
.settings-rm-btn:hover { background: #2a1a1a; }
.settings-reactivate-btn {
  padding: 0.25rem 0.65rem; background: transparent; color: #70c070;
  border: 1px solid #2a5a2a; border-radius: 5px; font-size: 0.8rem; cursor: pointer;
}
.settings-reactivate-btn:hover { background: #1a2a1a; }

.settings-subsection { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #252525; }
.settings-subsection-title { margin: 0 0 0.6rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.45; font-weight: 600; }

.settings-security-body { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.settings-pin-block { flex: 1 1 240px; }
.settings-pin-label { margin: 0 0 0.75rem; font-size: 0.9rem; opacity: 0.75; font-weight: 500; }
.settings-pin-divider { width: 1px; background: #2a2a2a; align-self: stretch; }

.pin-form { display: flex; flex-direction: column; gap: 0.5rem; }
.pin-form input { padding: 0.65rem 0.8rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 6px; font-size: 0.95rem; }
.pin-form button { padding: 0.65rem; background: #d4af37; color: #111; font-weight: 700; border: none; border-radius: 6px; font-size: 0.95rem; }
.logout-btn { padding: 0.45rem 1rem; background: transparent; color: #f66; border: 1px solid #633; border-radius: 6px; font-size: 0.9rem; cursor: pointer; }
.logout-btn:hover { background: #2a1a1a; }
.flash { padding: 0.75rem; border-radius: 6px; margin-bottom: 1rem; }
.flash.ok { background: #1e3e1e; color: #9f9; }
.flash.err { background: #3e1e1e; color: #f99; }

/* ---- sales page ---- */
.sales-page { max-width: 1200px; margin: 0 auto; }
.sales-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin: 1rem 0 1.5rem; background: #1a1a1a; padding: 1rem; border-radius: 8px; }
.sales-filters label { display: flex; flex-direction: column; font-size: 0.8rem; opacity: 0.7; gap: 0.3rem; }
.sales-filters input, .sales-filters select { padding: 0.5rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 4px; font-size: 0.95rem; }
.sales-filters button { padding: 0.6rem 1.2rem; background: #d4af37; color: #111; font-weight: 700; border: none; border-radius: 4px; font-size: 0.95rem; cursor: pointer; }
.csv-btn { padding: 0.6rem 1.2rem; background: #2a2a2a; color: #eee; border: 1px solid #444; border-radius: 4px; font-size: 0.9rem; }
.csv-btn:hover { background: #333; }

.sales-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.sales-stats div { background: #1a1a1a; padding: 1rem; border-radius: 8px; display: flex; flex-direction: column; gap: 0.25rem; }
.sales-stats span { font-size: 0.8rem; opacity: 0.6; }
.sales-stats strong { font-size: 1.4rem; }

.sales-top, .sales-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.sales-top th, .sales-top td, .sales-table th, .sales-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #2a2a2a; text-align: left; font-size: 0.9rem; }
.sales-top th, .sales-table th { background: #1a1a1a; font-weight: 500; opacity: 0.8; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sales-top .num, .sales-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sales-table .when { color: #9cf; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sales-table .cat { opacity: 0.7; }
.src { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 10px; font-size: 0.75rem; }
.src-loyverse { background: #2a1a1a; color: #f99; }
.src-pos      { background: #1a2a1a; color: #9f9; }

.diff-neg { color: #f88; }
.diff-pos { color: #9f9; }
.shifts-table th, .shifts-table td { font-size: 0.85rem; padding: 0.4rem 0.5rem; }
.shifts-table .num { font-variant-numeric: tabular-nums; }

.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; padding: 1rem 0; }
.pager a { padding: 0.5rem 1rem; background: #222; border-radius: 4px; }
.pager a:hover { background: #333; }
.pager span { opacity: 0.6; }

/* ---- staff picker on pay ---- */
.staff-picker { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; text-align: left; }
.staff-picker span { opacity: 0.7; font-size: 0.9rem; }
.staff-picker select { padding: 0.75rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 6px; font-size: 1rem; }

/* ---- Expenses page ---- */
.expenses-page h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.exp-col-note { font-weight: 400; font-size: 0.8rem; opacity: 0.55; margin-left: 0.4rem; }
.exp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .exp-layout { grid-template-columns: 1fr; } }
.exp-col { min-width: 0; }
.exp-form { flex-wrap: wrap; }
.exp-form-sm { padding: 0.5rem 0 0; }
.exp-table td, .exp-table th { font-size: 0.85rem; }
.exp-cat { display: inline-block; padding: 0.1rem 0.45rem; background: #1e2230; border: 1px solid #2a3050; border-radius: 8px; font-size: 0.72rem; color: #8ab; white-space: nowrap; }

.exp-fixed-list { display: flex; flex-direction: column; gap: 0.6rem; }
.exp-fixed-card { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px; padding: 0.75rem 1rem; }
.exp-fixed-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.exp-fixed-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.82rem; }
.exp-overrides { margin: 0.5rem 0 0; padding: 0 0 0 1rem; font-size: 0.82rem; opacity: 0.8; list-style: none; }
.exp-overrides li { padding: 0.2rem 0; border-top: 1px solid #222; }
.exp-override-form { margin-top: 0.5rem; }
.exp-override-form summary { font-size: 0.8rem; opacity: 0.55; cursor: pointer; }
.exp-override-form summary:hover { opacity: 1; }
.line-del-xs { width: 20px; height: 20px; font-size: 0.75rem; }

/* ---- P&L ---- */
.pnl-table tfoot .pnl-total td { padding-top: 0.8rem; border-top: 1px solid #444; font-weight: 700; }
.pnl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 900px) { .pnl-split { grid-template-columns: 1fr; } }
.pnl-split h3 { margin: 0 0 0.5rem 0; }
.pnl-rev  { color: #9f9; font-weight: 600; }
.pnl-exp  { color: #f99; }
.pnl-sub  { opacity: 0.55; font-size: 0.82rem; }
.pnl-margin { opacity: 0.75; font-size: 0.85rem; }

/* P&L row drill-down */
.pnl-row { transition: background 0.15s; }
.pnl-row:hover { background: #1e1e1e; }
.pnl-row.pnl-row-open { background: #1c2a1c; outline: 1px solid #3a5a3a; }
.pnl-row.pnl-row-open .pnl-expand-arrow { display: inline-block; transform: rotate(90deg); color: #9f9; opacity: 1; }
.pnl-expand-arrow { display: inline-block; font-size: 0.7rem; opacity: 0.45; margin-left: 0.3rem; transition: transform 0.15s, color 0.15s; }
.pnl-detail-row td { padding: 0; }
.pnl-detail-cell { padding: 0 !important; }
.pnl-detail-cell:empty { display: none; }
.pnl-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding: 1rem 1.5rem; background: #141a14;
  border-top: 1px solid #2a3a2a; border-bottom: 1px solid #2a3a2a;
}
@media (max-width: 900px) { .pnl-detail { grid-template-columns: 1fr; } }
.pnl-detail-section h4 { margin: 0 0 0.5rem 0; font-size: 0.9rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; }
.cb-loyverse-badge { background: #1a3a5a; color: #7ab; }

/* ---- cash book ---- */
.cb-add-form { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; }
.cb-add-form summary { cursor: pointer; font-weight: 600; color: #d4af37; }
.cb-form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; align-items: flex-end; }
.cb-form label { display: flex; flex-direction: column; font-size: 0.8rem; opacity: 0.7; gap: 0.25rem; }
.cb-form .cb-desc { flex: 1 1 240px; }
.cb-form input { padding: 0.5rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 4px; font-size: 0.95rem; width: 100%; }
.cb-form button { padding: 0.55rem 1.2rem; background: #d4af37; color: #111; font-weight: 700; border: none; border-radius: 4px; cursor: pointer; }
.cb-table-wrap { overflow-x: auto; }
.cb-table td, .cb-table th { white-space: nowrap; font-size: 0.85rem; }
.cb-in  { color: #9f9; }
.cb-out { color: #f99; }
.cb-total { font-weight: 600; color: #d4af37; }
.cb-opening td { opacity: 0.6; font-style: italic; }
.cb-loyverse td { background: rgba(212, 175, 55, 0.05); }
.cb-loyverse td:nth-child(2) { font-style: italic; }
.cb-row-sales td { background: rgba(153, 255, 153, 0.03); }
.cb-row-payout td { background: rgba(255, 153, 153, 0.04); }
.cb-row-payin  td { background: rgba(153, 200, 255, 0.04); }
.cb-row-transfer td { opacity: 0.5; font-style: italic; }
.cb-src-badge {
  display: inline-block; padding: 0.15rem 0.5rem;
  background: #2a2a0a; border: 1px solid #5a4e00;
  color: #b8960a; border-radius: 10px; font-size: 0.7rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---- cashbook view tabs ---- */
.cb-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.cb-view-tabs { margin-left: auto; display: flex; gap: 0; border: 1px solid #333; border-radius: 6px; overflow: hidden; }
.cb-view-tab { padding: 0.4rem 1rem; font-size: 0.85rem; opacity: 0.6; border-right: 1px solid #333; }
.cb-view-tab:last-child { border-right: none; }
.cb-view-tab.active { background: #d4af37; color: #111; opacity: 1; font-weight: 600; }
.cb-view-tab:hover:not(.active) { opacity: 1; background: #222; }

/* ---- reconciliation granularity tabs ---- */
.cb-gran-tabs { display: flex; gap: 0; margin: 0.75rem 0 0.5rem; border: 1px solid #333; border-radius: 6px; overflow: hidden; width: fit-content; }
.cb-gran-tab { padding: 0.35rem 0.9rem; font-size: 0.82rem; opacity: 0.6; border-right: 1px solid #333; }
.cb-gran-tab:last-child { border-right: none; }
.cb-gran-tab.active { background: #d4af37; color: #111; opacity: 1; font-weight: 600; }
.cb-gran-tab:hover:not(.active) { opacity: 1; background: #222; }

/* ---- reconciliation table ---- */
.cb-recon-note { font-size: 0.85rem; opacity: 0.7; margin: 0.5rem 0 1rem; font-style: italic; }
.cb-recon-tot { font-weight: 600; }
.cb-recon-diff { font-weight: 600; font-variant-numeric: tabular-nums; }
.cb-recon-status { text-align: center; }
.cb-status-ok   { color: #9f9; font-weight: 700; }
.cb-status-warn { color: #fd9; font-weight: 700; font-size: 0.9rem; }
.cb-status-bad  { color: #f77; font-weight: 700; font-size: 0.9rem; }
.cb-recon-ok   td { background: rgba(100, 200, 100, 0.03); }
.cb-recon-bad  td { background: rgba(255, 80,  80,  0.05); }
.cb-recon-warn td { background: rgba(255, 200, 80,  0.04); }
.cb-recon-loy_only   td { background: rgba(80, 120, 255, 0.05); }
.cb-recon-sheet_only td { background: rgba(200, 80, 200, 0.05); }

/* ---- fixed expenses ---- */
.fx-form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.fx-form input { flex: 1 1 140px; padding: 0.6rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 6px; font-size: 0.95rem; }
.fx-form button { padding: 0.6rem 1.1rem; background: #d4af37; color: #111; font-weight: 700; border: none; border-radius: 6px; font-size: 0.95rem; }
.fx-list li { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fx-amount { color: #d4af37; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-dates { opacity: 0.65; font-size: 0.85rem; }
.fx-notes { opacity: 0.55; font-size: 0.85rem; font-style: italic; }

/* ---- settings extras ---- */
.settings-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 0.5rem; }
@media (max-width: 600px) { .settings-two-col { grid-template-columns: 1fr; } }
.settings-inline-form select { padding: 0.6rem 0.8rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 6px; font-size: 0.95rem; }
.settings-genres { opacity: 0.5; font-size: 0.78rem; font-style: italic; margin-right: auto; }
.settings-hint { font-size: 0.82rem; opacity: 0.55; margin: 0 0 0.75rem; font-style: italic; }
.settings-cat-badge { font-size: 0.72rem; padding: 0.15rem 0.5rem; border-radius: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.hidden-badge { background: rgba(200,80,80,0.15); color: #e08080; border: 1px solid rgba(200,80,80,0.25); }

/* -- Schedule / Roster ------------------------------------------------------- */
.sched-page { max-width: 1200px; }

.sched-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.sched-header h2 { margin: 0; font-size: 1.5rem; }
.sched-nav { display: flex; align-items: center; gap: 0.5rem; }
.sched-nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; background: #1e1e1e; border: 1px solid #333;
  border-radius: 50%; font-size: 1.2rem; color: #ccc; transition: background 0.15s, color 0.15s;
}
.sched-nav-btn:hover { background: #d4af37; border-color: #d4af37; color: #111; }
.sched-nav-month { font-size: 1.1rem; font-weight: 600; min-width: 130px; text-align: center; }
.sched-roster-link {
  margin-left: auto; font-size: .8rem; padding: 0.35rem 0.9rem;
  background: #1e1e1e; border: 1px solid #333; border-radius: 20px; opacity: .8;
}
.sched-roster-link:hover { opacity: 1; border-color: #555; }

.sched-layout { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 700px) { .sched-layout { grid-template-columns: 1fr; } }

/* sidebar */
.sched-sidebar { background: #151515; border: 1px solid #222; border-radius: 10px; padding: 1rem; }
.sched-sidebar h3 { margin: 0 0 0.85rem; font-size: .7rem; text-transform: uppercase; opacity: .5; letter-spacing: .08em; }
.sched-sidebar-hint { margin-top: 1.25rem; font-size: .72rem; opacity: .35; line-height: 1.6; border-top: 1px solid #222; padding-top: 0.75rem; }

/* staff color palette */
.sc0 { --sc-bg:#1a2a4a; --sc-border:#2a4a7a; --sc-text:#8ab4f8; }
.sc1 { --sc-bg:#2a1a3a; --sc-border:#4a2a6a; --sc-text:#c9a0f8; }
.sc2 { --sc-bg:#1a3a1a; --sc-border:#2a6a2a; --sc-text:#86e86e; }
.sc3 { --sc-bg:#3a2a10; --sc-border:#7a5a18; --sc-text:#f0c060; }
.sc4 { --sc-bg:#0e3030; --sc-border:#1a6060; --sc-text:#60d0d0; }
.sc5 { --sc-bg:#3a1a25; --sc-border:#7a2a45; --sc-text:#f880a8; }
.sc6 { --sc-bg:#2a1a10; --sc-border:#6a3a18; --sc-text:#f0a060; }
.sc7 { --sc-bg:#1a0e0e; --sc-border:#5a2020; --sc-text:#f07070; }

/* chips */
.sched-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.65rem; border-radius: 20px; border: 1px solid var(--sc-border, #333);
  background: var(--sc-bg, #222); color: var(--sc-text, #ccc);
  font-size: 0.8rem; font-weight: 500; user-select: none; white-space: nowrap;
}
.sched-staff-row { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.6rem; }
.sched-bulk-btns { display: flex; gap: 0.2rem; padding-left: 0.1rem; }
.sched-bulk-btn {
  background: #1e1e1e; border: 1px solid #2a2a2a; color: #aaa;
  border-radius: 4px; font-size: 0.65rem; padding: 0.1rem 0.35rem;
  cursor: pointer; transition: background 0.1s, color 0.1s;
}
.sched-bulk-btn:hover { background: #2a3a2a; color: #9f9; border-color: #3a5a3a; }
.sched-bulk-rm:hover { background: #3a1a1a; color: #f88; border-color: #5a2a2a; }
.sched-chip-drag { display: flex; cursor: grab; transition: opacity 0.15s, transform 0.15s; }
.sched-chip-drag:hover { transform: translateX(3px); }
.sched-chip-drag.dragging { opacity: 0.35; cursor: grabbing; }
.sched-chip-sm { font-size: 0.82rem; padding: 0.2rem 0.55rem; margin: 0.1rem 0.1rem 0 0; }
.sched-chip-ro { cursor: default; }
.sched-rate { font-size: .65rem; opacity: .6; margin-left: 0.15rem; }
.sched-rm {
  background: none; border: none; color: var(--sc-text, #888); font-size: .7rem;
  padding: 0 0 0 0.2rem; cursor: pointer; line-height: 1; opacity: .5;
}
.sched-rm:hover { opacity: 1; }

/* calendar grid */
.sched-cal { display: flex; flex-direction: column; gap: 3px; }
.sched-cal-wide { max-width: 960px; }
.sched-dow-row {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 4px;
}
.sched-dow {
  text-align: center; font-size: .7rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; opacity: .4; padding: 0.3rem 0;
}
.sched-dow:nth-child(6), .sched-dow:nth-child(7) { opacity: .25; }
.sched-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.sched-day {
  min-height: 115px; background: #161616; border: 1px solid #252525;
  border-radius: 8px; padding: 0.5rem 0.55rem; transition: background 0.12s, border-color 0.12s;
  position: relative;
}
.sched-week > .sched-day:nth-child(6),
.sched-week > .sched-day:nth-child(7) { background: #141414; }
.sched-day.drag-over { background: #152515; border-color: #2a6a2a; box-shadow: inset 0 0 0 1px #2a6a2a; }
.sched-day-empty { background: transparent !important; border-color: transparent !important; }
.sched-day-today { border-color: #d4af37 !important; box-shadow: inset 0 0 0 1px rgba(212,175,55,.3); }
.sched-day-num {
  display: block; font-size: .88rem; font-weight: 600; color: #666; margin-bottom: 0.3rem;
}
.sched-day-today .sched-day-num {
  color: #d4af37;
}
.sched-day-names { display: flex; flex-direction: column; gap: 0.15rem; }
.sched-day-names .sched-chip-sm { display: inline-flex; }

/* shift zones inside each day cell */
.sched-shift-zone {
  border-radius: 5px; padding: 0.2rem 0.25rem; margin-top: 0.2rem;
  display: flex; flex-wrap: wrap; gap: 0.1rem; align-items: center;
  min-height: 22px; transition: background 0.1s;
}
.sched-shift-am { background: rgba(100, 160, 255, 0.06); border: 1px solid rgba(100,160,255,0.12); }
.sched-shift-pm { background: rgba(180, 100, 255, 0.06); border: 1px solid rgba(180,100,255,0.12); }
.sched-shift-zone.drag-over { background: rgba(80, 200, 80, 0.12) !important; border-color: rgba(80,200,80,0.3) !important; }
.sched-zone-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  opacity: 0.35; margin-right: 0.15rem; flex-shrink: 0;
}

/* -- Payroll ---------------------------------------------------------------- */
.pay-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 0.75rem; }

.pay-card {
  background: #161616; border: 1px solid #252525; border-radius: 12px;
  overflow: hidden; transition: border-color 0.15s;
}
.pay-card-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1rem 0.7rem; border-bottom: 1px solid #1e1e1e;
}
.pay-card-avatar {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--sc-border, #333);
  background: var(--sc-bg, #222); color: var(--sc-text, #ccc);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.pay-card-name { font-size: 1rem; font-weight: 600; }
.pay-card-body { padding: 0.75rem 1rem; }
.pay-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 0.5rem; }
.pay-stat { display: flex; flex-direction: column; gap: 0.1rem; }
.pay-stat-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; opacity: .45; }
.pay-stat-value { font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-stat-value.owed { color: #f08080; }
.pay-stat-value.paid { color: #80d080; }
.pay-stat-value.bal-neg { color: #f08080; }
.pay-stat-value.bal-ok  { color: #80d080; }
.pay-card-rate {
  padding: 0.5rem 1rem 0.75rem; display: flex; align-items: center; gap: 0.3rem;
  font-size: .75rem; opacity: .6; border-top: 1px solid #1e1e1e;
}
.pay-rate-input {
  width: 55px; background: #111; border: 1px solid #2a2a2a; color: #eee;
  border-radius: 4px; padding: 0.2rem 0.3rem; font-size: .8rem; text-align: right;
  font-family: inherit;
}
.pay-rate-input:focus { outline: none; border-color: #d4af37; }
.pay-rate-save {
  background: none; border: none; color: #d4af37; font-size: .85rem;
  cursor: pointer; padding: 0.1rem 0.25rem; opacity: .7;
}
.pay-rate-save:hover { opacity: 1; }
.pay-summary {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  background: #151515; border: 1px solid #222; border-radius: 10px;
  padding: 0.85rem 1.25rem; margin-bottom: 1rem;
}
.pay-summary-item { display: flex; flex-direction: column; gap: 0.1rem; }
.pay-summary-item span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .45; }
.pay-summary-item strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* ---- roster identity bar ---- */
.roster-id-bar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.65rem 1rem; margin-bottom: 1rem;
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 10px;
}
.roster-id-label { font-size: 0.9rem; opacity: 0.85; }
.roster-id-hint { opacity: 0.45; font-style: italic; }
.roster-id-form { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.roster-id-form select { padding: 0.55rem 0.85rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 6px; font-size: 1rem; }
.roster-id-form button { padding: 0.55rem 1.1rem; background: #d4af37; color: #111; font-weight: 700; border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; }
.roster-id-clear { padding: 0.3rem 0.7rem; background: transparent; color: #aaa; border: 1px solid #444; border-radius: 5px; font-size: 0.8rem; cursor: pointer; }
.roster-id-clear:hover { background: #222; }
.roster-self-add { padding: 0.25rem 0.7rem; background: rgba(80,200,80,0.15); color: #80d080; border: 1px solid rgba(80,200,80,0.25); border-radius: 4px; font-size: 0.88rem; cursor: pointer; line-height: 1.3; }
.roster-self-add:hover { background: rgba(80,200,80,0.3); }
.roster-self-rm  { padding: 0.25rem 0.6rem; background: rgba(200,80,80,0.12); color: #e08080; border: 1px solid rgba(200,80,80,0.2); border-radius: 4px; font-size: 0.88rem; cursor: pointer; line-height: 1.3; }
.roster-self-rm:hover { background: rgba(200,80,80,0.25); }

/* ---- DJ / Chef slots in calendar ---- */
.sched-slot-dj   { background: rgba(255, 180, 50, 0.10); border: 1px solid rgba(255,180,50,0.25); }
.sched-slot-chef { background: rgba(80,  200, 130, 0.10); border: 1px solid rgba(80,200,130,0.25); }
/* Use double-class selector to beat the .sched-chip CSS-var rule */
.sched-chip.sched-chip-dj  { --sc-bg:#332700; --sc-border:#6a5000; --sc-text:#ffd080; }
.sched-chip.sched-chip-chef { --sc-bg:#002a15; --sc-border:#005a2a; --sc-text:#80e0a0; }
.events-open-slot { font-size: 0.85rem; opacity: 0.45; font-style: italic; }

/* ---- Calendar tabs (Staff / DJs / Chefs) ---- */
.sched-tabs { display: flex; gap: 0.35rem; margin-bottom: 1.25rem; }
.sched-tab-btn {
  padding: 0.6rem 1.4rem; border-radius: 6px; border: 1px solid #2a2a2a;
  background: #1a1a1a; color: #aaa; font-size: 1rem; font-weight: 500;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sched-tab-btn:hover { background: #222; color: #eee; }
.sched-tab-btn.active { background: #252010; border-color: #6a5000; color: #ffd080; }
.sched-tab-btn.active.staff-tab { background: #141f2e; border-color: #2a4a7a; color: #8ab4f8; }
.sched-tab-btn.active.chef-tab { background: #001a0d; border-color: #005a2a; color: #80e0a0; }
.sched-tab-panel { display: none; }
.sched-tab-panel.active { display: flex; }

/* ---- Event slots admin section ---- */
.events-section { max-width: 1200px; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #252525; }
.events-heading { font-size: 1.1rem; font-weight: 600; color: #d4af37; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 1rem; }
.events-add-forms { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.events-add-block { flex: 1 1 280px; background: #181818; border: 1px solid #2a2a2a; border-radius: 10px; padding: 1rem 1.1rem; }
.events-add-label { margin: 0 0 0.6rem; font-size: 0.88rem; font-weight: 600; opacity: 0.75; }
.events-add-form { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.events-add-form input, .events-add-form select { flex: 1 1 120px; padding: 0.5rem 0.65rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 6px; font-size: 0.88rem; }
.events-add-form button { padding: 0.5rem 1rem; background: #d4af37; color: #111; font-weight: 700; border: none; border-radius: 6px; font-size: 0.88rem; white-space: nowrap; cursor: pointer; }
.events-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.events-list-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.55rem 0.85rem; border-radius: 8px; border: 1px solid #2a2a2a; background: #1a1a1a; }
.events-dj   { border-left: 3px solid rgba(255,180,50,0.4); }
.events-chef { border-left: 3px solid rgba(80,200,130,0.4); }
.events-type-badge { font-size: 1rem; }
.events-date { font-size: 0.85rem; font-variant-numeric: tabular-nums; opacity: 0.7; white-space: nowrap; }
.events-performer { font-weight: 500; flex: 1 1 120px; }
.events-notes { font-size: 0.78rem; opacity: 0.5; font-style: italic; }
.events-assign-form { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.events-assign-form select { padding: 0.3rem 0.5rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 5px; font-size: 0.8rem; }
.events-assign-btn { padding: 0.3rem 0.65rem; background: #333; color: #ccc; border: 1px solid #444; border-radius: 5px; font-size: 0.8rem; cursor: pointer; }
.events-assign-btn:hover { background: #3a3a3a; }
.events-del-btn { padding: 0.25rem 0.55rem; background: transparent; color: #e07070; border: 1px solid #5a2a2a; border-radius: 5px; font-size: 0.85rem; cursor: pointer; }
.events-del-btn:hover { background: #2a1a1a; }

/* ── Performer form (registration / edit / view) ─────────────────────────── */
.pf-page { padding: 1.5rem 1rem; max-width: 720px; margin: 0 auto; }
.pf-card { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px; padding: 2rem; }
.pf-title { margin: 0 0 0.4rem; font-size: 1.3rem; }
.pf-subtitle { margin: 0 0 1.5rem; font-size: 0.9rem; opacity: 0.6; }
.pf-form { display: flex; flex-direction: column; gap: 1rem; }
.pf-field { display: flex; flex-direction: column; gap: 0.3rem; }
.pf-field-required .pf-label::after { content: ' *'; color: #e07070; }
.pf-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.6; }
.pf-input { padding: 0.55rem 0.75rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 7px; font-size: 0.92rem; font-family: inherit; width: 100%; }
.pf-input:focus { outline: none; border-color: #555; }
.pf-textarea { padding: 0.55rem 0.75rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 7px; font-size: 0.88rem; font-family: inherit; width: 100%; resize: vertical; min-height: 90px; }
.pf-textarea-sm { min-height: 60px; }
.pf-textarea:focus { outline: none; border-color: #555; }
.pf-actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.pf-submit { padding: 0.65rem 1.5rem; background: #d4af37; color: #111; font-weight: 700; border: none; border-radius: 8px; font-size: 0.95rem; cursor: pointer; }
.pf-submit:hover { background: #e5c050; }
.pf-cancel { font-size: 0.9rem; opacity: 0.55; }
.pf-cancel:hover { opacity: 0.85; }
/* view mode */
.pf-view-header { margin-bottom: 1.5rem; }
.pf-view-name { margin: 0 0 0.3rem; font-size: 1.5rem; }
.pf-view-genres { margin: 0 0 0.2rem; opacity: 0.65; font-size: 0.9rem; }
.pf-view-ig { margin: 0; opacity: 0.55; font-size: 0.85rem; }
.pf-view-section { margin-bottom: 1.25rem; }
.pf-view-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.5; margin: 0 0 0.35rem; }
.pf-view-text { margin: 0; line-height: 1.65; font-size: 0.92rem; }
.pf-view-links { margin: 0; font-size: 0.82rem; opacity: 0.7; word-break: break-all; }
.pf-edit-btn { display: inline-block; margin-top: 0.75rem; padding: 0.4rem 0.9rem; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 6px; font-size: 0.85rem; cursor: pointer; }
.pf-edit-btn:hover { background: #333; }
.pf-back { margin-top: 1.5rem; font-size: 0.88rem; opacity: 0.6; }
.pf-back:hover { opacity: 1; }

/* ── Roster register / edit profile buttons ──────────────────────────────── */
.roster-register-btn {
  display: inline-block; padding: 0.45rem 1rem;
  background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.3);
  border-radius: 6px; font-size: 0.92rem; color: #d4af37; cursor: pointer;
  white-space: nowrap;
}
.roster-register-btn:hover { background: rgba(212,175,55,0.22); }
.roster-edit-profile-btn {
  display: inline-block; padding: 0.4rem 0.9rem;
  background: #222; border: 1px solid #3a3a3a; border-radius: 6px;
  font-size: 0.92rem; opacity: 0.75; white-space: nowrap;
}
.roster-edit-profile-btn:hover { opacity: 1; background: #2a2a2a; }

/* ── Settings performer add form (expanded) ──────────────────────────────── */
.settings-perf-form { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.spf-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.spf-row-sm { display: flex; gap: 0.4rem; }
.spf-input { flex: 1 1 130px; padding: 0.45rem 0.65rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 6px; font-size: 0.88rem; font-family: inherit; }
.spf-select { padding: 0.45rem 0.55rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 6px; font-size: 0.88rem; font-family: inherit; }
.spf-add { padding: 0.45rem 1rem; background: #d4af37; color: #111; font-weight: 700; border: none; border-radius: 6px; font-size: 0.88rem; white-space: nowrap; cursor: pointer; }
.spf-dj-fields { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.75rem; background: #181818; border: 1px solid #2a2a2a; border-radius: 8px; }
.spf-links-row { display: flex; gap: 0.45rem; }
.spf-textarea { width: 100%; padding: 0.45rem 0.65rem; background: #222; color: #eee; border: 1px solid #333; border-radius: 6px; font-size: 0.85rem; font-family: inherit; resize: vertical; min-height: 64px; }
.spf-textarea-sm { min-height: 48px; flex: 1 1 0; }

/* ── API key display ─────────────────────────────────────────────────────── */
.api-key-display { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.api-key-value { font-size: 0.78rem; background: #111; border: 1px solid #333; border-radius: 5px; padding: 0.35rem 0.65rem; word-break: break-all; color: #80c880; }
.api-key-copy-btn { padding: 0.3rem 0.7rem; background: #222; border: 1px solid #3a3a3a; border-radius: 5px; font-size: 0.8rem; cursor: pointer; color: #eee; }
.api-key-copy-btn:hover { background: #2a2a2a; }
