@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');
        
:root {
    --bg-purple: #fbf7ff;
    --purple-deep: #6c3fd1;
    --purple-light: #8f5de8;
    --gold-light: #ffe7a0;
    --gold-mid: #c79a2b;
    --gold-dark: #7f5910;
}

body { 
    font-family: 'Noto Sans TC', sans-serif; 
    background: radial-gradient(circle at top left, rgba(212,175,55,0.12), transparent 28%),
                radial-gradient(circle at top right, rgba(143,93,232,0.12), transparent 32%),
                linear-gradient(180deg, #fffdfa 0%, var(--bg-purple) 46%, #f8f2ff 100%);
    color: #2c2340; 
    overflow-x: hidden;
}

.font-serif-en { font-family: 'Playfair Display', serif; }

.glass-nav {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(199, 154, 43, 0.15);
}

.royal-gold-border {
    border: 1px solid transparent;
    border-radius: 1.5rem;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 20px 50px rgba(79, 44, 125, 0.08);
    background-color: rgba(255, 255, 255, 0.85);
}
.royal-gold-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold-mid));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

.royal-gold-text {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-mid) 26%, var(--gold-light) 50%, var(--gold-mid) 76%, var(--gold-dark) 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

/* =============================================
   翻轉卡片 — iOS/iPhone 圖片殘留修復版
   ============================================= */
.flip-card { 
    perspective: 1000px; 
    height: 440px;
    /* 建立獨立堆疊上下文，防止 z-index 穿透 */
    isolation: isolate;
}

.flip-card-inner { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d; 
    cursor: pointer;
    /* 提示瀏覽器此元素即將變換，提前建立 compositing layer */
    will-change: transform;
}

/* 桌面版 hover 翻轉 */
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
/* 手機版 tap 翻轉（由 JS toggle .is-flipped class） */
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    -webkit-backface-visibility: hidden; 
    backface-visibility: hidden; 
    border-radius: 1.5rem;
    /* 強制 GPU compositing layer — 修復 iOS backface 穿透 */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    overflow: hidden;
}

.flip-card-front { 
    /* 正面：z-index 較低  */
    z-index: 1;
    -webkit-transform: translate3d(0, 0, 1px);
    transform: translate3d(0, 0, 1px);
}

.flip-card-back { 
    -webkit-transform: rotateY(180deg) translate3d(0, 0, 1px);
    transform: rotateY(180deg) translate3d(0, 0, 1px);
    z-index: 2;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,244,255,0.95));
}

/* 正面內的圖片容器 — 確保不穿透 */
.flip-card-front img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.playlist-scroll::-webkit-scrollbar { width: 6px; }
.playlist-scroll::-webkit-scrollbar-thumb { background: rgba(143,93,232,0.2); border-radius: 999px; }
.playlist-scroll::-webkit-scrollbar-track { background: transparent; }

