:root {
    /* Food Pack Asia brand palette — teal + orange (from foodpackasia.com) */
    --orange: #f26f25;        /* brand orange — primary accent / CTA */
    --orange-deep: #d65c17;
    --orange-soft: #fdf0e7;
    --teal: #12afab;          /* brand teal — primary */
    --teal-deep: #0a6661;     /* deep teal for dark fills */
    --teal-soft: #e3f5f4;     /* teal tint for badges */
    --navy: #123f3c;          /* headings & dark text (deep teal — on brand) */
    --navy-deep: #0a4f4b;     /* deep teal footer */
    --ink: #1a2230;
    --muted: #5f6675;
    --line: #e7eaf0;
    --bg: #eef6f5;
    --font-sans: 'Prompt', ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Thai', sans-serif;
    color-scheme: light;
    font-family: var(--font-sans);
    background: var(--bg);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: radial-gradient(1200px 600px at 75% -10%, #ffe9dc 0%, transparent 58%),
                linear-gradient(180deg, #ffffff 0%, #eef6f5 100%);
    color: var(--ink);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -.02em; }

/* Thai/Chinese readability — tight Latin tracking cramps these scripts */
body.locale-th, body.locale-zh { line-height: 1.65; }
body.locale-th h1, body.locale-th h2, body.locale-th h3, body.locale-th .hero-banner h1,
body.locale-zh h1, body.locale-zh h2, body.locale-zh h3 { letter-spacing: 0; line-height: 1.4; }
body.locale-th .eyebrow, body.locale-zh .eyebrow { letter-spacing: .06em; }
body.locale-th p, body.locale-th .booth-about-text, body.locale-th .expo-hero-lead { line-height: 1.8; }

.expo {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 22px 18px 56px;
}

/* ---------- TOPBAR ---------- */
.topbar {
    position: sticky;
    top: 14px;
    z-index: 200;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid #e8ebf1;
    border-radius: 22px;
    padding: 16px 24px;
    box-shadow: 0 18px 50px rgba(20, 35, 63, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 13px;
    background: linear-gradient(135deg, #f2641e 0%, #f59020 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 8px 18px rgba(242,100,30,0.30);
    position: relative;
}
.brand-mark::after {
    content: ""; position: absolute; inset: 11px;
    border: 2px solid rgba(255,255,255,0.92); border-radius: 5px;
}
.brand-text { font-size: 1.05rem; font-weight: 800; line-height: 1; display: grid; gap: 4px; color: var(--navy); }
.brand-text small { font-size: 0.7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.topbar-menu { display: flex; align-items: center; gap: 22px; }
.topbar-menu a { color: #475067; font-size: 0.95rem; font-weight: 600; }
.topbar-menu a:hover { color: var(--orange); }
.topbar-menu a.cta {
    padding: 11px 22px; border-radius: 999px; color: #fff;
    background: var(--orange); box-shadow: 0 14px 24px rgba(242, 100, 30, 0.30);
}
.topbar-menu a.cta:hover { color: #fff; }
.topbar-search { flex: 1 1 260px; max-width: 420px; position: relative; display: flex; }
.topbar-search input {
    width: 100%; border: 1px solid #dde2ec; border-radius: 999px; padding: 11px 84px 11px 18px;
    background: #f7f8fb; font-size: 0.92rem; color: var(--ink); outline: none; font-family: inherit;
}
.topbar-search input:focus { border-color: var(--orange); background: #fff; }
.topbar-search button {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%); border: none;
    background: var(--orange); color: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer;
    font-weight: 700; font-size: 0.84rem; font-family: inherit;
}
.lang-switch {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 4px; border-radius: 999px; background: #f1f3f7; border: 1px solid #e3e7ee;
}
.lang-option {
    padding: 6px 12px; border-radius: 999px; font-size: 0.84rem; font-weight: 700; color: #6b7388; line-height: 1;
}
.lang-option:hover { color: var(--orange); }
.lang-option.is-active { background: #fff; color: var(--orange); box-shadow: 0 2px 6px rgba(20,35,63,0.10); }
.mobile-menu-toggle { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.topbar-brand-group { display: inline-flex; align-items: center; gap: 16px; }
.topbar-hamburger { display: none; }
.mobile-menu-button {
    width: 44px; height: 44px; border-radius: 14px; border: 1px solid #d6dbe5;
    background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.mobile-menu-button span { display: block; width: 4px; height: 18px; border-radius: 999px; background: var(--navy); margin: 0 3px; }

/* ---------- BUTTONS ---------- */
.btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 0.96rem;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: linear-gradient(135deg, #f2641e 0%, #e0481b 100%); color: #fff; box-shadow: 0 16px 28px rgba(242,100,30,0.32); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid #dde2ec; }
.btn-ghost:hover { transform: translateY(-2px); border-color: #f4b896; color: var(--orange-deep); }
.btn-ghost.light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.32); }
.btn-ghost.light:hover { color: #fff; }
.btn-primary.sm, .btn-ghost.sm { padding: 9px 16px; font-size: 0.86rem; }

/* ---------- LIVE BADGE ---------- */
.live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; display: inline-block;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.55); animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}
.live-badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; letter-spacing: .04em;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.24); color: #fff;
}

/* ---------- HERO ---------- */
.expo-hero {
    position: relative; overflow: hidden; margin-top: 26px;
    border-radius: 34px; padding: 56px 48px;
    background: linear-gradient(135deg, #1fbcb0 0%, #14a097 45%, #0c7670 100%);
    color: #e9f4f3;
}
.expo-hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 14% 16%, rgba(242,100,30,0.42), transparent 32%),
                radial-gradient(circle at 88% 84%, rgba(245,144,32,0.26), transparent 36%);
}
.expo-hero-inner {
    position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
}
.expo-hero-copy h1 { margin: 18px 0 0; font-size: clamp(2.4rem, 4vw, 3.7rem); line-height: 1.02; letter-spacing: -.04em; color: #fff; }
.expo-hero-copy h1 span { color: #ff9e5e; }
.expo-hero-lead { margin-top: 18px; max-width: 560px; line-height: 1.75; color: rgba(255,255,255,0.84); }
.expo-pillars {
    display: inline-flex; align-items: center; gap: 14px; margin-top: 22px;
    font-weight: 800; letter-spacing: .02em; color: #ffd9c2;
}
.expo-pillars i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.45); display: inline-block; }
.expo-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.expo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px; padding: 22px 20px; backdrop-filter: blur(6px);
}
.stat strong { display: block; font-size: 2rem; color: #fff; letter-spacing: -.03em; }
.stat span { font-size: 0.86rem; color: rgba(255,255,255,0.70); font-weight: 600; }

/* ---------- SECTION SHELL ---------- */
.expo-section { margin-top: 44px; }
.eyebrow { margin: 0 0 6px; font-size: 0.78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.eyebrow.light { color: #ffb98f; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 1.7rem; color: var(--navy); }
.view-all-link { color: var(--orange); font-weight: 700; white-space: nowrap; }
.view-all-link:hover { color: var(--orange-deep); }

/* ---------- HALLS ---------- */
.hall-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hall-card {
    display: flex; flex-direction: column; gap: 14px; min-height: 178px;
    padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 16px 34px rgba(20,35,63,0.05); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hall-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(242,100,30,0.16); border-color: #f6c4a3; }
.hall-card-top { display: flex; align-items: center; justify-content: space-between; }
.hall-letter { font-size: 0.78rem; font-weight: 800; letter-spacing: .08em; color: var(--orange); background: var(--orange-soft); padding: 6px 12px; border-radius: 999px; }
.hall-icon { font-size: 1.5rem; }
.hall-card h3 { margin: 0; font-size: 1.08rem; color: var(--navy); line-height: 1.3; flex: 1; }
.hall-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.hall-enter { color: var(--orange); font-weight: 700; }

/* ---------- BOOTHS ---------- */
.booth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.booth-card {
    border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 16px 38px rgba(20,35,63,0.06); transition: transform .16s ease, box-shadow .16s ease;
}
.booth-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(20,35,63,0.12); }
.booth-banner {
    position: relative; height: 116px; display: flex; align-items: center; padding: 0 22px;
    background: linear-gradient(135deg, #1ab5a9 0%, #0e837c 100%);
}
.booth-banner::after {
    content: ""; position: absolute; right: -30px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242,100,30,0.40), transparent 70%);
}
.booth-logo {
    position: relative; z-index: 1;
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    background: #fff; color: var(--orange); font-weight: 900; font-size: 1.5rem;
}
.booth-status {
    position: absolute; z-index: 1; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
}
.booth-status.live { background: #fff; color: #d61f1a; }
.booth-status.soon { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.32); }
.booth-body { padding: 20px 22px 22px; }
.booth-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.booth-hall { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.chip {
    display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px;
    background: var(--orange-soft); color: var(--orange-deep); font-size: 0.76rem; font-weight: 700;
}
.booth-body h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--navy); }
.booth-body p { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.booth-actions { display: flex; gap: 10px; }

/* ---------- PROGRAMME ---------- */
.programme-list {
    background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
    box-shadow: 0 16px 38px rgba(20,35,63,0.05);
}
.programme-row {
    display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 20px;
    padding: 20px 26px; border-top: 1px solid #eef0f5;
}
.programme-row:first-child { border-top: none; }
.programme-row.is-live { background: linear-gradient(90deg, rgba(242,100,30,0.08), transparent 60%); }
.programme-time { text-align: center; }
.programme-time strong { display: block; font-size: 1.3rem; color: var(--navy); letter-spacing: -.02em; }
.programme-time span { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.programme-info h3 { margin: 0 0 4px; font-size: 1.04rem; color: var(--navy); }
.programme-info p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- PILLARS ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar-card {
    background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px 26px;
    box-shadow: 0 16px 34px rgba(20,35,63,0.05);
}
.pillar-icon {
    display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
    background: var(--orange-soft); color: var(--orange); font-size: 1.5rem; margin-bottom: 16px;
}
.pillar-card h3 { margin: 0 0 10px; font-size: 1.25rem; color: var(--navy); }
.pillar-card p { margin: 0; color: var(--muted); line-height: 1.7; }

/* ---------- MATCHING BANNER ---------- */
.matching-banner {
    position: relative; overflow: hidden; border-radius: 32px; padding: 48px 44px;
    background: linear-gradient(120deg, #0e8a83 0%, #1cb8ac 100%); color: #fff;
}
.matching-copy { position: relative; z-index: 1; max-width: 640px; }
.matching-copy h2 { margin: 6px 0 14px; font-size: clamp(1.6rem, 2.4vw, 2.3rem); color: #fff; }
.matching-copy p { color: rgba(255,255,255,0.84); line-height: 1.7; }
.matching-shape {
    position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242,100,30,0.45), rgba(242,100,30,0) 70%);
}

/* ---------- FOOTER ---------- */
.expo-footer {
    margin-top: 48px; display: flex; flex-wrap: wrap; gap: 28px;
    padding: 40px 36px; background: var(--navy-deep); border-radius: 32px; color: #dfe4ee;
}
.footer-col { min-width: 200px; flex: 1 1 200px; }
.footer-title { margin: 0 0 16px; font-size: 0.98rem; font-weight: 800; color: #fff; }
.footer-desc { margin: 0; max-width: 340px; color: #9aa6bd; line-height: 1.8; }
.footer-links a { display: block; margin-bottom: 10px; color: #9aa6bd; font-size: 0.94rem; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
    width: 100%; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 18px; padding-top: 18px;
    color: #7886a0; font-size: 0.9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---------- AUTH PAGES ---------- */
.auth-wrap { display: flex; justify-content: center; margin-top: 40px; }
.auth-card {
    width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line);
    border-radius: 28px; padding: 38px 34px; box-shadow: 0 24px 50px rgba(20,35,63,0.08);
}
.auth-card h1 { margin: 6px 0 24px; font-size: 1.7rem; color: var(--navy); }
.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 0.86rem; font-weight: 700; color: var(--navy); }
.field input[type=text], .field input[type=email], .field input[type=password] {
    padding: 12px 16px; border-radius: 14px; border: 1px solid #dde2ec;
    background: #f7f8fb; font-size: 0.96rem; color: var(--ink); outline: none;
}
.field input:focus { border-color: var(--orange); background: #fff; }
.field-error { color: #d61f1a; font-size: 0.82rem; font-style: normal; }
.field-check { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.role-options { display: grid; gap: 10px; }
.role-pill {
    display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: 14px;
    border: 1px solid #dde2ec; background: #f7f8fb; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 0.92rem;
}
.role-pill:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-deep); }
.role-pill input { accent-color: var(--orange); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-alt { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 0.92rem; }
.auth-alt a { color: var(--orange); font-weight: 700; }

/* logout button in topbar */
.logout-form { display: inline; margin: 0; }
.logout-form .cta {
    border: none; cursor: pointer; font-family: inherit; font-size: 0.95rem; font-weight: 600;
    padding: 11px 22px; border-radius: 999px; color: #fff; background: var(--orange);
    box-shadow: 0 14px 24px rgba(242, 100, 30, 0.30);
}

/* ---------- DASHBOARD ---------- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.dash-side {
    display: grid; gap: 6px; padding: 16px; background: #fff; border: 1px solid var(--line);
    border-radius: 22px; box-shadow: 0 16px 34px rgba(20,35,63,0.05); position: sticky; top: 90px;
}
.dash-nav {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
    color: var(--navy); font-weight: 600; font-size: 0.93rem;
}
.dash-nav:hover { background: #f5f7fb; }
.dash-nav.is-active { background: var(--orange-soft); color: var(--orange-deep); }
.soon-pill {
    margin-left: auto; font-size: 0.66rem; font-weight: 700; color: var(--muted);
    background: #eef1f6; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}

/* ---------- INQUIRY ---------- */
.inquiry-card {
    display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 30px; align-items: start;
    background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px;
    box-shadow: 0 16px 38px rgba(20,35,63,0.06);
}
.inquiry-intro h2 { margin: 6px 0 12px; font-size: 1.5rem; color: var(--navy); }
.inquiry-intro p { color: var(--muted); line-height: 1.7; }
.inquiry-form { display: grid; gap: 16px; }
.inquiry-form .btn-primary { justify-self: start; }
.inbox-list { display: grid; gap: 14px; }
.inbox-row {
    background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px;
    box-shadow: 0 10px 24px rgba(20,35,63,0.04); display: grid; gap: 10px;
}
.inbox-row.is-unread { border-color: #f4b896; background: linear-gradient(180deg, #fff8f3, #fff); }
.inbox-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.inbox-head strong { color: var(--navy); font-size: 1.04rem; }
.inbox-date { color: var(--muted); font-size: 0.82rem; margin-left: 8px; }
.inbox-contacts { font-size: 0.88rem; color: var(--muted); }
.inbox-contacts a { color: var(--orange-deep); font-weight: 600; }
.inbox-product { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--orange-deep); }
.inbox-message { margin: 0; color: var(--ink); line-height: 1.65; white-space: pre-line; }
.inbox-actions { display: flex; gap: 8px; align-items: center; }
.inbox-actions form { margin: 0; }
.unread-badge {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto;
    background: #ff3b30; color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 800;
}

/* ---------- SAVE / FAVORITES ---------- */
.save-form { display: inline; margin: 0; }
.save-btn {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-family: inherit;
    padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 0.86rem;
    background: #fff; color: var(--navy); border: 1px solid #dde2ec; transition: all .15s ease;
}
.save-btn:hover { border-color: #f4b896; color: var(--orange-deep); }
.save-btn.is-saved { background: var(--orange-soft); border-color: #f4b896; color: var(--orange-deep); }
.save-ico { font-size: 1rem; line-height: 1; }
.save-btn.on-dark { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.30); color: #fff; padding: 13px 22px; font-size: 0.96rem; }
.save-btn.on-dark:hover { background: rgba(255,255,255,0.22); color: #fff; }
.save-btn.on-dark.is-saved { background: var(--orange); border-color: var(--orange); color: #fff; }
.booth-logo.has-img { padding: 0; overflow: hidden; }
.booth-logo.has-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- STATS ---------- */
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px;
    box-shadow: 0 14px 30px rgba(20,35,63,0.04); display: grid; gap: 6px;
}
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.stat-label { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 16px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bar {
    width: 100%; max-width: 30px; min-height: 2px; border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #f2641e, #e0481b); position: relative; display: flex; justify-content: center;
}
.chart-val { position: absolute; top: -18px; font-size: 0.72rem; font-weight: 700; color: var(--orange-deep); }
.chart-label { font-size: 0.68rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.rank-list { display: grid; gap: 8px; }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #f7f8fb; }
.rank-num {
    width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto;
    background: var(--orange-soft); color: var(--orange-deep); font-weight: 800; font-size: 0.85rem;
}
.rank-name { flex: 1; font-weight: 600; color: var(--navy); }
.rank-views { font-weight: 700; color: var(--muted); font-size: 0.88rem; }
.product-hero { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); background: #fff; }

/* ---------- MARKETING POSTS ---------- */
.post-badge {
    display: inline-block; padding: 4px 11px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.post-promotion { background: var(--orange-soft); color: var(--orange-deep); }
.post-news { background: #eaf1ff; color: #2552c9; }
.post-event { background: #ecf7ee; color: #1c7a43; }
.post-draft { background: #eef1f6; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 24px; overflow: hidden; box-shadow: 0 16px 34px rgba(20,35,63,0.05);
    transition: transform .16s ease, box-shadow .16s ease;
}
a.post-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(20,35,63,0.12); }
.post-thumb { height: 150px; background: linear-gradient(135deg, #1ab5a9, #0e837c); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.post-body h3 { margin: 4px 0 0; font-size: 1.06rem; color: var(--navy); line-height: 1.3; }
.post-body p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.post-by { font-weight: 700; color: var(--ink) !important; font-size: 0.88rem !important; }
.post-date { color: var(--orange-deep) !important; font-weight: 700; font-size: 0.85rem !important; }

/* ---------- CATALOG MANAGEMENT ---------- */
.btn-danger {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 0.86rem; cursor: pointer;
    background: #fff; color: #d61f1a; border: 1px solid #f3c4c2; font-family: inherit;
}
.btn-danger:hover { background: #fdeceb; }
.catalog-list { display: grid; gap: 12px; }
.catalog-row {
    display: flex; align-items: center; gap: 16px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 10px 24px rgba(20,35,63,0.04);
}
.catalog-thumb {
    width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: 0 0 auto;
    display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.4rem;
}
.catalog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-info { flex: 1; min-width: 0; }
.catalog-info h3 { margin: 0; font-size: 1.02rem; color: var(--navy); }
.catalog-price { font-size: 0.9rem; font-weight: 700; color: var(--orange-deep); }
.catalog-actions { display: flex; align-items: center; gap: 8px; }
.catalog-actions form { margin: 0; }
.form-thumb { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); margin-top: 8px; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-price { display: inline-block; font-weight: 800; color: var(--orange-deep); font-size: 0.95rem; margin-bottom: 6px; }

/* ---------- PROFILE FORM ---------- */
.flash-ok {
    margin-bottom: 20px; padding: 14px 18px; border-radius: 14px;
    background: #e9f9ef; border: 1px solid #b8e6c8; color: #1c7a43; font-weight: 600;
}
.flash-ok a { color: #1c7a43; text-decoration: underline; }
.profile-form { display: grid; gap: 20px; }
.form-card {
    background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px;
    box-shadow: 0 14px 30px rgba(20,35,63,0.04); display: grid; gap: 16px;
}
.form-card-title { margin: 0; font-size: 1.1rem; color: var(--navy); }
.form-hint { color: var(--muted); font-size: 0.82rem; font-style: normal; }
.field textarea {
    padding: 12px 16px; border-radius: 14px; border: 1px solid #dde2ec; background: #f7f8fb;
    font-size: 0.96rem; color: var(--ink); outline: none; font-family: inherit; resize: vertical;
}
.field textarea:focus { border-color: var(--orange); background: #fff; }
.field select {
    padding: 12px 16px; border-radius: 14px; border: 1px solid #dde2ec; background: #f7f8fb;
    font-size: 0.96rem; color: var(--ink); outline: none; font-weight: 600; cursor: pointer;
}
.field select:focus { border-color: var(--orange); background: #fff; }
.field input[type=file] { font-size: 0.9rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.logo-preview { display: grid; gap: 6px; align-content: start; }
.logo-preview img { width: 80px; height: 80px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.gallery-edit-item { display: grid; gap: 6px; }
.gallery-edit-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.gallery-remove { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.gallery-remove input { accent-color: #d61f1a; }

/* booth logo image + gallery + contacts on public page */
.booth-head-logo.has-img { padding: 0; overflow: hidden; }
.booth-head-logo.has-img img { width: 100%; height: 100%; object-fit: cover; }
.booth-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.booth-gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); transition: transform .16s ease; }
.booth-gallery-item:hover img { transform: scale(1.03); }
.contact-list { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list li > span:first-child { font-size: 0.74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.contact-list a, .contact-list li > span:last-child { color: var(--ink); font-weight: 600; font-size: 0.92rem; word-break: break-word; }
.contact-list a:hover { color: var(--orange); }

/* ---------- FLOOR PLAN ---------- */
.floor-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 20px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.floor-legend span { display: inline-flex; align-items: center; gap: 8px; }
.floor-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-live { background: var(--orange); }
.dot-soon { background: #c8d0dd; }
.floor-venue {
    background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 24px;
    box-shadow: 0 18px 40px rgba(20,35,63,0.06);
}
.floor-entrance {
    text-align: center; font-weight: 800; letter-spacing: .12em; font-size: 0.82rem; color: var(--navy);
    background: linear-gradient(90deg, transparent, #fff1e8 50%, transparent); padding: 12px; border-radius: 14px; margin-bottom: 20px;
}
.floor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.floor-hall {
    display: flex; flex-direction: column; gap: 12px; min-height: 168px;
    padding: 20px; border-radius: 22px; background: #f7f9fc; border: 1px solid #e7ecf3;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.floor-hall:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(20,35,63,0.14); }
.floor-hall.is-live { background: linear-gradient(180deg, #fff7f2 0%, #fff 100%); border-color: #f6c9ac; }
.floor-hall-head { display: flex; align-items: center; justify-content: space-between; }
.floor-hall-code {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--navy); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.floor-hall.is-live .floor-hall-code { background: var(--orange); }
.floor-hall-icon { font-size: 1.5rem; }
.floor-hall h3 { margin: 0; font-size: 1.02rem; color: var(--navy); line-height: 1.3; flex: 1; }
.floor-hall-foot { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; color: var(--muted); font-weight: 600; }
.floor-live { display: inline-flex; align-items: center; gap: 7px; color: var(--orange-deep); }

/* ---------- FILTER BAR ---------- */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px;
    padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 14px 30px rgba(20,35,63,0.05);
}
.filter-input {
    flex: 1 1 260px; min-width: 0;
    padding: 12px 18px; border-radius: 999px; border: 1px solid #dde2ec;
    background: #f7f8fb; font-size: 0.95rem; color: var(--ink); outline: none;
}
.filter-input:focus { border-color: var(--orange); background: #fff; }
.filter-select {
    padding: 12px 16px; border-radius: 999px; border: 1px solid #dde2ec;
    background: #f7f8fb; font-size: 0.92rem; color: var(--ink); font-weight: 600; cursor: pointer; outline: none;
}
.filter-select:focus { border-color: var(--orange); background: #fff; }
.filter-bar .btn-primary, .filter-bar .btn-ghost { padding: 12px 22px; }

/* ---------- PAGINATION ---------- */
.pagination-wrap { margin-top: 30px; display: flex; justify-content: center; }
.pager { display: inline-flex; align-items: center; gap: 6px; }
.pager-link {
    min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 0.92rem;
}
.pager-link:hover { border-color: #f4b896; color: var(--orange-deep); }
.pager-link.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.pager-link.is-disabled { color: #b8bfcc; background: #f6f7f9; cursor: not-allowed; }
.pager-link.is-dots { border: none; background: transparent; }

/* ---------- SUB-PAGE HEADER ---------- */
.page-head {
    position: relative; overflow: hidden; margin-top: 26px;
    border-radius: 34px; padding: 40px 44px;
    background: linear-gradient(135deg, #1fbcb0 0%, #14a097 45%, #0c7670 100%);
    color: #e9f4f3;
}
.page-head-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 12% 20%, rgba(242,100,30,0.40), transparent 34%),
                radial-gradient(circle at 92% 90%, rgba(245,144,32,0.22), transparent 38%);
}
.page-head-inner { position: relative; z-index: 1; }
.back-link { display: inline-block; margin-bottom: 18px; color: #ffb98f; font-weight: 700; font-size: 0.9rem; }
.back-link:hover { color: #fff; }
.page-head-row { display: flex; align-items: center; gap: 18px; }
.page-head-icon {
    display: grid; place-items: center; width: 66px; height: 66px; border-radius: 20px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); font-size: 2rem;
}
.page-head h1 { margin: 8px 0 0; font-size: clamp(1.8rem, 3vw, 2.7rem); color: #fff; }
.hall-letter.on-dark { background: rgba(242,100,30,0.20); color: #ffb98f; }
.page-head-meta { margin: 18px 0 0; color: rgba(255,255,255,0.74); font-weight: 600; }

/* booth header */
.booth-head-row { display: flex; align-items: center; gap: 20px; }
.booth-head-logo {
    width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; flex: 0 0 auto;
    background: #fff; color: var(--orange); font-weight: 900; font-size: 2.2rem;
}
.booth-head-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.booth-head-tags .booth-status { position: static; }
.chip.on-dark { background: rgba(255,255,255,0.14); color: #fff; }
.booth-head-info h1 { margin: 4px 0 0; }
.booth-head-meta { margin: 10px 0 0; color: rgba(255,255,255,0.78); }
.booth-head-meta a { color: #ffb98f; font-weight: 600; }
.booth-head .expo-hero-actions { margin-top: 26px; }

/* empty state */
.empty-state {
    padding: 48px; text-align: center; color: var(--muted); font-weight: 600;
    background: #fff; border: 1px dashed #d4dae5; border-radius: 26px;
}

/* booth detail */
.booth-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.booth-about-text { margin: 6px 0 0; color: var(--ink); line-height: 1.85; font-size: 1.05rem; max-width: 680px; }
.booth-side {
    display: grid; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--line);
    border-radius: 24px; box-shadow: 0 16px 34px rgba(20,35,63,0.05);
}
.booth-side .btn-primary, .booth-side .btn-ghost { width: 100%; }

/* product grid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
    box-shadow: 0 16px 34px rgba(20,35,63,0.05);
}
.product-thumb {
    position: relative; display: grid; place-items: center;
    width: 100%; aspect-ratio: 4 / 3; height: auto; overflow: hidden;
    font-weight: 800; font-size: 1.4rem; color: #fff;
    background: linear-gradient(135deg, #1ab5a9 0%, #0e837c 100%);
}
.product-body { padding: 18px 20px; }
.product-body h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--navy); }
.product-body p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
    .hall-grid { grid-template-columns: repeat(2, 1fr); }
    .booth-grid, .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .expo-hero-inner { grid-template-columns: 1fr; gap: 30px; }
    .expo-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
    .topbar-hamburger { display: flex; }
    .topbar-menu {
        display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 10px; padding: 18px;
        background: #fff; border: 1px solid #e8ebf1; border-radius: 20px;
        box-shadow: 0 24px 45px rgba(20,35,63,0.14);
    }
    #mobile-menu-toggle:checked ~ .topbar-menu { display: flex; }
    .topbar-menu a { padding: 12px 14px; border-radius: 14px; background: #f7f8fb; }
    .topbar-menu a.cta { background: var(--orange); }
    .topbar-brand-group { width: 100%; justify-content: space-between; }
    .topbar-search { order: 3; flex: 1 1 100%; max-width: none; }
    .expo-hero { padding: 38px 26px; }
    .booth-grid, .pillar-grid, .hall-grid, .product-grid, .post-grid { grid-template-columns: 1fr; }
    .expo-stats { grid-template-columns: repeat(2, 1fr); }
    .programme-row { grid-template-columns: 70px 1fr; }
    .programme-action { grid-column: 2; justify-self: start; }
    .programme-time strong { font-size: 1.1rem; }
    .booth-detail-grid { grid-template-columns: 1fr; }
    .page-head { padding: 30px 24px; }
    .filter-input, .filter-select, .filter-bar .btn-primary, .filter-bar .btn-ghost { flex: 1 1 100%; width: 100%; }
    .dash-layout { grid-template-columns: 1fr; }
    .dash-side { position: static; grid-auto-flow: column; overflow-x: auto; }
    .field-row { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; }
    .chart-val { display: none; }
    .inquiry-card { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
}
@media (max-width: 1080px) {
    .product-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .floor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .floor-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROFESSIONAL REFINEMENT PASS
   Tighter radii · softer/shallower shadows · calmer accents ·
   line-icons · disciplined colour (blue = labels, orange = CTA).
   ============================================================ */

/* cleaner page backdrop (drop the peach glow) */
body { background: linear-gradient(180deg, #ffffff 0%, #eef6f5 100%); }

/* line-icon sizing (replaces emoji) */
.ico { width: 22px; height: 22px; display: block; }

/* radii — corporate, less playful */
.brand-mark { border-radius: 9px; }
.topbar { border-radius: 14px; box-shadow: 0 1px 0 rgba(13,58,56,.04), 0 8px 24px rgba(13,58,56,.06); }
.expo-hero, .page-head { border-radius: 18px; padding: 48px 44px; }
.matching-banner, .expo-footer, .floor-venue { border-radius: 16px; }
.hall-card, .booth-card, .programme-list, .pillar-card, .post-card, .product-card,
.stat-card, .auth-card, .inquiry-card, .inbox-row, .booth-side, .dash-side,
.filter-bar, .catalog-row, .empty-state, .form-card { border-radius: 12px; }
.stat { border-radius: 10px; }
.booth-logo { border-radius: 10px; }

/* buttons & inputs — crisper, less "pill", one accent for actions */
.btn-primary, .btn-ghost { border-radius: 8px; font-weight: 600; }
.btn-primary { background: var(--orange); box-shadow: 0 2px 8px rgba(242,100,30,.22); }
.btn-primary:hover { transform: translateY(-1px); background: var(--orange-deep); }
.btn-ghost { box-shadow: none; }
.btn-ghost:hover { transform: translateY(-1px); }
.topbar-menu a.cta, .logout-form .cta { border-radius: 8px; box-shadow: none; background: var(--orange); }
.topbar-search input, .filter-input, .filter-select,
.field input[type=text], .field input[type=email], .field input[type=password],
.field textarea, .field select { border-radius: 8px; }
.topbar-search button { border-radius: 6px; }

/* shadows — soft & shallow, lean on borders */
.hall-card, .booth-card, .programme-list, .pillar-card, .post-card, .product-card,
.stat-card, .auth-card, .inquiry-card, .inbox-row, .booth-side, .dash-side,
.filter-bar, .catalog-row, .form-card {
    box-shadow: 0 1px 2px rgba(13,58,56,.04), 0 6px 16px rgba(13,58,56,.05);
}
.hall-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,58,56,.10); border-color: #c5dedb; }
.booth-card:hover, a.post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,58,56,.10); }

/* hero — calmer glow, tighter headline */
.expo-hero-glow {
    background: radial-gradient(circle at 82% 14%, rgba(135,240,228,.45), transparent 42%),
                radial-gradient(circle at 10% 92%, rgba(7,80,76,.40), transparent 46%);
}
.expo-hero-copy h1 { font-size: clamp(2rem, 3.2vw, 3rem); }
.live-badge { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); font-weight: 600; }

/* headings & labels — editorial, disciplined colour */
.section-heading h2 { font-size: 1.45rem; font-weight: 700; }
.eyebrow { font-size: .72rem; letter-spacing: .14em; color: var(--teal); }
.hall-letter { color: var(--teal); background: var(--teal-soft); }
.chip { background: var(--teal-soft); color: var(--teal); }
.nav-user { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* icon tiles (halls / pillars / page head) */
.hall-icon { color: var(--teal); }
.hall-icon .ico { width: 24px; height: 24px; }
.pillar-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); }
.pillar-icon .ico { width: 24px; height: 24px; }
.page-head-icon { border-radius: 12px; }
.page-head-icon .ico { width: 28px; height: 28px; }

/* home banner strip */
.banner-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.banner-grid.has-multi { grid-template-columns: repeat(2, 1fr); }
.banner-item {
    display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(13,58,56,.04), 0 6px 16px rgba(13,58,56,.05);
    transition: transform .16s ease, box-shadow .16s ease;
}
a.banner-item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,58,56,.10); }
.banner-item img { width: 100%; height: 100%; display: block; aspect-ratio: 24 / 7; object-fit: cover; }
.banner-grid.has-multi .banner-item img { aspect-ratio: 16 / 7; }
@media (max-width: 760px) {
    .banner-grid.has-multi { grid-template-columns: 1fr; }
    .banner-item img { aspect-ratio: 16 / 7; }
}

/* ============================================================
   HOME DASHBOARD — everything in panels on one grid
   ============================================================ */
.home-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 24px; }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; }

.panel {
    display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(13,58,56,.04), 0 6px 16px rgba(13,58,56,.05);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 1.04rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 9px; }
.panel-head h2 .ico { width: 18px; height: 18px; color: var(--teal); }
.panel-head .view-all-link { font-size: .8rem; }
.panel-body { flex: 1; }

/* compact rows */
.mini-list { display: grid; gap: 2px; min-width: 0; }
a.mini-row, .mini-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 8px; border-radius: 8px; color: inherit; }
a.mini-row:hover { background: #f5f9f8; }
.mini-row + .mini-row { border-top: 1px solid #f1f4f4; }
.mini-ava {
    width: 40px; height: 40px; border-radius: 8px; flex: 0 0 auto; overflow: hidden;
    display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--teal);
}
.mini-ava.img-cover { padding: 0; }
.mini-ava img { width: 100%; height: 100%; object-fit: cover; }
.mini-main { flex: 1; min-width: 0; }
.mini-main strong { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; font-weight: 600; color: var(--navy); line-height: 1.3; overflow-wrap: anywhere; }
.mini-main span { font-size: .78rem; color: var(--muted); }
.mini-side { font-size: .85rem; font-weight: 800; color: var(--orange-deep); white-space: nowrap; }
.mini-date { font-size: .72rem; font-weight: 700; color: var(--teal); width: 64px; flex: 0 0 auto; }

/* promo thumbnails grid inside a panel */
.mini-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-thumb { aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; display: block; background: var(--teal-soft); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* zone chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-zone { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-size: .84rem; font-weight: 700; }
.chip-zone b { color: var(--navy); }

/* small empty state inside a panel */
.panel-empty { padding: 22px 12px; text-align: center; color: var(--muted); font-size: .86rem; border: 1px dashed #d9e2e1; border-radius: 8px; }

@media (max-width: 900px) {
    .home-grid { grid-template-columns: repeat(6, 1fr); }
    .col-12, .col-8, .col-6, .col-4 { grid-column: span 6; }
}
@media (max-width: 560px) {
    .home-grid { grid-template-columns: 1fr; }
    .col-12, .col-8, .col-6, .col-4 { grid-column: 1 / -1; }
}

/* --- balance polish: equal-height panels, centered empties --- */
.panel { min-height: 256px; }
.panel-bar { min-height: 0; }                      /* slim full-width bars (zones) */
.panel-body { flex: 1; display: flex; flex-direction: column; }
.panel-empty { margin-top: auto; margin-bottom: auto; }   /* vertically centred */
.panel-bar .panel-body { display: block; }

/* full-width promotion showcase — uniform thumbnails */
#promotions .mini-thumbs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
#promotions .mini-thumb { aspect-ratio: 4 / 3; }

/* keep the three list panels tidy */
.mini-list .mini-row { min-height: 50px; }

/* My Event nav link + saved counter */
.nav-fav { display: inline-flex; align-items: center; gap: 6px; }
.fav-count {
    display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 800; line-height: 1;
}
/* icon-only save button inside cards stays compact */
.booth-actions .save-btn { padding: 9px 12px; }
.product-body .save-btn { margin-top: 12px; }

/* FAQ accordion */
.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2px 18px;
    box-shadow: 0 1px 2px rgba(13,58,56,.04), 0 6px 16px rgba(13,58,56,.05);
}
.faq-item summary {
    cursor: pointer; padding: 15px 0; font-weight: 700; color: var(--navy); list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--teal); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 0 0 16px; color: var(--muted); line-height: 1.7; }
.footer-bottom a:hover { color: var(--orange); }

/* PDPA cookie consent bar */
.cookie-bar {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 300;
    width: min(720px, calc(100% - 32px)); display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap; justify-content: space-between;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
    border: 1px solid #e8ebf1; border-radius: 14px; padding: 14px 18px;
    box-shadow: 0 18px 50px rgba(13,58,56,0.16);
}
.cookie-bar span { font-size: 0.9rem; color: var(--ink); flex: 1 1 280px; }
.cookie-bar a { color: var(--teal); font-weight: 700; }
.cookie-bar[hidden] { display: none; }

.nav-account { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.topbar-menu .nav-login { margin-left: auto; }

/* ============================================================
   ACCOUNT SIDEBAR — polished
   ============================================================ */
.dash-side { padding: 14px; border-radius: 16px; gap: 2px; }

/* user header card */
.acct-head {
    display: flex; align-items: center; gap: 12px;
    padding: 6px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.acct-avatar {
    width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
    display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: #fff;
    background: linear-gradient(135deg, #1ab5a9, #0e837c);
    box-shadow: 0 6px 14px rgba(18,175,171,.28);
}
.acct-meta { min-width: 0; line-height: 1.3; }
.acct-name { display: block; font-weight: 800; color: var(--navy); font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-role { font-size: .72rem; font-weight: 700; color: var(--teal); }

/* nav items */
.dash-nav {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 12px; border-radius: 10px; font-size: .92rem; font-weight: 600; color: #45505f;
    transition: background .14s ease, color .14s ease;
}
.dash-nav .ico { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); transition: color .14s ease; }
.dash-nav:hover { background: #f3f7f6; color: var(--navy); }
.dash-nav:hover .ico { color: var(--teal); }
.dash-nav.is-active { background: var(--teal-soft); color: var(--teal); font-weight: 800; }
.dash-nav.is-active .ico { color: var(--teal); }
.dash-nav .fav-count { margin-left: auto; }

/* section divider label */
.dash-section {
    margin: 14px 12px 4px; font-size: .66rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: #9aa6b2;
}

/* logout — separated, subtle red */
.dash-logout { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dash-logout .dash-nav { color: #c0492f; }
.dash-logout .dash-nav .ico { color: #c0492f; }
.dash-logout .dash-nav:hover { background: #fdeeea; color: #a83c25; }
.dash-logout .dash-nav:hover .ico { color: #a83c25; }

/* show / hide password toggle */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px !important; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border: none; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; padding: 0;
}
.pw-toggle:hover { color: var(--teal); }
.pw-toggle .ico { width: 20px; height: 20px; display: block; }
.pw-toggle .ico-off { display: none; }
.pw-toggle.is-revealed .ico-eye { display: none; }
.pw-toggle.is-revealed .ico-off { display: block; }

/* real brand logo in topbar */
.brand-logo { height: 96px; width: auto; display: block; }
.brand-tag {
    font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--teal); background: var(--teal-soft); padding: 5px 8px; border-radius: 6px; white-space: nowrap;
}
@media (max-width: 760px) {
    .brand-tag { display: none; }
    .brand-logo { height: 64px; }
}
/* bigger top bar, vertically centred so it never looks empty */
.topbar { align-content: center; padding: 22px 28px; }
.topbar-menu { flex-wrap: wrap; }

/* keep the whole bar on one row on desktop (compact search + tighter menu) */
@media (min-width: 761px) {
    .topbar-search { flex: 0 1 280px; max-width: 320px; }
    .topbar-menu { gap: 15px; flex-wrap: nowrap; }
    .topbar-menu a { font-size: 0.9rem; white-space: nowrap; }
}

/* ============================================================
   FULL-WIDTH TOP BAR — edge to edge, flat (not a floating box)
   ============================================================ */
.topbar {
    position: sticky; top: 0; z-index: 200;
    display: block; padding: 0; margin: 0;
    border: none; border-bottom: 1px solid #e8ebf1; border-radius: 0;
    background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px);
    box-shadow: 0 4px 18px rgba(20, 35, 63, 0.06);
    align-content: normal;
}
.topbar-inner {
    width: 100%; max-width: 1280px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 18px; padding: 10px 18px;
}
@media (min-width: 761px) {
    .topbar-inner { flex-wrap: nowrap; justify-content: flex-start; }
    .topbar-search { margin-left: auto; }   /* push search + menu into one tidy group on the right */
}

/* ---------- CONTACT PAGE (readable info cards on top, form below) ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 6px 0 30px; }
.contact-item {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(13,58,56,.04), 0 6px 16px rgba(13,58,56,.05);
}
.contact-item.wide { grid-column: 1 / -1; }
.contact-ico {
    width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
    background: var(--teal-soft); color: var(--teal); display: grid; place-items: center;
}
.contact-ico .ico { width: 24px; height: 24px; }
.contact-item .contact-label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.contact-item .contact-value { font-size: 1.05rem; color: var(--navy); font-weight: 600; line-height: 1.55; }
.contact-item .contact-value a { color: var(--navy); }
.contact-item .contact-value a:hover { color: var(--teal); }

/* bigger, easier-to-read contact form */
#contact-form .field > span { font-size: .95rem; }
#contact-form .field input, #contact-form .field textarea { font-size: 1rem; padding: 13px 16px; }

/* contact cards — stop long text (email) overflowing the frame */
.contact-item > div { min-width: 0; flex: 1; }
.contact-item .contact-value { overflow-wrap: anywhere; word-break: break-word; }

/* contact map */
.contact-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(13,58,56,.04), 0 6px 16px rgba(13,58,56,.05); margin: 0 0 30px; }
.contact-map iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (max-width: 560px) { .contact-map iframe { height: 300px; } }

/* ---------- TOP CONTACT BAR (dark, above main nav) ---------- */
.topbar-contact { background: var(--navy-deep); color: #fff; font-size: .82rem; }
.topbar-contact-inner {
    max-width: 1280px; margin: 0 auto; padding: 7px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.topbar-contact a { color: #fff; transition: color .14s ease; }
.topbar-contact a:hover { color: var(--orange); }
.tc-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tc-left a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.tc-left .ico { width: 15px; height: 15px; }
.tc-social { display: flex; align-items: center; gap: 14px; }
.tc-social a { display: inline-flex; }
@media (max-width: 560px) {
    .topbar-contact-inner { justify-content: center; gap: 16px; }
    .tc-mail { display: none; }
}

/* hero virtual event note (secondary, under CTAs) */
.hero-event-note {
    margin: 20px 0 0; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.72);
    padding-left: 12px; border-left: 2px solid rgba(255,255,255,.3);
}
