/* Vision China 2026 — branded theme (deep navy → cyan, clean medical look) */
:root {
  --navy: #07224f;
  --navy-2: #0a2a5e;
  --blue: #0e63b3;
  --blue-2: #1577c9;
  --cyan: #14a9c9;
  --cyan-2: #2bc6d8;
  --teal: #16c2b3;
  --ink: #14233b;
  --muted: #5b6b82;
  --line: #e3e9f1;
  --bg: #f5f8fc;
  --card: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 42, 94, .10);
  --shadow-sm: 0 4px 14px rgba(10, 42, 94, .08);
  --maxw: 1120px;
  --grad: linear-gradient(135deg, var(--navy) 0%, var(--blue) 48%, var(--cyan) 100%);
  --grad-soft: linear-gradient(135deg, #0a2a5e 0%, #0e63b3 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", "Noto Sans", "Noto Sans Thai", "Noto Sans KR", "Noto Sans JP", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 10px 16px; min-height: 62px; flex-wrap: wrap; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); letter-spacing: .2px; }
.brand .logo { width: 34px; height: 34px; flex: 0 0 auto; }
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; letter-spacing: .3px; }
.spacer { flex: 1; }
.langbar { display: flex; flex-wrap: wrap; gap: 4px; }
.lang-btn {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 5px 10px; border-radius: 999px; font-size: 12.5px; cursor: pointer; transition: .15s;
}
.lang-btn:hover { border-color: var(--cyan); color: var(--blue); }
.lang-btn.is-active { background: var(--grad-soft); color: #fff; border-color: transparent; font-weight: 600; }
/* Higher specificity than .btn (which would otherwise re-show it on mobile). */
.site-header .header-cta { display: none; }
@media (min-width: 901px) { .site-header .header-cta { display: inline-flex; } }

/* Phones & narrow/in-app browsers: brand on top, language switcher on its own
   full-width single row that scrolls horizontally (never wraps / overlaps). */
@media (max-width: 900px) {
  .site-header .bar { gap: 8px; }
  .site-header .spacer { display: none; }
  .site-header .brand { flex: 1 1 auto; min-width: 0; }
  .site-header .langbar {
    order: 2; width: 100%; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
  }
  .site-header .langbar::-webkit-scrollbar { display: none; }
  .site-header .lang-btn { flex: 0 0 auto; }
}
@media (max-width: 560px) {
  .brand { font-size: 15px; }
  .brand .logo { width: 30px; height: 30px; }
  .brand small { font-size: 10px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font: inherit; font-weight: 700;
  padding: 13px 22px; border-radius: 999px; transition: transform .12s, box-shadow .2s, opacity .2s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(14, 99, 179, .35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(14, 99, 179, .45); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-soft { background: #eef4fb; color: var(--blue); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--grad); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(closest-side, rgba(43, 198, 216, .35), transparent 70%) -10% -30% / 60% 80% no-repeat,
    radial-gradient(closest-side, rgba(22, 194, 179, .30), transparent 70%) 110% 120% / 55% 80% no-repeat;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding: 64px 20px 72px; }
.kicker {
  display: inline-block; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .35);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .4px;
}
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.15; margin: 18px 0 6px; font-weight: 800; }
.hero h1 small { display: block; font-size: clamp(15px, 2.4vw, 22px); font-weight: 600; opacity: .92; margin-top: 8px; }
.co-events { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.co-events li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; opacity: .96; }
.co-events li::before { content: "◆"; color: var(--cyan-2); font-size: 11px; margin-top: 5px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 8px; }
.hero-meta div { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.hero-meta svg { flex: 0 0 auto; opacity: .9; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-cta .sub { font-size: 13.5px; opacity: .9; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-title { text-align: center; margin: 0 0 8px; font-size: clamp(22px, 3.4vw, 32px); color: var(--navy); font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 36px; }
.alt { background: #fff; }

/* highlights */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 44px; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { font-weight: 700; margin: 12px 0 4px; }
.stat .sub { color: var(--muted); font-size: 13.5px; }

/* directions */
.dirs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.dir {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.dir::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.dir .n { font-size: 13px; font-weight: 800; color: var(--cyan); letter-spacing: 1px; }
.dir h3 { margin: 6px 0 10px; font-size: 19px; color: var(--navy); }
.dir p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* info cards */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.info-card { background: var(--grad-soft); color: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.info-card .k { font-size: 13px; opacity: .85; letter-spacing: .4px; }
.info-card .v { font-size: 18px; font-weight: 700; margin-top: 6px; }

/* footer */
.site-footer { background: var(--navy); color: #cdd9ec; padding: 40px 0; text-align: center; }
.site-footer .org { font-weight: 700; color: #fff; margin-bottom: 8px; }
.site-footer .rights { font-size: 12.5px; opacity: .7; margin-top: 14px; }

/* ---------- generic page shell (forms) ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; padding: 40px 0 64px; }
.card-panel {
  max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px;
}
.panel-narrow { max-width: 460px; }
.page-title { font-size: 26px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.page-sub { color: var(--muted); margin: 0 0 26px; }

/* forms */
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 14.5px; }
.req { color: var(--err); margin-left: 3px; }
.tag-opt { color: var(--muted); font-weight: 600; font-size: 12px; margin-left: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14, 99, 179, .14); }
.input.invalid { border-color: var(--err); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

/* file upload */
.file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-name { color: var(--muted); font-size: 13.5px; }
.file-preview { margin-top: 10px; }
.file-preview img { max-height: 120px; border-radius: 10px; border: 1px solid var(--line); }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.checkbox input { margin-top: 4px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--blue); }

.form-error { background: #fdecec; color: var(--err); border: 1px solid #f6c9c9; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; display: none; }
.form-error.show { display: block; }

/* ---------- success page ---------- */
.success-icon { width: 72px; height: 72px; margin: 0 auto 14px; }
.qr-box { text-align: center; }
.qr-box img { width: 260px; height: 260px; margin: 6px auto 0; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.regno-chip { display: inline-block; background: #eef4fb; color: var(--navy); font-weight: 800; letter-spacing: 1px; padding: 8px 16px; border-radius: 999px; font-size: 18px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.ok { background: #e7f7ee; color: var(--ok); }
.badge.pending { background: #fff3e2; color: var(--warn); }

/* ---------- check-in ---------- */
#reader { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.scan-result { margin-top: 20px; border-radius: 14px; padding: 22px; text-align: center; display: none; }
.scan-result.show { display: block; }
.scan-result.r-success { background: #e7f7ee; border: 1.5px solid #b6e6c8; }
.scan-result.r-already { background: #fff3e2; border: 1.5px solid #f3d8a8; }
.scan-result.r-notfound { background: #fdecec; border: 1.5px solid #f3c4c4; }
.scan-result .big { font-size: 22px; font-weight: 800; margin: 6px 0; }
.scan-result .who { font-size: 17px; font-weight: 700; color: var(--ink); }
.scan-result .meta { color: var(--muted); font-size: 14px; }
.session-count { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.session-count b { color: var(--navy); font-size: 18px; }

/* ---------- admin ---------- */
.admin-wrap { max-width: 1180px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.kpi .n { font-size: 32px; font-weight: 800; color: var(--navy); }
.kpi .l { color: var(--muted); font-size: 13.5px; }
.kpi.accent { background: var(--grad-soft); color: #fff; }
.kpi.accent .n, .kpi.accent .l { color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .input { width: auto; flex: 1; min-width: 200px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { border: none; background: #fff; padding: 9px 16px; cursor: pointer; font: inherit; color: var(--muted); }
.seg button.is-active { background: var(--grad-soft); color: #fff; font-weight: 700; }
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.reg { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
table.reg th, table.reg td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.reg th { background: #f3f7fc; color: var(--muted); font-weight: 700; position: sticky; top: 0; }
table.reg tbody tr:hover { background: #f8fbff; }
table.reg td.wrap-cell { white-space: normal; max-width: 220px; }
.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.st.checked { background: #e7f7ee; color: var(--ok); }
.st.pending { background: #fff3e2; color: var(--warn); }
.empty-row { text-align: center; color: var(--muted); padding: 40px 0; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 10px; font-size: 13.5px; }
.bar-track { background: #eef2f8; border-radius: 999px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--grad); border-radius: 999px; }

/* gate (key prompt) */
.gate { max-width: 380px; margin: 8vh auto 0; text-align: center; }
.gate .logo-lg { width: 56px; height: 56px; margin: 0 auto 14px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(7, 34, 79, .8); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 12px; background: #fff; }
.lightbox .close { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 30px; cursor: pointer; background: none; border: none; }

.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

@media (max-width: 560px) {
  .card-panel { padding: 22px; }
  .hero .wrap { padding: 44px 20px 52px; }
  section { padding: 42px 0; }
}

/* ============ v2 revisions (xlsx requirements) ============ */

/* Hero: both title lines the SAME size; richer layered background */
.hero .hero-title { font-size: clamp(23px, 4.1vw, 38px); line-height: 1.2; margin: 16px 0 6px; font-weight: 800; }
.hero .hero-title .sub { display: block; font-size: 1em; font-weight: 800; opacity: .95; margin-top: 6px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 0),
    radial-gradient(closest-side, rgba(43,198,216,.22), transparent 70%);
  background-size: 24px 24px, 70% 90%;
  background-position: 0 0, 120% -10%;
  background-repeat: repeat, no-repeat;
  opacity: .9;
}
.hero .wrap { position: relative; z-index: 1; }

/* Invitation copy (preserve paragraph breaks) */
.invitation { max-width: 900px; margin: 0 auto; color: #44546b; white-space: pre-line; line-height: 1.95; font-size: 15.5px; text-align: justify; }

/* Four upward-scrolling highlight carousels */
.carousels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .carousels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .carousels { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.ccard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.cc-head { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.cc-title { font-weight: 800; color: var(--navy); font-size: 14.5px; }
.cc-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.cc-view { height: 238px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.cc-track { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; animation: ccScroll 30s linear infinite; }
.cc-view:hover .cc-track { animation-play-state: paused; }
@keyframes ccScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.cc-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #f4f8fc; font-size: 13.5px; color: var(--ink); }
.cc-country .flag { font-size: 20px; line-height: 1; }
.cc-meeting { font-weight: 600; line-height: 1.35; }
.cc-meeting .dot { color: var(--cyan); font-size: 10px; flex: 0 0 auto; }
.cc-ph { flex-direction: column; justify-content: center; gap: 5px; text-align: center; border: 1px dashed #c9d6e6; background: #fafcff; color: var(--muted); padding: 16px; }
.cc-ph .ph-ico { font-size: 22px; opacity: .65; }
.cc-ph .ph-tx { font-size: 12px; }

/* Four innovation directions — provided full-content designs */
.dir-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .dir-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .dir-cards { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }
.dir-img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* Agenda graphic */
.agenda-img { display: block; width: 100%; max-width: 720px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Footer organizer logo bar (white card on the navy footer) */
.org-logos { background: #fff; border-radius: 14px; padding: 14px 18px; max-width: 760px; margin: 14px auto 18px; }
.org-logos img { width: 100%; height: auto; display: block; }

/* Carousel logo + photo tiles */
.cc-logo { background: #fff; justify-content: center; height: 60px; padding: 8px 14px; border: 1px solid var(--line); }
.cc-logo img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; }
.cc-conf { flex-direction: column; gap: 6px; height: auto; padding: 12px; }
.cc-conf img { max-height: 46px; }
.cc-conf span { font-size: 12px; font-weight: 800; color: var(--navy); }
.cc-photo { padding: 0; overflow: hidden; height: 122px; background: #06203f; border: none; }
.cc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Four directions — translatable text cards (gradient header + bullet list) */
.dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .dir-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; } }
.dir-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.dir-h { background: var(--grad); color: #fff; padding: 17px 22px; display: flex; align-items: center; gap: 12px; }
.dir-h .dir-n { font-size: 12.5px; font-weight: 800; letter-spacing: 1px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); padding: 3px 9px; border-radius: 999px; flex: 0 0 auto; }
.dir-h h3 { margin: 0; font-size: 18px; font-weight: 800; }
.dir-list { list-style: none; margin: 0; padding: 16px 22px 20px; display: grid; gap: 10px; }
.dir-list li { position: relative; padding-left: 20px; color: var(--ink); font-size: 14px; line-height: 1.55; }
.dir-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }

/* Conference agenda */
.agenda-venue { text-align: center; color: var(--navy); font-weight: 700; margin: -18px 0 28px; font-size: 14.5px; }
.agenda { max-width: 920px; margin: 0 auto; display: grid; gap: 16px; }
.ag-day { display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: start; }
.ag-date { background: var(--grad-soft); color: #fff; border-radius: 12px; padding: 10px 0; text-align: center; font-weight: 800; font-size: 15px; }
.ag-rows { display: grid; gap: 10px; }
.ag-row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 12px 16px; display: grid; grid-template-columns: 98px 1fr; gap: 12px; align-items: start; }
.ag-time { font-weight: 800; color: var(--blue); font-size: 13.5px; white-space: nowrap; }
.ag-sessions { display: grid; gap: 8px; }
.ag-s { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ag-hall { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }
.ag-hall.a { background: #e7f0fb; color: var(--blue); }
.ag-hall.b { background: #e6f6f2; color: #0c8f86; }
.ag-name { font-size: 13.5px; color: var(--ink); line-height: 1.45; }
@media (max-width: 560px) { .ag-day { grid-template-columns: 50px 1fr; gap: 10px; } .ag-row { grid-template-columns: 1fr; gap: 7px; } }

/* ===================== v4 (mobile-first redesign per docx) ===================== */

/* Whole-page blue background (per invitation poster) */
body.page-blue { background: #0b2f63 linear-gradient(180deg, #0c3a78 0%, #0a2a5e 55%, #0b2f63 100%) fixed; }
.page-blue section { position: relative; }
.section-title.light { color: #fff; }

/* Header: logo image + language dropdown */
.brand-logo { height: 34px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 26px; } }
.lang-select {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px;
  padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; max-width: 150px;
}
.lang-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,99,179,.14); }
@media (max-width: 900px) { .site-header .langbar { order: 0; width: auto; overflow: visible; padding: 0; } }

/* Invitation letter (white text on blue) */
.letter { max-width: 900px; margin: 0 auto; }
.letter-salutation { font-size: 17px; font-weight: 800; color: #fff; margin: 0 0 14px; }
.invitation { color: #dce8f6; white-space: pre-line; line-height: 1.95; font-size: 15.5px; text-align: justify; margin: 0; }
.letter-sign { margin-top: 22px; text-align: right; }
.letter-sign img { display: inline-block; max-width: 340px; width: 72%; border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .letter-sign img { width: 86%; } }

/* Highlights — static grids */
.hl-block { margin-bottom: 32px; }
.hl-bhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.hl-btitle { font-size: 17px; font-weight: 800; color: #fff; }
.hl-bsub { font-size: 13px; color: #bcd3ee; }
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 760px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
.logo-cell { background: #fff; border-radius: 12px; height: 72px; display: flex; align-items: center; justify-content: center; padding: 10px 14px; }
.logo-cell img { max-width: 100%; max-height: 44px; width: auto; object-fit: contain; }
.flag-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 760px) { .flag-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .flag-grid { grid-template-columns: repeat(3, 1fr); } }
.flag-cell { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flag-cell .flag { font-size: 24px; line-height: 1; }
.flag-cell .fn { font-size: 11.5px; color: #eaf2fb; text-align: center; line-height: 1.25; }
.conf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .conf-grid { grid-template-columns: repeat(2, 1fr); } }
.conf-cell { background: #fff; border-radius: 12px; padding: 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.conf-cell img { height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.conf-name { font-size: 12.5px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.past-swipe { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.past-cell { flex: 0 0 auto; width: 264px; scroll-snap-align: start; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
@media (max-width: 560px) { .past-cell { width: 80%; } }
.past-cell img { width: 100%; height: 152px; object-fit: cover; display: block; }

/* Four directions — text over themed background images */
.dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .dir-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.dir-card { border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; box-shadow: var(--shadow); color: #fff; padding: 0; border: none; }
.dir-card .dir-h { background: none; padding: 20px 22px 12px; }
.dir-card .dir-h .dir-n { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); color: #fff; }
.dir-card .dir-h h3 { color: #fff; font-size: 19px; }
.dir-card .dir-list { padding: 0 22px 24px; }
.dir-card .dir-list li { color: #eaf2fb; }
.dir-card .dir-list li::before { background: var(--cyan-2); }

/* Agenda */
.agenda-venue { color: #dce8f6; }
.ag-name { color: var(--ink); }
.ag-name b { font-weight: 800; font-size: 14.5px; display: block; }
.ag-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }

/* Footer — all white, no heading */
.site-footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .org-logos { background: transparent; box-shadow: none; padding: 0; margin: 0 auto 14px; }
.site-footer .rights { color: var(--muted); opacity: 1; }

/* ===================== v4.1 (second-round tweaks) ===================== */

/* Enterprise logo cards — subtle border + shadow per the layout reference */
.logo-cell { border: 1px solid #dbe6f3; box-shadow: 0 3px 10px rgba(8,40,86,.10); }

/* Country flags — round badges, centered, with a "…" for the rest */
.flag-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.flag-cell { background: none; border: none; padding: 0; width: auto; flex: 0 0 auto; }
.flag-badge { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(0,0,0,.28); display: block; }
.flag-more { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px dashed rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; color: #dce8f6; font-weight: 800; font-size: 17px; letter-spacing: 1px; }
@media (max-width: 560px) { .flag-badge, .flag-more { width: 44px; height: 44px; } .flag-grid { gap: 11px; } }

/* Signature — small, bottom-right, blended into the blue (no white box) */
.letter-sign { margin-top: 14px; text-align: right; }
.letter-sign img { width: auto; max-width: 250px; max-height: 92px; border-radius: 0; box-shadow: none;
  filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
@media (max-width: 560px) { .letter-sign img { max-width: 64%; } }

/* ===================== v4.2 (third-round tweaks) ===================== */

/* New signature is white-on-transparent → no blend hack, no box; keep small & bottom-right */
.letter-sign img { filter: none; mix-blend-mode: normal; opacity: 1; max-width: 230px; max-height: 150px; }
@media (max-width: 560px) { .letter-sign img { max-width: 58%; } }

/* Seamless hero → invitation color transition (light blue-teal top → dark blue, no hard line) */
body.page-blue { background: #0b2f63; }
.hero { background: linear-gradient(180deg, #1466ad 0%, #1187ba 30%, #15a4c3 52%, #0f63a7 74%, #0b2f63 100%); }
.hero::after { opacity: .42; }   /* soften the corner glows so the gradient stays clean */

/* ===================== v4.3 (fourth-round tweaks) ===================== */

/* Past-highlight photos ~2/3 larger, responsive */
.past-cell { width: 440px; }
.past-cell img { height: 252px; }
@media (max-width: 560px) { .past-cell { width: 86%; } .past-cell img { height: 208px; } }

/* Registration (and success) page background → invitation blue-teal visual */
body.reg-page {
  background-color: #0b2f63;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0),
    linear-gradient(165deg, #1466ad 0%, #1187ba 22%, #16a4c3 42%, #0e5fa6 66%, #0b2f63 100%);
  background-size: 22px 22px, cover;
  background-attachment: fixed, fixed;
  background-repeat: repeat, no-repeat;
}

/* ===================== v4.4 (source / channel attribution) ===================== */
.bar-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
@media (max-width: 760px) { .bar-cards { grid-template-columns: 1fr; } }
.bar-click { cursor: pointer; border-radius: 8px; padding: 2px 6px; margin: 0 -6px; transition: background .15s; }
.bar-click:hover { background: #f0f6fd; }
.bar-active { background: #e7f0fb; }
.src-tag { display: inline-block; background: #e7f0fb; color: var(--blue); font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.src-direct { color: var(--muted); font-size: 12.5px; }
