
/* ... (All your existing CSS from :root to body) ... */
:root {
    --primary: #5e60ce;
    --primary-dark: #4d4fb8;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --accent-light: #4cc9f0;
    --danger: #f72585;
    --success: #00f5d4;
    --warning: #f8961e;
    --dark: #121224;
    --darker: #0c0c16;
    --light: #f8f9fa;
    --gray: #adb5bd;
    --light-gray: #e9ecef;
    
    --bg-gradient: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-border: var(--accent);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 5px 10px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: rgba(12, 12, 22, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: var(--light);
    font-weight: 500;
    padding: 0.5rem;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.banner-section {
    padding: 2rem 0;
    text-align: center;
}

.banner-title {
    font-size: 2.2rem;
    margin-top: 1.5rem;
    text-shadow: 0 0 15px rgba(76, 201, 240, 0.5);
}

.promo-banner-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
    max-height: 200px; /* Controls the height of the banner */
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px; /* Adjust size as needed */
    height: auto;
    z-index: 5;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); /* Add a little shadow to make it pop */
}

.promo-banner {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image from stretching */
    display: block;
}
.banner-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(12, 12, 22, 0.85), transparent);
    color: var(--light);
}
.banner-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.banner-info-item i {
    color: var(--accent-light);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Diamond Grid */
.diamond-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.diamond-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    backdrop-filter: blur(3px);
}

.diamond-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.2);
    border-color: var(--card-hover-border);
}

.diamond-card.selected {
    background: linear-gradient(135deg, rgba(72, 149, 239, 0.2), rgba(76, 201, 240, 0.1));
    border-color: var(--accent-light);
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.4);
    transform: translateY(-5px) scale(1.05);
}

.diamond-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem;
}

.diamond-info h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.diamond-info p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.diamond-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-light);
}

/* Order Form & Summary */
.order-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.order-form, .order-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1rem; 
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(72, 149, 239, 0.3);
}

.btn-submit, .btn-buy {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.btn-submit {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    color: white;
}
.btn-submit:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

.btn-buy {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}
.btn-buy img {
    height: 22px; /* Adjust size of UPI logo */
}
.btn-submit:hover:not(:disabled), .btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-top: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: center;
}
.alert-danger {
    color: #f72585;
    background-color: rgba(247, 37, 133, 0.1);
    border-color: rgba(247, 37, 133, 0.3);
}
.alert-success {
    color: #00f5d4;
    background-color: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.3);
}
.hidden { display: none; }
.spinner {
    width: 1rem; height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.buy-now h3 { margin-bottom: 1rem; }
.total-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ✅ UPDATED: Confirmation Modal Styles for better readability */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--dark);
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--card-border);
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.modal-header h3 {
    margin: 0;
    color: var(--light);
}
.close-btn {
    color: var(--gray);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}
.close-btn:hover { color: var(--light); }
.modal-body .detail-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}
.modal-body .detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}
.modal-body .detail-list li:last-child { border-bottom: none; }
.modal-body .detail-list li span:first-child {
    color: var(--gray);
    font-weight: 400;
}
.modal-body .detail-list li span:last-child {
    font-weight: 600;
    color: var(--light);
    word-break: break-all; /* For long values */
}
.modal-body .detail-list li.price-detail {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--card-border);
    font-size: 1.2rem;
    font-weight: 700;
}
.modal-body .detail-list li.price-detail span:last-child {
    color: var(--success);
}
.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}
.btn-modal {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
#confirm-btn {
    background: linear-gradient(90deg, var(--success), #00bfa5);
    color: var(--darker);
}
#cancel-btn {
    background: var(--gray);
    color: var(--darker);
}

/* Mobile Footer Menu */
.mobile-footer-menu {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: rgba(18, 18, 36, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1001;
    border-top: 1px solid var(--card-border);
}

.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray);
    font-size: 0.7rem;
    gap: 0.2rem;
    flex: 1;
}
.footer-link i { font-size: 1.2rem; }
.footer-link.active, .footer-link:hover { color: var(--accent-light); }


/* ✅ REMOVED: Mobile menu button style is no longer needed */
.mobile-menu-btn { display: none; }

/* Responsive Section */
@media (max-width: 768px) {
    body { padding-bottom: 70px; }
    .container { padding: 0 0.75rem; }
    header { padding: 0.8rem 1rem; }

    /* ✅ UPDATED: Keep nav links visible on mobile but smaller */
    .nav-links {
        gap: 0.5rem;
    }
    .nav-links a {
        padding: 0.5rem 0.3rem;
        font-size: 0.8rem;
    }
    .nav-links a::after {
        display: none; /* Hide underline on mobile for cleaner look */
    }

    .banner-title { 
        font-size: 1.6rem;
        margin-top: 1rem;
    }
    .promo-banner-wrapper { max-height: 120px; }
    .banner-icon {
        width: 40px;
        top: 10px;
        left: 10px;
    }
    .banner-overlay-text {
        flex-direction: row; 
        justify-content: space-around;
        padding: 0.5rem;
        gap: 0.5rem;
        background: linear-gradient(to top, rgba(12, 12, 22, 0.95), transparent);
    }
    .banner-info-item { font-size: 0.7rem; }
    .diamond-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .diamond-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5rem;
        border-radius: 8px;
        border: 1px solid var(--card-border);
    }
    .diamond-image {
        width: 30px; height: 30px;
        margin: 0 0 0.3rem 0;
    }
    .diamond-info h3 { 
        font-size: 0.7rem; 
        font-weight: 500;
        line-height: 1.2;
    }
    .diamond-info p { display: none; }
    .diamond-price { 
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }
    .order-form, .order-summary { 
        padding: 1.2rem; 
        border: 1px solid var(--card-border); 
        border-radius: 8px; 
    }
    .mobile-footer-menu { display: flex; }
}

@media (min-width: 768px) {
    .order-section { grid-template-columns: 1fr 1fr; }
}

