/* =============================================
   1. GLOBAL STYLES & VARIABLES
   ============================================= */
:root {
    --primary: #d4af37;
    --primary-dark: #b8941f;
    --secondary: #2c3e50;
    --accent: #7e5109;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --success: #28a745;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.15);
    --card-hover-transform: translateY(-8px);
    --image-container-height: 240px;
    --card-border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.section-title::before {
    content: '🪙';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    opacity: 0.1;
}

/* =============================================
   2. HEADER & NAVIGATION - FIXED CART BUTTON
   ============================================= */
.navbar {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.98) 0%, rgba(33, 47, 60, 0.98) 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.logo-img {
    height: 45px;
    width: auto;
    margin-right: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.8px;
    background: linear-gradient(45deg, var(--primary), #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
    position: relative;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* =============================================
   3. HERO SECTION - REDUCED HEIGHT
   ============================================= */
.hero {
    min-height: 70vh;
    height: auto;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(33, 47, 60, 0.9) 100%), url('images/hero-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 5rem;
    color: var(--light);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="coins" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23coins)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 600px;
    animation: fadeInLeft 1s ease;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--secondary);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.hero-animation {
    animation: fadeInRight 1s ease;
    position: relative;
    z-index: 2;
}

.coin-rotate {
    font-size: 10rem;
    color: var(--primary);
    animation: rotate 15s linear infinite;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* =============================================
   4. ABOUT SECTION
   ============================================= */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--dark);
}

.features {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.2rem;
}

.feature {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
}

.feature i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.coin-stack {
    position: relative;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coin {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #d4af37, #b8941f);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.2rem;
    border: 3px solid rgba(255, 215, 0, 0.3);
}

.coin::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.coin-1 {
    transform: rotate(15deg);
    animation: float 4s ease-in-out infinite;
    z-index: 3;
}

.coin-2 {
    transform: rotate(-10deg) translateX(-100px);
    animation: float 4s ease-in-out infinite 1s;
    z-index: 2;
    opacity: 0.9;
}

.coin-3 {
    transform: rotate(5deg) translateX(100px);
    animation: float 4s ease-in-out infinite 2s;
    z-index: 1;
    opacity: 0.8;
}

/* =============================================
   5. CONTACT SECTION
   ============================================= */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    color: var(--secondary);
    font-size: 1.8rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    color: var(--primary);
    margin-right: 15px;
    width: 25px;
    font-size: 1.2rem;
}

.social-links {
    margin-top: 2.5rem;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), #34495e);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(52, 73, 94, 0.3);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--secondary);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

/* Shipping Info */
.shipping-info {
    margin: 2rem 0;
}

.shipping-card {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.shipping-card i {
    color: var(--primary);
    font-size: 2rem;
    flex-shrink: 0;
}

.shipping-details h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.shipping-charge {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.shipping-note {
    color: var(--gray);
    font-size: 0.95rem;
}

/* =============================================
   6. FOOTER SECTION
   ============================================= */
footer {
    background: linear-gradient(135deg, var(--secondary) 0%, #2c3e50 100%);
    color: var(--light);
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.footer-logo .logo-img {
    height: 40px;
    margin-right: 12px;
    border-radius: 8px;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* =============================================
   7. MODAL SECTION
   ============================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    margin: 3% auto;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    position: relative;
    animation: modalFadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.2rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.close-modal:hover {
    color: var(--dark);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.modal-coin-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 20px;
}

.modal-coin-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.modal-coin-image:hover {
    transform: scale(1.02);
}

.modal-coin-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-coin-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

.modal-coin-origin {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), #34495e);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 6px 15px rgba(52, 73, 94, 0.3);
}

.modal-coin-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 6px rgba(212, 175, 55, 0.3);
}

.modal-coin-description {
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.coin-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.spec {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.spec strong {
    color: var(--secondary);
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-whatsapp-btn,
.modal-add-cart {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    flex: 1;
    justify-content: center;
}

.modal-add-cart {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--secondary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.modal-add-cart.in-cart {
    background: #27ae60;
    color: white;
}

.modal-whatsapp-btn:hover,
.modal-add-cart:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.modal-add-cart:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

/* =============================================
   8. ADMIN & UTILITY STYLES
   ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
}

.coin-description {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.empty-state h3 {
    color: var(--secondary);
    margin: 15px 0;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 20px;
}

.empty-state button {
    background: var(--primary);
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
}

/* =============================================
   9. ANIMATIONS
   ============================================= */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(15deg);
    }

    50% {
        transform: translateY(-25px) rotate(15deg);
    }

    100% {
        transform: translateY(0px) rotate(15deg);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* =============================================
   10. RESPONSIVE DESIGN - CORE & FIXED MOBILE CART
   ============================================= */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .coin-rotate {
        font-size: 8rem;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: 65vh;
        padding: 6rem 5% 4rem;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-animation {
        display: none;
    }

    .hero {
        justify-content: center;
        text-align: center;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-coin-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.98) 0%, rgba(33, 47, 60, 0.98) 100%);
        width: 100%;
        text-align: center;
        transition: 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.2rem 0;
    }

    /* FIXED: Cart button mobile alignment */
    .nav-item .cart-button {
        display: inline-flex;
        width: auto;
        max-width: 200px;
        margin: 0 auto;
    }

    .hero {
        min-height: 60vh;
        padding: 5rem 8% 3rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .coin-card {
        min-width: 0;
        /* Override to prevent overflow */
        max-width: none;
        width: 100%;
        /* Full width of grid cell */
        margin: 0;
        /* Remove auto margin to fit grid */
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 55vh;
        padding: 4rem 5% 2.5rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 35px;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .coin-card {
        min-width: 0;
        width: 100%;
    }
}


/* =============================================
   11. CUSTOM SCROLLBAR & UTILITIES
   ============================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--primary-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--primary-dark), var(--primary));
}

/* =============================================
   3D COIN FLIP STYLES FOR MAIN WEBSITE
   ============================================= */

/* 3D Flip Container */
.coin-image-container {
    position: relative;
    height: var(--image-container-height);
    border-radius: 12px;
    background: #f1f5f9;
    overflow: hidden;
    perspective: 1000px;
    margin-bottom: 1rem;
}

.coin-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.coin-flipper.show-front {
    transform: rotateY(0deg);
}

.coin-flipper.show-back {
    transform: rotateY(180deg);
}

.coin-image-front,
.coin-image-back {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 20px;
    background: white;
}

.coin-image-front {
    z-index: 2;
}

.coin-image-back {
    transform: rotateY(180deg);
}

/* Modal 3D Flip Container */
.modal-coin-image-container {
    position: relative;
    height: 350px;
    border-radius: 15px;
    background: #f1f5f9;
    overflow: hidden;
    perspective: 1000px;
    margin-bottom: 2rem;
}

.modal-coin-image-container .coin-flipper {
    height: 100%;
}

.modal-coin-image-container .coin-image-front,
.modal-coin-image-container .coin-image-back {
    padding: 30px;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.nav-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Show arrows only if back image exists */
.coin-image-container.has-back .nav-arrow,
.coin-image-container.has-back .image-indicators {
    display: flex !important;
}

.coin-image-container.one-image .nav-arrow,
.coin-image-container.one-image .image-indicators {
    display: none !important;
}

.modal-coin-image-container.has-back .nav-arrow,
.modal-coin-image-container.has-back .image-indicators {
    display: flex !important;
}

.modal-coin-image-container.one-image .nav-arrow,
.modal-coin-image-container.one-image .image-indicators {
    display: none !important;
}

/* Dot Indicators */
.image-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

/* Badge positioning for 3D flip */
.coin-image-container .featured-badge,
.coin-image-container .out-of-stock-badge {
    position: absolute;
    top: 10px;
    z-index: 11;
}

.coin-image-container .featured-badge {
    right: 10px;
}

.coin-image-container .out-of-stock-badge {
    left: 10px;
}

/* Price Display Styles */
.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    font-weight: normal;
}

.discounted-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.6rem;
}

/* =============================================
   GLOBAL NOTIFICATIONS & ANIMATIONS
   ============================================= */

/* Unified Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: white;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification-success {
    background: var(--success, #10b981);
}

.notification-error {
    background: #ef4444;
}

.notification-info {
    background: #3b82f6;
}

.notification i {
    font-size: 1.5rem;
}

/* Form Validation Errors */
.field-error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.3s ease;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ef4444 !important;
    animation: shake 0.3s ease;
}

/* Keyframe Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}