/* Xcel CES Meeting Portal — shared styles (from the approved design canvas) */
:root {
  --navy: #07162c;
  --ink: #132238;
  --muted: #5b6b80;
  --label: #52647a;
  --line: #e5ebf2;
  --field: #dce4ee;
  --page: #f5f8fc;
  --blue: #1f6fe0;
  --blue-text: #1f63c9;
  --cyan: #5bd5e5;
  --cyan-text: #60d9e8;
  --radius-card: 13px;
  --radius-panel: 16px;
  --shadow: 0 12px 35px #142b4810;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; }
img { max-width: 100%; }
a { color: var(--label); }
a:hover { color: #2677ed; }
h1, h2, h3 { font-family: Manrope, sans-serif; letter-spacing: -.04em; margin: 0; }
button, input, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* top bar */
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(calc((100% - 1180px) / 2), 28px); background: var(--navy); color: #fff; }
.topbar img { height: 38px; width: auto; display: block; }
.topbar .tag { font-size: 10px; letter-spacing: .16em; color: #a9b9cc; font-weight: 700; }
.on-photo .topbar { position: relative; z-index: 2; background: transparent; border-bottom: 1px solid rgba(255,255,255,.08); }

/* hero */
.hero-wrap { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-wrap > .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero-wrap > .scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,22,44,.97) 0%, rgba(7,22,44,.93) 34%, rgba(7,22,44,.62) 54%, rgba(7,22,44,.18) 74%, rgba(7,22,44,0) 90%); }
.hero-wrap > .fade-top { position: absolute; left: 0; right: 0; top: 0; height: 120px; background: linear-gradient(180deg, rgba(7,22,44,.75), rgba(7,22,44,0)); }
.hero-wrap > .fade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(0deg, rgba(7,22,44,.75), rgba(7,22,44,0)); }
.hero { position: relative; z-index: 1; min-height: 520px; display: flex; align-items: center; padding: 64px max(calc((100% - 1180px) / 2), 28px) 80px; }
.hero .copy { max-width: 600px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .17em; color: var(--blue-text); margin: 0 0 13px; text-transform: uppercase; }
.hero .eyebrow { color: var(--cyan-text); margin-bottom: 14px; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.05; }
.hero h1 span { color: var(--cyan); }
.hero .lede { max-width: 500px; color: #d2deeb; font-size: 17px; line-height: 1.6; margin: 22px 0 26px; }
.hero .meta { display: flex; align-items: center; gap: 24px 28px; flex-wrap: wrap; }
.hero .meta span { color: #d2deeb; font-size: 13px; }
.hero .meta b { color: #fff; margin-left: 5px; }
@media (max-width: 720px) {
  .hero-wrap > .scrim { background: linear-gradient(180deg, rgba(7,22,44,.82), rgba(7,22,44,.9)); }
  .hero { min-height: 0; padding-top: 48px; padding-bottom: 56px; }
}

/* buttons */
.btn { border: 0; border-radius: 10px; min-height: 48px; padding: 13px 22px; font: 700 15px 'DM Sans', sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 7px 18px #2677ed30; }
.btn-primary:hover { background: #1a60c4; color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-hero { box-shadow: 0 10px 28px rgba(31,111,224,.45); }
.btn-ghost { background: #fff; color: #42546b; border: 1px solid var(--line); font-size: 13px; min-height: 42px; padding: 10px 16px; }
.btn-ghost:hover { border-color: #c9d5e3; color: var(--ink); }
.btn-small { min-height: 36px; padding: 7px 12px; font-size: 12px; }

/* layout */
.container { max-width: 1180px; margin: 0 auto; padding: 64px 28px 80px; }
.container.wide { max-width: 1240px; padding-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--muted); margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.step { font-size: 10px; letter-spacing: .12em; font-weight: 700; color: #61738a; background: #eaf0f7; border-radius: 30px; padding: 10px 14px; white-space: nowrap; }
.step b { color: var(--blue-text); margin-right: 8px; }

/* vendor cards */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; margin: 30px 0 38px; }
.vendor-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 19px; display: flex; flex-direction: column; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.vendor-card.picked { border-color: #2677ed; box-shadow: 0 0 0 3px #2677ed18; }
.vendor-card .logo { height: 104px; border-radius: 10px; display: grid; place-items: center; background: #f7f9fc; border: 1px solid #edf1f6; }
.vendor-card.picked .logo { background: #f3f8ff; border-color: #d6e6fd; }
.vendor-card .logo img { max-height: 46px; max-width: 64%; object-fit: contain; }
.vendor-card .logo .wordmark { font: 800 22px Manrope, sans-serif; letter-spacing: -.02em; color: #66768a; }
.vendor-card h3 { font-size: 17px; letter-spacing: -.02em; margin-top: 16px; }
.vendor-card .tag { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--blue-text); margin-top: 6px; text-transform: uppercase; }
.vendor-card p { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; flex: 1; }
.vendor-card .choose { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; min-height: 46px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.check { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input, .radio input { accent-color: #2677ed; width: 18px; height: 18px; margin: 0; }
.radios { display: flex; gap: 12px; margin-left: auto; }
.radio { font-size: 12.5px; color: #53647a; display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* panels + forms */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 25px; }
.field { font-size: 11.5px; color: var(--label); font-weight: 700; display: flex; flex-direction: column; gap: 7px; }
.field input, .field select, .field textarea, .input { width: 100%; border: 1px solid var(--field); border-radius: 8px; padding: 12px; background: #fff; font-size: 14px; color: var(--ink); font-weight: 400; }
.field input:focus, .input:focus, select:focus { border-color: #2677ed; box-shadow: 0 0 0 3px #2677ed14; outline: none; }
input::placeholder { color: #6b7a8d; }
.consent { display: grid; gap: 10px; border-top: 1px solid var(--line); margin-top: 25px; padding-top: 22px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.consent input { accent-color: #2677ed; width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap; margin-top: 18px; }
.submit-row p { font-size: 13px; color: var(--muted); margin: 0; }
.submit-row p b { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-top: 16px; }
.msg.error { background: #fdebed; color: #9a2f3a; }
.msg.ok { background: #e4f6ee; color: #11653f; }
.success { text-align: center; padding: 48px 30px; }
.success .tick { width: 56px; height: 56px; border-radius: 50%; background: #e4f6ee; color: #13734f; display: grid; place-items: center; margin: 0 auto 18px; }
.success h2 { font-size: 30px; }
.success p { color: var(--muted); max-width: 520px; margin: 10px auto 0; line-height: 1.6; }

/* footer */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 22px max(calc((100% - 1180px) / 2), 28px); display: flex; gap: 12px 25px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: 12px; }

/* sign-in card */
.signin { max-width: 440px; margin: 45px auto; }
.signin h1 { font-size: 30px; }
.signin p.sub { color: var(--muted); margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.signin form { margin-top: 25px; }
.signin .btn { width: 100%; margin-top: 17px; }

/* dashboards */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font-size: 34px; }
.dash-head p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 25px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 19px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat strong { display: block; font: 800 29px Manrope, sans-serif; margin-top: 5px; font-variant-numeric: tabular-nums; }
.dash-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; min-width: 0; }
.card.side { flex: 1 1 320px; }
.card.main { flex: 999 1 560px; }
.card-head { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.card-head h2 { font-size: 18px; letter-spacing: -.03em; }
.card-head p { color: var(--muted); margin: 6px 0 0; font-size: 12.5px; }
.add-vendor { padding: 0 22px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.add-vendor .full { grid-column: 1 / -1; }
.vendor-row { padding: 13px 20px; border-top: 1px solid #edf1f6; display: grid; gap: 8px; font-size: 12.5px; }
.vendor-row .top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.vendor-row .link { font-size: 11.5px; color: var(--blue-text); word-break: break-all; }
.vendor-row .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vendor-row.inactive { opacity: .6; }
.pin-box { margin: 0 20px 16px; border-radius: 10px; background: #fff4dc; color: #6e4706; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.pin-box b { font: 800 22px Manrope, sans-serif; letter-spacing: .12em; color: #3d2803; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 20px 15px; }
.filters .input { max-width: 320px; flex: 1 1 220px; }
.filters select.input { max-width: 170px; flex: 0 1 170px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12.5px; }
th { background: #f7f9fc; color: #66768a; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 13px 16px; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid #edf1f6; vertical-align: top; }
td small { color: var(--muted); display: block; margin-top: 4px; }
td select { border: 1px solid var(--field); border-radius: 8px; padding: 6px 8px; background: #fff; font-size: 12.5px; }
.badge { display: inline-block; border-radius: 30px; padding: 5px 9px; font-size: 10.5px; font-weight: 700; text-transform: capitalize; }
.badge.pending { background: #fff4dc; color: #8a5806; }
.badge.confirmed { background: #e4f6ee; color: #11653f; }
.badge.declined { background: #fdebed; color: #9a2f3a; }
.badge.interested { background: #e8f2ff; color: #23609f; }
.badge.count { background: #e4f6ee; color: #11653f; }
.empty { padding: 30px 20px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid #edf1f6; }
.view-only { font-size: 10px; letter-spacing: .12em; font-weight: 700; color: #176baf; background: #e5f3ff; border-radius: 30px; padding: 10px 14px; }
.note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 20px; }
@media (max-width: 560px) {
  .panel { padding: 22px; }
  .submit-row .btn { width: 100%; }
  .add-vendor { grid-template-columns: 1fr; }
}
