@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Nunito:wght@400;600;700;800&display=swap');

@font-face {
    font-family: 'jf-openhuninn';
    src: url('fonts/jf-openhuninn-2.1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* === 核心色票 (Glassmorphism Sky Blue Theme) === */
    --primary-color: #64B5F6;
    /* 天空藍：主視覺 */
    --primary-blue: #64B5F6;
    /* 保持向後兼容 */
    --primary-dark: #1976D2;
    /* 深藍：按鈕按壓/強調文字 */
    --secondary-color: #FFD54F;
    /* 陽光黃：亮點/通知/AI推薦 */
    --accent-color: #FF6B6B;
    /* 珊瑚紅：警告/取消/愛心 */
    --secondary-pink: #FF6B6B;
    /* 向後兼容 */
    --accent-yellow: #FFD54F;
    /* 向後兼容 */

    /* === 背景與玻璃擬態 === */
    --bg-gradient: linear-gradient(180deg, #E3F2FD 0%, #F3E5F5 100%);
    --bg-cloud-white: #E3F2FD;
    /* 淺藍背景 */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* === 文字 === */
    --text-main: #2D3436;
    --text-dark: #2D3436;
    --text-muted: #636e72;
    --text-light: #636e72;
    --white: #FFFFFF;

    /* === 形狀 === */
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 12px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;

    /* === 陰影 === */
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --border-color: #E2E8F0;
    --bg-card: rgba(255, 255, 255, 0.85);

    /* === 文字顏色 (向後兼容) === */
    --text-blue-dark: #1976D2;
    --text-pink-dark: #FF6B6B;
    /* === 方案徽章 === */
    --badge-free: linear-gradient(135deg, #A0AEC0, #718096);
    --badge-plus: linear-gradient(135deg, #4ECDC4, #556270);
    --badge-pro: linear-gradient(135deg, #FFD200, #F7971E);
}

body {
    font-family: 'M PLUS Rounded 1c', 'Nunito', 'jf-openhuninn', sans-serif !important;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-dark);
    margin: 0;
    padding-bottom: 80px;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'jf-openhuninn', 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-pink);
}

/* --- 導航列 (Navbar) --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 60px;
    padding: 0;
    /* Remove padding to rely on flex align */
    /* Reduced from 60px */
    padding: 0 1rem;
    display: flex;
    align-items: center;
    border-bottom: none;
}

.navbar-brand {
    font-family: 'jf-openhuninn', 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-blue) !important;
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* [Shrink-Fit] Prevent wrapping */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-brand i {
    margin-right: 8px;
    font-size: 1.8rem;
    color: var(--secondary-pink);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 700;
    padding: 0.5rem 1rem !important;
    /* Reduced padding for smaller navbar */
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
    background-color: rgba(160, 196, 255, 0.15);
}

/* 漢堡選單展開時的玻璃擬態背景 */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
        border-radius: 0 0 var(--radius-l) var(--radius-l);
        padding: 1rem 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.6);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--radius-m);
    }

    .nav-link:hover {
        background-color: rgba(100, 181, 246, 0.1);
    }
}

/* --- 底部導航列基礎樣式 (主要樣式在懸浮島嶼區塊) --- */
/* 針對特定頁面隱藏底部導航 */
body.hide-bottom-nav .bottom-nav {
    display: none !important;
}

/* --- 玻璃擬態卡片統一樣式 --- */
.card,
.bottom-sheet,
.modal-content {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    border-radius: var(--radius-l) !important;
    color: var(--text-main);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15) !important;
}

/* --- Q彈膠囊按鈕 --- */
.btn {
    border-radius: 50rem !important;
    /* 膠囊狀 */
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark)) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color)) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.5);
}

.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--accent-color), #FF8787) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #FF8787, var(--accent-color)) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.6);
}

