:root {
    /* Updated Gold & Black Theme */
    --primary-color: #000000;         
    --secondary-color: #0a0a0a;       /* Darker for more "premium" feel */
    
    /* Gold Accents: Realistic 24K Palette */
    --gold-bright: #fff3a1;           /* The "Glint" of sun on metal */
    --gold-mid: #d4af37;              /* Standard 24K Gold */
    --gold-dark: #926d0a;             /* Deep aged gold for depth */
    
    /* Text Styles */
    --text-main: #ffffff;             
    --text-muted: #c5a028;            /* Slightly desaturated gold for readability */
    --text-light: #a1a1a1;
    --white: #ffffff;
    
    /* Structure & Inputs */
    --border-color: #222222;          
    --input-border: #d4af37;          

    /* The "Real Gold" Gradient */
    /* This creates a metallic "shimmer" effect by alternating light and dark */
    --hero-gradient: linear-gradient(
        45deg, 
        #a67c00 0%, 
        #bf953f 25%, 
        #fcf6ba 50%, 
        #b38728 75%, 
        #aa771c 100%
    );

    /* Font Styles */
    --font-main: 'Georgia', 'Times New Roman', serif; 
    --font-size-base: 14px;
    --font-size-small: 12px;
    --font-size-tiny: 10px;
     --font-weight-light: 300;
}

/* Reset & Fonts */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: var(--font-main); 
}
  
  








/* Hero Banner */
.view-jewellery-hero-section { padding: 30px 5%; }

/* Breadcrumb Styling */
.breadcrumb { 
    font-size: var(--font-size-small); 
    color: var(--text-light); 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    letter-spacing: 1px; /* Optional: adds a premium feel */
}

/* Make the 'Home' link clickable and styled */
.breadcrumb a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* Hover effect: turns Gold when hovered */
.breadcrumb a:hover {
    color: var(--gold-mid);
}


/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .view-jewellery-hero-section {
        padding: 20px 15px; /* Reduced vertical padding and tighter horizontal margins */
    }

    .breadcrumb {
        font-size: 11px; /* Slightly smaller for mobile screens */
        margin-bottom: 10px;
        letter-spacing: 0.5px; /* Tighter spacing to prevent wrapping */
    }
}
   










/* --- Product View Container --- */
.product-view-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 40px 5%;
    background: #ffffff;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Left Side: Gallery --- */
.product-gallery {
    position: relative;
    width: 100%;
    overflow: hidden; /* Prevents overflow from sliding thumbnails */
}

.main-image-wrapper {
    background: #ffffff;
    position: relative;
    border: 1px solid #f0f0f0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Keeps the main display square and consistent */
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full product image without cropping */
}

.wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    color: #333;
    transition: 0.3s ease;
    z-index: 5;
}

.wishlist-btn:hover {
    color: var(--gold-dark);
    transform: scale(1.1);
}

/* --- FIXED THUMBNAIL STRIP WITH SLIDER --- */
/* --- Optimized Thumbnail Strip --- */
.thumbnail-strip {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    overflow-x: auto; /* Allows native touch swiping */
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px 2px;
    scroll-behavior: smooth;
    
    /* Hide standard scrollbars */
    -ms-overflow-style: none;
    scrollbar-width: none;
    
    /* Interactive States */
    cursor: grab; 
    user-select: none; 
    -webkit-user-drag: none;
    touch-action: pan-x; /* Improves mobile touch performance */
}

.thumbnail-strip::-webkit-scrollbar {
    display: none;
}

.thumbnail-strip:active {
    cursor: grabbing; /* Shows the closed hand from your image */
}

/* Important: Prevents images from blocking the drag logic */
.thumb img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.thumbnail-strip::-webkit-scrollbar {
    display: none;
}

.thumb {
    /* Fixed square size - never changes */
    flex: 0 0 80px; 
    width: 80px;
    height: 80px;
    
    border: 1px solid #eee;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s ease;
    padding: 0; /* Removed padding to let image fill the box */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures all thumbnails look uniform regardless of original image ratio */
}

.thumb.active {
    border: 2px solid var(--gold-mid);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}
/* Video එක container එකට පිටින් පනින එක නවත්තන්න */
#mainVideo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Video එක පේන විදිහ size එකට ගැලපෙනවා, shape එක වෙනස් වෙන්නෙ නැහැ */
    background: #ffffff; /* Video එක දෙපැත්තෙන් හිස් වුණොත් පේන background එක */
    border-radius: 15px;
    display: block; /* Default එක block තියන්න */
}

