/**
 * 全站共用樣式：變數、主色、通用組件（唯一副本，請勿複製到別路徑）
 * 引用：includes/head_common.php → <?php echo $asset_base; ?>assets/css/common.css
 * 後台：include head_common 前設 $asset_base = '../';
 */

/* ========== Caldera 設計系統（docs/DESIGN.md） ========== */
:root {
    --primary-light: var(--color-ash-white, #f7f6f2);
    --sidebar: var(--color-abyssal-ink, #070607);
    --gold: var(--color-cyber-violet, #524ae9);
    --radius: var(--radius-inputs, 9999px);
    --company-kyc-bg: var(--color-abyssal-ink, #070607);
}

.font-display {
    font-family: var(--font-pp-neue-corp-compact-ultrabold);
    font-weight: 400;
    letter-spacing: var(--tracking-heading-sm, 0.02em);
    font-feature-settings: "ss06", "ss10";
}

body.theme-seed,
body.theme-swiss {
    font-family: var(--font-dm-sans, var(--font-seed-sans));
    font-weight: 500;
    background: var(--color-basalt-canvas, #e2e2df);
    color: var(--color-abyssal-ink, #070607);
    -webkit-font-smoothing: antialiased;
    letter-spacing: normal;
}

/* ========== 主色工具類 ========== */
.bg-primary { background-color: var(--primary-color, var(--primary)); }
.text-primary { color: var(--primary-color, var(--primary)); }
.border-primary { border-color: var(--primary-color, var(--primary)); }
.btn-primary {
    background-color: var(--color-digital-orange, var(--primary-color, var(--primary)));
    color: var(--color-pure-white, #ffffff);
    border-radius: var(--radius-buttons, 9999px);
    padding: 12px 24px;
    font-weight: 500;
    font-family: var(--font-dm-sans, var(--font-seed-sans));
    border: none;
    transition: opacity 0.2s ease;
}
.btn-primary:hover { opacity: 0.92; }

.btn-ghost {
    background: transparent;
    color: var(--color-abyssal-ink, var(--primary));
    border: 1px solid var(--color-abyssal-ink, #070607);
    border-radius: var(--radius-buttons, 9999px);
    padding: 0 12px;
    font-family: var(--font-dm-sans, var(--font-seed-sans));
    font-weight: 500;
}

/* 公司 KYC（主色加深約 20%） */
.btn-company-kyc {
    background-color: var(--company-kyc-bg);
    color: #fff;
    border-radius: var(--radius, 0);
}
.btn-company-kyc:hover { opacity: 0.95; }

body.theme-seed .card,
body.has-admin-topbar .card {
    border-radius: var(--radius-cards, 10px) !important;
    background: var(--color-ash-white, #f7f6f2);
    border: 1px solid color-mix(in srgb, var(--color-abyssal-ink) 8%, transparent);
    box-shadow: none !important;
    border-top: 1px solid color-mix(in srgb, var(--color-abyssal-ink) 8%, transparent) !important;
}

body.theme-seed input[type="text"],
body.theme-seed input[type="email"],
body.theme-seed input[type="password"],
body.theme-seed input[type="number"],
body.theme-seed input[type="search"],
body.theme-seed input[type="tel"],
body.theme-seed select {
    border-radius: var(--radius-inputs, 9999px) !important;
}
body.theme-seed textarea,
body.theme-seed .admin-textarea {
    border-radius: var(--radius-textarea, 12px) !important;
}

body.theme-seed .bg-primary,
body.theme-seed a.bg-primary,
body.theme-seed button.bg-primary,
body.theme-seed button,
body.theme-seed input[type="button"],
body.theme-seed input[type="submit"],
body.theme-seed input[type="reset"],
body.theme-seed a.inline-flex[class*="px-"][class*="py-"]:is([class*="bg-"], [class*="border"]) {
    border-radius: var(--radius-buttons, 9999px) !important;
}
body.theme-seed a.bg-primary,
body.theme-seed button.bg-primary {
    color: var(--color-pure-white, #fff) !important;
}

/* 預約匯率表：幣種列梅花間竹（tbody .transition-colors；td 一併著色以免 Tailwind／flex cell 蓋掉 tr 底色） */
table.portal-rates-zebra tbody > tr.transition-colors:nth-child(odd),
table.portal-rates-zebra tbody > tr.transition-colors:nth-child(odd) > td {
    background-color: #ffffff;
}
table.portal-rates-zebra tbody > tr.transition-colors:nth-child(even),
table.portal-rates-zebra tbody > tr.transition-colors:nth-child(even) > td {
    background-color: color-mix(
        in srgb,
        var(--primary-color, var(--primary, #1e3a5a)) 4%,
        #ffffff
    );
}
table.portal-rates-zebra tbody > tr.transition-colors:hover {
    filter: brightness(0.985);
}

/* ========== 即時匯率頁 · 門店 Tab（單行；過寬則橫向捲動） ========== */
/* !important：避免 Tailwind CDN 注入樣式覆寫於後導致換行 */
.rate-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    background: #F7F6F2;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.rate-tabs .rate-tab {
    order: 1;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font-weight: 600;
    border-radius: 9999px;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, opacity 0.15s;
    border: none;
    flex: 0 0 auto !important;
    max-width: none !important;
    white-space: nowrap !important;
}
.rate-tabs .rate-tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.55);
    color: #334155;
}
.rate-tabs .rate-tab.is-active {
    background: var(--primary, #fc5000) !important;
    color: #fff !important;
}

/* 預約日期晶片（無分店主題時亦有足夠對比） */
.slot-date-chip.is-selected {
    background-color: var(--primary-color, var(--primary)) !important;
    color: #fff !important;
    border-color: var(--primary-color, var(--primary)) !important;
}
.slot-date-chip.is-selected .slot-date-weekday { color: rgba(255,255,255,0.92) !important; }
.slot-date-chip.is-selected .slot-date-chip-check { color: #fff !important; opacity: 1 !important; }
.rate-tabs .rate-tab-content {
    order: 9;
    flex-grow: 1;
    width: 100%;
    display: block;
    padding: 0;
    background: #fff;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
@media (max-width: 465px) {
    .rate-tabs .rate-tab-content,
    .rate-tabs .rate-tab { order: initial; }
}

/* ========== 即時匯率頁 · 跑馬燈 ========== */
@keyframes marquee-ltr {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.marquee-line {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-ltr 28s linear infinite;
    white-space: nowrap;
}
.marquee-line:hover { animation-play-state: paused; }
.marquee-content { display: inline-block; padding-left: 3em; }

/* ========== 底部彈出選擇（幣種 / 通用） ========== */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.bottom-sheet-overlay.show { opacity: 1; visibility: visible; }
.bottom-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: 32rem;
    max-height: 70vh;
    background: #fff;
    border-radius: 0;
    z-index: 101;
    transform: translate(-50%, 100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.bottom-sheet.show { transform: translate(-50%, 0); }
.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 0;
    margin: 10px auto 8px;
}
.bottom-sheet-title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.bottom-sheet-body {
    overflow-y: auto;
    max-height: calc(70vh - 60px);
    padding: 8px 0 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

/* ========== 幣種圖示與選擇器 ========== */
.coin-icon-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.coin-icon-wrap img { width: 44px; height: 44px; object-fit: contain; }
.coin-icon-wrap .fa-coins { color: var(--primary); font-size: 1.5rem; }
.currency-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
}
.currency-picker-item:hover,
.currency-picker-item:active { background: #f3f4f6; }
.currency-picker-item .coin-icon-wrap { width: 40px; height: 40px; }
.currency-picker-item .coin-icon-wrap img { width: 40px; height: 40px; }
.currency-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    padding: 4px 0;
}
.currency-trigger .chevron { color: #9ca3af; font-size: 0.75rem; margin-left: auto; }

/* ========== 步驟指示（代客建單 / 匯款等） ========== */
.step-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s;
}
.step-dot.active { background: var(--primary); color: white; }
.step-dot.done { background: #10b981; color: white; }
.step-dot.pending { background: #e5e7eb; color: #9ca3af; }
.create-step-panel { display: none; }
.create-step-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ========== 後台側欄（與 admin_sidebar 變數一致，可選用） ========== */
.sidebar { background-color: var(--sidebar); width: 260px; }
.sidebar:not(#admin-sidebar) .nav-link { color: #a2a3b7; transition: all 0.3s; }
.sidebar:not(#admin-sidebar) .nav-link:hover,
.sidebar:not(#admin-sidebar) .nav-link.active { color: white; background: rgba(255,255,255,0.05); }

/* ========== 訂單 Tab（全部/待上傳/...） ========== */
.tab-active {
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* ========== KYC / 表單焦點（可選） ========== */
.kyc-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color, #A31D1F) 25%, transparent);
}
.upload-box:hover { border-color: var(--primary); background: var(--primary-light, #f5eaea); }
.upload-cell:hover { border-color: var(--primary); background: var(--primary-light, #f5eaea); }

/* ========== 方案卡選中（買入方案等） ========== */
.plan-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light, #f5eaea);
}

/* 瑞士金融（僅非後台殼層；後台 has-admin-topbar 使用 Caldera 圓角） */
.theme-swiss:not(.has-admin-topbar) .card {
    background: #fff;
    border-radius: 0 !important;
    box-shadow: 0 1px 0 #e5e5e5 !important;
    border: 1px solid #e0e0e0 !important;
    border-top: 3px solid var(--primary-color, var(--primary, #fc5000)) !important;
}
.theme-swiss:not(.has-admin-topbar) [class*="rounded"] {
    border-radius: 0 !important;
}
.theme-swiss:not(.has-admin-topbar) .shadow-xl,
.theme-swiss:not(.has-admin-topbar) .shadow-2xl,
.theme-swiss:not(.has-admin-topbar) .shadow-lg {
    box-shadow: 0 1px 0 #e5e5e5, 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}
.theme-swiss:not(.has-admin-topbar) body {
    background: #f5f5f5;
}

/* ========== 會員端預約日期 chip：選中＝主色底＋白字，無淺底特效 ========== */
button.slot-date-chip.bg-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
button.slot-date-chip.bg-primary:hover,
button.slot-date-chip.bg-primary:focus {
    background-color: var(--primary) !important;
    color: #fff !important;
}
button.slot-date-chip.bg-primary .slot-date-chip-check {
    color: var(--primary);
    background: rgba(255,255,255,0.95);
}
button.slot-date-chip.bg-primary span:not(.slot-date-chip-check) {
    color: #fff !important;
}

/* ========== 會員端：匯款／商務合作／KYC 選擇 ========== */
.member-page-intro {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748b;
    text-align: center;
    margin-bottom: 1rem;
}
.rem-exchange-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 0;
    overflow: hidden;
}
.rem-currency-block {
    padding: 0.875rem 1rem;
}
.rem-currency-block + .rem-currency-block {
    border-top: 1px solid #e2e8f0;
}
.rem-currency-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: inherit;
}
.rem-currency-head--link:hover .rem-currency-name {
    color: var(--primary-color, var(--primary, #A31D1F));
}
.rem-currency-flag {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    flex-shrink: 0;
}
.rem-currency-name {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
}
.rem-field-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    background: #F7F6F2;
    padding: 0.2rem 0.45rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
}
.rem-amount-input {
    width: 100%;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    border: 0;
    background: transparent;
    padding: 0;
    outline: none;
    text-align: left;
}
.rem-amount-input:focus {
    box-shadow: none;
}
.rem-rate-bar {
    font-size: 0.75rem;
    color: #475569;
    text-align: center;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 0;
}
.rem-currency-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    background: #fafafa;
}
.rem-currency-row + .rem-currency-row {
    margin-top: 0.75rem;
}
.rem-rate-hint {
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px dashed #e2e8f0;
    margin-top: 1rem;
}
body.remittance-flow main.max-w-lg {
    padding-top: 0.5rem;
}
/* ========== 商務合作（直角版型） ========== */
body.coop-hub,
body.coop-flow {
    background: #F7F6F2;
    --coop-radius: 0;
}
.coop-hub-main,
.coop-flow-main {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.75rem 1rem 1.5rem;
}
.coop-hub-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--coop-radius, 0);
    padding: 1.25rem 1.125rem 1.125rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color, #A31D1F) 0%, color-mix(in srgb, var(--primary-color, #A31D1F) 55%, #1e293b) 100%);
    color: #fff;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--primary-color, #A31D1F) 28%, transparent);
}
.coop-hub-hero::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: -1.5rem;
    width: 7rem;
    height: 7rem;
    border-radius: var(--coop-radius, 0);
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.coop-hub-hero__eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.35rem;
}
.coop-hub-hero__title {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}
.coop-hub-hero__desc {
    font-size: 0.8125rem;
    line-height: 1.55;
    opacity: 0.92;
    margin: 0;
    max-width: 18rem;
}
.coop-hub-menu {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}
.coop-hub-menu__item {
    display: block;
}
.coop-hub-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--coop-radius, 0);
    text-decoration: none;
    color: #0f172a;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.coop-hub-card:hover {
    border-color: color-mix(in srgb, var(--primary-color, #A31D1F) 35%, #e2e8f0);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
.coop-hub-card:active {
    transform: scale(0.99);
}
.coop-hub-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--coop-radius, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}
.coop-hub-card__icon--partner { background: #eff6ff; color: #2563eb; }
.coop-hub-card__icon--talent { background: #f0fdf4; color: #16a34a; }
.coop-hub-card__icon--other { background: #faf5ff; color: #9333ea; }
.coop-hub-card__icon--contact { background: color-mix(in srgb, var(--primary-color, #A31D1F) 12%, #fff); color: var(--primary-color, #A31D1F); }
.coop-hub-card__body {
    flex: 1;
    min-width: 0;
}
.coop-hub-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.coop-hub-card__sub {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0.15rem 0 0;
    line-height: 1.35;
}
.coop-hub-card__arrow {
    color: #cbd5e1;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.coop-hub-quick {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: var(--coop-radius, 0);
}
.coop-hub-quick__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--coop-radius, 0);
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.coop-hub-quick__text {
    flex: 1;
    min-width: 0;
}
.coop-hub-quick__text strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
}
.coop-hub-quick__text span {
    font-size: 0.75rem;
    color: #64748b;
}
.coop-hub-quick__btn {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border-radius: var(--coop-radius, 0);
    background: #16a34a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}
.coop-hub-quick__btn:hover {
    opacity: 0.92;
}
.coop-sub-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    max-width: 32rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.coop-sub-header__back {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--coop-radius, 0);
    color: #64748b;
    text-decoration: none;
}
.coop-sub-header__back:hover {
    background: #F7F6F2;
    color: #0f172a;
}
.coop-sub-header__title {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.coop-sub-header__spacer {
    width: 2.25rem;
    flex-shrink: 0;
}
.coop-intro {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 1rem;
}
.coop-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--coop-radius, 0);
    padding: 1.125rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.coop-panel + .coop-panel {
    margin-top: 0.75rem;
}
.coop-panel__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.875rem;
}
.coop-field {
    margin-bottom: 0.875rem;
}
.coop-field:last-child {
    margin-bottom: 0;
}
.coop-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.375rem;
}
.coop-field label .req {
    color: #dc2626;
}
.coop-field > input,
.coop-field > select,
.coop-field > textarea,
.coop-field-row input,
.coop-field-row select {
    border: 1px solid #e2e8f0;
    border-radius: var(--coop-radius, 0);
    padding: 0.6875rem 0.875rem;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.coop-field > input,
.coop-field > select,
.coop-field > textarea {
    width: 100%;
    display: block;
    box-sizing: border-box;
}
.coop-field input:focus,
.coop-field select:focus,
.coop-field textarea:focus {
    border-color: var(--primary-color, #A31D1F);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #A31D1F) 18%, transparent);
}
.coop-field textarea {
    resize: vertical;
    min-height: 5.5rem;
}
.coop-field-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}
.coop-field-row select {
    width: auto;
    min-width: 7rem;
    max-width: 42%;
    flex: 0 0 auto;
    box-sizing: border-box;
}
.coop-field-row input {
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
}
.coop-btn-primary {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 0;
    border-radius: var(--coop-radius, 0);
    background: var(--primary-color, #A31D1F);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.coop-btn-primary:hover {
    opacity: 0.94;
}
a.coop-btn-primary {
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: 1.25;
}
.coop-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--coop-radius, 0);
    background: #16a34a;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.coop-btn-whatsapp:hover {
    opacity: 0.94;
}
.coop-alert {
    border-radius: var(--coop-radius, 0);
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.875rem;
}
.coop-alert--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}
.coop-alert--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.coop-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    font-size: 0.75rem;
    color: #94a3b8;
}
.coop-divider::before,
.coop-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.coop-talent-banner {
    border-radius: var(--coop-radius, 0);
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}
.coop-talent-banner img {
    display: block;
    width: 100%;
    height: auto;
}
.coop-talent-cta {
    padding: 1rem;
    text-align: center;
}
.coop-talent-cta p {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}
.member-service-notice {
    border: 1px solid #e2e8f0;
    background: #fafafa;
    border-top: 3px solid var(--primary-color, var(--primary, #A31D1F));
}
.member-service-notice .notice-title {
    color: #0f172a;
}
.member-service-notice .notice-num {
    color: var(--primary-color, var(--primary, #A31D1F));
}
.member-service-notice .notice-link {
    color: var(--primary-color, var(--primary, #A31D1F));
}

/* 匯款子流程（核對匯款人／選收款人／核對收款／資金用途）：直角、無陰影 */
body.remittance-flow .rem-card,
body.remittance-flow .rem-flow-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.remittance-flow .rounded-xl,
body.remittance-flow .rounded-lg {
    border-radius: 0 !important;
}
body.remittance-flow .shadow-sm,
body.remittance-flow .shadow-lg,
body.remittance-flow .shadow-primary\/20 {
    box-shadow: none !important;
}
body.remittance-flow header.sticky {
    box-shadow: none !important;
}
body.remittance-flow .quick-tab {
    border-radius: 0;
}
body.remittance-flow .rem-avatar-self-badge {
    box-shadow: none;
}
body.remittance-flow .fixed.bottom-0.max-w-lg.mx-auto.z-40 {
    box-shadow: none !important;
}