.btn-outline-secondary,
.btn-light {
    background: white !important;
    border: 1px solid #eee !important;
    color: var(--text-main) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* --- 表單 (Form) --- */
.form-control {
    border-radius: var(--border-radius-md);
    border: 2px solid #E2E8F0;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background-color: #F8FAFC;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(160, 196, 255, 0.2);
    color: var(--text-dark);
}

.form-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* --- 標籤/徽章 (Badge) --- */
.badge {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
    color: var(--white);
}

.bg-secondary {
    background-color: var(--secondary-pink) !important;
    color: var(--white);
}

.bg-success {
    background-color: #A7F3D0 !important;
    color: #065F46;
}

/* 柔和綠 */
.bg-danger {
    background-color: #FECACA !important;
    color: #991B1B;
}

/* 柔和紅 */
.bg-warning {
    background-color: var(--accent-yellow) !important;
    color: #92400E;
}

/* --- 文字顏色工具 (Text Utilities) --- */
/* --- Text Colors (High Contrast) */

.text-subtitle {
    color: var(--text-dark) !important;
    font-weight: 500;
}

.text-primary-blue {
    color: var(--text-blue-dark) !important;
}

.text-secondary-pink {
    color: var(--text-pink-dark) !important;
}

/* Auth Page Form Controls */
.form-control-auth {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
}

.form-control-auth:focus {
    background-color: #fff !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: #333 !important;
}


/* --- 頁面容器 (Page Container) --- */
.page-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* --- 模態框 (Modal) --- */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--card-shadow);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-title {
    font-weight: 800;
    color: var(--primary-blue);
}

.modal-footer {
    border-top: none;
    padding: 0.5rem 1.5rem 1.5rem;
}

/* --- Chat Styles --- */
.chat-window {
    background-color: transparent;
    padding: 1rem;
    overflow-y: auto;
}

.message-row {
    display: flex;
    margin-bottom: 6px;
}

.message-row.mine {
    justify-content: flex-end;
}

/* --- 聊天氣泡 - 玻璃擬態效果 --- */
.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    font-size: 1rem;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message-bubble.mine {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.theirs {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* --- Premium Place Card --- */
.place-premium-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.place-premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 133, 217, 0.12);
    border-color: var(--primary-blue) !important;
}

.place-premium-card .card-body {
    padding: 1.25rem;
    cursor: pointer;
}