/* Wrapper එකේ size එක lock කරන්න */
.main-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* මේකෙන් wrapper එක හැමතිස්සෙම කොටුවක් විදිහට තියෙනවා */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
/* Video Thumbnail Styling */
.video-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa !important;
}

.video-thumb i {
    color: var(--gold-dark);
    font-size: 20px;
}

.video-thumb p {
    font-size: 8px;
    font-weight: bold;
    margin-top: 4px;
    letter-spacing: 1px;
}

.certification-badge {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.certification-badge span {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

.certification-badge img {
    height: 35px;
    opacity: 0.8;
}

/* Mobile Responsive */

/* --- Right Side: Product Details --- */
.product-main-title {
    font-family: var(--font-main); /* Georgia / Serif */
    font-size: 34px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 400;
}

.collection-tag {
    color: var(--gold-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 600;
}

.price-section {
    padding: 25px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.price-section .currency {
    font-size: 20px;
    color: #333;
    margin-right: 5px;
}

.price-section .amount {
    font-size: 38px;
    font-weight: bold;
    color: #1a1a1a;
    font-family: var(--font-main);
}

.tax-info {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* --- Interactions & Delivery --- */
.video-call-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-main);
    color: #444;
    transition: 0.3s;
    margin-bottom: 25px;
}

/* Container adjustment for the button to align the dot */
.video-call-btn {
    position: relative;
}

/* The Pulse Dot */
.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold-mid);
    border-radius: 50%;
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

/* The Animated Ripple Effect */
.live-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: var(--gold-mid);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: gold-pulse 2s infinite ease-out;
    opacity: 0.6;
}

@keyframes gold-pulse {
    0% {
        width: 8px;
        height: 8px;
        opacity: 0.8;
    }
    100% {
        width: 24px;
        height: 24px;
        opacity: 0;
    }
}


.video-call-btn span {
    color: var(--gold-dark);
    text-decoration: underline;
    font-weight: bold;
}

.video-call-btn:hover {
    border-color: var(--gold-mid);
    background: #fffdf5;
}

.delivery-check {
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    padding: 20px;
    margin-bottom: 25px;
}

.pincode-input-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pincode-input-row span {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.pincode-input-row input {
    border: none;
    border-bottom: 1.5px solid var(--gold-mid);
    background: transparent;
    padding: 5px 0;
    outline: none;
    width: 100px;
    font-size: 15px;
    font-weight: 600;
}

.pincode-input-row button {
    background: transparent;
    border: none;
    color: var(--gold-dark);
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.pincode-help {
    font-size: 11px;
    color: #999;
    margin-top: 10px;
}

.product-spec-short {
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
    font-weight: 500;
}


 

 
/* Fix the link appearance */
.custom-link-wrapper {
    text-decoration: none !important; /* Removes underline */
    display: block; /* Makes the whole area clickable */
    color: inherit; /* Keeps your #222 color */
}

.customization-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
    color: #222; /* Your primary text color */
}

 

.custom-link-wrapper:hover span {
    color: var(--gold-dark); /* Text turns gold on hover */
    transition: 0.3s;
}


/* --- Buttons --- */
.purchase-actions {
    display: flex;
    gap: 15px;
    margin: 35px 0;
}

.buy-now-btn {
    flex: 2;
    background: var(--hero-gradient);
    border: none;
    padding: 20px;
    color: #000;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.buy-now-btn:hover {
    filter: brightness(1.1);
}

.plan-btn {
    flex: 1;
    background: #ffffff;
    border: 1px solid #333;
    color: #333;
    padding: 20px;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.plan-btn:hover {
    background: #000;
    color: #fff;
}

/* --- Trust Section --- */
.trust-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.trust-item {
    text-align: center;
}

.trust-item i {
    color: var(--gold-dark);
    font-size: 22px;
    margin-bottom: 10px;
}

.trust-item span {
    font-size: 10px;
    color: #777;
    display: block;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-text {
    text-align: center;
    margin-top: 40px;
    font-size: 12px;
    color: #888;
}

.support-text strong {
    color: #333;
    font-size: 14px;
}

 




.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid #eee;
    background: #fff;
}

.info-header {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--gold-dark);
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Toggle Header Style */
.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle-header i {
    color: var(--gold-mid);
    font-size: 12px;
}

/* Expansion Animation */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.collapsible-content.active {
    max-height: 300px; /* Adjust based on content size */
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #fafafa;
    font-size: 14px;
    color: #444;
}

.info-row.total {
    border-top: 1.5px solid var(--gold-mid);
    font-weight: bold;
    color: #000;
    margin-top: 10px;
}

/* Brand Promise & Cert styling */
.brand-promise-card { background: #f9f9f9; padding: 30px; margin-bottom: 30px; }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promise-item { font-size: 11px; text-transform: uppercase; color: #666; display: flex; align-items: center; gap: 10px; }
.promise-item i { color: var(--gold-mid); }

.auth-certificate-box {
    background: #e8ecf3;
    padding: 40px;
    text-align: center;
    border: 1px solid #d1d9e6;
}




@media (max-width: 768px) {
    .product-view-container {
        grid-template-columns: 1fr;
        padding: 0 0 40px 0;
    }
    
    .thumb {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }
}


 /* --- High-Performance Mobile Responsive Overrides --- */
@media (max-width: 768px) {
    /* 1. Container & Spacing Adjustments */
 .product-view-container {
        /* 1. Switch to a single column layout */
        display: grid;
        grid-template-columns: 1fr; 
        
        /* 2. Spacing Adjustments */
        gap: 20px; /* Slightly tighter for mobile to keep content "above the fold" */
        padding: 0 0 40px 0; /* Remove side padding if the parent container has it */
        
        /* 3. Ensure it stays within screen bounds */
        width: 100%;
        overflow-x: hidden;
    }
    .product-info-grid {
        grid-template-columns: 1fr; /* Stack info columns */
        padding: 40px 15px;
        gap: 30px;
    }

    /* 2. Gallery Adjustments */
    .main-image-wrapper {
        margin-bottom: 10px;
    }

    

    .wishlist-btn {
        width: 38px;
        height: 38px;
        top: 10px;
        right: 10px;
    }

    /* 3. Aggressive Font Size Reductions */
    .product-main-title {
        font-size: 24px; /* Reduced from 34px */
        line-height: 1.2;
    }

    .collection-tag {
        font-size: 11px;
        margin-bottom: 15px;
    }

    .price-section {
        padding: 15px 0;
        margin-bottom: 15px;
    }

    .price-section .amount {
        font-size: 28px; /* Reduced from 38px */
    }

    .price-section .currency {
        font-size: 16px;
    }

    /* 4. Action Buttons Fix */
    .purchase-actions {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        margin: 25px 0;
    }

    .buy-now-btn, .plan-btn {
        width: 100%;
        padding: 15px; /* Slightly shorter padding for mobile */
        font-size: 14px;
    }

    /* 5. Trust & Info Grid Shrinkage */
    .trust-icons {
        gap: 10px;
    }

    .trust-item i {
        font-size: 18px;
    }

    .trust-item span {
        font-size: 9px;
    }

    .info-row {
        font-size: 12px; /* Smaller text for detail rows */
        padding: 10px 0;
    }

    .brand-promise-card {
        padding: 20px;
    }

    .auth-certificate-box {
        padding: 25px 15px;
    }

    /* 6. Form Inputs */
    .pincode-input-row {
        flex-wrap: wrap; /* Prevent overlap on very small screens */
    }
    
    .pincode-input-row input {
        width: 80px;
        font-size: 14px;
    }
}

/* Extra Small Devices (iPhone SE / Fold) */
@media (max-width: 380px) {
    .product-main-title {
        font-size: 20px;
    }
    
    .price-section .amount {
        font-size: 24px;
    }
}


 


/* --- GLOBAL MODAL STYLES --- */
.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    overflow: hidden; /* Prevents background scrolling issues */
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    width: 95%;
    max-width: 450px;
    position: relative;
    border-radius: 0px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    /* Improved cubic-bezier for a "weighty" premium slide feel */
    transition: transform 0.5s cubic-bezier(0.32, 1, 0.23, 1);
}

/* Red Asterisk Styling */
.required-star {
    color: #e63946; /* A premium deep red */
    margin-left: 3px;
    font-size: 14px;
}

/* DESKTOP CLOSE (X) */
.desktop-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    color: var(--gold-dark);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.mobile-handle-container { display: none; }

/* Form Styling */
.modal-title { font-family: var(--font-main); font-size: 24px; color: #111; margin-top: 10px; }
.modal-subtitle { font-size: 13px; color: #666; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 11px; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; color: #333; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 0px; font-size: 14px; transition: border 0.3s; }
.form-group input:focus { border-color: var(--gold-mid); outline: none; }

.service-note { font-size: 12px; color: #777; background: #fdfaf0; padding: 12px; border-left: 3px solid var(--gold-mid); margin: 20px 0; line-height: 1.5; }
.success-box { text-align: center; padding: 30px 0; }
.success-box i { font-size: 50px; color: #27ae60; margin-bottom: 15px; }
/* --- FULLY FIXED MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .desktop-close { display: none; } /* Hide 'X' on mobile */
    
    /* Drag Handle Container */
    .mobile-handle-container {
        display: flex;
        width: 100%;
        height: 35px;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0; left: 0;
        cursor: grab;
    }

    .modal-handle {
        width: 40px;
        height: 4px;
        background: #e0e0e0;
        border-radius: 10px;
    }

    /* Bottom Sheet Layout */
    .modal-content {
        margin: 0;
        position: fixed;
        bottom: 0; left: 0; 
        width: 100%; max-width: 100%;
        border-radius: 20px 20px 0 0; 
        padding: 40px 20px 30px 20px; /* Reduced padding */
        transform: translateY(100%); 
        transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .modal-overlay[style*="display: block"] .modal-content {
        transform: translateY(0);
    }

    /* REDUCED TEXT SIZES FOR MOBILE */
    .modal-title { 
        font-size: 19px; /* Scaled down */
        text-align: center;
        margin-bottom: 5px;
    }

    .modal-subtitle { 
        font-size: 11px; /* Scaled down */
        text-align: center;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .form-group {
        margin-bottom: 15px; /* Tighter spacing */
    }

    .form-group label { 
        font-size: 10px; /* Smaller labels */
        margin-bottom: 6px;
    }

    /* Red Star inside label */
    .required-star {
        color: #ff0000;
        font-size: 13px;
        margin-left: 3px;
    }

    .form-group input { 
        font-size: 16px; /* Prevents iOS auto-zoom */
        padding: 12px; 
        background: #f9f9f9;
        height: 45px; /* Uniform height for touch */
    }

    .service-note {
        font-size: 11px; /* Reduced text size */
        padding: 12px;
        margin: 15px 0;
        line-height: 1.4;
    }

    .buy-now-btn {
        padding: 14px;
        font-size: 14px; /* Scaled for mobile buttons */
        letter-spacing: 1px;
    }

    .success-box i { font-size: 40px; }
    .success-box h3 { font-size: 17px; }
    .success-box p { font-size: 12px; }
}
 



.write-review-container {
    margin-top: 30px;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
}

.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: var(--font-main);
    font-size: 14px;
    resize: none;
    outline: none;
}

.review-form textarea:focus {
    border-color: var(--gold-mid);
}

/* Star Rating Logic */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input { display: none; }

.star-rating label {
    font-size: 20px;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--gold-mid);
}

@media (max-width: 768px) {
    .write-review-container {
        padding: 20px;
        margin-top: 20px;
    }
}



/* Full-Screen Overlay */
.full-screen-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Higher than nav and modals */
    padding: 20px;
}

.success-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.success-card {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 60px 40px;
    text-align: center;
    border-radius: 2px; /* Keeping the sharp premium edges */
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: goldSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Shimmering Checkmark */
.gold-shimmer-check {
    width: 90px;
    height: 90px;
    background: var(--hero-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    color: #000;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(146, 109, 10, 0.3);
}

.gold-shimmer-check::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent);
    transform: rotate(45deg);
    animation: finalShimmer 3s infinite;
}

.success-title {
    font-family: var(--font-main);
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.success-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 35px;
}

.gold-continue-btn {
    width: 100%;
    background: var(--hero-gradient);
    border: none;
    padding: 18px;
    color: #000;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.gold-continue-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Animations */
@keyframes goldSlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes finalShimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

@media (max-width: 768px) {
    .success-card {
        padding: 50px 25px;
    }
    .success-title { font-size: 24px; }
}/* Small timer bar at the bottom of the success card */
.success-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--hero-gradient);
    width: 100%;
    animation: autoCloseTimer 3s linear forwards;
}

@keyframes autoCloseTimer {
    from { width: 100%; }
    to { width: 0%; }
}



/* Full-Screen Error Overlay */
.full-screen-error {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
}

.error-backdrop {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(40, 0, 0, 0.7); /* Deep ruby tint */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.error-card {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 60px 40px;
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: errorShake 0.4s ease-in-out forwards;
}

/* Shimmering Red/Gold Icon */
.red-shimmer-icon {
    width: 90px; height: 90px;
    background: linear-gradient(45deg, #8b0000, #e63946, #8b0000);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.red-shimmer-icon::after {
    content: '';
    position: absolute;
    top: -50%; left: -150%;
    width: 200%; height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    animation: finalShimmer 3s infinite;
}

.error-title {
    font-family: var(--font-main);
    font-size: 28px;
    color: #8b0000; /* Deep Red */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.error-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 35px;
}

.error-retry-btn {
    width: 100%;
    background: #111;
    border: none;
    padding: 18px;
    color: var(--gold-mid);
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.error-retry-btn:hover {
    background: #000;
    color: var(--gold-bright);
}

/* Shake Animation for Errors */
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}