:root {
  --ink: #1d2540;
  --muted: #75809b;
  --line: #e8eaf2;
  --soft: #f7f8fc;
  --violet: #5b43e8;
  --violet-dark: #4430c7;
  --violet-soft: #efeefe;
  --mint: #1cb28d;
  --mint-soft: #e5f8f2;
  --amber: #e99b26;
  --amber-soft: #fff4dc;
  --coral: #ef6f62;
  --coral-soft: #fff0ee;
  --blue: #3e86df;
  --shadow: 0 12px 32px rgba(34, 43, 76, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #f8f9fd; }

body {
  margin: 0;
  color: var(--ink);
  background: #f8f9fd;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(91, 67, 232, .25); outline-offset: 2px; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  bottom: 0;
  width: 264px;
  display: flex;
  flex-direction: column;
  padding: 24px 15px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 26px; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 11px; color: white; font-weight: 800; font-size: 19px; background: linear-gradient(135deg, #7b67f2, #4931d0); box-shadow: 0 7px 15px rgba(91, 67, 232, .25); }
.brand strong { display: block; font-size: 18px; letter-spacing: -.5px; }
.brand span { display: block; margin-top: -2px; color: var(--muted); font-size: 10px; letter-spacing: .2px; }

.workspace-switcher { padding: 0 6px 24px; }
.eyebrow, .nav-label { display: block; color: #929ab0; font-size: 10px; letter-spacing: 1.05px; font-weight: 800; text-transform: uppercase; }
.workspace-switcher .eyebrow { margin: 0 0 8px 5px; }
.workspace-button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid #ececf4; border-radius: 11px; color: var(--ink); background: #fff; text-align: left; font-weight: 650; font-size: 12px; }
.workspace-button:hover { background: var(--soft); }
.workspace-button .chevron { margin-left: auto; color: #8991a8; font-size: 17px; }

.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 800; }
.avatar.violet { background: #7360e8; }.avatar.coral { background: linear-gradient(135deg, #f18d70, #c95168); }.avatar.blue { background: #5991da; }.avatar.green { background: #48ae89; }.avatar.gold { background: #e0a13a; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 9px 11px 5px; margin-top: 8px; }
.nav-label:first-child { margin-top: 0; }
.nav-item { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: #69738e; text-align: left; font-weight: 650; }
.nav-item:hover { color: var(--violet); background: #f7f6ff; }
.nav-item.active { color: var(--violet); background: var(--violet-soft); }
.nav-icon { width: 16px; color: currentColor; text-align: center; font-size: 19px; font-weight: 400; }
.nav-badge { margin-left: auto; min-width: 20px; padding: 1px 5px; border-radius: 99px; color: #d66e11; background: var(--amber-soft); text-align: center; font-size: 10px; }
.sidebar-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.seller-card { display: flex; align-items: center; gap: 9px; padding: 8px; }
.seller-card > div { min-width: 0; }.seller-card strong, .seller-card span:not(.avatar) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.seller-card strong { font-size: 12px; }.seller-card span:not(.avatar) { color: var(--muted); font-size: 10px; }

.main-content { width: calc(100% - 264px); min-height: 100vh; margin-left: 264px; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: rgba(255, 255, 255, .93); border-bottom: 1px solid var(--line); }
.breadcrumb { color: #7f879d; font-size: 12px; font-weight: 650; }.breadcrumb span { margin: 0 8px; color: #b8becc; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.help-button { display: flex; align-items: center; gap: 6px; border: 0; color: #69728a; background: transparent; font-size: 12px; font-weight: 700; }.help-button span { display: grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid #9ba3b7; border-radius: 50%; font-size: 11px; }
.notification-button { position: relative; width: 31px; height: 31px; border: 0; border-radius: 8px; color: #68738f; background: #f6f7fb; font-size: 18px; }.notification-button i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); border: 1px solid #fff; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); font-size: 22px; }

.page { max-width: 1440px; margin: 0 auto; padding: 35px 42px 48px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }.page-heading h1 { margin: 4px 0 5px; font-size: 29px; line-height: 1.1; letter-spacing: -.8px; }.page-heading h1 span { color: #f0a228; font-size: 22px; }.page-heading .eyebrow { margin: 0; }.muted { margin: 0; color: var(--muted); font-size: 13px; }

.primary-button, .secondary-button, .outline-button, .soft-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 10px; font-size: 12px; font-weight: 800; transition: .16s ease; white-space: nowrap; }
.primary-button { border: 1px solid var(--violet); color: #fff; background: var(--violet); box-shadow: 0 7px 15px rgba(91, 67, 232, .16); }.primary-button:hover { border-color: var(--violet-dark); background: var(--violet-dark); transform: translateY(-1px); }.primary-button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.secondary-button { border: 1px solid #dedfed; color: #56607b; background: #fff; }.secondary-button:hover { color: var(--violet); border-color: #cfcaf4; background: #fbfaff; }
.outline-button { border: 1px solid #ddd9fb; color: var(--violet); background: #fbfaff; }.outline-button:hover { background: var(--violet-soft); }
.full-width { width: 100%; }
.text-button { padding: 0; border: 0; color: var(--violet); background: transparent; font-weight: 800; font-size: 12px; }.text-button:hover { color: var(--violet-dark); }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; color: #7f8799; background: transparent; font-size: 18px; }.icon-button:hover { color: var(--violet); background: var(--violet-soft); }.icon-button.subtle { margin-left: auto; font-size: 15px; }

.active-raffle-banner { position: relative; display: flex; align-items: center; gap: 25px; min-height: 178px; padding: 25px 27px; overflow: hidden; border-radius: var(--radius); color: #fff; background: linear-gradient(118deg, #5d43e9 0%, #755fe7 56%, #936ef0 100%); box-shadow: 0 16px 30px rgba(81, 61, 190, .19); }
.active-raffle-banner::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; bottom: -175px; border: 48px solid rgba(255,255,255,.08); border-radius: 50%; }
.raffle-illustration { position: relative; flex: 0 0 118px; height: 118px; border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); }.raffle-illustration > span { position: absolute; color: #edcc70; opacity: .92; }.raffle-illustration > span:nth-child(1) { top: 14px; left: 15px; font-size: 15px; }.raffle-illustration > span:nth-child(2) { top: 19px; right: 13px; color: #fff; font-size: 13px; }.raffle-illustration > span:nth-child(3) { bottom: 17px; left: 16px; color: #c9bffb; font-size: 21px; }.ticket-art { position: absolute; right: 22px; bottom: 19px; display: grid; place-items: center; width: 65px; height: 76px; transform: rotate(-9deg); border-radius: 8px; color: #563dd9; background: #fff; box-shadow: 0 12px 18px rgba(43, 27, 126, .19); font-size: 17px; font-weight: 900; letter-spacing: 1px; }.ticket-art::before { content: "SORTEO"; position: absolute; top: 13px; color: #a196df; font-size: 7px; letter-spacing: 1px; }.ticket-art::after { content: "✦"; position: absolute; bottom: 9px; color: #e6b439; font-size: 13px; }
.banner-copy { position: relative; z-index: 1; flex: 1; min-width: 0; }.banner-copy h2 { margin: 8px 0 4px; font-size: 22px; letter-spacing: -.5px; }.banner-copy > p { margin: 0; color: rgba(255,255,255,.75); font-size: 12px; }.status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 99px; font-weight: 800; font-size: 10px; }.status-pill.open { color: #d5fff0; background: rgba(44, 215, 159, .16); }.status-pill.neutral { color: #717992; background: #f1f2f7; }.banner-stats { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 20px; }.banner-stats div { display: flex; flex-direction: column; }.banner-stats strong { font-size: 15px; }.banner-stats span { margin-top: 1px; color: rgba(255,255,255,.67); font-size: 10px; }.soft-button.light { position: relative; z-index: 1; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.34); color: #fff; background: rgba(255,255,255,.12); }.soft-button.light:hover { background: rgba(255,255,255,.22); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.metric-card, .small-metric { padding: 19px; border: 1px solid #eceef5; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(33, 40, 72, .025); }.metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }.metric-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; font-weight: 900; font-size: 14px; }.metric-icon.purple { color: var(--violet); background: var(--violet-soft); }.metric-icon.amber { color: #d98515; background: var(--amber-soft); }.metric-icon.mint { color: #198e72; background: var(--mint-soft); }.metric-icon.blue { color: var(--blue); background: #eaf3ff; }.trend, .neutral-change { font-size: 10px; font-weight: 800; }.trend.up { color: #20a27f; }.trend.down { color: #d4871f; }.neutral-change { color: #8991a3; }.metric-card p { margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 650; }.metric-card h3 { margin: 0; font-size: 21px; letter-spacing: -.5px; }.metric-card h3 small { color: #9ca4b8; font-size: 12px; font-weight: 650; }.metric-detail { display: inline-block; margin-top: 5px; color: #9aa2b4; font-size: 10px; }.mini-progress, .wide-progress { height: 5px; margin-top: 12px; overflow: hidden; border-radius: 10px; background: #eff0f4; }.mini-progress span, .wide-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5d42e7, #8b71ef); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(305px, .92fr); gap: 17px; margin-top: 17px; }.panel { border: 1px solid #eaecf3; border-radius: 15px; background: #fff; box-shadow: 0 4px 14px rgba(33, 40, 72, .025); }.collection-panel, .progress-panel { min-height: 286px; padding: 21px; }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.panel-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.2px; }.panel-heading p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }.panel-heading select { padding: 6px 25px 6px 9px; border: 1px solid #e5e6ed; border-radius: 7px; color: #69728a; background: #fff; font-size: 10px; }
.chart-wrap { display: flex; height: 192px; margin-top: 20px; }.chart-y { display: flex; flex-direction: column; justify-content: space-between; width: 39px; padding: 0 5px 17px 0; color: #a4aabb; text-align: right; font-size: 9px; }.bar-chart { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); column-gap: 13px; border-bottom: 1px solid #e9eaf0; background: repeating-linear-gradient(to bottom, transparent 0, transparent 36px, #f1f2f6 37px, transparent 38px); }.bar-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; color: #969eb0; font-size: 10px; }.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }.bar-track i { width: min(30px, 66%); max-width: 30px; margin: 0 auto; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #9b8bf3, #5e46e7); }
.donut-layout { display: flex; align-items: center; gap: 26px; min-height: 204px; padding: 19px 7px 0; }.donut { display: grid; place-items: center; flex: 0 0 137px; width: 137px; height: 137px; border-radius: 50%; background: conic-gradient(#5e46e7 0deg 123deg, #efac48 123deg 154deg, #e9ebf2 154deg 360deg); }.donut::before { content: ""; position: absolute; width: 106px; height: 106px; border-radius: 50%; background: white; }.donut > div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }.donut strong { font-size: 17px; }.donut span { color: var(--muted); font-size: 10px; }.legend-list { flex: 1; display: flex; flex-direction: column; gap: 12px; }.legend-list div { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; color: #768098; font-size: 11px; }.legend-list strong { color: var(--ink); font-size: 12px; }.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }.legend-dot.paid { background: var(--violet); }.legend-dot.due { background: #efad49; }.legend-dot.available { background: #dfe1ea; }.legend-dot.held { background: #8e84ec; }

.recent-sales { margin-top: 17px; padding: 21px 0 5px; }.recent-sales .panel-heading, .raffle-history .panel-heading, .settlement-highlight + .panel .panel-heading { padding: 0 21px 15px; }.table-scroll { width: 100%; overflow-x: auto; } table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; } th { padding: 10px 21px; color: #9ca3b4; background: #fafbfc; font-size: 9px; font-weight: 800; letter-spacing: .65px; text-transform: uppercase; } td { padding: 13px 21px; border-bottom: 1px solid #f0f1f5; color: #626c84; font-size: 11px; } tbody tr:last-child td { border-bottom: 0; } .customer-cell { display: flex; align-items: center; gap: 8px; }.customer-cell > div { display: flex; flex-direction: column; gap: 1px; }.customer-cell strong { color: var(--ink); font-size: 11px; }.customer-cell span { color: #a0a7b8; font-size: 10px; }.table-number { color: var(--violet); font-family: "SF Mono", Monaco, monospace; font-weight: 800; letter-spacing: 1px; }.table-status { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 99px; font-size: 9px; font-weight: 800; }.table-status.paid { color: #188567; background: var(--mint-soft); }.table-status.pending { color: #cf7b13; background: var(--amber-soft); }.table-status.blocked { color: #7e8598; background: #f0f1f5; }.table-status.active { color: #157e66; background: #e6f8f1; }

.raffle-summary-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: 18px; }.raffle-card-large { position: relative; padding: 24px; overflow: hidden; }.raffle-card-large::after { content: "✦"; position: absolute; right: 23px; bottom: -25px; color: #f3f1ff; font-size: 155px; }.raffle-card-head { display: flex; justify-content: space-between; }.raffle-card-head .status-pill { color: #188567; background: var(--mint-soft); }.prize-icon { display: grid; place-items: center; width: 51px; height: 51px; margin-top: 23px; border-radius: 14px; background: #f6f3ff; font-size: 24px; }.raffle-card-large h2 { margin: 15px 0 2px; font-size: 22px; letter-spacing: -.5px; }.raffle-card-large > p { margin: 0; color: var(--muted); }.raffle-specs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 25px 0; }.raffle-specs div { display: flex; flex-direction: column; gap: 3px; }.raffle-specs span { color: #969eb0; font-size: 10px; }.raffle-specs strong { font-size: 12px; }.raffle-card-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; font-size: 11px; }.raffle-card-footer span { color: var(--muted); }.raffle-card-footer strong { color: var(--violet); }.wide-progress { position: relative; z-index: 1; margin-top: 8px; }.raffle-rules { padding: 23px; }.rule-list { display: flex; flex-direction: column; gap: 15px; margin: 22px 0; padding: 0; list-style: none; }.rule-list li { display: flex; align-items: flex-start; gap: 10px; color: #67718b; font-size: 12px; }.rule-list i { display: grid; place-items: center; flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%; color: #239b7a; background: #e7f8f1; font-size: 10px; font-style: normal; }.rule-list strong { color: var(--ink); }.raffle-history { margin-top: 18px; padding-top: 21px; }.empty-history { display: flex; align-items: center; gap: 12px; padding: 28px 21px; border-top: 1px solid #f0f1f5; }.empty-history > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #9f96e4; background: #f5f2ff; font-size: 20px; }.empty-history strong { display: block; font-size: 12px; }.empty-history p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

.seller-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: -9px 0 18px; }.small-metric { position: relative; display: flex; align-items: baseline; gap: 9px; padding: 16px 19px; }.small-metric > span { color: var(--muted); font-size: 11px; }.small-metric strong { font-size: 19px; }.small-metric small { color: #a1a8b8; font-size: 10px; }.green-dot, .gray-dot { width: 7px; height: 7px; border-radius: 50%; }.green-dot { background: #33b28d; }.gray-dot { background: #bac0ce; }.seller-info { display: flex; align-items: center; gap: 9px; }.seller-info strong { display: block; color: var(--ink); font-size: 11px; }.seller-info span { display: block; color: #a0a8b9; font-size: 10px; }.action-menu { color: #8e96a9; font-size: 18px; }.action-menu:hover { color: var(--violet); }

.settlement-highlight { display: flex; align-items: center; justify-content: space-between; padding: 26px 32px; margin-bottom: 18px; color: #fff; background: linear-gradient(105deg, #222d55, #344674); }.settlement-highlight .eyebrow { color: #afbad4; }.settlement-highlight h2 { margin: 4px 0; font-size: 28px; }.settlement-highlight p { margin: 0; color: #c5cce0; font-size: 12px; }.settlement-highlight p strong { color: #fff; }.settlement-figure { display: grid; place-items: center; width: 89px; height: 89px; border: 8px solid #6878ae; border-top-color: #88e5c7; border-radius: 50%; }.settlement-figure span { font-weight: 900; font-size: 15px; }.settlement-figure small { color: #c8d1e5; font-size: 9px; }

.compact-heading { margin-bottom: 18px; }.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #238f72; font-size: 11px; font-weight: 800; }.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: #34bd93; box-shadow: 0 0 0 4px #e4f9f1; }
.sales-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }.numbers-area { min-width: 0; }.numbers-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }.search-control { display: flex; align-items: center; width: 235px; height: 38px; padding: 0 9px; border: 1px solid #e3e5ed; border-radius: 9px; background: #fff; color: #929aac; }.search-control span { font-size: 18px; }.search-control input { width: 100%; border: 0; outline: 0; background: transparent; padding: 0 7px; color: var(--ink); font-size: 12px; }.search-control button { padding: 0; border: 0; color: #9da4b6; background: transparent; font-size: 17px; }.numbers-filter { display: flex; padding: 3px; border-radius: 9px; background: #eff0f5; }.filter-button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 7px; color: #7d869e; background: transparent; font-size: 10px; font-weight: 800; }.filter-button.active { color: var(--violet); background: #fff; box-shadow: 0 2px 6px rgba(42,48,77,.08); }.numbers-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 13px; color: #8991a5; font-size: 10px; }.numbers-summary span { display: inline-flex; align-items: center; gap: 5px; }.numbers-summary strong { margin-left: auto; color: #707991; font-size: 10px; }
.number-grid { display: grid; grid-template-columns: repeat(10, minmax(47px, 1fr)); gap: 8px; }.number-chip { position: relative; min-height: 45px; border: 1px solid #e3e5ec; border-radius: 9px; color: #48516b; background: #fff; font-family: "SF Mono", Monaco, monospace; font-size: 13px; font-weight: 800; letter-spacing: .3px; transition: .15s ease; }.number-chip.available:hover { transform: translateY(-2px); border-color: #9586ef; color: var(--violet); box-shadow: 0 5px 12px rgba(91,67,232,.12); }.number-chip.selected { border-color: var(--violet); color: #fff; background: var(--violet); box-shadow: 0 5px 12px rgba(91,67,232,.18); }.number-chip.paid { cursor: not-allowed; border-color: #d6f0e8; color: #249474; background: #effbf6; }.number-chip.pending { cursor: not-allowed; border-color: #fae3b9; color: #c9841e; background: #fff9ed; }.number-chip.held { cursor: not-allowed; border-style: dashed; border-color: #c9c3fa; color: #8a7fe1; background: #f6f4ff; }.number-chip .chip-dot { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; }.paid .chip-dot { background: #3fc09a; }.pending .chip-dot { background: #efad49; }.held .chip-dot { background: #9388e7; }.grid-empty { grid-column: 1/-1; padding: 38px; border: 1px dashed #dfe2ec; border-radius: 12px; color: var(--muted); text-align: center; }.grid-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0 4px; color: #9098aa; font-size: 11px; }.grid-pager button { border: 0; color: var(--violet); background: transparent; font-weight: 800; }.grid-pager button:disabled { color: #bac0ce; cursor: not-allowed; }

.sale-drawer { position: sticky; top: 18px; padding: 20px; border: 1px solid #e4e6ef; border-radius: 15px; background: #fff; box-shadow: var(--shadow); }.drawer-heading { display: flex; justify-content: space-between; align-items: flex-start; }.drawer-heading h2 { margin: 3px 0 0; font-size: 16px; }.selected-numbers { display: flex; flex-wrap: wrap; gap: 7px; min-height: 52px; margin: 16px 0 9px; padding: 10px; border-radius: 9px; background: #f7f7fc; }.empty-selection { align-self: center; color: #9ea5b6; font-size: 10px; }.selected-token { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 8px; border-radius: 6px; color: var(--violet); background: #eae7ff; font-family: "SF Mono", Monaco, monospace; font-size: 11px; font-weight: 800; }.selected-token button { width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; color: var(--violet); background: #d3cefd; font-size: 12px; line-height: 10px; }.selection-total { display: flex; justify-content: space-between; padding: 0 0 16px; border-bottom: 1px solid #ececf2; }.selection-total span { color: var(--muted); font-size: 11px; }.selection-total strong { font-size: 14px; }
form { margin-top: 17px; } label { display: flex; flex-direction: column; gap: 6px; color: #58617a; font-size: 10px; font-weight: 800; } label input { width: 100%; height: 37px; padding: 0 10px; border: 1px solid #e1e3eb; border-radius: 8px; outline: none; color: var(--ink); background: #fff; font-size: 12px; font-weight: 500; } label input::placeholder { color: #b7bdc9; } label input:focus { border-color: #a196eb; box-shadow: 0 0 0 3px rgba(91,67,232,.08); }.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }.form-two + fieldset, form > fieldset { margin-top: 14px; } fieldset { min-width: 0; padding: 0; border: 0; } legend { margin-bottom: 8px; color: #58617a; font-size: 10px; font-weight: 800; }.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.payment-option { display: block; cursor: pointer; }.payment-option input { position: absolute; opacity: 0; pointer-events: none; }.payment-option span { display: flex; flex-direction: column; gap: 1px; min-height: 58px; padding: 9px 8px 7px 29px; border: 1px solid #e3e5ed; border-radius: 8px; position: relative; }.payment-option b { position: absolute; left: 9px; top: 11px; color: #9ca4b8; font-size: 10px; }.payment-option strong { color: #59627c; font-size: 11px; }.payment-option small { color: #9da5b5; font-size: 9px; font-weight: 500; }.payment-option.selected span { border-color: #9a8fee; color: var(--violet); background: #faf9ff; }.payment-option.selected b { color: var(--violet); }.reference-field { margin-top: 13px; }.reference-field > span, form label > span { color: #a1a8b8; font-weight: 500; }.sale-drawer .primary-button { margin-top: 16px; }.drawer-note { display: flex; align-items: center; gap: 5px; margin: 12px 0 0; color: #949caf; font-size: 9px; }.drawer-note span { color: var(--violet); }

.debt-callout { min-width: 164px; padding: 10px 14px; border-radius: 10px; color: #c77818; background: var(--amber-soft); }.debt-callout span { display: block; font-size: 10px; font-weight: 700; }.debt-callout strong { display: block; margin-top: 1px; font-size: 17px; }.collection-tabs { display: flex; gap: 18px; margin: -9px 0 15px; border-bottom: 1px solid #e4e6ed; }.tab { position: relative; padding: 9px 1px; border: 0; color: #8991a5; background: transparent; font-size: 11px; font-weight: 800; }.tab.active { color: var(--violet); }.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--violet); }.tab span { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 4px; border-radius: 50%; color: #d5821b; background: var(--amber-soft); font-size: 9px; }.collection-action { min-height: 28px; padding: 0 9px; border: 1px solid #d9d4fa; border-radius: 7px; color: var(--violet); background: #fbfaff; font-size: 10px; font-weight: 800; }.collection-action:hover { background: var(--violet-soft); }.empty-state { padding: 52px 20px; text-align: center; }.empty-state > span { display: grid; place-items: center; width: 39px; height: 39px; margin: 0 auto 11px; border-radius: 50%; color: #239574; background: var(--mint-soft); font-weight: 900; }.empty-state h3 { margin: 0; font-size: 14px; }.empty-state p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

.architecture-stack { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; }.stack-card { min-height: 210px; padding: 19px; border: 1px solid #e6e8f0; border-radius: 14px; background: #fff; }.stack-number { color: #a398ec; font-size: 11px; font-weight: 900; }.stack-card h2 { margin: 14px 0 8px; font-size: 15px; }.stack-card p { margin: 0; color: #6f7890; font-size: 11px; line-height: 1.6; }.stack-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }.stack-tags span { padding: 3px 6px; border-radius: 4px; color: #6858c8; background: #f0efff; font-size: 9px; font-weight: 800; }.concurrency-panel, .data-map { margin-top: 18px; padding: 21px; }.flow-diagram { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: center; margin: 25px 0 18px; }.flow-diagram > div { min-height: 104px; padding: 15px; border: 1px solid #e5e5ef; border-radius: 11px; background: #fbfbfe; }.flow-diagram b { display: grid; place-items: center; width: 21px; height: 21px; margin-bottom: 8px; border-radius: 50%; color: #fff; background: var(--violet); font-size: 10px; }.flow-diagram strong, .flow-diagram span { display: block; }.flow-diagram strong { font-size: 12px; }.flow-diagram span { margin-top: 3px; color: var(--muted); font-size: 10px; }.flow-diagram > i { color: #a59ded; text-align: center; font-style: normal; font-size: 18px; }.technical-note { margin: 0; padding: 10px 12px; border-radius: 8px; color: #727b91; background: #f6f6fb; font-size: 10px; }.technical-note code { color: var(--violet); font-family: "SF Mono", Monaco, monospace; }.entity-map { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 18px 0 5px; }.entity { min-width: 136px; padding: 12px; border: 1px solid #ddd9fa; border-radius: 9px; background: #fcfbff; }.entity strong, .entity span { display: block; }.entity strong { color: var(--violet); font-family: "SF Mono", Monaco, monospace; font-size: 11px; }.entity span { margin-top: 3px; color: #8b93a8; font-size: 9px; }.entity-map > i { color: #a19be2; font-size: 10px; font-style: normal; font-weight: 800; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; background: rgba(27, 33, 56, .39); backdrop-filter: blur(2px); }.modal { position: fixed; z-index: 51; top: 50%; left: 50%; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 22px; overflow-y: auto; transform: translate(-50%, -50%); border: 1px solid #e8e9f0; border-radius: 17px; background: #fff; box-shadow: 0 24px 70px rgba(24,29,55,.25); }.small-modal { width: min(430px, calc(100vw - 32px)); }.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid #eef0f4; }.modal-header h2 { margin: 4px 0 0; font-size: 18px; }.modal form { margin-top: 17px; }.modal form > label + label { margin-top: 13px; }.modal .form-two { margin-top: 13px; }.digit-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.digit-options label { display: block; cursor: pointer; }.digit-options input { position: absolute; opacity: 0; }.digit-options span { display: flex; flex-direction: column; gap: 2px; min-height: 75px; padding: 11px; border: 1px solid #e1e3ec; border-radius: 9px; }.digit-options b { color: #58617a; font-size: 11px; }.digit-options small { color: #9da5b5; font-size: 9px; font-weight: 500; }.digit-options label.selected span { border-color: #9b90ef; background: #faf9ff; }.digit-options label.selected b { color: var(--violet); }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 21px; }.payment-customer { margin: 16px 0 0; padding: 11px; border-radius: 9px; color: #68718a; background: #f7f7fb; font-size: 11px; }.payment-customer strong { color: var(--ink); }
.toast-area { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 40px)); }.toast { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid #d9eee7; border-radius: 10px; color: #277d68; background: #f4fdf9; box-shadow: 0 10px 22px rgba(33,55,68,.11); animation: toast-in .2s ease; font-size: 11px; }.toast.error { border-color: #f1d8d6; color: #bc554f; background: #fff8f7; }.toast i { font-style: normal; font-size: 15px; }.toast strong { display: block; color: inherit; }.toast span { display: block; margin-top: 1px; color: #687889; font-size: 10px; } @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1160px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .architecture-stack { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .number-grid { grid-template-columns: repeat(8, minmax(47px,1fr)); }
}

@media (max-width: 920px) {
  .sidebar { width: 224px; }.main-content { width: calc(100% - 224px); margin-left: 224px; }.page, .topbar { padding-left: 25px; padding-right: 25px; }.dashboard-grid, .raffle-summary-layout { grid-template-columns: 1fr; }.sales-layout { grid-template-columns: 1fr; }.sale-drawer { position: static; }.architecture-stack { grid-template-columns: repeat(2, minmax(0,1fr)); }.flow-diagram { grid-template-columns: 1fr; gap: 7px; }.flow-diagram > i { transform: rotate(90deg); }.entity-map { flex-wrap: wrap; }.entity-map > i { transform: rotate(90deg); }.number-grid { grid-template-columns: repeat(10, minmax(40px,1fr)); }
}

@media (max-width: 700px) {
  body { background: #fafbfe; }.sidebar { width: 270px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 10px 0 28px rgba(30,35,58,.12); }.sidebar.open { transform: translateX(0); }.sidebar::after { content: ""; position: fixed; z-index: -1; inset: 0 auto 0 270px; width: calc(100vw - 270px); background: rgba(23,28,47,.2); }.main-content { width: 100%; margin-left: 0; }.topbar { height: 60px; padding: 0 18px; }.mobile-menu { display: block; }.breadcrumb { font-size: 11px; }.help-button { display: none; }.page { padding: 25px 17px 36px; }.page-heading { align-items: flex-start; margin-bottom: 21px; }.page-heading h1 { font-size: 24px; }.page-heading .primary-button, .page-heading .secondary-button { min-height: 36px; padding: 0 11px; }.active-raffle-banner { align-items: flex-start; min-height: 0; padding: 20px; }.raffle-illustration { display: none; }.banner-copy h2 { font-size: 18px; }.banner-stats { gap: 12px; }.banner-stats div:last-child { display: none; }.soft-button.light { display: none; }.metric-grid { gap: 10px; margin-top: 12px; }.metric-card { padding: 14px; }.metric-top { margin-bottom: 11px; }.metric-card h3 { font-size: 18px; }.dashboard-grid { gap: 10px; margin-top: 10px; }.collection-panel, .progress-panel { padding: 16px; }.donut-layout { gap: 16px; }.donut { flex-basis: 122px; width: 122px; height: 122px; }.donut::before { width: 93px; height: 93px; }.recent-sales { margin-top: 10px; padding-top: 16px; }.seller-metrics { gap: 9px; }.small-metric { flex-wrap: wrap; padding: 12px; gap: 5px; }.small-metric > span { width: 100%; }.raffle-specs { grid-template-columns: 1fr 1fr; }.raffle-specs div:last-child { grid-column: span 2; }.settlement-highlight { padding: 20px; }.numbers-toolbar { align-items: stretch; flex-direction: column; }.search-control { width: 100%; }.numbers-filter { width: fit-content; }.numbers-summary { flex-wrap: wrap; gap: 8px; }.numbers-summary strong { margin-left: 0; width: 100%; }.number-grid { grid-template-columns: repeat(5, minmax(42px,1fr)); gap: 7px; }.number-chip { min-height: 43px; }.sales-view { padding-left: 13px; padding-right: 13px; }.sales-view .page-heading { padding: 0 4px; }.sale-drawer { margin-top: 3px; }.architecture-stack { grid-template-columns: 1fr; }.concurrency-panel, .data-map { padding: 16px; }.entity-map { flex-direction: column; align-items: stretch; }.entity-map > i { transform: rotate(90deg); text-align: center; }.entity { width: 100%; }.debt-callout { min-width: 130px; }.modal { padding: 18px; }.digit-options { grid-template-columns: 1fr; }.digit-options span { min-height: 54px; }.payment-options { grid-template-columns: 1fr 1fr; }.form-two { grid-template-columns: 1fr; }.payment-option span { min-height: 54px; }.topbar-actions { gap: 4px; }
}

@media (max-width: 700px) {
  .sidebar::after { display: none; }
}

@media (max-width: 390px) {
  .metric-grid { grid-template-columns: 1fr; }.active-raffle-banner { padding: 17px; }.banner-stats { display: grid; grid-template-columns: 1fr 1fr; }.banner-copy > p { max-width: 250px; }.seller-metrics { grid-template-columns: 1fr; }.number-grid { grid-template-columns: repeat(4, minmax(44px,1fr)); }.page-heading { flex-direction: column; gap: 12px; }.debt-callout { width: 100%; }.collection-tabs { gap: 11px; }
}