.place-premium-card .card-title {
    font-family: 'jf-openhuninn', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    /* [Shrink-Fit] */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.place-premium-card .card-address {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

.place-premium-card .card-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.place-premium-card .card-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0c4ff;
}

.place-premium-card .card-footer {
    background: #fafbfc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.6rem 1rem;
}

.chat-input-area {
    position: fixed;
    bottom: 75px;
    /* Above nav */
    left: 0;
    width: 100%;
    box-sizing: border-box;
    /* Fix overflow */
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    display: flex;
    align-items: flex-end;
    /* Align bottom as textarea grows */
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 900;
}

.chat-input-area textarea {
    flex: 1;
    /* Allow flexible width */
    min-width: 0;
    /* Allow shrinking below content size */
    border-radius: 12px !important;
    /* Rounded Rectangle - Force override */
    border: 1px solid #ddd;
    padding: 10px 15px;
    outline: none;
    resize: none;
    overflow-y: hidden;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
}

.btn-send {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    /* Force Circular */
    background: var(--primary-color, #4A74C9);
    /* Fallback blue */
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    padding: 0;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: #3a5ca0;
    /* Slightly darker */
}

.btn-send i {
    font-size: 1rem;
    padding-right: 2px;
    /* Visual optical offset for plane icon */
}

/* Removed orphan properties */

.chat-input-area .btn-icon-soft {
    flex-shrink: 0;
    /* Prevent buttons from being squashed */
    margin-bottom: 2px;
    /* Align with bottom of textarea */
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* =========================================
   Module Go: 靈感探索介面
   ========================================= */

/* 1. 搜尋容器 (置中、浮在畫面上方) */
/* 1. 搜尋容器 (新版：左側面板) */
.go-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* Adjust specific height or use calc. Navbar is auto height? Usually ~70px + spacer 80px */
    /* Let's aim for full viewport minus navbar */
    height: calc(100vh - 80px);
    overflow: hidden;
    position: relative;
    background: white;
}

.go-sidebar {
    width: 400px;
    height: 100%;
    overflow-y: auto;
    background: white;
    z-index: 10;
    padding: 2.5rem 2rem;
    flex-shrink: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
}

.go-map-container {
    flex: 1;
    height: 100%;
    position: relative;
    width: 100%;
    /* Ensure width filling */
}

/* 舊版容器 (保留以防萬一，或作為手機版樣式) */
.go-search-container {
    /* Reset margins for sidebar usage */
    max-width: 100%;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Mobile Responsive */
@media (max-width: 991px) {

    /* Tablet and below */
    .go-wrapper {
        flex-direction: column;
        height: auto;
        /* Allow scrolling on mobile */
        overflow: visible;
        padding-bottom: 80px;
        /* Space for bottom nav */
    }

    .go-sidebar {
        width: 100%;
        height: auto;
        flex: none;
        box-shadow: none;
        padding: 2rem 1.5rem;
    }

    .go-map-container {
        height: 60vh;
        /* Fixed height map on mobile */
        width: 100%;
        flex: none;
        order: 2;
        /* Map below sidebar? Or above? Usually sidebar (search) first */
        display: block;
        z-index: 1;
    }
}

/* 2. 智慧搜尋框 (大膠囊) */
.smart-search-box {
    background: white;
    border-radius: 50px;
    padding: 8px 8px 8px 25px;
    box-shadow: 0 10px 30px rgba(160, 196, 255, 0.25);
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    transition: 0.3s;
}

.smart-search-box:focus-within {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(160, 196, 255, 0.35);
}

.smart-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.1rem;
    color: var(--text-dark);
    background: transparent;
}

.btn-search-go {
    background: var(--primary-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.btn-search-go:hover {
    background: var(--primary-blue-dark);
    transform: rotate(15deg);
}

/* 3. 靈感泡泡 (快速標籤) */
.inspiration-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.tag-bubble {
    background: white;
    border: 1px solid #E0F2FF;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-bubble:hover {
    background: var(--bg-cloud);
    color: var(--primary-blue);
    transform: translateY(-3px);
    border-color: var(--primary-blue);
}

/* 4. 結果卡片 (登機證風格) */
.result-ticket {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    display: none;
    /* 預設隱藏 */
    text-align: left;
    position: relative;
    border: 2px solid #F0F4F8;
}

.ticket-header {
    background: var(--primary-blue);
    padding: 15px 20px;
    color: white;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-body {
    padding: 20px;
}

/* =========================================
   Bottom Navigation - 懸浮島嶼設計
   ========================================= */
.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: calc(100% - 30px);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 20px !important;
    display: flex;
    justify-content: space-around;
    padding: 14px 0 6px 0;
    /* Shifting content up 3px */
    z-index: 1050;
    height: 60px;
    /* Reduced from 65px as requested */
}

.bottom-nav-item {
    text-align: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    position: relative;
    transition: all 0.3s ease;

    /* [Shrink-Fit] Global Strategy */
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 600;
}

.bottom-nav-item.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.bottom-nav-item.active i {
    transform: translateY(-4px);
    filter: drop-shadow(0 4px 6px rgba(100, 181, 246, 0.4));
}

.bottom-nav-item:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}


/* === Subscription Badges === */
.badge-plan {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

.badge-plan.free {
    background: var(--badge-free);
    color: white;
}

.badge-plan.plus {
    background: var(--badge-plus);
    color: white;
}

.badge-plan.pro {
    background: var(--badge-pro);
    color: black;
}

/* =========================================
   Top Navigation (Fixed Header) - Enforcement
   ========================================= */
.navbar.fixed-top {
    background: #ffffff !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1060 !important;
    /* Higher than modal 1055 and bottom nav 1050 if needed, or ensure it stays top */
}


/* =========================================
   Notification & Alert Styling (Themed)
   ========================================= */

/* Bootstrap Alerts Override */
.alert {
    border-radius: var(--border-radius-md);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

.alert-dismissible .btn-close {
    padding: 1.25rem;
}

/* Success Alert (Soft Green) */
.alert-success {
    background-color: rgba(167, 243, 208, 0.4) !important;
    /* #A7F3D0 + opacity */
    color: #065F46 !important;
    background-image: linear-gradient(135deg, rgba(167, 243, 208, 0.4) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* Info/Primary Alert (Theme Blue) */
.alert-primary,
.alert-info {
    background-color: rgba(91, 133, 217, 0.15) !important;
    /* var(--primary-blue) + opacity */
    color: var(--primary-blue) !important;
    background-image: linear-gradient(135deg, rgba(91, 133, 217, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* Warning Alert (Soft Yellow) */
.alert-warning {
    background-color: rgba(253, 255, 182, 0.5) !important;
    /* var(--accent-yellow) */
    color: #92400E !important;
    background-image: linear-gradient(135deg, rgba(253, 255, 182, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* Danger/Error Alert (Theme Pink) */
.alert-danger {
    background-color: rgba(255, 183, 197, 0.3) !important;
    /* var(--secondary-pink) */
    color: #C0392B !important;
    background-image: linear-gradient(135deg, rgba(255, 183, 197, 0.2) 0%, rgba(255, 255, 255, 0.8) 100%);
}


/* SweetAlert2 Theme Overrides */
div.swal2-popup {
    border-radius: 24px !important;
    padding: 2rem !important;
    box-shadow: 0 15px 40px rgba(91, 133, 217, 0.2) !important;
    background: #FFFFFF !important;
    font-family: 'jf-openhuninn', 'Nunito', 'M PLUS Rounded 1c', sans-serif !important;
}

h2.swal2-title {
    color: var(--primary-blue) !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
}

div.swal2-content,
div.swal2-html-container {
    color: var(--text-dark) !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
}

/* Confirm Button */
button.swal2-confirm {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4A74C9 100%) !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(91, 133, 217, 0.4) !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
}

button.swal2-confirm:focus {
    box-shadow: 0 0 0 4px rgba(91, 133, 217, 0.3) !important;
}

/* Cancel Button */
button.swal2-cancel {
    background: #F1F2F6 !important;
    color: var(--text-light) !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
}

button.swal2-cancel:hover {
    background: #E2E4EA !important;
    color: var(--text-dark) !important;
}

/* Icons */
.swal2-icon.swal2-success {
    border-color: #A7F3D0 !important;
    color: #065F46 !important;
}

.swal2-icon.swal2-error {
    border-color: var(--secondary-pink) !important;
    color: #E85D75 !important;
}

.swal2-icon.swal2-warning {
    border-color: var(--accent-yellow) !important;
    color: #F39C12 !important;
}

/* =========================================
   Quota Badge - 使用次數顯示
   ========================================= */

/* Old definition removed */

.quota-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.quota-badge .quota-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

/* Quota Badge */
.quota-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 700;
    font-size: 0.85rem;
    flex-direction: row;
    /* Force Horizontal */
    gap: 8px;
    /* Spacing between count and text */
}

.quota-badge.text-danger {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
    border-color: #ff5252;
}

.quota-badge.text-warning {
    color: #ffa726;
    background: rgba(255, 167, 38, 0.1);
    border-color: #ffa726;
}

.quota-badge.text-success {
    color: #66bb6a;
    background: rgba(102, 187, 106, 0.1);
    border-color: #66bb6a;
}

.quota-reset {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0;
    font-weight: 500;
    white-space: nowrap;
}

/* 手機版調整 */
@media (max-width: 768px) {
    .quota-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
        min-width: auto;
        /* Remove min-width to fit content */
        margin-left: 0;
    }

    .quota-badge .quota-count {
        font-size: 0.8rem;
    }

    .quota-reset {
        font-size: 0.7rem;
    }
}