:root {
  --navy: #16305A; --navy-2: #0F2342; --navy-3: #294C82; --gold: #F9D126; --gold-2: #E2B90C;
  --ink: #14243A; --ink-2: #44546A; --ink-3: #6B7682; --line: #D9E0E8; --line-2: #EBEFF4;
  --bg: #F3F5F8; --card: #FFFFFF; --green: #18794E; --green-bg: #E6F4EC; --red: #B42318; --red-bg: #FDECEA;
  --blue: #1F5FAE; --blue-bg: #E8F0FB; --amber: #8A5A00; --amber-bg: #FFF4D6; --grey-bg: #EEF1F5;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,35,66,.06), 0 4px 16px rgba(16,35,66,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--navy-3); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-2); }
h1 { font-size: 28px; letter-spacing: -.01em; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0 0 .9em; }
small, .small { font-size: 13px; }
.muted { color: var(--ink-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* Header */
.topbar { background: var(--navy); color: #fff; border-bottom: 4px solid var(--gold); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.brandmark { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; }
.brandmark img { height: 40px; width: auto; display: block; }
.brandmark .bm-text { display: flex; flex-direction: column; line-height: 1.1; }
.brandmark .bm-co { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.brandmark .bm-show { font-size: 17px; font-weight: 700; }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.topbar .who .chip { background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 99px; }
.linkbtn { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; font-size: 13px; padding: 4px 6px; text-decoration: underline; opacity: .9; }
.nav { background: var(--navy-2); }
.nav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.nav a { color: #DCE4F0; padding: 11px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.05); }
.nav a.on { color: #fff; border-bottom-color: var(--gold); }
.nav .count { background: var(--gold); color: var(--navy-2); border-radius: 99px; padding: 0 7px; margin-left: 6px; font-size: 12px; }
.previewbar { background: var(--amber-bg); color: var(--amber); font-size: 13px; padding: 7px 0; border-bottom: 1px solid #F1D98A; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 24px; padding-bottom: 60px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pagehead h1 { margin: 0; }
.pagehead .sub { color: var(--ink-2); margin-top: 4px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }

/* Flash */
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; border: 1px solid; word-break: break-word; }
.flash.ok { background: var(--green-bg); color: var(--green); border-color: #B7E0C8; }
.flash.error { background: var(--red-bg); color: var(--red); border-color: #F6C3BE; }
.flash.info { background: var(--blue-bg); color: var(--blue); border-color: #C3D6F2; }

/* Cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card.tight { padding: 14px 16px; }
.card .cardhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card .cardhead h2, .card .cardhead h3 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } h1 { font-size: 23px; } }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.stat .v { font-size: 26px; font-weight: 800; color: var(--navy-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 13px; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--navy); background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 8px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none !important; line-height: 1.2; }
.btn:hover { background: var(--navy-3); border-color: var(--navy-3); }
.btn.gold { background: var(--gold); border-color: var(--gold-2); color: var(--navy-2); }
.btn.gold:hover { background: #FFDD4D; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy-3); background: #F7F9FC; }
.btn.danger { background: #fff; color: var(--red); border-color: #F0B8B2; }
.btn.danger:hover { background: var(--red-bg); }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.lg { padding: 13px 22px; font-size: 16px; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* Forms */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; color: var(--ink); }
.field { margin-bottom: 14px; }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 4px; font-weight: 400; }
input:not([type]), input[type=text], input[type=email], input[type=number], input[type=url], input[type=date], input[type=time], input[type=search], input[type=tel], select, textarea {
  width: 100%; border: 1.5px solid #B9C4D0; border-radius: 8px; background: #fff; padding: 9px 11px; font: inherit; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(41,76,130,.25); border-color: var(--navy-3); }
textarea { min-height: 96px; resize: vertical; }
input[type=color] { width: 56px; height: 38px; border: 1.5px solid #B9C4D0; border-radius: 8px; padding: 2px; background: #fff; }
input[type=file] { font: inherit; font-size: 14px; }
input.qty { width: 80px; text-align: right; }
input.money { width: 96px; text-align: right; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 3px; width: 16px; height: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.formgrid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .formgrid { grid-template-columns: 1fr; } }

/* Tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { background: #F7F9FC; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.flagged td { background: #FFF8F7; }
tfoot td { font-weight: 700; background: #F7F9FC; }
.thumb { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; display: block; }
.thumb.ph { display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--ink-3); text-align: center; }

/* Badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--grey-bg); color: var(--ink-2); }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }
.badge.gold { background: var(--amber-bg); color: var(--amber); }
.badge.new { background: var(--gold); color: var(--navy-2); }
.badge.navy { background: var(--navy); color: #fff; }

/* Landing */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 14px; padding: 44px 40px; margin-bottom: 22px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 36px solid rgba(249,209,38,.12); }
.hero h1 { color: #fff; font-size: 38px; max-width: 760px; }
.hero p { font-size: 17px; max-width: 680px; opacity: .92; }
.hero .facts { display: flex; gap: 26px; flex-wrap: wrap; margin: 20px 0 24px; }
.hero .facts div { border-left: 3px solid var(--gold); padding-left: 12px; }
.hero .facts b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
@media (max-width: 600px) { .hero { padding: 28px 22px; } .hero h1 { font-size: 27px; } }

/* Brand tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none !important; transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(16,35,66,.12); }
.tile .logo { height: 110px; display: flex; align-items: center; justify-content: center; padding: 18px; border-bottom: 4px solid var(--tile-color, var(--line)); background: #fff; }
.tile .logo img { max-height: 74px; max-width: 100%; object-fit: contain; }
.tile .logo .nologo { font-size: 20px; font-weight: 800; color: var(--navy-2); text-align: center; }
.tile .body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tile .body .nm { font-weight: 700; }
.tile .body .meta { font-size: 13px; color: var(--ink-3); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { padding: 6px 13px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pill.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill:hover { text-decoration: none; border-color: var(--navy-3); }

/* Booth */
.booth-head { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 18px; }
.booth-head .stripe { height: 8px; background: var(--booth-color, var(--navy)); }
.booth-head .inner { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; }
.booth-head .blogo { display: flex; align-items: center; justify-content: center; min-height: 90px; }
.booth-head .blogo img { max-height: 96px; max-width: 220px; object-fit: contain; }
.booth-head .blogo .nologo { font-size: 26px; font-weight: 800; color: var(--navy-2); }
.booth-head h1 { margin-bottom: 4px; }
.booth-head .tag { color: var(--ink-2); font-size: 16px; }
.booth-head .contact { font-size: 14px; text-align: right; color: var(--ink-2); min-width: 200px; }
@media (max-width: 800px) { .booth-head .inner { grid-template-columns: 1fr; text-align: left; } .booth-head .contact { text-align: left; } .booth-head .blogo { justify-content: flex-start; } }
.message { white-space: pre-line; font-size: 15.5px; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.video .frame { position: relative; padding-top: 56.25%; background: #000; border-radius: 8px; overflow: hidden; }
.video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .vt { font-weight: 600; font-size: 14px; margin-top: 6px; }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 20px; }
.item .pic { height: 180px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 12px; border-bottom: 1px solid var(--line-2); position: relative; }
.item .pic img { max-height: 156px; max-width: 100%; object-fit: contain; }
.item .pic .ph { color: var(--ink-3); font-size: 13px; }
.item .pic .badge, .item .pic .dealtag { position: absolute; top: 10px; left: 10px; }
.item .info { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.item .desc { font-weight: 600; font-size: 14px; line-height: 1.35; }
.item .sku { font-size: 12px; color: var(--ink-3); }
.prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.prices .show { font-size: 22px; font-weight: 800; color: var(--navy-2); font-variant-numeric: tabular-nums; }
.prices .reg { text-decoration: line-through; color: var(--ink-3); font-size: 14px; }
.prices .save { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 2px 7px; border-radius: 99px; }
.dealtag { background: var(--gold); color: var(--navy-2); font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 6px; display: inline-block; }
.addform { display: grid; grid-template-columns: 72px 1fr auto; gap: 8px; margin-top: auto; padding-top: 8px; }
.addform input, .addform select { padding: 7px 8px; }
.addform .btn { padding: 7px 12px; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #B9C4D0; flex: none; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.checklist .done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.checklist .lbl { flex: 1; }
.checklist .opt { font-size: 12px; color: var(--ink-3); }

.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.subnav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.subnav a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.subnav a:hover { text-decoration: none; border-color: var(--navy-3); }

.callout { border-left: 4px solid var(--gold); background: #FFFBEA; padding: 12px 16px; border-radius: 0 8px 8px 0; margin-bottom: 16px; font-size: 14px; }
.callout.red { border-color: var(--red); background: var(--red-bg); }
.callout.blue { border-color: var(--blue); background: var(--blue-bg); }
.callout.green { border-color: var(--green); background: var(--green-bg); }

.event { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.event:last-child { border-bottom: 0; }
.event .time { font-weight: 700; color: var(--navy-2); font-variant-numeric: tabular-nums; }
.event .title { font-weight: 700; }
@media (max-width: 600px) { .event { grid-template-columns: 1fr; gap: 4px; } }

.copybox { display: flex; gap: 8px; }
.copybox input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.sponsors { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.sponsors .sp { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; height: 56px; }
.sponsors .sp img { max-height: 38px; max-width: 130px; object-fit: contain; }
.sponsorbar { background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; }
.sponsorbar .wrap { display: flex; gap: 18px; align-items: center; min-height: 44px; overflow-x: auto; }
.sponsorbar img { max-height: 26px; max-width: 110px; object-fit: contain; vertical-align: middle; }
.sponsorbar .lbl { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-size: 11px; white-space: nowrap; }

.footer { color: var(--ink-3); font-size: 13px; padding: 24px 0 40px; border-top: 1px solid var(--line); margin-top: 30px; }
.empty { text-align: center; padding: 36px 20px; color: var(--ink-3); }
.loginbox { max-width: 440px; margin: 40px auto; }
.codeinput { font-size: 26px !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--navy-3); }
.total-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.total-line.big { font-size: 20px; font-weight: 800; border-top: 2px solid var(--line); padding-top: 10px; margin-top: 4px; }
@media print { .topbar, .nav, .btn, .footer, .noprint { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }
.addform input.qty { width: 100%; }
.tile .body .dealtag { align-self: flex-start; }
@media (max-width: 600px) { .topbar .who .muted { display: none; } .topbar .wrap { min-height: 56px; padding-top: 8px; padding-bottom: 8px; } }
