
html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Modern VIP Gradients */
.hero-gradient {
    background: linear-gradient(135deg, #21169c 0%, #32269c 50%, #b642f0 100%);
    position: relative;
}

    .hero-gradient::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 50%, rgba(217, 119, 6, 0.1) 100%);
        pointer-events: none;
    }

.vip-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

.vip-gradient-subtle {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 50%, rgba(217, 119, 6, 0.1) 100%);
}

.gold-gradient {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Modern Shadows */
.modern-shadow {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vip-glow {
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.3), 0 0 100px rgba(245, 158, 11, 0.1);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .card-hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    }

/* Modern Button Effects */
.btn-vip {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

    .btn-vip::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn-vip:hover::before {
        left: 100%;
    }

    .btn-vip:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 48px rgba(251, 191, 36, 0.5);
    }

.btn-disabled {
    background: #ccc !important;
    pointer-events: none; /* 讓它不能再點擊 */
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) rotate(90deg);
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
    }

    75% {
        transform: translateY(-45px) rotate(270deg);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

.input-vip {
    border: 2px solid rgba(148, 163, 184, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .input-vip:focus {
        border-color: #f59e0b;
        box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
    }

.quantity-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .quantity-btn:hover {
        transform: scale(1.1);
    }

/* Modern Typography */
.text-hero {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-vip {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .btn-vip::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn-vip:hover::before {
        left: 100%;
    }

    .btn-vip:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 48px rgba(251, 191, 36, 0.5);
    }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

/* VIP Deal Card */
.vip-deal-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid #a0a0a0;
    transition: all 0.3s ease;
}

    .vip-deal-card.locked {
        opacity: 0.7;
        filter: grayscale(30%);
    }

    .vip-deal-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    }

/* VIP Button Styles */
/*.vip-button {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.vip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #f59e0b, #d97706);
}*/
.vip-button {
    background: linear-gradient(120deg, rgba(88,51,175,0.9), rgba(33,22,156,0.8));
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

    .vip-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
        background: linear-gradient(120deg, rgba(107,70,193,0.95), rgba(54,38,181,0.85));
    }

/* Navigation Glassmorphism */
.nav-glass {
    background: rgba(33, 22, 156, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(182, 66, 240, 0.3);
}

/* Category Tab Styles */
.category-tab {
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

    .category-tab:hover,
    .category-tab.active {
        /*color: #f59e0b;*/
        color: rgba(33, 22, 156, 0.8);
        border-bottom-color: rgba(33, 22, 156, 0.8);
    }

    /* Special Redeemed Category Tab */
    .category-tab.redeemed {
        background: linear-gradient(120deg, rgba(107,70,193,0.95), rgba(54,38,181,0.85));
        color: white;
        border-radius: 20px;
        border-bottom: none;
        padding: 8px 16px;
    }

        .category-tab.redeemed:hover,
        .category-tab.redeemed.active {
            background: linear-gradient(120deg, rgba(107,70,193,0.95), rgba(54,38,181,0.85));
            color: white;
            border-bottom: none;
            transform: translateY(-1px);
            /*box-shadow: 0 8px 20px rgba(107, 70, 193, 0.35);*/
        }

/* Mobile dropdown styles */
.mobile-category-dropdown {
    position: relative;
}

.mobile-dropdown-button {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .mobile-dropdown-button:hover {
        border-color: gray;
        box-shadow: 0 2px 8px #b1b1b1;
    }

.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-top: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

.mobile-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

    .mobile-dropdown-item:last-child {
        border-bottom: none;
    }

    .mobile-dropdown-item:hover {
        background: #f8fafc;
    }

    .mobile-dropdown-item.redeemed {
        background: linear-gradient(120deg, rgba(107,70,193,0.95), rgba(54,38,181,0.85));
        color: white;
        font-weight: bold;
    }

    /*.mobile-dropdown-item.redeemed:hover {
    background: linear-gradient(135deg, #059669, #047857);
}*/

    .mobile-dropdown-item.active {
        background: #fef3c7;
        color: #d97706;
        font-weight: 600;
    }

.dropdown-arrow {
    transition: transform 0.3s ease;
}

    .dropdown-arrow.rotated {
        transform: rotate(180deg);
    }

/* Line clamp for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product filtering */
.product-hidden {
    display: none !important;
}

/* Redeemed product special styling */
.redeemed-product {
    position: relative;
    /*background: linear-gradient(145deg, #f0fdf4, #dcfce7);*/
    border: 2px solid rgba(33, 22, 156, 0.8);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

    .redeemed-product::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        /*background: linear-gradient(45deg, #10b981, #059669, #047857);*/
        border-radius: inherit;
        z-index: -1;
        opacity: 0.3;
        animation: shimmer 3s ease-in-out infinite;
    }

/* VIP Card Styles */
.vip-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid #d9d9d9;
    box-shadow: 0 20px 40px rgba(200, 200, 200, 0.4), 0 0 0 1px rgba(220, 220, 220, 0.3);
    transition: all 0.3s ease;
}

    .vip-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(200, 200, 200, 0.45), 0 0 0 1px rgba(230, 230, 230, 0.3);
    }

/* Verification Alert */
.verification-alert {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 2px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(10px);
    animation: gentle-pulse 3s infinite;
}

.staff-button {
    background: linear-gradient(135deg, #10b981, #059669);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

    .staff-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    }

/* Success Gradient */
.success-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

/* Success Celebration Animation */
.celebration-bg {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
    animation: success-pulse 2s infinite;
}


/* Home - Expainbox */
.explanation-line {
    position: relative;
}

    .explanation-line::before {
        content: '';
        position: absolute;
        left: -10px;
        top: 50%;
        width: 8px;
        height: 2px;
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
        transform: translateY(-50%);
    }

.pulse-dot {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-scale {
    transition: transform 0.3s ease;
}

    .hover-scale:hover {
        transform: scale(1.02);
    }


    /* eCoupon Card with Notched Edges */
    .ticket-mini {
        position: relative;
        border: 2px solid #94a3b8; /* slate-400 */
        border-radius: 3px;
        background: #fff;
        overflow: visible;
        --notch: 12px; /* 凹洞直徑 */
    }

    /* 挖洞：以背景色覆蓋外框 */
    .ticket-mini::before,
    .ticket-mini::after {
        content: "";
        position: absolute;
        top: 50%;
        width: var(--notch);
        height: var(--notch);
        background: #fff;
        border-radius: 50%;
        transform: translateY(-50%);
        z-index: 2;
        pointer-events: none;
    }

    /* 半圓線條 (內凹邊緣) */
    .ticket-mini::before {
        left: calc(var(--notch) / -2);
        box-shadow: inset -2px 0 0 #94a3b8; /* 實線感覺的內凹邊 */
    }

    .ticket-mini::after {
        right: calc(var(--notch) / -2);
        box-shadow: inset 2px 0 0 #94a3b8;
    }

    .ecoupon-card-noselect {
        position: relative;
        -webkit-mask: radial-gradient(circle 6px at 0px 50%, transparent 6px, black 7px), radial-gradient(circle 6px at 100% 50%, transparent 6px, black 7px);
        mask: radial-gradient(circle 6px at 0px 50%, transparent 6px, black 7px), radial-gradient(circle 6px at 100% 50%, transparent 6px, black 7px);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }

    .ecoupon-card {
        position: relative;
        -webkit-mask: radial-gradient(circle 6px at 0px 50%, transparent 6px, black 7px), radial-gradient(circle 6px at 100% 50%, transparent 6px, black 7px);
        mask: radial-gradient(circle 6px at 0px 50%, transparent 6px, black 7px), radial-gradient(circle 6px at 100% 50%, transparent 6px, black 7px);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }

    /* Selected State Styling */
    .ecoupon-card.selected {
        border-color: #f59e0b !important;
        border-style: solid !important;
        border-width: 5px !important;
        transform: translateY(-2px) scale(1.02);
        transition: all 0.25s ease;
    }


    /* Mobile responsiveness for notches */
    @media (max-width: 640px) {
        .ecoupon-card {
            position: relative;
            -webkit-mask: radial-gradient(circle 6px at 0px 50%, transparent 6px, black 7px), radial-gradient(circle 6px at 100% 50%, transparent 6px, black 7px);
            mask: radial-gradient(circle 6px at 0px 50%, transparent 6px, black 7px), radial-gradient(circle 6px at 100% 50%, transparent 6px, black 7px);
            -webkit-mask-composite: source-in;
            mask-composite: intersect;
            border-width: 1px;
        }

        .ticket-mini {
            --notch: 10px;
        }

        .ticket-mini::before {
            filter: drop-shadow(1.5px 0 1.5px var(--inset-shadow));
        }

        .ticket-mini::after {
            filter: drop-shadow(-1.5px 0 1.5px var(--inset-shadow));
        }

        .ecoupon-card.selected {
            transform: translateY(-1px) scale(1.01);
        }
    }