:root {
    --bg: #07071a;
    --bg-alt: #0a0a22;
    --card: #100e2c;
    --line: rgba(255, 255, 255, .08);
    --line-soft: rgba(255, 255, 255, .07);
    --text: #f3f1ff;
    --text-2: #e6e3ff;
    --text-3: #d8d4f5;
    --muted: #cfcaf0;
    --muted-2: #bdb8e0;
    --muted-3: #a9a4cf;
    --muted-4: #9a95c2;
    --muted-5: #7d78a6;
    --pink: #ff2e9a;
    --pink-2: #ff5fb0;
    --orange: #ff6a3d;
    --cyan: #19d8e6;
    --cyan-2: #46e0ee;
    --lime: #b4e021;
    --lime-2: #c2e84a;
    --blue: #3f6dff;
    --grad-pink: linear-gradient(100deg, #ff2e9a, #ff6a3d);
    --grad-blue: linear-gradient(100deg, #19d8e6, #3f6dff);
    /* 拉丁字自帶（fonts.css）；中文用系統 CJK 字型（不外連、不打包 CJK 大檔） */
    --display: 'Space Grotesk', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    --sans: 'Manrope', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', 'Microsoft YaHei', sans-serif;
    --max: 1280px;
    --pad: clamp(18px, 4vw, 40px);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }

/* utilities：取代 HTML inline style（配合嚴格 CSP style-src 'self'，見 Program.cs） */
.hidden { display: none !important; }
.u-minw-280 { min-width: 280px; }
.u-mt-8 { margin-top: 8px; }
.u-mt-10 { margin-top: 10px; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-40 { margin-bottom: 40px; }
.dot-a { background: var(--pink); }
.dot-b { background: var(--cyan); }
.kicker-pink { color: var(--pink-2); }
.kicker-cyan { color: var(--cyan-2); }
.kicker-lime { color: var(--lime-2); }
.award-title { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 0 0 16px; color: #fff; }
.footer-contact { font-size: 14px; color: var(--muted); text-decoration: none; }

@keyframes glowpulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.shell {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.display { font-family: var(--display); }

.kicker {
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title {
    font-family: var(--display);
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 700;
    margin: 12px 0 8px;
    line-height: 1.05;
}

.section-lead {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted-3);
    max-width: 560px;
    margin: 0;
}

.pill-btn {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: filter .15s, background .15s;
}

.pill-primary {
    color: #07071a;
    background: var(--grad-pink);
    box-shadow: 0 12px 30px -10px rgba(255, 46, 154, .7);
}

.pill-primary:hover { filter: brightness(1.08); }

.pill-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .2);
}

.pill-ghost:hover { background: rgba(255, 255, 255, .12); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 7, 26, .72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img { height: 30px; width: auto; display: block; }

.brand-tag {
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-3);
    border-left: 1px solid rgba(255, 255, 255, .16);
    padding-left: 14px;
}

.nav-desktop { display: flex; align-items: center; gap: 30px; }

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-3);
    text-decoration: none;
    letter-spacing: .01em;
}

.nav-link:hover { color: #fff; }

.lang-switch {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 3px;
}

.lang-btn {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    padding: 6px 13px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
    background: transparent;
    color: var(--muted);
    transition: all .15s;
}

.lang-btn.active { background: var(--grad-pink); color: #07071a; }

.nav-cta {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #07071a;
    text-decoration: none;
    background: var(--grad-pink);
    padding: 11px 22px;
    border-radius: 999px;
    box-shadow: 0 8px 22px -8px rgba(255, 46, 154, .7);
}

.nav-cta:hover { filter: brightness(1.08); }

.mobile-controls { display: none; align-items: center; gap: 12px; }

.menu-btn {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    cursor: pointer;
}

.menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(7, 7, 26, .97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 24px clamp(18px, 5vw, 40px);
    display: none;
}

.mobile-menu.open { display: flex; }

.mobile-menu-close { display: flex; justify-content: flex-end; }

.icon-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 30px; }

.mobile-nav a {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.mobile-nav .cta {
    margin-top: 18px;
    font-size: 18px;
    text-align: center;
    color: #07071a;
    background: var(--grad-pink);
    padding: 16px;
    border-radius: 14px;
    border-bottom: none;
}

/* Hero */
.hero { position: relative; background: var(--bg); }

.hero img { width: 100%; display: block; }

.hero-banner {
    aspect-ratio: 16 / 9;
    max-height: 84vh;
    object-fit: cover;
    object-position: 50% 42%;
}

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32%;
    background: linear-gradient(to bottom, rgba(7, 7, 26, 0), #07071a);
    pointer-events: none;
}

/* Event bar */
.event-bar { background: var(--bg); border-bottom: 1px solid var(--line-soft); }

.event-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(26px, 4vw, 44px) var(--pad);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.event-title {
    font-family: var(--display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    line-height: 1.15;
    background: linear-gradient(100deg, #e9d8ff, #ff9ed6 35%, #9fe8ff 70%, #b8fbd9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.event-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 16px; }

.event-meta-item { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--muted); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }

.event-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.event-actions .pill-btn { font-size: 16px; padding: 15px 30px; }

/* Organizers */
.organizers { background: var(--bg); border-bottom: 1px solid var(--line-soft); }

.organizers-grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(34px, 5vw, 56px) var(--pad);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.org-card { border-radius: 18px; padding: 24px 26px; }

.org-card.host { background: linear-gradient(160deg, rgba(255, 46, 154, .12), rgba(255, 46, 154, .02)); border: 1px solid rgba(255, 46, 154, .28); }

.org-card.co1 { background: linear-gradient(160deg, rgba(25, 216, 230, .1), rgba(25, 216, 230, .02)); border: 1px solid rgba(25, 216, 230, .28); }

.org-card.co2 { background: linear-gradient(160deg, rgba(180, 224, 33, .1), rgba(180, 224, 33, .02)); border: 1px solid rgba(180, 224, 33, .26); }

.org-label { font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }

.org-card.host .org-label { color: var(--pink-2); }
.org-card.co1 .org-label { color: #2fe0ee; }
.org-card.co2 .org-label { color: var(--lime-2); }

.org-name { font-family: var(--display); font-size: 30px; font-weight: 700; margin-top: 8px; }
.org-full { font-size: 15px; color: var(--text-2); margin-top: 8px; font-weight: 600; }
.org-org { font-size: 13px; color: var(--muted-4); margin-top: 3px; }

/* Section shell */
.section { background: var(--bg); position: relative; overflow: hidden; }
.section-inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--pad); position: relative; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.glow {
    position: absolute;
    width: 320px;
    height: 320px;
    filter: blur(90px);
    opacity: .16;
    border-radius: 50%;
    pointer-events: none;
}

.glow.agenda { top: -90px; right: -90px; background: conic-gradient(from 45deg, #ff2e9a, #7a3cff, #19d8e6, #ff2e9a); }
.glow.poster { bottom: -100px; left: -80px; background: conic-gradient(from 200deg, #b4e021, #19d8e6, #ff2e9a, #b4e021); opacity: .14; filter: blur(100px); }

.section-intro {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted-3);
    max-width: 560px;
    margin: 0 0 44px;
}

/* Agenda */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
    align-items: start;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.card-stripe { height: 5px; }
.stripe-pink { background: linear-gradient(90deg, #ff2e9a, #ff6a3d); }
.stripe-cyan { background: linear-gradient(90deg, #19d8e6, #3f6dff); }
.stripe-lime { background: linear-gradient(90deg, #b4e021, #19d8e6); }
.stripe-award { background: linear-gradient(90deg, #ffcf5c, #cfd6e6, #e0965c); }

.card-body { padding: 26px 26px 28px; }

.card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.card-head h3 { font-family: var(--display); font-size: 21px; font-weight: 600; margin: 0; }
.card-date { font-size: 12px; font-weight: 600; white-space: nowrap; }
.card-date.pink { color: #ff7eb8; }
.card-date.cyan { color: var(--cyan-2); }
.card-date.lime { color: var(--lime-2); }

.agenda-row {
    display: flex;
    gap: 16px;
    padding: 15px 0;
    border-top: 1px solid var(--line-soft);
}

.agenda-row-date {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    color: var(--pink-2);
    min-width: 72px;
}

.agenda-row-text { font-size: 15px; color: var(--text-2); font-weight: 500; }

.anniv-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--line-soft);
}

.anniv-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--cyan); flex: none; }

.conf-groups { display: flex; flex-direction: column; gap: 20px; }
.conf-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.conf-group-head span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.conf-group-head h4 { font-family: var(--display); font-size: 15px; font-weight: 600; margin: 0; color: #fff; }
.conf-bullets { display: flex; flex-wrap: wrap; gap: 7px; padding-left: 20px; }

.chip {
    font-size: 13px;
    color: var(--muted-2);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    padding: 5px 11px;
    border-radius: 8px;
}

/* Section header with rail controls */
.rail-header {
    padding: 0 var(--pad);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

.section.alt .section-inner { padding-left: 0; padding-right: 0; }

.rail-controls { display: flex; gap: 12px; }

.rail-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

.rail-btn:hover { background: rgba(255, 255, 255, .14); }

.rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 6px var(--pad) 14px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.rail::-webkit-scrollbar { display: none; }

/* Speaker cards */
.speaker-card {
    flex: 0 0 clamp(258px, 78vw, 306px);
    scroll-snap-align: start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.speaker-avatar {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-initial { font-family: var(--display); font-size: 64px; font-weight: 700; opacity: .85; }

.speaker-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(7, 7, 26, .5);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 5px 10px;
    border-radius: 999px;
}

.speaker-body { padding: 20px 22px 24px; }
.speaker-name { font-family: var(--display); font-size: 19px; font-weight: 600; color: #fff; }
.speaker-org { font-size: 13px; color: var(--muted-4); margin-top: 4px; }
.speaker-rule { height: 1px; background: var(--line); margin: 16px 0; }
.speaker-talk { font-size: 14px; color: var(--text-3); line-height: 1.45; font-style: italic; }

/* Poster */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    align-items: start;
}

.poster-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 28px 30px; }
.poster-card h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 0 0 12px; color: #fff; }
.poster-card p { font-size: 15px; line-height: 1.6; color: var(--muted-2); margin: 0 0 24px; }
.poster-card p:last-child { margin-bottom: 0; }

.award-list { display: flex; flex-direction: column; gap: 10px; }

.award-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
}

.award-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.award-tier { flex: 1; font-size: 15px; font-weight: 600; color: var(--text); }
.award-prize { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--text-2); }

.key-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.key-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.key-label.pink { color: var(--pink-2); }
.key-label.cyan { color: var(--cyan-2); }
.key-val { font-size: 15px; color: var(--text-2); font-weight: 600; margin-top: 4px; }

.poster-submit { margin-top: 20px; font-size: 14px; color: var(--muted-2); line-height: 1.6; }
.poster-submit a { color: var(--lime-2); text-decoration: none; font-weight: 600; }
.poster-submit a:hover { text-decoration: underline; }
.poster-soon { margin-top: 12px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted-4); }
.poster-soon span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: glowpulse 1.8s ease-in-out infinite; }

/* Register */
.register-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 104px) var(--pad);
    position: relative;
    text-align: center;
}

.register-glow {
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    width: 520px;
    height: 320px;
    background: conic-gradient(from 90deg, #ff2e9a, #7a3cff, #19d8e6, #b4e021, #ff2e9a);
    filter: blur(110px);
    opacity: .2;
    border-radius: 50%;
    pointer-events: none;
}

.register-inner h2 { font-family: var(--display); font-size: clamp(36px, 6vw, 62px); font-weight: 700; margin: 14px 0; line-height: 1.02; }
.register-desc { font-size: clamp(15px, 1.7vw, 19px); color: var(--muted-2); max-width: 520px; margin: 0 auto 38px; }
.register-actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }

.register-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    padding: 18px 34px;
    border-radius: 14px;
    cursor: pointer;
    border: none;
}

.register-btn.local { color: #07071a; background: var(--grad-pink); box-shadow: 0 16px 40px -12px rgba(255, 46, 154, .65); }
.register-btn.intl { color: #07071a; background: var(--grad-blue); box-shadow: 0 16px 40px -12px rgba(25, 216, 230, .55); }
.register-btn:hover { filter: brightness(1.08); }
.register-note { font-size: 13px; color: var(--muted-5); margin-top: 26px; }

/* Sponsors */
.sponsor-card {
    flex: 0 0 clamp(220px, 62vw, 272px);
    scroll-snap-align: start;
    aspect-ratio: 3 / 2;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    position: relative;
}

.sponsor-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.sponsor-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sponsor-placeholder .name { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--muted); }
.sponsor-placeholder .cta { font-size: 12px; color: var(--muted-5); }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 72px) var(--pad) 30px;
}

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px; }
.footer-logo { height: 30px; width: auto; display: block; margin-bottom: 14px; }
.footer-title { font-family: var(--display); font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.footer-desc { font-size: 14px; color: var(--muted-3); line-height: 1.6; }
.footer-sub { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-sub-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #2fe0ee; font-weight: 600; margin-bottom: 6px; }
.footer-sub-val { font-size: 14px; color: var(--text-2); font-weight: 600; }
.footer-sub-full { font-size: 12px; color: var(--muted-5); line-height: 1.5; margin-top: 4px; }

.footer-col-title { font-family: var(--display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer-col-title.pink { color: var(--pink-2); }
.footer-col-title.cyan { color: var(--cyan-2); }
.footer-col-title.lime { color: var(--lime-2); }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-contact-block { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.footer-mini-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-5); font-weight: 600; }
.footer-mini-val { font-size: 13px; color: var(--muted); margin-top: 3px; }
.footer-pay { margin-top: 18px; font-size: 13px; color: var(--muted-5); display: flex; align-items: center; gap: 8px; }
.footer-pay span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

.footer-bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-bottom div { font-size: 13px; color: var(--muted-5); }
.footer-bottom a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(4, 4, 14, .8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(14px, 4vh, 52px) 14px;
    overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal {
    width: 100%;
    max-width: 580px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .75);
    overflow: hidden;
}

.modal-head {
    padding: 26px 28px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--pink-2); font-weight: 600; }
.modal-head h3 { font-family: var(--display); font-size: 30px; font-weight: 700; margin: 8px 0 0; }

.modal-close {
    flex: none;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

.modal-close:hover { background: rgba(255, 255, 255, .14); }

.modal-body { padding: 20px 28px 28px; }

.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted-2); margin-bottom: 7px; }
.field-label .req { color: var(--pink-2); }
.field-label .opt { font-weight: 500; color: var(--muted-5); }

.identity-switch { display: flex; gap: 10px; margin-bottom: 14px; }

.identity-btn {
    flex: 1;
    font-family: var(--display);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 13px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .12);
    color: var(--muted);
    transition: all .15s;
}

.identity-btn.active-local { background: var(--grad-pink); color: #07071a; border-color: transparent; }
.identity-btn.active-intl { background: var(--grad-blue); color: #07071a; border-color: transparent; }

.identity-fee { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-4); margin-bottom: 26px; }
.identity-fee span:first-child { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-2); }

.field-stack { display: flex; flex-direction: column; gap: 16px; }

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus { border-color: var(--pink); }

.field-textarea { line-height: 1.5; resize: vertical; }

.field-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23a9a4cf' stroke-width='1.5' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.field-select option { color: #07071a; }

.field-block { margin-top: 24px; }

.field-error { color: #ff7eb8; font-size: 12px; margin-top: 6px; }

.diet-list { display: flex; flex-wrap: wrap; gap: 9px; }

.diet-btn {
    font-size: 14px;
    padding: 9px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    transition: all .15s;
}

.diet-btn.on { border-color: var(--pink); background: rgba(255, 46, 154, .16); color: #fff; }

.sessions-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.sessions-hint { font-size: 12px; color: var(--muted-5); }

.session-list { display: flex; flex-direction: column; gap: 9px; }

.session-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
}

.session-row.on { border-color: rgba(25, 216, 230, .5); background: rgba(25, 216, 230, .1); }

.session-box {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    color: transparent;
    border: 1px solid rgba(255, 255, 255, .28);
}

.session-row.on .session-box { background: linear-gradient(120deg, #19d8e6, #3f6dff); color: #07071a; border: 1px solid transparent; }

.session-label { font-size: 15px; color: var(--text-2); font-weight: 500; }

.submit-btn {
    width: 100%;
    margin-top: 28px;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
    color: #07071a;
    border: none;
    cursor: pointer;
    background: var(--grad-pink);
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 14px 34px -12px rgba(255, 46, 154, .6);
}

.submit-btn:hover { filter: brightness(1.08); }

.success-view { padding: 30px 32px 44px; text-align: center; }

.success-check {
    width: 78px;
    height: 78px;
    margin: 14px auto 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(180, 224, 33, .28), rgba(180, 224, 33, .04) 70%);
    border: 1px solid rgba(180, 224, 33, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--lime-2);
}

.success-view h3 {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 700;
    margin: 22px 0 0;
    background: linear-gradient(100deg, #c2e84a, #19d8e6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.success-view p { font-size: 16px; color: var(--muted-2); line-height: 1.55; max-width: 400px; margin: 14px auto 0; }
.success-resend { font-size: 14px; margin-top: 10px; }
.success-resend a { color: var(--cyan-2); }

.success-close {
    margin-top: 30px;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .2);
    cursor: pointer;
    background: rgba(255, 255, 255, .06);
    padding: 13px 34px;
    border-radius: 12px;
}

.success-close:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 859px) {
    .nav-desktop { display: none; }
    .mobile-controls { display: flex; }
}

/* 認證／重寄等獨立通知頁：置中卡片 */
.notice-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--pad);
    background: radial-gradient(1200px 600px at 50% -10%, rgba(255, 46, 154, .12), transparent 60%), var(--bg);
}

.notice-card {
    width: 100%;
    max-width: 480px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(28px, 5vw, 44px);
    text-align: center;
}

.notice-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.notice-icon.ok { background: rgba(180, 224, 33, .16); color: var(--lime-2); }
.notice-icon.info { background: rgba(25, 216, 230, .16); color: var(--cyan-2); }
.notice-icon.warn { background: rgba(255, 106, 61, .16); color: var(--orange); }

.notice-card h1 {
    font-family: var(--display);
    font-size: clamp(22px, 4vw, 28px);
    margin: 0 0 12px;
}

.notice-card p { color: var(--muted-2); line-height: 1.7; margin: 0 0 14px; }

.notice-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
    text-align: left;
}

.notice-form label { font-size: 14px; color: var(--muted-3); }

.notice-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}

.notice-form .field-error { color: var(--pink-2); font-size: 13px; margin: 0; }

.notice-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 13px 22px;
    border: none;
    border-radius: 10px;
    background: var(--grad-pink);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.notice-link { display: inline-block; margin-top: 18px; color: var(--cyan-2); font-size: 14px; }