@keyframes toast-slide {
    0% { transform: translate(-50%, 100%); opacity: 0; }
    10% { transform: translate(-50%, 0); opacity: 1; }
    90% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 100%); opacity: 0; }
}
.toast-animate {
    animation: toast-slide 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

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

.social-float-dock {
    position: fixed;
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.mobile-scroll-top-dock {
    display: none;
}

.mobile-quick-links-dock {
    display: none;
}

.social-fab {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(123, 75, 211, 0.20);
    box-shadow: 0 14px 30px rgba(91, 50, 179, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-fab:hover {
    transform: translateY(-2px) scale(1.04);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(123, 75, 211, 0.42);
    box-shadow: 0 18px 34px rgba(91, 50, 179, 0.24);
}

.social-fab:focus-visible {
    outline: 2px solid rgba(123, 75, 211, 0.45);
    outline-offset: 3px;
}

.social-fab-label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    line-height: 1;
}

.social-fab-line .social-fab-label {
    color: #06C755;
}

.social-fab-youtube .social-fab-label {
    color: #FF0000;
}

.social-fab-instagram .social-fab-label {
    color: #E1306C;
}

.social-fab-instagram svg {
    display: block;
}

.social-fab-instagram:hover {
    border-color: rgba(225, 48, 108, 0.35);
}

.social-fab-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(44, 35, 64, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 24px rgba(44, 35, 64, 0.18);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-fab:hover .social-fab-tooltip,
.social-fab:focus-visible .social-fab-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 1023px) {
    .social-float-dock {
        display: none;
    }

    .mobile-quick-links-dock {
        position: fixed;
        right: calc(14px + env(safe-area-inset-right, 0px));
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        z-index: 998;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        transition: bottom 0.25s ease, opacity 0.18s ease, transform 0.18s ease;
    }

    .mobile-quick-links-panel {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        min-width: 126px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(143, 93, 232, 0.16);
        box-shadow: 0 16px 34px rgba(44, 35, 64, 0.14);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .mobile-quick-links-item {
        min-height: 40px;
        border: 1px solid rgba(143, 93, 232, 0.12);
        border-radius: 12px;
        background: #fff;
        color: #2c2340;
        font-size: 12px;
        font-weight: 900;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        box-shadow: 0 6px 14px rgba(44, 35, 64, 0.05);
    }

    .mobile-quick-links-trigger {
        width: 56px;
        min-height: 56px;
        border-radius: 18px;
        border: 1px solid rgba(123, 75, 211, 0.18);
        background: rgba(255, 255, 255, 0.96);
        color: #2c2340;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        box-shadow: 0 16px 30px rgba(91, 50, 179, 0.16);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    }

    .mobile-quick-links-trigger.is-open {
        background: linear-gradient(135deg, #2c2340, #6c3fd1);
        color: #fff;
    }

    .mobile-quick-links-trigger-icon {
        font-size: 20px;
        line-height: 1;
        font-weight: 900;
    }

    .mobile-quick-links-trigger-label {
        font-size: 10px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: 0.08em;
    }

    .mobile-scroll-top-dock {
        position: fixed;
        right: calc(14px + env(safe-area-inset-right, 0px));
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        z-index: 999;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        transition: bottom 0.25s ease, opacity 0.18s ease, transform 0.18s ease;
    }

    .social-fab {
        width: 54px;
        height: 54px;
    }

    .social-fab-label {
        font-size: 10px;
    }

    .social-fab-tooltip {
        display: none;
    }
}

/* 影片人氣卡片 3D 邏輯 */
.video-card-container {
    perspective: 1000px;
    -webkit-perspective: 1000px;
    cursor: pointer;
}
.video-card-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}
.video-card-container:hover .video-card-flip,
.video-card-container:active .video-card-flip {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}
.video-card-front, .video-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}
.video-card-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

/* ==========================================
   LINE 登入按鈕樣式
   ========================================== */

/* 主要 CTA（手機版主按鈕） */
.line-login-btn {
    background: linear-gradient(135deg, #06C755, #00B843);
    color: #fff;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.line-login-btn:hover {
    background: linear-gradient(135deg, #00B843, #009A38);
    box-shadow: 0 8px 24px rgba(6, 199, 85, 0.35);
}
.line-login-btn:active {
    transform: scale(0.97) !important;
}

/* 次要 CTA（桌面版次按鈕） */
.line-login-btn-secondary {
    background: #fff;
    color: #06C755;
    border: 2px solid #06C755;
    cursor: pointer;
    letter-spacing: 0.3px;
}
.line-login-btn-secondary:hover {
    background: #f0fff5;
    border-color: #00B843;
    box-shadow: 0 4px 16px rgba(6, 199, 85, 0.15);
}
.line-login-btn-secondary:active {
    transform: scale(0.97) !important;
}

/* ==========================================
   Hero 訂閱數資訊卡
   ========================================== */
.hero-stats-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(108, 63, 209, 0.15);
}

/* ==========================================
   Loading states
   ========================================== */
.fullscreen-loader {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(143, 93, 232, 0.16), transparent 34%),
        linear-gradient(135deg, #f8f3ff 0%, #ffffff 52%, #f4efff 100%);
}

.fullscreen-loader-card {
    width: min(92vw, 420px);
    border: 1px solid rgba(143, 93, 232, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(44, 35, 64, 0.14);
    padding: 32px 26px;
    text-align: center;
    color: #2c2340;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.fullscreen-loader-eyebrow {
    margin: 14px 0 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #6c3fd1;
}

.fullscreen-loader-card h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}

.fullscreen-loader-copy {
    margin: 14px auto 0;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
    color: #756a87;
}

.fullscreen-loader-note,
.fullscreen-loader-slow {
    margin: 14px auto 0;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 800;
    color: #8b7fa3;
}

.fullscreen-loader-slow {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(199, 154, 43, 0.22);
    background: rgba(255, 248, 224, 0.82);
    color: #8a6515;
}

.loading-spinner,
.global-loading-spinner {
    display: inline-block;
    border-radius: 999px;
    border-style: solid;
    animation: pk-loading-spin 0.85s linear infinite;
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border-width: 4px;
    border-color: rgba(108, 63, 209, 0.18);
    border-top-color: #6c3fd1;
}

.global-loading-bar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 96;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(92vw, 460px);
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid rgba(143, 93, 232, 0.18);
    background: rgba(44, 35, 64, 0.94);
    color: #fff;
    box-shadow: 0 16px 38px rgba(44, 35, 64, 0.2);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    pointer-events: none;
    animation: pk-loading-fade-in 0.18s ease-out;
}

.global-loading-spinner {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.28);
    border-top-color: #ffe7a0;
}

@keyframes pk-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pk-loading-fade-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 1023px) {
    .fullscreen-loader-card {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .fullscreen-loader-card h1 {
        font-size: 22px;
    }

    .global-loading-bar {
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        width: calc(100vw - 32px);
        max-width: none;
        justify-content: center;
        border-radius: 18px;
        text-align: center;
        font-size: 12px;
    }

    .global-loading-bar.is-mobile-offset {
        bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }
}

/* ---- In-App Browser styles ---- */
/**
 * Purple Koala — In-App Browser 提示 UI 樣式
 * iab-styles.css
 */

/* =============================================
   頂部提示條 (Banner)
   ============================================= */
#iab-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-bottom: 2px solid #d97706;
    padding: 0;
    animation: iab-slide-down 0.4s ease-out;
}

.iab-banner-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
}

.iab-banner-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.iab-banner-content {
    flex: 1;
    min-width: 0;
}

.iab-banner-title {
    font-weight: 900;
    font-size: 14px;
    color: #92400e;
    margin-bottom: 2px;
}

.iab-banner-desc {
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
}

.iab-banner-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #92400e;
    padding: 4px 8px;
    line-height: 1;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.iab-banner-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

@keyframes iab-slide-down {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* =============================================
   Modal Overlay
   ============================================= */
.iab-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 10, 35, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: iab-fade-in 0.3s ease-out;
}

@keyframes iab-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =============================================
   Modal Card
   ============================================= */
.iab-modal-card {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(44, 35, 64, 0.4);
    animation: iab-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(143, 93, 232, 0.2);
}

@keyframes iab-slide-up {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Header */
.iab-modal-header {
    background: linear-gradient(135deg, #2c2340, #180f28);
    padding: 24px 24px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.iab-modal-header-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.iab-modal-title {
    color: #ffe7a0;
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    line-height: 1.4;
}

/* Body */
.iab-modal-body {
    padding: 24px;
}

.iab-modal-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 20px;
}

.iab-modal-desc strong {
    color: #6c3fd1;
    font-weight: 700;
}

/* =============================================
   平台導引區塊
   ============================================= */
.iab-guide-section {
    background: #f9f5ff;
    border: 1px solid #e9d5ff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}

.iab-guide-title {
    font-size: 14px;
    font-weight: 900;
    color: #6c3fd1;
    margin-bottom: 10px;
}

.iab-guide-steps {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}

.iab-guide-steps li {
    margin-bottom: 4px;
}

.iab-guide-steps li::marker {
    color: #c79a2b;
    font-weight: 700;
}

/* =============================================
   按鈕組
   ============================================= */
.iab-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    min-height: 52px;
    padding: 14px 20px;
    width: 100%;
    text-align: center;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.iab-btn svg {
    flex-shrink: 0;
}

/* Primary: 以瀏覽器開啟 */
.iab-btn-primary {
    background: linear-gradient(135deg, #6c3fd1, #8f5de8);
    color: #fff;
    box-shadow: 0 6px 20px rgba(108, 63, 209, 0.35);
}

.iab-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 63, 209, 0.45);
}

.iab-btn-primary:active {
    transform: translateY(0);
}

/* Secondary: 複製連結 */
.iab-btn-secondary {
    background: #f5f0ff;
    color: #6c3fd1;
    border: 2px solid #e0d0f7;
}

.iab-btn-secondary:hover {
    background: #ede5fb;
    border-color: #c4b0f0;
}

.iab-btn-copied {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}

/* Dismiss: 我知道了 */
.iab-btn-dismiss {
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    min-height: 44px;
    padding: 10px;
    font-weight: 600;
}

.iab-btn-dismiss:hover {
    color: #64748b;
    background: #f8fafc;
}

/* =============================================
   Manual copy fallback
   ============================================= */
.iab-url-display {
    margin-top: 10px;
}

.iab-url-label {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 6px;
    font-weight: 600;
}

.iab-url-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    color: #334155;
    background: #f8fafc;
    box-sizing: border-box;
    font-family: monospace;
}

.iab-url-input:focus {
    outline: none;
    border-color: #8f5de8;
}

/* =============================================
   In-App Browser 中的 Google 登入按鈕替換
   ============================================= */
.iab-google-login-replacement {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.iab-login-note {
    font-size: 12px;
    color: #92400e;
    background: #fef3c7;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.5;
    border: 1px solid #fde68a;
}

.iab-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    min-height: 48px;
    padding: 12px 20px;
    border: 2px solid #6c3fd1;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5f0ff, #ede5fb);
    color: #6c3fd1;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.iab-login-btn:hover {
    background: linear-gradient(135deg, #6c3fd1, #8f5de8);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 63, 209, 0.3);
}

/* =============================================
   有 banner 時 nav 偏移
   ============================================= */
body.iab-has-banner .glass-nav {
    top: 0; /* banner 是 fixed 的，nav 也是 fixed，不需要額外偏移  */
}

/* =============================================
   響應式
   ============================================= */
@media (max-width: 480px) {
    .iab-modal-card {
        max-width: 100%;
        border-radius: 16px;
    }

    .iab-modal-header {
        padding: 20px 20px 16px;
        border-radius: 16px 16px 0 0;
    }

    .iab-modal-title {
        font-size: 16px;
    }

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

    .iab-modal-desc {
        font-size: 13px;
    }

    .iab-btn {
        font-size: 14px;
        min-height: 48px;
        padding: 12px 16px;
    }
}

@media (max-width: 360px) {
    .iab-modal-card {
        margin: 8px;
    }

    .iab-modal-header {
        padding: 16px 16px 14px;
    }

    .iab-modal-body {
        padding: 16px;
    }

    .iab-guide-section {
        padding: 12px;
    }
}
