/* ============================================
   共用頁首／頁尾（由 site.js 注入）
   所有前台頁面（首頁、登入、註冊、會員中心）共用同一份
   ============================================ */

.sh, .sf, .sh-overlay {
    font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color: #1a1a1a;
}
.sh *, .sh *::before, .sh *::after,
.sf *, .sf *::before, .sf *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sh a, .sf a, .sh-overlay a { text-decoration: none; color: inherit; }
.sh ul, .sf ul { list-style: none; }
.sh svg, .sf svg { display: block; }

.sh-wrap, .sf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ===== Header ===== */
.sh {
    position: sticky; top: 0; z-index: 1000; width: 100%;
    background: rgba(247,246,242,0.95);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s, background-color 0.3s;
}
.sh.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.sh-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.sh-left { display: flex; align-items: center; gap: 40px; }
.sh-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; }
.sh-logo svg { width: 32px; height: 32px; }
.lg-bg { fill: #1a1a1a; }
.lg-z { stroke: #fff; }
.lg-ring { stroke: #4fbf8f; }
.sh-links { display: flex; gap: 32px; }
.sh-links a { font-size: 15px; color: #666; position: relative; padding: 4px 0; transition: color 0.2s; }
.sh-links a:hover, .sh-links a.active { color: #1a1a1a; }
.sh-links a.active::after {
    content: ''; position: absolute; bottom: -24px; left: 0; width: 100%; height: 3px;
    background: #1a1a1a; border-radius: 2px 2px 0 0;
}
.sh-right { display: flex; align-items: center; gap: 8px; }
.sh-account { display: flex; align-items: center; gap: 20px; }

/* 深淺色切換：無邊框、圖示以旋轉淡入切換 */
.sh-theme {
    position: relative; width: 40px; height: 40px; flex-shrink: 0;
    border: 0; outline: none; background: transparent; padding: 0;
    border-radius: 50%; cursor: pointer;
    -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
    transition: background-color 0.25s;
}
.sh-theme:hover { background: rgba(0,0,0,0.06); }
.sh-theme:active { background: rgba(0,0,0,0.1); }
.sh-theme:focus-visible { box-shadow: 0 0 0 2px rgba(44,122,92,0.45); }
.sh-theme svg {
    position: absolute; top: 10px; left: 10px; width: 20px; height: 20px;
    transition: transform 0.45s ease, opacity 0.3s ease;
}
.sh-theme .sh-moon { fill: #666; opacity: 1; transform: rotate(0deg) scale(1); }
.sh-theme .sh-sun { fill: #f5b041; opacity: 0; transform: rotate(-90deg) scale(0.4); }
body[data-theme="dark"] .sh-theme .sh-moon { opacity: 0; transform: rotate(90deg) scale(0.4); }
body[data-theme="dark"] .sh-theme .sh-sun { opacity: 1; transform: rotate(0deg) scale(1); }

.sh-login { font-size: 14px; color: #666; padding: 8px 16px; cursor: pointer; transition: color 0.2s; white-space: nowrap; }
.sh-login:hover { color: #1a1a1a; }
.sh-register {
    background: #1a1a1a; color: #fff !important; font-size: 14px; font-weight: 500;
    padding: 10px 24px; border-radius: 8px; border: 0; cursor: pointer; white-space: nowrap;
    font-family: inherit; transition: background 0.2s, transform 0.15s;
}
.sh-register:hover { background: #333; transform: translateY(-1px); }

.sh-balance {
    display: flex; align-items: center; gap: 8px; font-size: 14px; color: #666;
    padding-right: 20px; border-right: 1px solid rgba(0,0,0,0.08);
}
.sh-balance-label { color: #999; }
.sh-balance-val { font-weight: 600; color: #333; letter-spacing: 0.5px; }
.sh-eye {
    display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
    border: 0; outline: none; background: transparent; border-radius: 50%; cursor: pointer;
    opacity: 0.6; transition: opacity 0.2s; -webkit-tap-highlight-color: transparent;
}
.sh-eye:hover { opacity: 1; }
.sh-eye svg { width: 18px; height: 18px; fill: #999; transition: fill 0.2s; }
.sh-eye:hover svg { fill: #666; }
.sh-eye:focus-visible { box-shadow: 0 0 0 2px rgba(44,122,92,0.45); }
.sh-balance-val { font-variant-numeric: tabular-nums; min-width: 1ch; }
.sh-user { position: relative; display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: #333; }
.sh-user-link { display: flex; align-items: center; gap: 10px; }

/* 用戶名稱右邊的「三個點」與下拉選單 */
.sh-more {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; padding: 0;
    border: 0; outline: none; background: transparent; border-radius: 50%; color: #888; cursor: pointer;
    -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; transition: background-color 0.2s, color 0.2s;
}
.sh-more svg { width: 20px; height: 20px; fill: currentColor; }
.sh-more:hover, .sh-more[aria-expanded="true"] { background: rgba(0,0,0,0.06); color: #1a1a1a; }
.sh-more:focus-visible { box-shadow: 0 0 0 2px rgba(44,122,92,0.45); }
.sh-menu {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 1100; width: 232px; max-width: calc(100vw - 24px); padding: 6px;
    background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    font-weight: 500; animation: sh-menu-in 0.16s ease;
}
.sh-menu[hidden] { display: none; }
@keyframes sh-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.sh-menu-group + .sh-menu-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(0,0,0,0.06); }
.sh-menu-item {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent;
    font: inherit; font-size: 14px; color: #333; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.15s;
}
.sh-menu-item svg { width: 18px; height: 18px; flex-shrink: 0; fill: #999; }
.sh-menu-item:hover, .sh-menu-item:focus-visible { background: #f4f3ee; outline: none; }
.sh-menu-item.danger, .sh-menu-item.danger svg { color: #b94a38; fill: #b94a38; }
body[data-theme="dark"] .sh-more { color: #999; }
body[data-theme="dark"] .sh-more:hover, body[data-theme="dark"] .sh-more[aria-expanded="true"] { background: rgba(255,255,255,0.1); color: #fff; }
body[data-theme="dark"] .sh-menu { background: #1e1e1e; border-color: rgba(255,255,255,0.1); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
body[data-theme="dark"] .sh-menu-group + .sh-menu-group { border-top-color: rgba(255,255,255,0.08); }
body[data-theme="dark"] .sh-menu-item { color: #e0e0e0; }
body[data-theme="dark"] .sh-menu-item svg { fill: #aaa; }
body[data-theme="dark"] .sh-menu-item:hover, body[data-theme="dark"] .sh-menu-item:focus-visible { background: #2a2a2a; }
body[data-theme="dark"] .sh-menu-item.danger, body[data-theme="dark"] .sh-menu-item.danger svg { color: #ef8a7a; fill: #ef8a7a; }
.sh-avatar {
    width: 32px; height: 32px; background: #2c7a5c; color: #fff; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
}

/* 手機選單 */
.sh-burger {
    display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    -webkit-tap-highlight-color: transparent; outline: none;
}
.sh-burger span { display: block; width: 22px; height: 2px; background: #1a1a1a; border-radius: 2px; transition: all 0.3s ease; }
.sh-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.sh-burger.active span:nth-child(2) { opacity: 0; }
.sh-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.sh-overlay {
    position: fixed; top: 72px; left: 0; width: 100%; height: calc(100vh - 72px);
    background: rgba(247,246,242,0.98); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    display: none; flex-direction: column; padding: 24px; z-index: 999;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.sh-overlay.active { display: flex; }
.sh-overlay a { font-size: 17px; color: #666; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.sh-overlay a:hover { color: #1a1a1a; }

/* ===== Footer ===== */
.sf { padding: 80px 0 40px; border-top: 1px solid rgba(0,0,0,0.08); margin-top: auto; }
.sf-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.sf-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 8px; }
.sf-logo svg { width: 28px; height: 28px; }
.sf-desc { font-size: 15px; color: #777; margin-top: 12px; max-width: 300px; line-height: 1.7; }
.sf-col-title { font-size: 14px; color: #999; margin-bottom: 20px; letter-spacing: 0.5px; }
.sf-col a { display: block; font-size: 15px; color: #666; padding: 8px 0; transition: color 0.2s; }
.sf-col a:hover { color: #1a1a1a; }

.sf-trust {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
    background: rgba(0,0,0,0.06); border-radius: 10px; overflow: hidden; margin-bottom: 40px;
}
.sf-trust-card { background: #f7f6f2; padding: 28px 24px; display: flex; align-items: center; gap: 14px; transition: background-color 0.3s; }
.sf-trust-card svg { width: 22px; height: 22px; fill: #999; }
.sf-trust-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.sf-trust-desc { font-size: 13px; color: #999; }

.sf-risk {
    background: #f0efe9; border-radius: 12px; padding: 28px 32px;
    margin-bottom: 40px; border: 1px solid rgba(0,0,0,0.06); transition: background-color 0.3s;
}
.sf-risk-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.sf-risk-head svg { width: 20px; height: 20px; fill: #c9a227; flex-shrink: 0; }
.sf-risk p { font-size: 14px; color: #888; line-height: 1.9; margin-bottom: 10px; }
.sf-risk p:last-child { margin-bottom: 0; }

.sf-bottom { padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.08); }
.sf-copy { font-size: 14px; color: #666; }
.sf-copy strong { font-weight: 700; }
.sf-legal { font-size: 13px; color: #999; margin-top: 4px; }

/* ===== Dark ===== */
body[data-theme="dark"] .sh, body[data-theme="dark"] .sf { color: #e0e0e0; }
body[data-theme="dark"] .sh { background: rgba(18,18,18,0.95); border-bottom-color: rgba(255,255,255,0.08); }
body[data-theme="dark"] .sh.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
body[data-theme="dark"] .lg-bg { fill: #f7f6f2; }
body[data-theme="dark"] .lg-z { stroke: #1a1a1a; }
body[data-theme="dark"] .lg-ring { stroke: #2c9e6f; }
body[data-theme="dark"] .sh-links a, body[data-theme="dark"] .sh-login { color: #aaa; }
body[data-theme="dark"] .sh-links a:hover, body[data-theme="dark"] .sh-links a.active, body[data-theme="dark"] .sh-login:hover { color: #fff; }
body[data-theme="dark"] .sh-links a.active::after { background: #fff; }
body[data-theme="dark"] .sh-theme:hover { background: rgba(255,255,255,0.1); }
body[data-theme="dark"] .sh-theme:active { background: rgba(255,255,255,0.16); }
body[data-theme="dark"] .sh-register { background: #f7f6f2; color: #1a1a1a !important; }
body[data-theme="dark"] .sh-register:hover { background: #fff; }
body[data-theme="dark"] .sh-balance { color: #aaa; border-right-color: rgba(255,255,255,0.1); }
body[data-theme="dark"] .sh-balance-val, body[data-theme="dark"] .sh-user { color: #e0e0e0; }
body[data-theme="dark"] .sh-burger span { background: #e0e0e0; }
body[data-theme="dark"] .sh-eye:hover svg { fill: #ddd; }
body[data-theme="dark"] .sh-overlay { background: rgba(18,18,18,0.98); border-top-color: rgba(255,255,255,0.08); }
body[data-theme="dark"] .sh-overlay a { color: #aaa; border-bottom-color: rgba(255,255,255,0.08); }
body[data-theme="dark"] .sh-overlay a:hover { color: #fff; }
body[data-theme="dark"] .sf { border-top-color: rgba(255,255,255,0.08); }
body[data-theme="dark"] .sf-desc { color: #999; }
body[data-theme="dark"] .sf-col a { color: #aaa; }
body[data-theme="dark"] .sf-col a:hover { color: #fff; }
body[data-theme="dark"] .sf-trust { background: rgba(255,255,255,0.08); }
body[data-theme="dark"] .sf-trust-card { background: #1e1e1e; }
body[data-theme="dark"] .sf-risk { background: #1a1a1a; border-color: rgba(255,255,255,0.08); }
body[data-theme="dark"] .sf-risk p { color: #999; }
body[data-theme="dark"] .sf-bottom { border-top-color: rgba(255,255,255,0.08); }
body[data-theme="dark"] .sf-copy { color: #aaa; }

/* 頁面固定不左右滑：超出的內容直接裁掉，手指橫向拖動也不會移動畫面（上下捲動與雙指縮放照常）。
   html 用 hidden、body 用 clip：兩者都設 hidden 會讓 body 變成捲動容器，黏在頂端的頁首就失效 */
html { overflow-x: hidden; touch-action: pan-y pinch-zoom; }
body { overflow-x: clip; touch-action: pan-y pinch-zoom; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sf-top { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .sf-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sh-links { display: none; }
    .sh-burger { display: flex; }
    .sh-wrap { height: 64px; padding: 0 16px; }
    .sh-overlay { top: 64px; height: calc(100vh - 64px); }
    .sh-account { gap: 8px; }
    .sh-balance { padding-right: 12px; }
    .sf { padding: 60px 0 32px; }
    .sf-wrap { padding: 0 16px; }
    .sf-top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
    .sf-trust-card { padding: 20px 16px; }
    .sf-risk { padding: 20px 24px; margin-bottom: 32px; }
    .sf-bottom { text-align: center; }
}
@media (max-width: 480px) {
    /* 頁首要在 360 寬的手機上放得下 logo、語言、深淺色、餘額、頭像與選單，不能把畫面撐寬 */
    .sh-wrap { padding: 0 12px; }
    .sh-left { min-width: 0; }
    .sh-logo { font-size: 16px; gap: 6px; letter-spacing: 0.04em; }
    .sh-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
    .sh-right { gap: 0; min-width: 0; }
    .lang-btn { padding: 0 6px; }
    .sh-theme { width: 32px; height: 32px; }
    .sh-theme svg { top: 6px; left: 6px; }
    .sh-account { gap: 2px; }
    .sh-balance { gap: 2px; padding-right: 6px; font-size: 13px; }
    .sh-eye { width: 22px; height: 22px; }
    .sh-avatar { width: 28px; height: 28px; font-size: 13px; }
    .sh-more { width: 26px; height: 26px; }
    .sh-more svg { width: 18px; height: 18px; }
    .sh-burger { width: 32px; height: 32px; }
    .sh-login { padding: 8px 8px; }
    .sh-register { padding: 8px 14px; font-size: 13px; }
    .sh-balance-label { display: none; }
    .sh-user-name { display: none; }
    .sf-trust { grid-template-columns: 1fr; }
}
@media (max-width: 379px) {
    .sh-logo span { display: none; }
}

/* 深色模式：原生控制項（勾選框、日期、下拉、捲軸）一併使用深色外觀 */
html:has(body[data-theme="dark"]) { color-scheme: dark; }
body[data-theme="dark"] { color-scheme: dark; }

/* ===== 懸浮按鈕（在線客服、回到頂部） ===== */
.sfloat {
    position: fixed; bottom: 32px; right: 32px; z-index: 999;
    display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sfloat.visible { opacity: 1; visibility: visible; }
.sfloat button { display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.sfloat-cs { gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; background: #1a1a1a; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.sfloat-cs svg { width: 18px; height: 18px; fill: #fff; }
.sfloat-cs span { color: #fff; font-size: 13px; white-space: nowrap; }
.sfloat-cs:hover { background: #333; transform: translateY(-2px); }
.sfloat-top { width: 48px; height: 48px; border-radius: 10px; background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.1) !important; }
.sfloat-top svg { width: 20px; height: 20px; fill: #999; }
.sfloat-top:hover { background: #fff; border-color: rgba(0,0,0,0.2) !important; transform: translateY(-2px); }
body[data-theme="dark"] .sfloat-cs { background: #f7f6f2; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
body[data-theme="dark"] .sfloat-cs:hover { background: #fff; }
body[data-theme="dark"] .sfloat-cs svg { fill: #1a1a1a; }
body[data-theme="dark"] .sfloat-cs span { color: #1a1a1a; }
body[data-theme="dark"] .sfloat-top { background: rgba(32,32,32,0.92); border-color: rgba(255,255,255,0.14) !important; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
body[data-theme="dark"] .sfloat-top svg { fill: #bbb; }
body[data-theme="dark"] .sfloat-top:hover { background: #2c2c2c; border-color: rgba(255,255,255,0.3) !important; }
body[data-theme="dark"] .sfloat-top:hover svg { fill: #fff; }
@media (max-width: 768px) { .sfloat { bottom: 20px; right: 20px; } }

/* ===== 切換深淺色時暫停所有過場動畫，避免整頁同時漸變造成卡頓（由 site.js 加上與移除） ===== */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* ===== 密碼欄位：隱藏瀏覽器內建的金鑰與顯示按鈕，避免蓋住頁面自己的眼睛圖示 ===== */
input[type="password"]::-webkit-credentials-auto-fill-button { visibility: hidden; display: none !important; pointer-events: none; position: absolute; right: 0; }
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear { display: none; }

/* ===== 載入視窗（由 site.js 建立；等待超過一小段時間才顯示） ===== */
.sl-overlay {
    position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(20,20,20,0.45); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
}
.sl-overlay.show { opacity: 1; visibility: visible; transition-delay: 0s; }
.sl-card {
    width: min(340px, 100%); padding: 36px 32px 32px; border-radius: 14px; text-align: center;
    background: #fff; color: #1a1a1a; box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.sl-title { font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -0.2px; }
.sl-desc { margin-top: 4px; font-size: 14px; color: #777; }
.sl-spin { display: block; width: 36px; height: 36px; margin: 24px auto 0; color: #1a1a1a; animation: sl-rotate 0.9s linear infinite; }
@keyframes sl-rotate { to { transform: rotate(360deg); } }
body[data-theme="dark"] .sl-overlay { background: rgba(0,0,0,0.62); }
body[data-theme="dark"] .sl-card { background: #1e1e1e; color: #f0f0f0; box-shadow: 0 24px 64px rgba(0,0,0,0.6); }
body[data-theme="dark"] .sl-desc { color: #aaa; }
body[data-theme="dark"] .sl-spin { color: #f0f0f0; }
@media (prefers-reduced-motion: reduce) { .sl-spin { animation-duration: 2.4s; } }

/* 語言切換 */
.lang-sw { position: relative; flex-shrink: 0; }
.lang-btn {
    display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border: 0; outline: none;
    background: transparent; border-radius: 18px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; color: #666;
    -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; transition: background-color 0.25s;
}
.lang-btn svg { width: 18px; height: 18px; fill: currentColor; }
.lang-btn:hover { background: rgba(0,0,0,0.06); }
.lang-btn:focus-visible { box-shadow: 0 0 0 2px rgba(44,122,92,0.45); }
.lang-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 300; min-width: 132px; margin: 0; padding: 6px; list-style: none;
    background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.lang-sw.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li { padding: 8px 12px; border-radius: 6px; font-size: 14px; color: #333; cursor: pointer; white-space: nowrap; }
.lang-menu li:hover { background: rgba(0,0,0,0.05); }
.lang-menu li[aria-selected="true"] { color: #2c7a5c; font-weight: 600; }
body[data-theme="dark"] .lang-btn { color: #aaa; }
body[data-theme="dark"] .lang-btn:hover { background: rgba(255,255,255,0.1); }
body[data-theme="dark"] .lang-menu { background: #1e1e1e; border-color: rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
body[data-theme="dark"] .lang-menu li { color: #ddd; }
body[data-theme="dark"] .lang-menu li:hover { background: rgba(255,255,255,0.08); }
body[data-theme="dark"] .lang-menu li[aria-selected="true"] { color: #5cc9a0; }
@media (max-width: 520px) {
    .lang-btn span { display: none; }
    .lang-btn { padding: 0 6px; }
    .sh-register { padding: 8px 12px; font-size: 13px; }
}
