/* GIFEX Exhibitor Zone
   Brand colours live here. Swap these to match the main site exactly. */
:root {
  --brand: #0a4a57;        /* GIFEX deep teal (logo text) */
  --brand-2: #0a6b85;
  --accent: #23a06b;       /* GIFEX green */
  --accent-2: #0a6b85;     /* GIFEX blue-teal */
  --accent-soft: #e7f6ed;
  --lime: #9bcf23;         /* GIFEX lime (the X) */
  --gold: #f4a62a;
  --ink: #142235;
  --ink-2: #4a5b70;
  --muted: #7b8a9c;
  --line: #e3e9ef;
  --bg: #f3f6f9;
  --card: #ffffff;
  --ok: #23a06b;
  --warn: #e88b13;
  --danger: #d64545;
  --info: #2f6fdf;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 36, 64, .05), 0 6px 20px rgba(16, 36, 64, .06);
  --grad: linear-gradient(125deg, #064a5f 0%, #0a6b85 38%, #23a06b 82%, #9bcf23 125%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--brand); line-height: 1.25; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
code { background: rgba(255,255,255,.2); padding: 1px 6px; border-radius: 4px; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
.strong { font-weight: 600; color: var(--ink); }
.mono { font-family: ui-monospace, Consolas, monospace; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.eyebrow.light { color: #c4ec6b; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row form { display: inline; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; background: #073d49; background-image: radial-gradient(circle at 10% 0%, rgba(35,160,107,.35), transparent 45%), radial-gradient(circle at 100% 100%, rgba(155,207,35,.18), transparent 50%); color: #c9d6e6; display: flex; flex-direction: column; padding: 22px 16px; z-index: 40; transition: transform .25s ease; }
.brand { display: block; padding: 4px 10px 2px; }
.brand img { height: 46px; max-width: 100%; object-fit: contain; display: block; }
.brand-text { font-weight: 800; font-size: 28px; color: #fff; letter-spacing: .04em; }
.brand-text.big { font-size: 44px; }
.brand-zone { margin: 6px 10px 22px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #c4ec6b; font-weight: 700; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a, .nav-logout { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #c9d6e6; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.nav a:hover, .nav-logout:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(35,160,107,.95), rgba(15,139,141,.85)); color: #fff; box-shadow: 0 6px 18px rgba(35,160,107,.35); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.event-chip { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; font-size: 13px; display: grid; gap: 6px; }
.event-chip div { display: flex; gap: 8px; align-items: center; }
.event-chip .ic { width: 16px; height: 16px; color: #c4ec6b; }
.main { flex: 1; margin-left: 264px; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-title { font-weight: 700; color: var(--brand); font-size: 16px; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); cursor: pointer; }
.topbar .menu-btn { display: none; }
.user-chip { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-meta strong { color: var(--brand); font-size: 14px; }
.user-meta small { color: var(--muted); font-size: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.lg { width: 58px; height: 58px; font-size: 20px; }
.content { padding: 28px 32px 40px; max-width: 1240px; width: 100%; }
.foot { margin-top: auto; padding: 18px 32px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.sidebar-scrim { display: none; }

/* ---------- Cards & layout ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid rgba(227,233,239,.7); margin-bottom: 22px; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.split > .card, .stack > .card, .stack > form.card { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 0; max-width: 720px; }
.page-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.page-head-side small { display: inline-flex; align-items: center; gap: 6px; }
.page-head-side .ic { width: 15px; height: 15px; }
.back { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.section-title { margin: 8px 0 14px; }
.prose p { color: var(--ink-2); }
.pad { padding: 18px 24px 0; }

/* ---------- Hero (exhibitor dashboard) ---------- */
.hero-card { position: relative; overflow: hidden; display: flex; gap: 24px; justify-content: space-between; align-items: center; background: var(--grad); color: #e7f0f8; border-radius: 20px; padding: 34px 36px; margin-bottom: 22px; box-shadow: 0 18px 40px rgba(10,74,87,.25); }
.hero-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%); }
.hero-card h1 { color: #fff; font-size: 32px; margin-bottom: 6px; }
.hero-lead { font-size: 17px; color: #d6e6f2; }
.hero-lead strong { color: #fff; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.hero-meta span { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.1); padding: 6px 12px; border-radius: 999px; }
.hero-meta .ic { width: 16px; height: 16px; }
.hero-progress { text-align: center; position: relative; z-index: 1; flex: none; }
.hero-progress p { margin: 8px 0 0; font-size: 13px; color: #cfe3ef; }
.ring { --p: 0; width: 118px; height: 118px; border-radius: 50%; background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255,255,255,.15) 0); display: grid; place-items: center; }
.ring > div { width: 94px; height: 94px; border-radius: 50%; background: #073d49; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring strong { font-size: 26px; color: #fff; line-height: 1; }
.ring small { color: #9fb5c9; font-size: 12px; }

/* ---------- Task cards ---------- */
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.task-card { display: flex; flex-direction: column; gap: 14px; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid rgba(227,233,239,.7); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.task-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,36,64,.12); text-decoration: none; }
.task-card p { color: var(--ink-2); font-size: 14px; margin: 6px 0 0; }
.task-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.task-top h3 { margin: 0; }
.task-body { flex: 1; }
.task-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.task-ic .ic { width: 24px; height: 24px; }
.t1 { background: #e3f6f2; color: #0e8d77; }
.t2 { background: #e6eefc; color: #2f6fdf; }
.t3 { background: #fdf1df; color: #c77a06; }
.t4 { background: rgba(255,255,255,.18); color: #fff; }
.task-go { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--accent-2); font-size: 14px; }
.task-go .ic { width: 16px; height: 16px; transition: transform .15s; }
.task-card:hover .task-go .ic { transform: translateX(3px); }
.task-due { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--warn); margin-top: 10px; font-weight: 600; }
.task-due .ic { width: 15px; height: 15px; }
.bar { height: 8px; background: #edf1f5; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; }

.contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contacts li { display: flex; gap: 12px; align-items: flex-start; }
.contacts li > div:last-child { display: flex; flex-direction: column; }
.contacts small { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: #e3f6f2; color: #0e8d77; }
.pill-warn { background: #fdf1df; color: #b86e04; }
.pill-muted { background: #eef1f5; color: #6b7a8c; }
.pill-info { background: #e6eefc; color: #2f6fdf; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 16px rgba(35,160,107,.3); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(35,160,107,.42); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: #fff; color: var(--danger); border-color: #f2d4d4; }
.btn-danger-ghost:hover { background: #fdf2f2; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.form-card { padding: 28px; }
.form-card.narrow { max-width: 520px; }
.form-section { display: flex; align-items: center; gap: 8px; margin: 28px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
.form-section.first { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section .ic { color: var(--accent); }
.req-note { color: var(--danger); font-size: 14px; margin-bottom: 18px; }
.req { color: var(--danger); font-style: normal; }
.grid { display: grid; gap: 16px 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g-name { grid-template-columns: 120px 1fr 1fr 1.2fr; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.grid .field { margin-bottom: 0; }
.field > span { font-weight: 600; font-size: 14px; color: var(--ink); }
.field > span small { font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fbfcfd; border: 1px solid #d6dee7; border-radius: 10px; padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { resize: vertical; min-height: 90px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b8a9c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(35,160,107,.14); }
.invalid, .invalid input, .invalid select, input.invalid, select.invalid, textarea.invalid { border-color: var(--danger) !important; }
.checks.invalid { outline: 1px solid var(--danger); border-radius: 10px; }
.err { color: var(--danger); font-size: 13px; }
.phone { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.phone.invalid { border: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 4px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; margin: 8px 0; }
.checks .check { margin: 0; background: #fbfcfd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; transition: border-color .15s, background .15s; }
.checks .check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 140px; padding: 18px; border: 2px dashed #cfd9e3; border-radius: 12px; background: #fbfcfd; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.compact { min-height: 52px; flex-direction: row; padding: 12px; }
.drop:hover, .drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-text { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.drop-text b { color: var(--accent-2); }
.drop-preview { max-height: 80px; max-width: 220px; object-fit: contain; background: #fff; border-radius: 8px; padding: 6px; border: 1px solid var(--line); }
.drop-done { display: inline-flex; gap: 6px; align-items: center; color: var(--ok); font-weight: 600; font-size: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-actions.sticky { position: sticky; bottom: 0; background: linear-gradient(rgba(255,255,255,.7), #fff 30%); margin: 26px -28px -28px; padding: 18px 28px; border-radius: 0 0 var(--radius) var(--radius); }
.inline-row { display: flex; gap: 10px; }
.inline-row input { flex: 1; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; }
.seg { display: inline-flex; background: #eef2f6; border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 8px; }
.seg label { cursor: pointer; }
.seg input { display: none; }
.seg span { display: block; padding: 7px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg input:checked + span { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(16,36,64,.12); }
.compact-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; font-weight: 500; border: 1px solid; }
.alert-success { background: #e9f8f4; border-color: #bfe9de; color: #0b6e5d; }
.alert-error { background: #fdf0f0; border-color: #f3caca; color: #a83232; }
.alert-info { background: #edf3fd; border-color: #cddcf7; color: #224f9e; }

/* ---------- Badges (exhibitor) ---------- */
.badge-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.bs-count { display: flex; align-items: center; gap: 18px; min-width: 240px; }
.bs-count > div:last-child { flex: 1; }
.big-num { font-size: 44px; font-weight: 800; color: var(--brand); line-height: 1; }
.big-num span { font-size: 22px; color: var(--muted); font-weight: 600; }
.bs-form .field { margin: 0; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-bottom: 22px; }
.badge-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.badge-card.is-editing { outline: 3px solid var(--accent); }
.badge-strip { background: var(--grad); color: #fff; display: flex; justify-content: space-between; padding: 10px 14px; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.badge-body { padding: 18px 16px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge-body h3 { margin: 10px 0 2px; }
.badge-body p { margin: 0; }
.badge-role { color: var(--ink-2); font-size: 14px; }
.badge-co { color: var(--accent-2); font-weight: 700; font-size: 14px; margin: 4px 0 2px !important; }
.badge-actions { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px dashed var(--line); margin-top: auto; }
.badge-actions span { margin-right: auto; }
.empty { text-align: center; padding: 40px 24px; }
.empty-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty-ic .ic { width: 30px; height: 30px; }
.empty h2 { justify-content: center; }
.empty.success .empty-ic { background: var(--accent); color: #fff; }

/* ---------- Documents ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 22px; }
.doc-card { display: flex; gap: 18px; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.doc-card.dim { opacity: .65; }
.doc-thumb { position: relative; width: 84px; height: 108px; flex: none; border-radius: 10px; background: linear-gradient(160deg, #fff, #f0f4f8); border: 1px solid var(--line); display: grid; place-items: center; color: #c94040; }
.doc-thumb .ic { width: 38px; height: 38px; }
.doc-thumb span { position: absolute; bottom: 10px; left: -6px; background: #d64545; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; }
.doc-body { flex: 1; min-width: 0; }
.doc-body h3 { margin-bottom: 4px; }

/* ---------- Admin ---------- */
.mode-admin .sidebar { background: #06333d; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: transform .15s; }
.stat:hover { transform: translateY(-2px); }
.stat > div:last-child { flex: 1; display: flex; flex-direction: column; }
.stat small { color: var(--muted); font-weight: 600; }
.stat strong { font-size: 30px; color: var(--brand); line-height: 1.2; }
.stat strong em { font-size: 16px; color: var(--muted); font-style: normal; font-weight: 600; }
.stat span { font-size: 12px; }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.s1 { background: #e6eefc; color: #2f6fdf; } .s2 { background: #e3f6f2; color: #0e8d77; } .s3 { background: #fdf1df; color: #c77a06; } .s4 { background: #f1e9fb; color: #7a4bc4; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs { display: inline-flex; background: #e8edf2; border-radius: 12px; padding: 4px; gap: 4px; }
.tabs a { padding: 8px 16px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.tabs a span { background: rgba(10,74,87,.08); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.tabs a.active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(16,36,64,.12); }
.tabs a.active span { background: var(--accent); color: #fff; }
.search { position: relative; min-width: 300px; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input { padding-left: 40px; background: #fff; }
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 14px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.table tbody tr:hover { background: #f8fbfc; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr.dim td { opacity: .6; }
.table td form { display: inline; }
.table .btn + .btn { margin-left: 6px; }
.switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 0; }
.switch span { width: 34px; height: 20px; border-radius: 999px; background: #cfd8e2; position: relative; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { color: var(--ok); }
.switch.on span { background: var(--accent); }
.switch.on span::after { left: 17px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #eef2f6; }
.feed li:last-child { border-bottom: 0; }
.feed li > span:nth-child(2), .feed li > a { flex: 1; min-width: 0; }
.feed small { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); } .dot.info { background: var(--info); }
.link { font-weight: 600; font-size: 14px; }
.profile-view { display: grid; grid-template-columns: 200px 1fr; gap: 26px; margin-top: 12px; }
.logo-box { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.logo-box img { width: 100%; height: 140px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.logo-empty { height: 140px; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; margin: 0; }
.dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.dl dd { margin: 2px 0 0; word-break: break-word; }
.bio-box { margin-top: 22px; padding: 16px 18px; background: #f8fafc; border-radius: 12px; }
.bio-box p { margin: 6px 0 0; }
.danger-zone { border-color: #f3d2d2; }
.danger-zone h2 { color: var(--danger); }
.export-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.export-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.export-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,36,64,.12); }
.export-card p { flex: 1; margin: 0; }
.export-card h3 { margin: 6px 0 0; }
.export-card.featured { background: var(--grad); color: #e7f0f8; border: 0; }
.export-card.featured h3 { color: #fff; }

/* ---------- Auth ---------- */
.auth { background: var(--bg); }
.auth-wrap { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-hero { position: relative; overflow: hidden; background: var(--grad); color: #dbe8f3; display: flex; align-items: center; padding: 60px; }
.auth-hero-inner { position: relative; z-index: 2; max-width: 520px; }
.auth-logo { height: 64px; margin-bottom: 40px; display: block; }
.auth-hero h1 { color: #fff; font-size: 40px; line-height: 1.15; margin: 8px 0 14px; }
.auth-hero .eyebrow { color: #c4ec6b; }
.auth-hero p { font-size: 17px; }
.auth-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 28px; }
.auth-meta span { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.auth-meta .ic { width: 16px; height: 16px; }
.auth-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-list li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.auth-list .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(155,207,35,.16); color: #c4ec6b; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.o1 { width: 420px; height: 420px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(155,207,35,.28), transparent 65%); }
.o2 { width: 300px; height: 300px; left: -100px; bottom: -80px; background: radial-gradient(circle, rgba(244,166,42,.22), transparent 65%); }
.o3 { width: 180px; height: 180px; right: 18%; bottom: 12%; border: 1px solid rgba(255,255,255,.12); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-head h2 { font-size: 26px; display: block; }
.auth-head p { color: var(--muted); margin-bottom: 26px; }
.auth-note { margin-top: 22px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .task-grid { grid-template-columns: 1fr; }
  .split, .split.even { grid-template-columns: 1fr; }
  .g-name { grid-template-columns: 110px 1fr 1fr; }
  .g-name > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(5,15,30,.45); z-index: 35; }
  .main { margin-left: 0; }
  .topbar .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 20px 16px 32px; }
  .foot { padding: 16px; }
  .user-meta { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 36px 24px; }
  .auth-hero h1 { font-size: 28px; }
  .auth-logo { height: 48px; margin-bottom: 22px; }
  .auth-list { display: none; }
  .hero-card { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .hero-card h1 { font-size: 26px; }
  .profile-view { grid-template-columns: 1fr; }
  .export-grid { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
}
@media (max-width: 600px) {
  h1 { font-size: 23px; }
  .g2, .g-name { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  .form-actions.sticky { margin: 20px -16px -20px; padding: 14px 16px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .page-head-side { align-items: flex-start; }
  .tabs { width: 100%; overflow-x: auto; }
  .phone { grid-template-columns: 96px 1fr; }
}
.grid + .grid { margin-top: 16px; }

.bar span { background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--lime)); }
.brand img { height: 52px; }

/* Industry segments picker */
.segments { display: grid; gap: 10px; }
.segments.invalid { outline: 1px solid var(--danger); outline-offset: 4px; border-radius: 12px; }
.segment { border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; transition: border-color .15s, background .15s, box-shadow .15s; }
.segment.open { border-color: var(--accent); background: #fff; box-shadow: 0 4px 14px rgba(35,160,107,.1); }
.segment-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; font-weight: 600; }
.segment-head input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.segment-name { flex: 1; color: var(--brand); }
.segment-count { font-size: 12px; font-weight: 700; color: var(--accent); }
.segment-subs { display: none; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px 46px; }
.segment.open .segment-subs { display: flex; }
.chip { cursor: pointer; position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid #d6dee7; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: all .15s; }
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(35,160,107,.25); }
.seg-view { margin-top: 22px; display: grid; gap: 10px; }
.seg-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid #eef2f6; }
.seg-row strong { color: var(--brand); }
.chip-static { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: #17734f; font-size: 12px; font-weight: 600; }
@media (max-width: 600px) { .segment-subs { padding-left: 16px; } .seg-row { grid-template-columns: 1fr; } }

/* Read-only fields */
input[readonly].readonly, input.code-box { background: #eef2f5; color: var(--ink-2); cursor: not-allowed; }
input.code-box { text-align: center; font-weight: 600; color: var(--brand); padding-left: 8px; padding-right: 8px; }
input[readonly]:focus { box-shadow: none; border-color: #d6dee7; }
.alert-strong { border-left: 5px solid var(--danger); font-size: 15px; animation: alert-pop .35s ease; }
.alert-strong strong { display: block; margin-bottom: 2px; }
.alert-link { color: inherit; font-weight: 700; text-decoration: underline; margin-left: 4px; }
@keyframes alert-pop { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }

.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: 1.2fr 1.2fr 1.2fr .8fr; }
@media (max-width: 1100px) { .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .g3, .g4 { grid-template-columns: 1fr; } }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-closed fieldset[disabled] { opacity: .75; }
.task-due.closed { color: var(--danger); }
input[type=date] { width: 100%; font: inherit; color: var(--ink); background: #fbfcfd; border: 1px solid #d6dee7; border-radius: 10px; padding: 10px 14px; }

/* Fascia board */
.t4b { background: #e8f4d6; color: #5b8a12; }
.s5 { background: #e8f4d6; color: #5b8a12; }
.stats { grid-template-columns: repeat(5, 1fr); }
.task-grid { grid-template-columns: repeat(2, 1fr); }
.fascia-input { text-transform: none; font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.fascia-preview { margin: 4px 0 8px; background: linear-gradient(180deg, #f7fafb, #e9f0f3); border: 1px solid var(--line, #dde6ec); border-radius: 10px; padding: 18px 16px 12px; text-align: center; }
.fascia-preview span { display: block; font-size: 26px; font-weight: 800; letter-spacing: .04em; color: #0a4a57; text-transform: uppercase; word-break: break-word; min-height: 1.2em; }
.fascia-preview small { display: block; margin-top: 4px; color: #6b7c8f; font-size: 12px; }
.fascia-tag { font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .task-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* Admin viewing an exhibitor's zone */
.acting-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff7e0; border: 1px solid #f1d38a; color: #6b4e00; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.acting-bar svg { width: 20px; height: 20px; flex: none; }
.acting-bar span { flex: 1; min-width: 220px; }
form.inline { display: inline; }
