:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --text: #172033;
  --muted: #647084;
  --line: #dce3ef;
  --brand: #2345a7;
  --brand-2: #10276d;
  --good: #067a46;
  --warn: #b7791f;
  --bad: #b42318;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(22, 34, 66, .10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.app-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #10276d, #061334); color: #fff; padding: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 900; }
.brand span { display: block; color: rgba(255,255,255,.72); font-size: 13px; margin-top: 3px; }
.nav-group { margin: 18px 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 13px; margin: 4px 0; text-decoration: none; color: rgba(255,255,255,.82); }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.12); color: #fff; }
.workspace { min-width: 0; }
.topbar { height: 82px; background: rgba(255,255,255,.84); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 0 26px; position: sticky; top: 0; z-index: 10; }
.topbar h1 { margin: 0; font-size: 21px; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 11px; cursor: pointer; display: none; }
.content { padding: 26px; max-width: 1480px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.card h2, .card h3 { margin: 0 0 12px; }
.card-subtitle { color: var(--muted); margin: -6px 0 16px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 18px; background: linear-gradient(180deg, #fff, #f8faff); border: 1px solid var(--line); border-radius: 16px; }
.metric span { display: block; color: var(--muted); font-size: 13px; }
.metric strong { display: block; font-size: 25px; margin-top: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
/* Device management */
.dev-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.dev-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border: 1px solid rgba(128,128,128,0.25); border-radius: 12px; padding: 14px 16px; }
.dev-card.is-out { opacity: 0.65; }
.dev-main { display: flex; align-items: center; gap: 12px; min-width: 220px; flex: 1; }
.dev-ico { font-size: 26px; line-height: 1; }
.dev-body { display: flex; flex-direction: column; gap: 2px; }
.dev-body strong { font-size: 15px; }
.dev-body small { font-size: 12px; opacity: 0.8; }
.dev-actions { display: flex; align-items: center; gap: 10px; }
.dev-actions .btn { padding: 7px 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.btn { border: 0; background: var(--brand); color: #fff; border-radius: 13px; padding: 10px 15px; cursor: pointer; font-weight: 700; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; justify-content: center; }
.btn:hover { background: var(--brand-2); }
.btn.secondary { background: #eef2ff; color: var(--brand-2); border: 1px solid #c8d3ff; }
.btn.danger { background: var(--bad); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 12px; background: #eef2ff; color: var(--brand-2); border: 1px solid rgba(0, 0, 0, .12); }
.badge.good { background: #e6f6ee; color: var(--good); }
.badge.warn { background: #fff4db; color: var(--warn); }
.badge.bad { background: #fee4e2; color: var(--bad); }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 800; color: #34405a; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; color: var(--text); outline: none; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(35,69,167,.13); }
.table-wrap.compact table { min-width: 0; }
.table-wrap.compact th, .table-wrap.compact td { white-space: nowrap; }

.pill-select { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.pill-select:hover { border-color: var(--brand); }
.pill-select.selected { background: var(--brand); border-color: var(--brand); color: #fff; }

.pay-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-subtabs { margin-top: -4px; }

.emp-list { display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow-y: auto; }
.emp-list-item { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; color: var(--text); transition: background .12s, border-color .12s; }
.emp-list-item:hover { background: var(--surface-2); }
.emp-list-item.active { border-color: var(--brand); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--brand); }
.emp-list-item .emp-name { font-weight: 700; font-size: 14px; }
.emp-list-item .emp-sub { font-size: 12px; color: var(--muted); }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
table { width: 100%; border-collapse: collapse; min-width: 720px; background: transparent; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
th { background: var(--brand-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #fff; border-bottom-color: var(--brand-2); }
tbody tr:nth-child(odd) { background: var(--surface); }
tbody tr:nth-child(even) { background: var(--surface-2); }
tbody tr td { color: var(--text); }
tbody tr:hover { background: rgba(0, 0, 0, .05); }
tr:last-child td { border-bottom: 0; }
.login-panel { max-width: 440px; margin: 46px auto; }
.hero { background: radial-gradient(circle at top right, #dbe5ff, transparent 35%), linear-gradient(135deg, #fff, #edf2ff); border: 1px solid #d9e2ff; border-radius: 28px; padding: 34px; box-shadow: var(--shadow); }
.hero h2 { font-size: 34px; margin: 0 0 8px; }
.hero p { color: var(--muted); max-width: 720px; }
.module-section { display: none; }
.module-section.active { display: contents; }
.toast { position: fixed; right: 20px; bottom: 20px; background: #111827; color: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); max-width: 420px; z-index: 50; }
.hidden { display: none !important; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.notice { border: 1px solid var(--line); border-radius: 15px; padding: 14px; margin-bottom: 10px; background: #fff; }
.notice h4 { margin: 0 0 6px; }
.notice p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.code { background: #0b1020; color: #d1e7ff; border-radius: 14px; padding: 12px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(86vw, 310px);
    transform: translateX(-110%); transition: transform .26s cubic-bezier(.4,0,.2,1);
    box-shadow: 24px 0 60px rgba(0,0,0,.5);
  }
  .sidebar.open { transform: translateX(0); }
  .icon-btn { display: inline-flex; }
  .grid.four, .grid.three, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .content { padding: 16px; }
  .topbar { padding: 0 14px; }
  .grid.four, .grid.three, .grid.two, .form-grid, .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .hero h2 { font-size: 26px; }
  .session-name { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   PREMIUM MOBILE / RESPONSIVE LAYER
   ════════════════════════════════════════════════════════════════════════ */

/* Drawer backdrop — dims content when the side menu is open */
.nav-scrim {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(6, 7, 12, .55); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .26s ease, visibility .26s ease;
}
.nav-scrim.show { opacity: 1; visibility: visible; }
@media (min-width: 1101px) { .nav-scrim { display: none; } }

/* Stop any element from pushing the page sideways on phones */
@media (max-width: 1100px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .workspace, .content, .card { min-width: 0; max-width: 100%; }
  .card { overflow-wrap: anywhere; }
  /* Tables: confine the horizontal scroll inside the wrapper, never the page */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table { min-width: 560px; }
}

@media (max-width: 820px) {
  /* Comfortable, app-like topbar with safe-area support (notch phones) */
  .topbar {
    height: auto; min-height: 60px; gap: 12px;
    padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .topbar h1 { font-size: 18px; }
  .topbar p { font-size: 12px; }
  .icon-btn {
    width: 44px; height: 44px; align-items: center; justify-content: center;
    border-radius: 13px; font-size: 20px;
  }
  .content {
    padding: 14px max(14px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  /* Cards breathe a little less, rounder for a modern feel */
  .card { padding: 16px; border-radius: 16px; margin-bottom: 14px; }
  .card h2 { font-size: 18px; }
  .card h3 { font-size: 16px; }

  /* All multi-column grids collapse to single column */
  .grid.two, .grid.three, .grid.four,
  .form-grid, .form-grid.two, .form-grid.three { grid-template-columns: 1fr; gap: 12px; }

  /* Inputs: 16px font stops iOS from auto-zooming; 44px min height = easy tapping */
  input, select, textarea {
    font-size: 16px; min-height: 46px; border-radius: 12px;
  }
  textarea { min-height: 100px; }
  label { font-size: 13px; }

  /* Buttons: full-width, thumb-friendly */
  .btn { min-height: 46px; padding: 12px 16px; font-size: 15px; border-radius: 13px; }
  .actions { gap: 8px; }
  .actions .btn { flex: 1 1 auto; }

  /* Metrics read as clean stat tiles */
  .metric { padding: 14px 16px; border-radius: 14px; }
  .metric strong { font-size: 22px; }

  /* Sidebar links get bigger tap targets */
  .nav-link { padding: 14px 14px; font-size: 15px; border-radius: 14px; }
}

/* Two-up metric tiles look better than one giant column on small phones */
@media (max-width: 820px) and (min-width: 380px) {
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 480px) {
  .content { padding: 12px 12px calc(18px + env(safe-area-inset-bottom)); }
  .card { padding: 14px; }
  .hero { padding: 22px; border-radius: 22px; }
  .hero h2 { font-size: 22px; }
  .topbar h1 { font-size: 16px; }
  /* Tables become horizontally swipeable cards rather than overflowing */
  table { min-width: 480px; font-size: 12px; }
  th, td { padding: 9px 10px; }
  .install-fab { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); text-align: center; }
  .toast { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
}

/* Premium POS workstation */
.premium-pos { display: grid; gap: 18px; }
.pos-command-bar { display: grid; gap: 18px; padding: 18px; background: linear-gradient(135deg, #ffffff, #f4f8ff); }
.pos-command-main, .pos-command-controls { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-size: 11px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; color: var(--brand); margin-bottom: 6px; }
.pos-command-main h2, .pos-panel-head h2, .pos-ticket h2 { margin: 0; }
.pos-command-main p { margin: 5px 0 0; color: var(--muted); }
.pos-live-clock { padding: 12px 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-weight: 800; min-width: 180px; text-align: center; }
.compact-field { display: grid; gap: 6px; min-width: 190px; font-size: 12px; font-weight: 800; color: #34405a; }
.compact-field input, .compact-field select { min-height: 42px; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line); background: #fff; border-radius: 15px; gap: 4px; }
.segment { border: 0; padding: 9px 14px; border-radius: 12px; background: transparent; cursor: pointer; color: var(--muted); font-weight: 800; }
.segment.active { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(35, 69, 167, .22); }
.pos-session-chip { display: grid; gap: 2px; padding: 11px 14px; border-radius: 16px; background: #0b1020; color: #fff; min-width: 190px; }
.pos-session-chip span { color: rgba(255,255,255,.7); font-size: 12px; }
.pos-workstation { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 18px; align-items: start; }
.pos-catalog, .pos-ticket { margin-bottom: 0; }
.pos-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pos-mini-stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pos-mini-stats span { padding: 8px 11px; border-radius: 999px; background: #eef2ff; color: var(--brand-2); font-size: 12px; font-weight: 800; }
.pos-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; margin: 16px 0 12px; }
.pos-search { display: grid; gap: 6px; font-size: 12px; font-weight: 800; color: #34405a; }
.pos-search.scan input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pos-category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: thin; }
.category-pill { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); padding: 9px 13px; font-weight: 800; cursor: pointer; }
.category-pill.active { background: #10276d; color: #fff; border-color: #10276d; }
.pos-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; min-height: 340px; align-content: start; }
.pos-product-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; text-align: left; cursor: pointer; box-shadow: 0 12px 28px rgba(22,34,66,.06); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.pos-product-card:hover { transform: translateY(-2px); border-color: #b9c7ff; box-shadow: 0 18px 36px rgba(22,34,66,.11); }
.pos-product-card.soldout { opacity: .55; cursor: not-allowed; }
.pos-product-media { height: 104px; display: grid; place-items: center; background: linear-gradient(135deg, #eff4ff, #ffffff); border-bottom: 1px solid var(--line); }
.pos-product-media img { width: 100%; height: 100%; object-fit: cover; }
.pos-product-initials { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #10276d; color: #fff; font-size: 24px; font-weight: 900; }
.pos-product-info { padding: 12px 12px 6px; display: grid; gap: 5px; flex: 1; }
.pos-product-info strong { font-size: 14px; line-height: 1.25; }
.pos-product-info span { color: var(--muted); font-size: 12px; }
.pos-product-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 12px; gap: 8px; }
.pos-product-foot .price { font-weight: 900; color: var(--brand-2); }
.pos-product-foot .stock { font-size: 12px; color: var(--muted); padding: 5px 8px; border-radius: 999px; background: #f4f7fb; }
.pos-product-foot .stock.low { color: var(--warn); background: #fff4db; }
.pos-ticket { position: sticky; top: 102px; display: grid; gap: 14px; max-height: calc(100vh - 122px); overflow: auto; }
.pos-ticket-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pos-customer-box { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: #fbfcff; }
.pos-input-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 6px; }
.pos-customer-list { display: grid; gap: 8px; }
.customer-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; border: 1px solid #dfe7f7; border-radius: 14px; background: #fff; }
.customer-chip div { display: grid; gap: 3px; }
.customer-chip span, .muted-note { color: var(--muted); font-size: 12px; }
.customer-chip button, .line-remove, .icon-close { border: 0; border-radius: 10px; background: #fee4e2; color: var(--bad); font-weight: 900; cursor: pointer; width: 30px; height: 30px; }
.pos-payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-method { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px; text-align: left; cursor: pointer; display: grid; gap: 5px; }
.pay-method span { font-weight: 900; color: var(--text); }
.pay-method strong { font-size: 11px; color: var(--muted); line-height: 1.35; }
.pay-method.active { border-color: var(--brand); background: #eef2ff; }
.pay-method:disabled { opacity: .45; cursor: not-allowed; }
.pos-ticket-lines { display: grid; gap: 10px; min-height: 170px; }
.pos-empty-ticket { border: 1px dashed #bfc9dc; border-radius: 18px; padding: 24px; display: grid; gap: 6px; text-align: center; color: var(--muted); background: #fbfcff; }
.pos-empty-ticket strong { color: var(--text); }
.pos-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) 112px 78px 32px; gap: 8px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.cart-line-main { display: grid; gap: 4px; min-width: 0; }
.cart-line-main strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cart-line-main span { color: var(--muted); font-size: 12px; }
.cart-qty-controls { display: grid; grid-template-columns: 30px 1fr 30px; gap: 4px; align-items: center; }
.cart-qty-controls button { border: 1px solid var(--line); border-radius: 10px; background: #f8faff; cursor: pointer; min-height: 31px; font-weight: 900; }
.cart-qty-controls input { padding: 6px; text-align: center; }
.cart-line-total { font-weight: 900; text-align: right; }
.pos-save-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pos-override-row { display: grid; gap: 8px; padding: 12px; border-radius: 15px; background: #fff8eb; border: 1px solid #ffe0a3; }
.pos-override-row label { display: flex; flex-direction: row; gap: 8px; align-items: center; }
.pos-total-box { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: #0b1020; color: #fff; }
.pos-total-box div { display: flex; justify-content: space-between; gap: 12px; }
.pos-total-box span { color: rgba(255,255,255,.7); }
.pos-total-box strong { font-size: 18px; }
.pos-total-box .grand-total { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.18); }
.pos-total-box .grand-total strong { font-size: 28px; }
.pos-charge-btn { border: 0; border-radius: 18px; min-height: 58px; cursor: pointer; font-size: 21px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #067a46, #15a56a); box-shadow: 0 16px 32px rgba(6,122,70,.24); }
.pos-lower-grid .card { margin-bottom: 0; }
.pos-open-ticket-list, .pos-receipt-list { display: grid; gap: 10px; }
.open-ticket-card, .receipt-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 13px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.open-ticket-card div, .receipt-card div { display: grid; gap: 4px; }
.open-ticket-card span, .receipt-card span, .open-ticket-card small { color: var(--muted); font-size: 12px; }
.actions.end { justify-content: flex-end; }
.actions.compact { margin: 0; gap: 6px; }
.actions.compact .btn { padding: 8px 10px; border-radius: 11px; }
.pos-modal-backdrop { position: fixed; inset: 0; background: rgba(6, 19, 52, .58); backdrop-filter: blur(8px); z-index: 80; display: grid; place-items: center; padding: 20px; }
.pos-modal { width: min(760px, 96vw); max-height: 92vh; overflow: auto; background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 28px 70px rgba(0,0,0,.25); padding: 20px; }
.pos-modal.receipt-modal { width: min(560px, 96vw); }
.pos-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.payment-review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.payment-review-grid div { padding: 12px; border-radius: 14px; background: #f8faff; border: 1px solid var(--line); display: grid; gap: 5px; }
.payment-review-grid span, .payment-total span { color: var(--muted); font-size: 12px; }
.review-lines { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.review-lines div, .thermal-lines div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.review-lines div:last-child, .thermal-lines div:last-child { border-bottom: 0; }
.payment-total { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-radius: 16px; background: #0b1020; color: #fff; margin-bottom: 12px; }
.payment-total strong { font-size: 28px; }
.thermal-receipt { max-width: 360px; margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.thermal-head { display: grid; gap: 5px; text-align: center; border-bottom: 1px dashed #aeb7c8; padding-bottom: 12px; margin-bottom: 12px; }
.thermal-head strong { font-size: 18px; }
.thermal-meta { display: grid; gap: 7px; border-bottom: 1px dashed #aeb7c8; padding-bottom: 12px; margin-bottom: 12px; }
.thermal-meta div, .thermal-total { display: flex; justify-content: space-between; gap: 12px; }
.thermal-total { border-top: 1px dashed #aeb7c8; padding-top: 12px; margin-top: 12px; font-size: 18px; }
.thermal-receipt p { text-align: center; margin: 14px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 1180px) {
  .pos-workstation { grid-template-columns: 1fr; }
  .pos-ticket { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .pos-toolbar, .pos-payment-methods, .pos-save-row, .payment-review-grid { grid-template-columns: 1fr; }
  .pos-product-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
  .pos-cart-line { grid-template-columns: 1fr; }
  .cart-line-total { text-align: left; }
  .open-ticket-card, .receipt-card { align-items: stretch; flex-direction: column; }
}
@media print {
  body.printing-pos-receipt .app-shell { display: none !important; }
  body.printing-pos-receipt .pos-modal-backdrop { position: static !important; display: block !important; background: #fff !important; padding: 0 !important; }
  body.printing-pos-receipt .pos-modal { box-shadow: none !important; border: 0 !important; width: auto !important; max-height: none !important; padding: 0 !important; }
  body.printing-pos-receipt .pos-modal-head, body.printing-pos-receipt .pos-modal .actions { display: none !important; }
  body.printing-pos-receipt .thermal-receipt { border: 0 !important; border-radius: 0 !important; margin: 0 auto 16px !important; }
}

@media print {
  body.printing-pos-receipt .app-shell { display: block !important; min-height: auto !important; }
  body.printing-pos-receipt .sidebar,
  body.printing-pos-receipt .topbar,
  body.printing-pos-receipt .premium-pos > :not(#posReceiptModal) { display: none !important; }
  body.printing-pos-receipt .workspace,
  body.printing-pos-receipt .content { display: block !important; padding: 0 !important; max-width: none !important; margin: 0 !important; }
  body.printing-pos-receipt #posReceiptModal { position: static !important; display: block !important; background: #fff !important; padding: 0 !important; }
}

/* GCES premium black, gold, silver brand system */
:root {
  --bg: #08090c;
  --surface: #ffffff;
  --surface-2: #f5f1e8;
  --text: #171512;
  --muted: #6f6a60;
  --line: #ded6c5;
  --brand: #c79a32;
  --brand-2: #0b0b0d;
  --gold: #c79a32;
  --gold-light: #f6d98b;
  --silver: #d7d9de;
  --silver-dark: #8d929b;
  --black: #060608;
  --shadow: 0 22px 55px rgba(3, 3, 7, .16);
}
body {
  background:
    radial-gradient(circle at top left, rgba(199,154,50,.20), transparent 26%),
    radial-gradient(circle at bottom right, rgba(215,217,222,.16), transparent 28%),
    linear-gradient(135deg, #08090c 0%, #111113 32%, #f3f0e8 32%, #f7f5f0 100%);
}
body.page-pos { --brand: #c0922f; --brand-2: #111111; --surface-2: #fff7e5; --line: #e7d7b2; }
body.page-attendance { --brand: #d4af37; --brand-2: #050507; --surface-2: #f8f3e7; --line: #e4d5ad; }
body.page-library { --brand: #0e7567; --brand-2: #083b35; --surface-2: #e9f7f4; --line: #cde5df; }
body.page-lms { --brand: #7157c8; --brand-2: #31205e; --surface-2: #f0edff; --line: #d7cef8; }
body.page-wallets, body.page-cash, body.page-reports { --brand: #9a6a13; --brand-2: #1a1204; --surface-2: #fff7e8; --line: #e4d2aa; }
body.page-accounts { --brand: #7a6f5a; --brand-2: #1d1b17; --surface-2: #f4f2ed; --line: #d9d3c5; }
body.page-notices, body.page-meetings, body.page-complaints { --brand: #8c5b2a; --brand-2: #23160b; --surface-2: #fff2e8; --line: #ead6c1; }
body.page-certificates, body.page-exams { --brand: #b08a27; --brand-2: #0e0d09; --surface-2: #fbf4df; --line: #e8d8a5; }
body.page-tasks, body.page-audit { --brand: #52606d; --brand-2: #171d23; --surface-2: #f1f4f6; --line: #d6dde3; }
.sidebar {
  background: linear-gradient(180deg, #050506 0%, #17130b 58%, #090909 100%);
  border-right: 1px solid rgba(212,175,55,.35);
  box-shadow: 20px 0 50px rgba(0,0,0,.26);
}
.brand { padding: 12px; border: 1px solid rgba(212,175,55,.28); border-radius: 22px; background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(199,154,50,.10)); }
.brand-mark { width: 58px; height: 58px; border-radius: 18px; background: radial-gradient(circle, rgba(255,255,255,.16), rgba(199,154,50,.22)); overflow: hidden; border: 1px solid rgba(246,217,139,.55); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 2px; display: block; }
.brand strong { color: #f8e6b5; letter-spacing: .02em; }
.brand span { color: rgba(215,217,222,.75); }
.nav-link.active, .nav-link:hover { background: linear-gradient(135deg, rgba(199,154,50,.28), rgba(255,255,255,.08)); box-shadow: inset 0 0 0 1px rgba(246,217,139,.16); }
.topbar {
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(199,154,50,.26);
}
.topbar h1 { color: #111; }
.card { border-color: var(--line); box-shadow: var(--shadow); }
.btn { background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.btn:hover { filter: brightness(.95); }
.btn.secondary { background: var(--surface-2); color: var(--brand-2); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost { background: #fff; color: var(--brand-2); border: 1px solid var(--line); box-shadow: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.badge { background: var(--surface-2); color: var(--brand-2); }
.metric.gold { background: linear-gradient(135deg, #fffaf0, #f5e3ad); border-color: #e3c86f; }
.metric.good { background: linear-gradient(135deg, #fff, #e8f8ef); }
.metric.warn { background: linear-gradient(135deg, #fff, #fff3d8); }
.metric.bad { background: linear-gradient(135deg, #fff, #feecea); }
.form-row select[multiple] { min-height: 150px; padding: 8px; }

/* Premium Attendance Command Center */
.attendance-premium { display: grid; gap: 18px; }
.attendance-command.card {
  background:
    radial-gradient(circle at top right, rgba(246,217,139,.22), transparent 34%),
    linear-gradient(135deg, #050506, #18130a 58%, #2b220d);
  color: #fff;
  border-color: rgba(212,175,55,.35);
  overflow: hidden;
}
.attendance-command-main, .attendance-command-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.attendance-logo-lockup { display: flex; align-items: center; gap: 16px; }
.attendance-logo-lockup img { width: 84px; height: 84px; object-fit: contain; border-radius: 24px; border: 1px solid rgba(246,217,139,.35); background: rgba(0,0,0,.22); }
.attendance-logo-lockup h2 { margin: 0; font-size: 28px; color: #ffe8a3; }
.attendance-logo-lockup p, .attendance-command .compact-field { color: rgba(255,255,255,.74); }
.attendance-command .eyebrow { color: #f6d98b; }
.attendance-command input, .attendance-command select { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(246,217,139,.28); }
.attendance-command select option { color: #111; }
.attendance-clock { min-width: 210px; padding: 14px 18px; border-radius: 18px; text-align: center; font-weight: 900; color: #111; background: linear-gradient(135deg, #f6d98b, #c79a32); box-shadow: 0 16px 32px rgba(0,0,0,.22); }
.attendance-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.attendance-workstation { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr); gap: 18px; align-items: start; }
.attendance-panel-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.attendance-panel-title h2 { margin: 0 0 4px; }
.attendance-panel-title p { margin: 0; color: var(--muted); }
.attendance-fee-pill { padding: 10px 13px; border-radius: 999px; background: #111; color: #f6d98b; font-weight: 900; white-space: nowrap; }
.attendance-scanner { background: linear-gradient(180deg, #ffffff, #fffaf0); }
.scanner-entry-box { padding: 16px; border-radius: 22px; border: 1px solid #e7cd7d; background: linear-gradient(135deg, #111, #2a210d); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.scanner-entry-box label { color: #f6d98b; }
.scanner-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 8px; }
.scanner-input-row input { min-height: 58px; font-size: 22px; font-weight: 900; letter-spacing: .02em; background: #fff; color: #111; border-color: #f6d98b; }
.scanner-input-row .btn { min-height: 58px; padding-inline: 24px; }
.scan-result { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); margin: 14px 0; }
.scan-result span { color: var(--muted); }
.scan-result.neutral { background: #f7f7f5; }
.scan-result.good { background: #e9f8ef; border-color: #b7e2c4; color: #075b34; }
.scan-result.warn { background: #fff4d8; border-color: #eccb74; color: #7c5510; }
.scan-result.bad { background: #ffedeb; border-color: #f1b8b0; color: #8a2118; }
.attendance-session-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.attendance-class-card { text-align: left; display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 14px; cursor: pointer; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.attendance-class-card:hover { transform: translateY(-2px); border-color: #d4af37; box-shadow: 0 16px 30px rgba(0,0,0,.10); }
.attendance-class-card.active { background: linear-gradient(135deg, #111, #3a2b09); color: #fff; border-color: #d4af37; }
.attendance-class-card small, .attendance-class-card em { color: var(--muted); font-size: 12px; }
.attendance-class-card.active small, .attendance-class-card.active em { color: rgba(255,255,255,.72); }
.attendance-class-status { justify-self: start; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; background: #fff4db; color: #8a6115; }
.attendance-mini-progress { height: 8px; border-radius: 999px; overflow: hidden; background: #eee7d6; }
.attendance-mini-progress span { display: block; height: 100%; background: linear-gradient(90deg, #d4af37, #f6d98b); }
.attendance-roster { position: sticky; top: 102px; max-height: calc(100vh - 122px); overflow: auto; }
.attendance-list { display: grid; gap: 10px; }
.attendance-student-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 13px; border-radius: 17px; border: 1px solid var(--line); background: #fff; }
.attendance-student-row div { display: grid; gap: 4px; }
.attendance-student-row span { color: var(--muted); font-size: 12px; }
.attendance-empty { display: grid; gap: 6px; padding: 22px; text-align: center; border: 1px dashed #cfc5ad; border-radius: 18px; color: var(--muted); background: #fffaf0; }
.attendance-empty strong { color: var(--text); }
.attendance-operations-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.attendance-assignment-card { background: linear-gradient(180deg, #fff, #fbf7ee); }
.attendance-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { border: 1px solid #e0c56c; background: #fff8df; color: #49350b; border-radius: 999px; padding: 7px 10px; cursor: pointer; font-weight: 800; }
.attendance-candidate-list { display: grid; gap: 10px; }
.attendance-candidate { border: 1px solid var(--line); border-radius: 17px; background: #fff; padding: 14px; display: grid; gap: 5px; text-align: left; cursor: pointer; }
.attendance-candidate:hover { border-color: #d4af37; background: #fffaf0; }
.attendance-candidate span, .attendance-candidate em { color: var(--muted); font-size: 12px; }
.attendance-modal .card-subtitle { margin: 4px 0 0; }

@media (max-width: 1180px) {
  .attendance-workstation, .attendance-operations-grid { grid-template-columns: 1fr; }
  .attendance-roster { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .attendance-kpi-grid { grid-template-columns: 1fr 1fr; }
  .attendance-logo-lockup { align-items: flex-start; }
  .attendance-logo-lockup img { width: 62px; height: 62px; }
  .scanner-input-row { grid-template-columns: 1fr; }
  .attendance-student-row { align-items: stretch; flex-direction: column; }
}

/* Smart Attendance v3 premium workbench */
.attendance-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: #f4efe2;
  box-shadow: none;
}
.attendance-view-switch button {
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 17px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.attendance-view-switch button > span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dfd5bd;
  color: #5b4b25;
  font-weight: 900;
}
.attendance-view-switch button strong { color: var(--text); font-size: 15px; }
.attendance-view-switch button small { font-size: 12px; }
.attendance-view-switch button.active {
  background: #111;
  color: rgba(255,255,255,.72);
  border-color: #d4af37;
  box-shadow: 0 12px 26px rgba(0,0,0,.13);
}
.attendance-view-switch button.active strong { color: #f6d98b; }
.attendance-view-switch button.active > span { background: #d4af37; border-color: #f6d98b; color: #111; }
.attendance-view-panel { display: none; }
.attendance-view-panel.active { display: grid; gap: 18px; }
.attendance-current-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 17px;
  border: 1px solid #e5d39d;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffdf7, #fff5d8);
}
.attendance-current-context > div { display: grid; gap: 3px; }
.attendance-current-context span { color: #7a5b14; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.attendance-current-context small { color: var(--muted); }
.attendance-view-panel[data-attendance-view-panel="RECEPTION"] > .attendance-kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.attendance-v3 .attendance-hero.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(246,217,139,.24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(215,217,222,.10), transparent 30%),
    linear-gradient(135deg, #050506, #15110a 56%, #2b220d);
  color: #fff;
  border-color: rgba(212,175,55,.38);
  overflow: hidden;
}
.attendance-v3 .attendance-hero .attendance-logo-lockup { align-items: flex-start; }
.attendance-v3 .attendance-hero .attendance-logo-lockup h2 { color: #ffe8a3; font-size: clamp(22px, 3vw, 32px); }
.attendance-v3 .attendance-hero .attendance-logo-lockup p { color: rgba(255,255,255,.75); max-width: 850px; }
.attendance-clock-stack { display: grid; gap: 8px; align-content: start; justify-items: end; color: rgba(255,255,255,.76); font-weight: 800; }
.attendance-command-controls.v3 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 12px; }
.attendance-v3 .attendance-hero .compact-field { color: rgba(255,255,255,.76); }
.attendance-v3 .attendance-hero input, .attendance-v3 .attendance-hero select { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(246,217,139,.28); }
.attendance-v3 .attendance-hero select option { color: #111; }
.attendance-kpi-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.attendance-command-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); gap: 18px; align-items: start; }
.scan-terminal { position: sticky; top: 102px; }
.scanner-entry-box.premium { background: radial-gradient(circle at 20% 20%, rgba(246,217,139,.14), transparent 38%), linear-gradient(135deg, #060607, #241b08); }
.scanner-input-row.jumbo input { min-height: 68px; font-size: 25px; }
.scanner-input-row.jumbo .btn { min-height: 68px; font-size: 17px; }
.scan-recent-box { display: grid; gap: 8px; margin-top: 12px; }
.scan-recent-box h3 { margin: 0; font-size: 14px; color: rgba(215,217,222,.55); }
.scan-recent-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid rgba(199,154,50,.25); border-radius: 14px; background: rgba(255,255,255,.06); color: #e8e2d8; }
.scan-recent-row span { color: rgba(215,217,222,.55); font-size: 12px; text-align: right; }
.attendance-class-choice { background: linear-gradient(180deg, #fff, #fbf7ee); }
.attendance-route-auto {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfd6bf;
  border-radius: 18px;
  padding: 15px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.attendance-route-auto.active { border-color: #d4af37; background: #fff8df; box-shadow: inset 0 0 0 1px #f0d77e; }
.attendance-route-auto > span:nth-child(2) { display: grid; gap: 4px; }
.attendance-route-auto small { color: var(--muted); }
.attendance-route-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #111;
  color: #f6d98b;
  font-weight: 900;
  font-size: 18px;
}
.attendance-route-heading { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 9px; color: var(--muted); font-size: 12px; }
.attendance-route-heading strong { color: var(--text); }
.attendance-route-list { display: grid; gap: 9px; max-height: 430px; overflow: auto; padding-right: 3px; }
.attendance-route-class {
  display: grid;
  gap: 5px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.attendance-route-class:hover { border-color: #d4af37; background: #fffaf0; }
.attendance-route-class.active { border-color: #d4af37; background: #111; color: #fff; }
.attendance-route-class small, .attendance-route-class em { color: var(--muted); font-size: 12px; }
.attendance-route-class.active small, .attendance-route-class.active em { color: rgba(255,255,255,.7); }
.attendance-manage-panel { align-content: start; }
.attendance-hall-board { background: linear-gradient(180deg, #fff, #fbf7ee); }
.hall-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hall-board-card { border: 1px solid #e2ce89; background: #fff; border-radius: 20px; padding: 14px; display: grid; gap: 10px; }
.hall-board-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid #f1e6c7; }
.hall-board-head div { display: grid; gap: 3px; }
.hall-board-head span { color: var(--muted); font-size: 12px; }
.hall-board-head b { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; background: #111; color: #f6d98b; }
.hall-session { display: grid; gap: 3px; border-left: 4px solid #d4af37; background: #fffaf0; border-radius: 14px; padding: 10px 11px; }
.hall-session.live { border-left-color: #067a46; background: #eaf8f0; }
.hall-session.empty { border-left-color: #cbd0d8; background: #f7f7f5; }
.hall-session span, .hall-session em { color: var(--muted); font-size: 12px; }
.attendance-session-control { background: linear-gradient(180deg, #fff, #f8f5ed); }
.attendance-session-list.v3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); max-height: 410px; overflow: auto; padding-right: 4px; }
.attendance-class-card.v3 { min-height: 156px; }
.attendance-main-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 18px; align-items: start; }
.attendance-v3 .attendance-roster { position: static; max-height: none; }
.attendance-roster-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.attendance-roster-tabs button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 900; }
.attendance-roster-tabs button.active { background: #111; color: #f6d98b; border-color: #d4af37; }
.roster-pane { display: none; }
.roster-pane.active { display: grid; }
.attendance-student-row.good-row { border-color: #b7e2c4; background: #f4fbf6; }
.attendance-student-row.bad-row { border-color: #f1b8b0; background: #fff4f2; }
.assignment-preview-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 45px; padding: 10px; border: 1px dashed #d7bd68; border-radius: 16px; background: #fffaf0; }
.assignment-preview-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: #111; color: #fff; font-weight: 800; font-size: 12px; }
.assignment-preview-chip em { color: #f6d98b; font-style: normal; }
.hall-mini-list { display: grid; gap: 10px; margin-top: 14px; }
.hall-mini-list div { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; }
.hall-mini-list span { color: var(--muted); font-size: 12px; }
.attendance-reporting { background: linear-gradient(180deg, #fff, #faf7ef); }
.attendance-report-result { display: grid; gap: 16px; margin-top: 14px; }
.attendance-empty.mini { padding: 14px; }
@media (max-width: 1240px) {
  .attendance-command-layout, .attendance-main-grid { grid-template-columns: 1fr; }
  .scan-terminal { position: static; }
}
@media (max-width: 880px) {
  .attendance-v3 .attendance-hero.card { grid-template-columns: 1fr; }
  .attendance-clock-stack { justify-items: start; }
  .attendance-command-controls.v3, .attendance-kpi-grid.compact, .attendance-view-panel[data-attendance-view-panel="RECEPTION"] > .attendance-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .attendance-view-switch { grid-template-columns: 1fr; }
  .attendance-command-controls.v3, .attendance-kpi-grid.compact, .attendance-view-panel[data-attendance-view-panel="RECEPTION"] > .attendance-kpi-grid { grid-template-columns: 1fr; }
  .attendance-current-context, .attendance-route-auto { align-items: stretch; }
  .attendance-current-context { flex-direction: column; }
  .attendance-route-auto { grid-template-columns: 42px minmax(0, 1fr); }
  .attendance-route-auto .badge { grid-column: 1 / -1; justify-self: start; }
  .scan-recent-row, .attendance-panel-title { flex-direction: column; align-items: stretch; }
}

/* ── Attendance Device (new) ─────────────────────────────────────────────── */
.att-device-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
@media (max-width: 820px) { .att-device-layout { grid-template-columns: 1fr; } }

.att-scan-area { margin: 12px 0; display: flex; gap: 8px; align-items: stretch; }
.att-camera-btn { flex: 0 0 auto; font-size: 1.3rem; padding: 0 16px; border-radius: 10px; }

/* Registered-device chip (replaces the free-text Device ID field) */
.att-device-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 10px;
  border: 1px solid rgba(199,154,50,.35); border-radius: 12px;
  background: rgba(199,154,50,.08);
}
.att-device-chip > div { display: grid; gap: 1px; margin-right: auto; }
.att-device-chip small { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(215,217,222,.55); }
.att-device-chip strong { font-size: .95rem; color: #f6d98b; letter-spacing: .02em; }
.att-device-dot { width: 9px; height: 9px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 3px rgba(110,231,183,.18); }
.att-device-change { padding: 6px 10px; font-size: 1rem; min-height: auto; }

/* ── Camera scanner overlay (reusable: attendance / cafeteria / shop / ID) ── */
.cam-scan-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: #06070c; display: flex; flex-direction: column;
}
.cam-scan-frame { position: relative; flex: 1; overflow: hidden; display: grid; place-items: center; }
.cam-scan-video { width: 100%; height: 100%; object-fit: cover; }
.cam-scan-reticle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(72vw, 320px); aspect-ratio: 1; border-radius: 22px;
  border: 3px solid rgba(246,217,139,.9);
  box-shadow: 0 0 0 100vmax rgba(6,7,12,.55);
}
.cam-scan-hint {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  color: #f3ead2; font-weight: 600; font-size: .9rem; padding: 0 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.cam-scan-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(16px, env(safe-area-inset-left)) calc(14px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  background: #0a0b10; border-top: 1px solid rgba(199,154,50,.3);
}
.cam-scan-title { color: #f6d98b; font-weight: 900; letter-spacing: .02em; }

/* ════════════════════════════════════════════════════════════════════════
   POS STEP-BY-STEP WIZARD
   ════════════════════════════════════════════════════════════════════════ */
.pos-stepper {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
  padding: 10px 14px; margin-bottom: 16px; overflow-x: auto;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.pos-step-pill {
  display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 8px 16px 8px 8px; cursor: pointer;
  font-weight: 800; font-size: 14px; white-space: nowrap; transition: all .15s ease;
}
.pos-step-pill b {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #eef1f6; color: var(--muted); font-size: 13px; transition: all .15s ease;
}
.pos-step-pill.active { border-color: var(--brand); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.16); }
.pos-step-pill.active b { background: #fff; color: var(--brand-2); }
.pos-step-pill.done { border-color: #b7e2c4; background: #eaf8f0; color: #075b34; }
.pos-step-pill.done b { background: #067a46; color: #fff; }
.pos-step-pill.done b::after { content: '✓'; }
.pos-step-pill.done b { font-size: 0; }
.pos-step-pill.done b::after { font-size: 14px; }
.pos-step-sep { flex: 0 0 auto; width: 18px; height: 2px; border-radius: 2px; background: var(--line); }

.pos-step { display: none; }
.pos-step.active { display: grid; gap: 16px; }

/* Floating action rail — top-right, fixed while scrolling */
.pos-action-rail {
  position: fixed; right: 18px; top: 96px; z-index: 55;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.pos-rail-btn {
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 15px;
  padding: 13px 20px; min-width: 180px; text-align: center;
  background: linear-gradient(135deg, var(--brand, #c79a32), var(--brand-2, #0b0b0d));
  color: #fff; box-shadow: 0 14px 32px rgba(0,0,0,.30);
  transition: transform .12s ease, filter .12s ease;
}
.pos-rail-btn:hover { transform: scale(1.02); }
.pos-rail-btn.ghost { background: rgba(255,255,255,.92); color: var(--brand-2, #0b0b0d); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.16); min-width: 120px; padding: 10px 18px; }
.pos-action-rail .pos-charge-btn { min-width: 200px; border-radius: 999px; min-height: 0; padding: 15px 22px; font-size: 18px; }

.pos-cart-fab {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 12px 18px 12px 12px; border: 0; border-radius: 999px;
  background: #fff; color: var(--brand-2, #0b0b0d);
  border: 1px solid var(--line); box-shadow: 0 16px 38px rgba(0,0,0,.22);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pos-cart-fab:hover { transform: scale(1.03); }
.pos-cart-fab[hidden] { display: none; }

/* Quick-action buttons in the stepper bar */
.pos-quick-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Generic right-side drawer host (Product Studio, Recent Receipts) */
.pos-drawer-host { position: fixed; inset: 0; z-index: 300; background: rgba(6,7,12,.55); backdrop-filter: blur(4px); }
.pos-drawer-host[hidden] { display: none; }
.pos-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 96vw);
  background: var(--surface, #fff); box-shadow: -24px 0 60px rgba(0,0,0,.4);
  padding: 18px max(18px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) 18px;
  overflow: auto; animation: posDrawerIn .22s cubic-bezier(.4,0,.2,1);
}
.pos-drawer-panel .card { box-shadow: none; }
.pos-drawer-x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 18px; font-weight: 700;
}
.pos-drawer-x:hover { background: #f3ead2; color: var(--brand-2); }

/* Image upload field */
.img-upload { display: grid; gap: 8px; }
.img-upload-file { display: none; }
.img-upload-drop {
  display: grid; place-items: center; gap: 6px; min-height: 120px; cursor: pointer;
  border: 2px dashed var(--line); border-radius: 14px; padding: 12px; text-align: center;
  background: #faf8f2; color: var(--muted); font-weight: 700; transition: border-color .15s, background .15s;
}
.img-upload-drop:hover { border-color: var(--brand); background: rgba(199,154,50,.08); }
.img-upload-drop img { max-width: 100%; max-height: 160px; border-radius: 10px; object-fit: contain; }
@media (max-width: 820px) {
  .pos-action-rail { right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); flex-direction: column-reverse; }
  .pos-rail-btn, .pos-action-rail .pos-charge-btn { min-width: 150px; padding: 12px 16px; font-size: 15px; }
}
.pos-cart-fab-count {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
  background: #fff; color: var(--brand-2, #0b0b0d); font-weight: 900; font-size: 15px;
  display: grid; place-items: center;
}
.pos-cart-fab-body { display: grid; gap: 1px; text-align: left; line-height: 1.1; }
.pos-cart-fab-body small { font-size: .68rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.pos-cart-fab-body strong { font-size: 1.05rem; }
.pos-cart-fab-icon { font-size: 1.2rem; }

/* Slide-in ticket drawer */
.pos-cart-drawer { position: fixed; inset: 0; z-index: 300; background: rgba(6,7,12,.55); backdrop-filter: blur(4px); }
.pos-cart-drawer[hidden] { display: none; }
.pos-cart-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 92vw);
  background: var(--surface, #fff); box-shadow: -24px 0 60px rgba(0,0,0,.4);
  padding: 18px max(18px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) 18px;
  display: flex; flex-direction: column; gap: 12px; overflow: auto;
  animation: posDrawerIn .22s cubic-bezier(.4,0,.2,1);
}
@keyframes posDrawerIn { from { transform: translateX(20px); opacity: .4; } to { transform: none; opacity: 1; } }
.pos-cart-drawer .pos-ticket-lines { flex: 1; }
.pos-cart-drawer-foot { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.pos-cart-drawer-foot .btn { flex: 1; }

/* Wallet / prepaid account picker (Step 2) */
.pos-account-picker { display: grid; gap: 12px; margin: 4px 0 0; }
.pos-account-search { display: flex; gap: 8px; }
.pos-account-search input { flex: 1; }
.pos-account-search .btn { flex: 0 0 auto; font-size: 1.2rem; padding: 0 16px; }
.pos-account-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .pos-account-filters { grid-template-columns: 1fr; } }
/* Certificate verification result */
.cert-result { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; margin-top: 12px; }
.cert-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cert-result-head h3 { margin: 0; }
.cert-revoke-note { color: var(--bad); font-weight: 700; margin: 0 0 10px; }
.cert-result.is-valid { border-color: #b7e2c4; box-shadow: 0 0 0 3px rgba(6,122,70,.08); }
.cert-result.is-invalid { border-color: #f1b8b0; box-shadow: 0 0 0 3px rgba(180,35,24,.07); }

/* Prominent showcase: certificate document + student identity card */
.cert-showcase { display: grid; grid-template-columns: 1fr 200px; gap: 18px; margin-bottom: 16px; align-items: start; }
.cert-doc { margin: 0; display: grid; gap: 6px; }
.cert-doc img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); background: #faf8f2; box-shadow: 0 10px 26px rgba(0,0,0,.10); display: block; }
.cert-doc-empty { display: grid; place-items: center; gap: 6px; min-height: 240px; font-size: 40px; color: var(--muted); border: 2px dashed var(--line); border-radius: 14px; background: #faf8f2; }
.cert-doc-empty span { font-size: 13px; }
.cert-doc figcaption { color: var(--muted); font-size: 12px; text-align: center; }
.cert-identity { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); align-content: start; }
.cert-photo img { width: 140px; height: 170px; object-fit: cover; border-radius: 12px; border: 2px solid var(--brand); }
.cert-photo-empty { width: 140px; height: 170px; display: grid; place-items: center; gap: 4px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 36px; }
.cert-photo-empty span { font-size: 12px; }
.cert-identity strong { font-size: 15px; margin-top: 8px; }
.cert-identity small { color: var(--muted); font-size: 12px; }
.cert-facts { margin-top: 4px; }
@media (max-width: 640px) { .cert-showcase { grid-template-columns: 1fr; } .cert-identity { order: -1; } }
.cert-admin-block { margin-top: 14px; padding: 14px; border: 1px solid rgba(199,154,50,.4); border-radius: 14px; background: rgba(199,154,50,.07); }
.cert-admin-block h4 { margin: 0 0 8px; color: var(--brand-2); }
@media (max-width: 560px) { .cert-media { grid-template-columns: 1fr; justify-items: center; } }

@media print {
  body.printing-report .sidebar,
  body.printing-report .topbar,
  body.printing-report .nav-scrim,
  body.printing-report #app > *:not(#reportResult) { display: none !important; }
  body.printing-report .app-shell { display: block !important; min-height: auto !important; }
  body.printing-report .workspace, body.printing-report .content { display: block !important; padding: 0 !important; max-width: none !important; margin: 0 !important; }
}

/* Invoice/receipt print sizes (PDF §15.1: A4, A5 + 80/56mm thermal) */
@media print {
  body.pos-print-a4 { --gces-page: A4; }
  body.pos-print-a5 { --gces-page: A5; }
  body.pos-print-a4 .thermal-receipt { max-width: 180mm !important; font-family: Inter, Arial, sans-serif !important; }
  body.pos-print-a5 .thermal-receipt { max-width: 130mm !important; font-family: Inter, Arial, sans-serif !important; }
  body.pos-print-56 .thermal-receipt { max-width: 56mm !important; }
  body.pos-print-80 .thermal-receipt { max-width: 80mm !important; }
}
@page { size: auto; margin: 8mm; }

/* Generic page tabs (button pattern) */
.tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 800; font-size: 14px; transition: all .14s ease; }
.tab:hover { border-color: var(--brand); color: var(--brand-2); }
.tab.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; box-shadow: 0 10px 22px rgba(0,0,0,.16); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Create-account step wizard */
.wizard-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.wizard-pill { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 8px 16px 8px 8px; cursor: pointer; font-weight: 800; font-size: 14px; }
.wizard-pill b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eef1f6; color: var(--muted); font-size: 13px; }
.wizard-pill.active { border-color: var(--brand); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.wizard-pill.active b { background: #fff; color: var(--brand-2); }
.wizard-pill.done { border-color: #b7e2c4; background: #eaf8f0; color: #075b34; }
.wizard-pill.done b { background: #067a46; color: #fff; }
.wizard-sep { width: 16px; height: 2px; border-radius: 2px; background: var(--line); }
.acct-step { display: none; }
.acct-step.active { display: block; }
.wizard-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.wizard-spacer { margin-left: auto; }
@media (max-width: 560px) { .wizard-pill span { display: none; } .wizard-pill { padding: 8px; } }

/* Certificate page tabs (button pattern) */
.cert-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cert-tab {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 800; font-size: 14px;
  transition: all .14s ease;
}
.cert-tab:hover { border-color: var(--brand); color: var(--brand-2); }
.cert-tab.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; box-shadow: 0 10px 22px rgba(0,0,0,.16); }
.cert-tab-panel { display: none; }
.cert-tab-panel.active { display: block; }

/* Bulk certificate status picker */
.cert-pick-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; margin-top: 10px; padding-right: 2px; }
.cert-pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.cert-pick:hover { border-color: var(--brand); }
.cert-pick input { width: auto; min-height: 0; margin: 0; accent-color: var(--brand); }
.cert-pick-main { display: grid; gap: 1px; margin-right: auto; }
.cert-pick-main strong { font-size: 13px; color: var(--text); }
.cert-pick-main small { color: var(--muted); font-size: 12px; }
.cert-pick.selectall { background: var(--surface-2); border-style: dashed; }

/* Feature permission checklist */
.feature-groups { display: grid; gap: 12px; }
.feature-group { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 14px; margin: 0; }
.feature-group legend { padding: 0 8px; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-2); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 8px; }
.feature-check { display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-weight: 700; font-size: 13px; background: #fff; transition: border-color .12s, background .12s; }
.feature-check:hover { border-color: var(--brand); }
.feature-check.on { border-color: var(--brand); background: rgba(199,154,50,.12); }
.feature-check input { width: auto; min-height: 0; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.feature-text { display: flex; flex-direction: column; gap: 2px; }
.feature-label { line-height: 1.3; }
.feature-hint { font-weight: 500; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.feature-permissions > label { display: block; margin-bottom: 8px; }

.pos-method-label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 4px; }
.pos-method-hint { padding: 14px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); background: #faf8f2; }
.pos-selected-summary { display: grid; gap: 10px; }
.pos-selected-summary[hidden] { display: none; }
.pos-selected-summary .btn { justify-self: start; }
#posCustomerModal .pos-account-search { margin-bottom: 12px; }
#posCustomerModal .pos-account-list { max-height: 50vh; margin-bottom: 14px; }
.pos-account-list { display: grid; gap: 8px; max-height: 340px; overflow: auto; padding-right: 2px; }
.pos-account-item.walkin { border-style: dashed; }
.pos-account-item.walkin .pos-acct-bal { color: var(--muted); }
.pos-account-item {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 10px;
  text-align: left; cursor: pointer; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.pos-account-item:hover { border-color: var(--brand); background: rgba(199,154,50,.06); }
.pos-account-item.selected { border-color: var(--brand); background: rgba(199,154,50,.14); box-shadow: inset 0 0 0 1px var(--brand); }
.pos-acct-name { font-weight: 800; color: var(--text); }
.pos-acct-sub { grid-row: 2; color: var(--muted); font-size: 12px; }
.pos-acct-bal { grid-row: 1 / 3; align-self: center; font-weight: 900; color: var(--brand-2); white-space: nowrap; }
@media (max-width: 720px) { .pos-account-cols { grid-template-columns: 1fr; } }

/* Per-product selected count badge */
.pos-product-card { position: relative; }
.pos-product-card.in-cart { border-color: var(--brand, #c79a32); box-shadow: 0 0 0 2px rgba(199,154,50,.3), 0 12px 28px rgba(22,34,66,.08); }
.pos-product-count {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand, #c79a32), var(--brand-2, #0b0b0d));
  color: #fff; font-weight: 900; font-size: 13px; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}

.pos-wizard-foot {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 -8px 28px rgba(0,0,0,.10);
}
.pos-wiz-summary { margin: 0 auto 0 4px; color: var(--muted); font-size: 14px; }
.pos-wiz-summary strong { color: var(--text); font-size: 16px; }
.pos-wizard-foot .btn { min-width: 120px; }
.pos-wizard-foot .pos-charge-btn { min-width: 200px; min-height: 52px; font-size: 18px; padding-inline: 24px; }

@media (max-width: 980px) {
  .pos-step[data-step-panel="1"].active { grid-template-columns: 1fr; }
  .pos-cart-side { position: static; max-height: none; }
}
@media (max-width: 620px) {
  .pos-step-pill span { display: none; }
  .pos-step-pill { padding: 8px; }
  .pos-wizard-foot { flex-wrap: wrap; }
  .pos-wiz-summary { order: -1; width: 100%; text-align: center; margin: 0 0 4px; }
  .pos-wizard-foot .btn, .pos-wizard-foot .pos-charge-btn { flex: 1 1 auto; min-width: 0; }
}
.att-scan-input {
  flex: 1; font-size: 1.1rem; padding: 10px 14px;
  border: 2px solid rgba(199,154,50,.4); border-radius: 8px;
  background: #0f1014; color: #e8e2d8;
  transition: border-color .15s, box-shadow .15s;
}
.att-scan-input::placeholder { color: rgba(215,217,222,.35); }
.att-scan-input:focus {
  border-color: var(--gold, #c79a32); outline: none;
  box-shadow: 0 0 0 3px rgba(199,154,50,.18);
}

.att-scan-result { padding: 10px 14px; border-radius: 8px; font-weight: 600; margin: 6px 0; }
.att-scan-result.success { background: rgba(6,95,70,.35);  color: #6ee7b7; border: 1px solid rgba(6,95,70,.5); }
.att-scan-result.warning { background: rgba(120,80,0,.3);  color: #fcd34d; border: 1px solid rgba(146,64,14,.4); }
.att-scan-result.error   { background: rgba(127,29,29,.35); color: #fca5a5; border: 1px solid rgba(153,27,27,.5); }
.att-scan-result.info    { background: rgba(30,58,138,.3);  color: #93c5fd; border: 1px solid rgba(30,64,175,.4); }

.att-recent { margin-top: 16px; }
.att-recent h4 {
  margin: 0 0 8px; font-size: .82rem; color: #6f6a60;
  text-transform: uppercase; letter-spacing: .06em;
}
.att-recent-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: 6px; font-size: .85rem; margin-bottom: 4px;
  background: #faf7ef; color: #1a1508;
  border: 1px solid rgba(199,154,50,.28);
}
.att-recent-row strong { color: #7a5408; }
.att-recent-row span   { color: #6f6a60; font-size: .8rem; }
.att-recent-row.success { background: #eaf8f0; border-color: #b7e2c4; color: #075b34; }
.att-recent-row.success strong { color: #075b34; }
.att-recent-row.warning { background: #fff4d8; border-color: #eccb74; color: #7c5510; }
.att-recent-row.warning strong { color: #7c5510; }
.att-empty-recent { color: #6f6a60; font-size: .85rem; padding: 6px 2px; }

.att-session-list { display: flex; flex-direction: column; gap: 12px; }
.att-class-card { background: #faf7ef; border: 1px solid rgba(199,154,50,.35); border-radius: 10px; padding: 14px 16px; color: #171512; }
.att-class-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.att-class-name { font-weight: 700; font-size: 1rem; color: #1a1508; }
.att-class-meta { display: flex; gap: 12px; font-size: .82rem; color: #6f6a60; flex-wrap: wrap; margin-bottom: 8px; }
.att-class-progress { }
.att-progress-bar { height: 6px; background: #e5d9b0; border-radius: 3px; margin-bottom: 4px; overflow: hidden; }
.att-progress-bar span { display: block; height: 100%; background: #d4af37; border-radius: 3px; transition: width .3s; }

.att-class-selection-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.att-class-select-btn { display: flex; flex-direction: column; gap: 4px; text-align: left; background: #faf7ef; border: 2px solid rgba(199,154,50,.35); border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; color: #1a1508; }
.att-class-select-btn:hover { border-color: #d4af37; background: rgba(212,175,55,.10); }
.att-class-select-btn strong { font-size: 1rem; color: #1a1508; }
.att-class-select-btn span { font-size: .82rem; color: #6f6a60; }

/* ── Class Selection Window (unassigned student) ─────────────────────────── */
.class-sel-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 7, 12, .72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
  animation: classSelFade .15s ease;
}
@keyframes classSelFade { from { opacity: 0; } to { opacity: 1; } }
.class-sel-window {
  width: min(620px, 96vw); max-height: 90vh; overflow: auto;
  background: linear-gradient(180deg, #fffdf8, #fbf6ea);
  border: 1px solid rgba(199,154,50,.45);
  border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.45);
  padding: 22px 22px 18px;
  animation: classSelPop .18s ease;
}
@keyframes classSelPop { from { transform: translateY(12px) scale(.98); } to { transform: none; } }
.class-sel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.class-sel-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase; color: #b42318; margin-bottom: 5px;
}
.class-sel-head h3 { margin: 0 0 5px; font-size: 22px; color: #1a1508; }
.class-sel-head p { margin: 0; color: #6f6a60; font-size: 13px; }
.class-sel-head p strong { color: #7a5408; }
.class-sel-x {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(199,154,50,.35); background: #fff; color: #6f6a60;
  font-size: 22px; line-height: 1; font-weight: 700;
}
.class-sel-x:hover { background: #f3ead2; color: #1a1508; }
.class-sel-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.class-sel-btn {
  display: grid; gap: 6px; text-align: left; cursor: pointer;
  border: 2px solid rgba(199,154,50,.35); border-radius: 16px;
  background: #fff; padding: 15px 16px; color: #1a1508;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.class-sel-btn:hover { transform: translateY(-2px); border-color: #d4af37; box-shadow: 0 14px 28px rgba(0,0,0,.14); }
.class-sel-btn strong { font-size: 1.02rem; color: #1a1508; }
.class-sel-meta { font-size: .82rem; color: #6f6a60; }
/* The batch a class is scheduled for — the field that tells two otherwise
   identical sessions apart, so it is emphasised over the other meta. */
.class-sel-batch { font-size: .8rem; font-weight: 800; color: #94a6c4; }
.class-sel-batch.has-batch { color: var(--brand); }
.class-sel-tag {
  justify-self: start; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: .03em;
}
.class-sel-tag.is-assigned { background: #eaf8f0; color: #075b34; }
.class-sel-tag.is-walkin { background: #fff4d8; color: #7c5510; }
.class-sel-foot { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(199,154,50,.2); }
@media (max-width: 560px) { .class-sel-grid { grid-template-columns: 1fr; } }

/* ── PWA install button ──────────────────────────────────────────────────── */
.install-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  border: 1px solid rgba(246,217,139,.55); border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #c79a32, #f6d98b); color: #1a1508;
  font-weight: 900; font-size: .9rem; padding: 12px 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.install-fab:hover { filter: brightness(1.04); }

/* ── Tag / Chip Input ────────────────────────────────────────────────────── */
.tag-input-wrap {
  position: relative;
  min-height: 42px;
  border: 1.5px solid rgba(199,154,50,.4);
  border-radius: 8px;
  background: #0f1014;
  padding: 5px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  cursor: text;
  transition: border-color .15s, box-shadow .15s;
}
.tag-input-wrap:focus-within {
  border-color: var(--gold, #c79a32);
  box-shadow: 0 0 0 3px rgba(199,154,50,.18);
}
.tag-chips { display: contents; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(199,154,50,.18);
  color: #f6d98b;
  border: 1px solid rgba(199,154,50,.45);
  border-radius: 20px;
  padding: 3px 10px 3px 12px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-chip-remove {
  background: none; border: none; color: rgba(246,217,139,.6);
  cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px; border-radius: 50%;
  transition: color .1s;
}
.tag-chip-remove:hover { color: #f6d98b; background: rgba(199,154,50,.2); }
.tag-text-input {
  flex: 1; min-width: 140px; border: none; outline: none;
  background: transparent; color: #e8e2d8; font-size: .9rem; padding: 3px 4px;
}
.tag-text-input::placeholder { color: rgba(215,217,222,.35); }
.tag-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #13141a; border: 1.5px solid rgba(199,154,50,.5);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.5);
  z-index: 200; max-height: 260px; overflow-y: auto;
}
.tag-suggestion {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px; cursor: pointer; font-size: .88rem; gap: 8px;
  transition: background .1s;
}
.tag-suggestion:first-child { border-radius: 8px 8px 0 0; }
.tag-suggestion:last-child  { border-radius: 0 0 8px 8px; }
.tag-suggestion:hover,
.tag-suggestion:focus { background: rgba(199,154,50,.12); outline: none; }
.tag-suggestion + .tag-suggestion { border-top: 1px solid rgba(255,255,255,.06); }
.tag-sug-label { font-weight: 500; color: #e8e2d8; }
.tag-sug-sub { font-size: .77rem; color: rgba(215,217,222,.5); white-space: nowrap; }

.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.three, .grid.four { grid-template-columns: 1fr; } }
.table-actions { margin-bottom: 8px; }

/* ── Complaints & fake-complaint misuse ── */
.complaint-card { margin-bottom: 12px; }
.complaint-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.complaint-head h4 { margin: 0; flex: 1; }
.complaint-thread { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.complaint-thread p { margin: 2px 0; color: var(--muted); font-size: .9rem; }
.complaint-card textarea { width: 100%; min-height: 60px; margin: 8px 0; }
.fake-panel { border: 1px solid var(--bad); border-radius: 12px; padding: 12px; margin-top: 10px; background: rgba(180,35,24,.05); }
.danger-card { border: 1.5px solid var(--bad); }
.danger-card h2 { color: var(--bad); }
.appeal-item { border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.appeal-item > div:first-child { flex: 1 1 100%; }
.appeal-panel { flex: 1 1 100%; }
.appeal-panel textarea { width: 100%; min-height: 56px; }
.reply-row { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.reply-row textarea { flex: 1; min-height: 44px; }

/* ── Group chat ── */
.chat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; cursor: pointer; }
.chat-row:hover { border-color: var(--brand); }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.chat-row-head { display: flex; align-items: center; gap: 8px; }
.chat-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chat-chevron { color: var(--muted); font-size: 22px; }
.chat-room-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.chat-messages { display: flex; flex-direction: column; gap: 8px; max-height: 58vh; overflow-y: auto; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; }
.chat-bubble { align-self: flex-start; max-width: 78%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 4px; padding: 8px 11px; }
.chat-bubble.mine { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.chat-sender { font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 2px; }
.chat-body { white-space: pre-wrap; word-break: break-word; }
.chat-time { font-size: .68rem; opacity: .65; text-align: right; margin-top: 3px; }
.chat-img { max-width: 220px; max-height: 220px; border-radius: 10px; display: block; margin-bottom: 4px; }
.chat-file { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.06); border-radius: 10px; padding: 8px 10px; text-decoration: none; color: inherit; margin-bottom: 4px; }
.chat-bubble.mine .chat-file { background: rgba(255,255,255,.2); }
.chat-file-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.chat-dl { font-size: 1.1rem; }
.chat-input-bar { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.chat-input-bar input { flex: 1; }
.chat-mp-search { width: 100%; margin-bottom: 8px; }
.chat-mp-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.chat-mp-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.chat-mp-item:first-child { border-top: 0; }
.chat-mp-item input { flex-shrink: 0; }
.chat-audio { display: block; max-width: 240px; height: 40px; margin-bottom: 4px; }
.chat-meta { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 3px; }
.chat-del { background: none; border: 0; cursor: pointer; font-size: .8rem; opacity: .6; padding: 0; }
.chat-del:hover { opacity: 1; }
.chat-input-normal { display: flex; gap: 8px; align-items: center; flex: 1; }
.chat-input-rec { display: flex; gap: 10px; align-items: center; flex: 1; }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--bad); animation: recpulse 1s ease-in-out infinite; }
@keyframes recpulse { 50% { opacity: .3; } }


/* ═══════════ Public campus website (guest) ═══════════ */
.gcsite{--gold:#e8c976;--gold2:#d4af37;color:#f2efe8;font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;margin:-16px}
.gc-nav{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;
  padding:12px 20px;background:rgba(8,8,10,.92);backdrop-filter:blur(8px);border-bottom:1px solid rgba(232,201,118,.28)}
.gc-brand{font-weight:800;color:var(--gold);letter-spacing:.5px}
.gc-links{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.gc-links a{color:#d8d3c8;text-decoration:none;padding:8px 12px;border-radius:8px;font-size:14px;font-weight:600}
.gc-links a:hover{color:#fff;background:rgba(255,255,255,.06)}
.gc-links a.on{color:#0a0a0c;background:linear-gradient(180deg,var(--gold),var(--gold2))}
.gc-links a.gc-login{border:1px solid rgba(232,201,118,.5);color:var(--gold)}
.gc-sec{display:none}.gc-sec.on{display:block;animation:gcfade .25s ease}
@keyframes gcfade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.gc-hero{background:radial-gradient(1000px 500px at 50% -10%,#26262b,#0a0a0c 65%);padding:70px 20px 60px;text-align:center;border-bottom:1px solid rgba(232,201,118,.2)}
.gc-hero h1{font-size:clamp(28px,5vw,46px);margin:0 0 8px;font-weight:800}
.gc-tag{color:var(--gold);font-size:clamp(15px,2.5vw,20px);margin:0 0 14px}
.gc-intro{max-width:640px;margin:0 auto 22px;color:#c8c3b8;line-height:1.6}
.gc-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.gc-btn{display:inline-block;background:linear-gradient(180deg,var(--gold),var(--gold2));color:#241a05;font-weight:800;text-decoration:none;
  padding:12px 22px;border-radius:12px;border:none;cursor:pointer;font-size:15px}
.gc-btn:hover{filter:brightness(1.05)}
.gc-btn.ghost{background:transparent;color:var(--gold);border:1px solid rgba(232,201,118,.5)}
.gc-highlights{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;padding:34px 20px;max-width:1000px;margin:0 auto}
.gc-hcard{flex:1 1 240px;max-width:300px;background:rgba(20,20,24,.7);border:1px solid rgba(232,201,118,.22);border-radius:16px;padding:20px}
.gc-hcard h3{margin:0 0 6px;color:var(--gold)}.gc-hcard p{margin:0;color:#c8c3b8;font-size:14px}
.gc-block{max-width:1000px;margin:0 auto;padding:34px 20px}
.gc-block h2{font-size:26px;margin:0 0 18px;color:#fff}
.gc-block h2::after{content:'';display:block;width:56px;height:3px;background:linear-gradient(90deg,var(--gold),transparent);margin-top:8px;border-radius:2px}
.gc-notices{display:grid;gap:12px}.gc-notices article{background:rgba(20,20,24,.7);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:14px}
.gc-notices h4{margin:0 0 4px;color:var(--gold)}.gc-notices p{margin:0;color:#c8c3b8;font-size:14px}
.gc-about{display:flex;gap:26px;flex-wrap:wrap;align-items:flex-start}
.gc-abimg{width:340px;max-width:100%;height:240px;object-fit:cover;border-radius:18px;border:1px solid rgba(232,201,118,.3)}
.gc-abph{display:flex;align-items:center;justify-content:center;font-size:80px;background:rgba(20,20,24,.7)}
.gc-abbody{flex:1 1 300px}.gc-abbody p{color:#c8c3b8;line-height:1.6;max-width:520px}
.gc-cat{margin-top:16px}
.gc-products{display:grid;gap:8px}
.gc-prod{display:flex;justify-content:space-between;gap:12px;background:rgba(20,20,24,.7);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:11px 14px}
.gc-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.gc-gallery figure{margin:0;border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:#111}
.gc-gallery img{width:100%;height:150px;object-fit:cover;display:block}
.gc-gallery figcaption{padding:8px 10px;font-size:12.5px;color:#c8c3b8}
.gc-apps{display:flex;flex-wrap:wrap;gap:16px}
.gc-appcard{flex:1 1 240px;max-width:300px;background:rgba(20,20,24,.8);border:1px solid rgba(232,201,118,.28);border-radius:16px;padding:20px;text-align:center}
.gc-appcard.staff{border-color:rgba(255,255,255,.14)}
.gc-appico{font-size:40px}.gc-appcard h3{margin:8px 0 4px;color:var(--gold)}.gc-appcard p{color:#b9b4a9;font-size:13px;min-height:36px;margin:0 0 12px}
.gc-lock{font-size:11px;color:#a9a498;font-weight:600}
.gc-staffdl .gc-pinrow{display:flex;gap:6px;margin-top:8px}
.gc-pin{flex:1;padding:9px;border-radius:8px;border:1px solid var(--border,#333);background:#111;color:#fff}
.gc-pinmsg{font-size:12px;min-height:16px;margin:6px 0 0}
.gc-contact{display:flex;flex-wrap:wrap;gap:26px}
.gc-cinfo{flex:1 1 260px}.gc-cinfo p{margin:0 0 10px;color:#d8d3c8}.gc-cinfo a{color:var(--gold)}
.gc-form{flex:1 1 300px;display:flex;flex-direction:column;gap:10px;background:rgba(20,20,24,.7);border:1px solid rgba(232,201,118,.22);border-radius:16px;padding:20px}
.gc-form h3{margin:0 0 4px;color:#fff}
.gc-form input,.gc-form textarea{padding:11px;border-radius:10px;border:1px solid var(--border,#333);background:#111;color:#fff;font-family:inherit}
.gc-formmsg{font-size:13px;margin:0;min-height:16px}
.gc-foot{text-align:center;padding:26px 20px;color:#8f8a7f;font-size:13px;border-top:1px solid rgba(255,255,255,.08);margin-top:20px}
.gc-foot a{color:var(--gold)}
@media(max-width:600px){.gc-nav{padding:10px 14px}.gc-links a{padding:6px 9px;font-size:13px}.gc-abimg{height:200px}}

/* ═══════════ Login page (centered, branded) ═══════════ */
.login-wrap{min-height:calc(100vh - 120px);display:flex;align-items:center;justify-content:center;padding:24px 16px}
.login-card{width:100%;max-width:400px;background:rgba(20,20,24,.9);border:1px solid rgba(232,201,118,.3);border-radius:20px;
  padding:32px 26px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.5)}
.login-brand{font-weight:800;color:#e8c976;letter-spacing:.5px;font-size:16px}
.login-slogan{color:#c8c3b8;font-style:italic;font-size:13.5px;margin:6px 0 18px}
.login-card h2{margin:0 0 18px;font-size:22px}
.login-card .form-row{text-align:left;margin-bottom:14px}
.login-card label{display:block;font-size:13px;color:#b9b4a9;margin-bottom:5px}
.login-card input{width:100%;padding:12px;border-radius:10px;border:1px solid var(--border,#333);background:#0f0f12;color:#fff;font-size:15px}
.login-alt{margin:12px 0 0;font-size:13.5px;color:#a9a498}
.login-alt a{color:#e8c976;font-weight:600;text-decoration:none}

/* ═══════════ Website: responsive nav + page builder + scroll animations ═══════════ */
.gc-burger{display:none;background:none;border:1px solid rgba(232,201,118,.45);color:#e8c976;border-radius:8px;font-size:18px;line-height:1;padding:6px 11px;cursor:pointer}
@media(max-width:760px){
  .gc-burger{display:block}
  .gc-links{display:none;flex-direction:column;align-items:stretch;width:100%;margin-top:10px;gap:2px}
  .gc-links.open{display:flex}
  .gc-links a{width:100%;padding:11px 12px}
}
/* fade / slide in on scroll */
.gc-anim{opacity:0;transform:translateY(26px);transition:opacity .6s ease,transform .6s ease}
.gc-anim.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.gc-anim{opacity:1;transform:none;transition:none}}
/* custom pages */
.gc-sec[data-view^="page-"]{min-height:60vh}
.gc-pblock{margin:0 auto 22px;max-width:820px}
.gc-pblock img{width:100%;border-radius:14px;border:1px solid rgba(255,255,255,.1);display:block}
.gc-pblock figcaption{color:#c8c3b8;font-size:13px;margin-top:8px;text-align:center}
.gc-pblock p{color:#d8d3c8;line-height:1.7}
.gc-pblock h2{color:#fff}
/* animated aurora background */
.gc-aurora{position:relative;overflow:hidden}
.gc-aurora::before{content:'';position:absolute;inset:-45%;z-index:0;pointer-events:none;
  background:conic-gradient(from 0deg,rgba(232,201,118,.12),transparent 28%,rgba(120,90,210,.12) 52%,transparent 78%,rgba(232,201,118,.12));
  animation:gcspin 26s linear infinite}
.gc-aurora>*{position:relative;z-index:1}
@keyframes gcspin{to{transform:rotate(1turn)}}
/* floating shapes background */
.gc-float{position:relative;overflow:hidden}
.gc-float::before,.gc-float::after{content:'';position:absolute;border-radius:50%;pointer-events:none;z-index:0;
  background:radial-gradient(circle,rgba(232,201,118,.16),transparent 70%)}
.gc-float::before{width:300px;height:300px;left:-70px;top:8%;animation:gcfloat 13s ease-in-out infinite}
.gc-float::after{width:220px;height:220px;right:-50px;bottom:6%;animation:gcfloat 17s ease-in-out infinite reverse}
.gc-float>*{position:relative;z-index:1}
@keyframes gcfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-34px)}}
@media(prefers-reduced-motion:reduce){.gc-aurora::before,.gc-float::before,.gc-float::after{animation:none}}
/* page-builder admin cards */
.pg-block{background:rgba(255,255,255,.04);border:1px solid var(--border,#333);border-radius:10px;padding:10px;margin-bottom:8px;display:flex;flex-direction:column;gap:6px}
.pg-bhead{display:flex;align-items:center;justify-content:space-between}
.pg-ctl{display:flex;gap:3px}
.pg-ctl .btn{padding:2px 8px}
