/* ==========================================================================
   LOVEISDERMA 愛斯德瑪 One-Page Purchase Landing Page Style
   ========================================================================== */

:root {
    --bg-page: #f0f7fc;           /* Clean medical/skincare soft ice blue */
    --font-primary: 'Outfit', 'Noto Sans TC', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Branding Colors */
    --accent-brand: #0284c7;       /* Medical-grade signature sky blue */
    --accent-brand-hover: #0369a1; /* Hover state blue */
    --accent-brand-light: #f0f9ff; /* Soft sky blue background for cards/tips */
    --accent-brand-border: #bae6fd;/* Soft blue border color */
    --accent-teal: #0d9488;        /* Ocean friendly teal accent */
    --accent-teal-light: #f0fdfa;   /* Soft teal background */
    --accent-gold: #ca8a04;        /* Attention gold for discount badges */
    --accent-gold-light: #fef9c3;  /* Soft gold background */
    
    /* Neutral Text */
    --text-primary: #0f172a;       /* Slate 900 for high readability */
    --text-secondary: #475569;     /* Slate 600 for body text */
    --text-muted: #94a3b8;         /* Slate 400 for subtext/labels */
    
    /* Radius & Shadows */
    --border-radius: 20px;
    --shadow-soft: 0 10px 30px rgba(2, 132, 199, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 16px 40px rgba(2, 132, 199, 0.12), 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-page);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background-color: var(--bg-page);
    display: flex;
    justify-content: center;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Centered main container matching vertical image slices */
.landing-container {
    width: 100%;
    max-width: 750px;
    background-color: #ffffff;
    box-shadow: 0 0 50px rgba(2, 132, 199, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- Announcement Bar --- */
.announcement-bar {
    background: linear-gradient(90deg, #38bdf8, var(--accent-brand), #38bdf8);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 16px;
    z-index: 1001;
    position: relative;
    font-weight: 700;
}

.announcement-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

.time-box {
    background-color: #ffffff;
    color: var(--accent-brand);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
}

/* --- Image Sections (Slice Images) --- */
.img-section {
    width: 100%;
    overflow: hidden;
}

.img-section img {
    width: 100%;
    display: block; /* Removes baseline spacing gaps between stacked images */
    height: auto;
}

/* Scroll Offset for Navigation target points */
.img-section, .coded-plans-section {
    scroll-margin-top: 55px; /* Matches sticky header height */
}

/* --- Sticky Header Navigation --- */
.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10000;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(2, 132, 199, 0.12);
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.02);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    width: 100%;
}

.nav-links-scroll {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    margin-right: 8px;
    /* Fading mask on the right edge to visually indicate scrollable text */
    mask-image: linear-gradient(to right, #000 82%, transparent 98%);
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 98%);
}

.nav-links-scroll::-webkit-scrollbar {
    display: none;
}
.nav-links-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-link {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-brand);
    background-color: rgba(2, 132, 199, 0.08);
}

.nav-link.active {
    font-weight: 800;
}

.nav-btn-order {
    font-family: var(--font-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 9999px;
    background-color: var(--accent-brand);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
    transition: all 0.2s ease;
    margin-left: 6px;
    flex-shrink: 0;
}

.nav-btn-order:hover {
    background-color: var(--accent-brand-hover);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
}

/* --- Coded Pricing & Ordering Section --- */
.coded-plans-section {
    background-color: #ffffff;
    padding: 32px 20px 48px;
    width: 100%;
}

/* Coupon Box Card */
.plans-coupon-container {
    max-width: 540px;
    margin: 0 auto 24px;
    background-color: #ffffff;
    border: 1.5px solid var(--accent-brand-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plans-coupon-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-brand);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.plans-coupon-box {
    display: flex;
    width: 100%;
    gap: 10px;
}

.plans-coupon-box input {
    flex: 1;
    border: 1.5px solid #cbd5e1;
    outline: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    background: #ffffff;
    transition: all 0.2s ease;
}

.plans-coupon-box input:focus {
    border-color: var(--accent-brand);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.plans-coupon-box button {
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: 12px;
    font-weight: 800;
    background-color: var(--text-primary);
    color: #ffffff;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.plans-coupon-box button:hover {
    background-color: #1e293b;
}

.plans-coupon-box button.applied {
    background-color: #10b981 !important; /* Green success state */
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    cursor: default;
}

.plans-coupon-tip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background-color: var(--accent-brand-light);
    border-left: 3px solid var(--accent-brand);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.coupon-badge {
    background-color: var(--accent-brand);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.copy-code-btn {
    background-color: #ffffff;
    border: 1px dashed var(--accent-brand);
    color: var(--accent-brand);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
    display: inline-block;
    transition: all 0.15s ease;
}

.copy-code-btn:hover {
    background-color: var(--accent-brand-border);
    transform: scale(1.05);
}

.plans-coupon-msg {
    font-size: 0.8rem;
    font-weight: 700;
    min-height: 18px;
    text-align: left;
}

.plans-coupon-msg.success {
    color: #10b981;
}

.plans-coupon-msg.error {
    color: #ef4444;
}

/* --- Product Configurator Form --- */
.product-selector-wrapper {
    width: 100%;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-brand-border);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    transition: all 0.3s ease;
}

.product-selector-wrapper.coupon-active {
    border-color: #10b981;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

.product-selector-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 600px) {
    .product-selector-container {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .product-image-column {
        flex: 0 0 42%;
        max-width: 42%;
        align-self: flex-start;
    }
    
    .product-details-column {
        flex: 1;
    }
}

/* Preview Image Column */
.product-image-column {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--accent-brand-light);
    border-radius: var(--border-radius);
    border: 1px solid #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.product-image-box img.switching {
    opacity: 0.2;
    transform: scale(0.96);
}

/* Badge overlay */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1.5px solid var(--accent-brand-border);
    color: var(--accent-brand);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 5;
    transition: all 0.2s ease;
}

.product-badge.popular-badge {
    background: linear-gradient(135deg, var(--accent-brand), #38bdf8);
    border: 1.5px solid #ffffff;
    color: #ffffff;
    font-weight: 800;
    width: 64px;
    height: 64px;
    top: 8px;
    left: 8px;
    font-size: 0.76rem;
    line-height: 1.2;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* Details Column */
.product-header {
    margin-bottom: 16px;
    text-align: left;
}

.product-name-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.product-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Pricing display */
.product-price-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    text-align: left;
}

.product-price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-price-label.strike {
    text-decoration: line-through;
    color: #cbd5e1;
}

.product-current-price-row {
    display: flex;
    align-items: baseline;
    color: var(--accent-brand);
    font-weight: 800;
}

.product-current-price-row .currency-symbol {
    font-size: 1.2rem;
    margin-right: 4px;
}

.product-current-price-row .price-amount {
    font-size: 2.2rem;
}

.product-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 16px 0;
}

/* Form Sections */
.spec-section, .options-section, .qty-section {
    margin-bottom: 20px;
    text-align: left;
}

.spec-title, .options-title, .qty-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.spec-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-btn {
    border-radius: 9999px;
    border: 1.5px solid #cbd5e1;
    background-color: #f8fafc;
    color: var(--text-secondary);
    font-weight: 700;
    padding: 8px 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    outline: none;
    flex: 1;
    min-width: 100px;
}

.spec-btn:hover {
    background-color: #f1f5f9;
    border-color: var(--accent-brand-border);
    color: var(--accent-brand);
}

.spec-btn.active {
    background-color: var(--accent-brand);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Custom Select Dropdowns */
.options-select {
    width: 100%;
    padding: 10px 16px;
    border: 1.5px solid #cbd5e1;
    background-color: #ffffff;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.options-select:focus {
    border-color: var(--accent-brand);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* Description Text Card */
.product-desc-block {
    background-color: var(--accent-brand-light);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-brand);
    text-align: left;
}

.product-desc-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--accent-brand);
    margin-bottom: 4px;
}

.product-desc-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Quantity Selection */
.qty-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    width: fit-content;
    overflow: hidden;
    background: #ffffff;
}

.qty-btn {
    border: none;
    background: #f8fafc;
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease;
    outline: none;
}

.qty-btn:hover {
    background: #e2e8f0;
}

.qty-input {
    border: none;
    border-left: 1.5px solid #cbd5e1;
    border-right: 1.5px solid #cbd5e1;
    width: 50px;
    height: 38px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
}

/* Shipping Form Details */
.shipping-form-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}

.shipping-form-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 2;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.88rem;
    outline: none;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-group input:focus {
    border-color: var(--accent-brand);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.form-group input::placeholder {
    color: #cbd5e1;
}

/* Action button trigger */
.purchase-actions {
    width: 100%;
}

.checkout-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--accent-brand);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    border: none;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.checkout-btn:hover {
    background-color: var(--accent-brand-hover);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

/* --- Footer --- */
.footer-sec {
    background-color: var(--accent-brand-light);
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid var(--accent-brand-border);
}

.footer-sec p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-sec .footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

/* --- Back to Top --- */
.floating-nav-group {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1000;
}

.btn-top-simple {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 50%;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-top-simple.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.btn-top-simple:hover {
    background-color: var(--accent-brand);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

@media (min-width: 790px) {
    .floating-nav-group {
        right: calc(50% - 375px + 20px);
    }
}

/* --- Floating Dynamic Sales Toast --- */
.purchase-notification {
    position: fixed;
    bottom: 24px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 320px;
}

.purchase-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.notification-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--accent-brand-light);
    color: var(--accent-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    text-align: left;
}

.notification-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 2px;
}

.notification-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.notification-close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    align-self: flex-start;
    margin-top: -2px;
    margin-right: -4px;
    line-height: 1;
    transition: color 0.2s ease;
    outline: none;
}

.notification-close:hover {
    color: var(--text-primary);
}

@media (min-width: 790px) {
    .purchase-notification {
        left: calc(50% - 375px + 20px);
    }
}

/* --- Mobile Bottom Sticky CTA --- */
.floating-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(2, 132, 199, 0.12);
    padding: 10px 16px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.floating-cta-bar.show {
    transform: translateY(0);
    display: block;
}

.floating-cta-container {
    max-width: 718px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-cta-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.floating-p-name {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.floating-p-price {
    font-size: 1.15rem;
    color: var(--accent-brand);
    font-weight: 800;
}

.floating-buy-btn {
    padding: 8px 20px;
    background-color: var(--accent-brand);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.floating-buy-btn:hover {
    background-color: var(--accent-brand-hover);
}

/* --- Simulated Checkout Success Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* Slate overlay */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    padding: 28px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-box {
    transform: scale(1) translateY(0);
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Receipt Details */
.receipt-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-align: left;
}

.receipt-row span {
    color: var(--text-muted);
}

.receipt-row strong {
    color: var(--text-primary);
    font-weight: 700;
    max-width: 68%;
    word-break: break-all;
    text-align: right;
}

.receipt-divider {
    border: none;
    border-top: 1px dashed #cbd5e1;
    margin: 12px 0;
}

.receipt-row.receipt-total {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.receipt-row.receipt-total span {
    color: var(--text-primary);
    font-weight: 800;
}

.text-gold {
    color: var(--accent-brand) !important;
    font-weight: 900 !important;
}

.modal-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--text-primary);
    color: #ffffff;
    font-weight: 800;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.modal-btn:hover {
    background-color: #1e293b;
}

/* --- Video Introduction Section --- */
.video-intro-section {
    padding: 32px 20px;
    background-color: #ffffff;
    width: 100%;
    display: flex;
    justify-content: center;
    scroll-margin-top: 55px;
}

.video-grid-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 600px;
    align-items: center;
}

.video-preview-card {
    width: 100%;
    max-width: 340px; /* Horizontal compact layout width */
    aspect-ratio: 16 / 9; /* Change from portrait 9:16 to landscape 16:9 */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--accent-brand-border);
    background-color: #000;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.video-preview-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.15);
}

.video-thumbnail-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.thumbnail-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.video-preview-card:hover .thumbnail-video-preview {
    opacity: 0.95;
}

/* Play button overlay design - scaled down for compact 16:9 look */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Less gap for smaller card height */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 10;
}

.play-btn-circle {
    width: 52px; /* Smaller circle for horizontal card */
    height: 52px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-triangle {
    font-size: 1.2rem; /* Sized down */
    color: var(--text-primary);
    margin-left: 3px;
    transition: transform 0.2s ease;
}

.video-preview-card:hover .play-btn-circle {
    background-color: var(--accent-brand);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
}

.video-preview-card:hover .play-triangle {
    color: #ffffff;
    transform: scale(1.05);
}

.play-action-text {
    color: #ffffff;
    font-size: 0.76rem; /* Scaled down text */
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background-color: rgba(15, 23, 42, 0.75);
    padding: 6px 14px; /* Reduced padding */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.video-preview-card:hover .play-action-text {
    background-color: var(--accent-brand-hover);
    transform: translateY(-2px);
}

/* --- Video Modal Overlay --- */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85); /* Deep slate backing */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000; /* Ensure it is on top of everything including sticky header */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 360px; /* Constrain max width for portrait video on desktop */
    background-color: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.video-modal-overlay.active .video-modal-container {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    outline: none;
}

.video-modal-close:hover {
    background-color: #ef4444;
    border-color: transparent;
    transform: scale(1.05);
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16; /* Portrait live video matching phone screen */
    max-height: 80vh;
    display: flex;
    justify-content: center;
    background-color: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents cropping */
    outline: none;
}
