/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FFD700;
}

.modal-header h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: #FFD700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #333;
    transform: scale(1.1);
}

.enquiry-form {
    display: grid;
    gap: 20px;
}

.form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: #FFD700;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group label i {
    color: #FFD700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    outline: none;
}

.form-group select[multiple] {
    height: auto;
    min-height: 100px;
}

.submit-btn {
    background: linear-gradient(45deg, #FFD700, #DAA520);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-right: 10px;
}

.cancel-btn:hover {
    background: #e5e5e5;
    color: #333;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.2);
}

/* Required field indicator */
.form-group label[for]:after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
}

/* Invalid field styling */
.form-group input:invalid {
    border-color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        margin: 10px;
    }

    .enquiry-form {
        gap: 15px;
    }

    .form-section {
        padding: 15px;
    }
}

/* Action Buttons Styles */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.download-btn,
.share-btn,
.enquiry-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.download-btn {
    background-color: #2196F3;
}

.download-btn:hover {
    background-color: #1976D2;
}

.share-btn:hover {
    background-color: #45a049;
}

.enquiry-btn:hover {
    background-color: #F57C00;
}

.enquiry-btn i {
    font-size: 1.1rem;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #40E0D0 0%, #2C8B80 100%);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.app-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 10px;
}

.title-container {
    display: flex;
    flex-direction: column;
}

.app-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    white-space: nowrap;
}

.app-title span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-title span:hover {
    transform: translateY(-5px);
}

/* Updated colors for GOLDNEST */
.app-title .g { color: #FFD700; }
.app-title .o { color: #FFA500; }
.app-title .l { color: #DAA520; }
.app-title .d { color: #FFD700; }
.app-title .n { color: #FFA500; }
.app-title .e { color: #DAA520; }
.app-title .s { color: #FFD700; }
.app-title .t { color: #FFA500; }

.tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #FFF8DC;
    margin: 5px 0 0 0;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .header {
        padding: 10px;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .app-logo {
        width: 36px;
        height: 36px;
    }
    
    .app-title {
        font-size: 32px;
        letter-spacing: 0.5px;
    }
    
    .tagline {
        font-size: 14px;
    }
}

@media screen and (max-width: 400px) {
    .app-logo {
        width: 32px;
        height: 32px;
    }
    
    .app-title {
        font-size: 28px;
    }
}

/* Screen Management */
.screen {
    display: none;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.screen.active {
    display: block;
}

/* Calculator Groups */
.calculator-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.group-title {
    grid-column: 1 / -1;
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid #ffd700;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-group {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.group-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.calc-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
}

.calc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.calc-button i {
    font-size: 1.2em;
    color: #666;
}

.calc-button:hover i {
    color: #000;
}

.calc-button span {
    flex: 1;
    font-weight: 500;
}

/* Make sure all calculator screens are properly hidden by default */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Calculator Buttons */
.calc-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(145deg, #ffd700 0%, #ffb347 100%);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: inherit;
    min-height: 120px;
    text-align: center;
}

.calc-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.calc-button span {
    font-size: 1.1em;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
}

/* Calculator Sections */
.calculator-section {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Rate Section */
.rate-section {
    background-color: #FFD700;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.rate-section h2 {
    color: #8B4513;
    margin-bottom: 15px;
}

.rate-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Input Groups */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Karat Selection */
.karat-selection {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1),
                inset -2px -2px 5px rgba(255, 255, 255, 0.9);
}

.karat-btn, .calc-button, .button-group button, .back-btn {
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.karat-btn {
    flex: 1;
    min-width: 80px;
    height: 50px;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-radius: 12px;
    color: #2C3E50;
    background: linear-gradient(145deg, #FFD700, #FFC000);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1),
                -5px -5px 10px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.karat-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.karat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15),
                -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.karat-btn:hover::before {
    opacity: 1;
}

.karat-btn:active {
    transform: translateY(1px);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1),
                -2px -2px 4px rgba(255, 255, 255, 0.7),
                inset 2px 2px 4px rgba(0, 0, 0, 0.1),
                inset -2px -2px 4px rgba(255, 255, 255, 0.5);
}

.karat-btn.active {
    background: linear-gradient(145deg, #FFC000, #FFD700);
    color: #1a1a1a;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.15),
                inset -2px -2px 5px rgba(255, 255, 255, 0.5);
    transform: translateY(1px);
}

/* Calculate and Reset Buttons */
.button-group {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    padding: 10px;
}

.button-group button {
    min-width: 150px;
    height: 50px;
    padding: 0 30px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-group button:first-child {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1),
                -5px -5px 10px rgba(255, 255, 255, 0.8);
}

.button-group button:last-child {
    background: linear-gradient(145deg, #f44336, #e53935);
    color: white;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1),
                -5px -5px 10px rgba(255, 255, 255, 0.8);
}

.button-group button:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15),
                -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.button-group button:active {
    transform: translateY(1px);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1),
                -2px -2px 4px rgba(255, 255, 255, 0.7),
                inset 2px 2px 4px rgba(0, 0, 0, 0.1),
                inset -2px -2px 4px rgba(255, 255, 255, 0.5);
}

/* Back to Menu Button */
.back-btn, .back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    padding: 0 30px;
    height: 50px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2C3E50;
    background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
    border-radius: 12px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1),
                -5px -5px 10px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10; /* Lower z-index than modal dialogs */
}

/* Hide back button when modals are active */
body.modal-active .back-btn,
body.modal-active .back-button {
    display: none !important;
}

/* Consistent hover effects for all buttons */
.karat-btn::before,
.button-group button::before,
.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.karat-btn:hover::before,
.button-group button:hover::before,
.back-btn:hover::before {
    opacity: 1;
}

/* Consistent active effects for all buttons */
.karat-btn:active,
.button-group button:active,
.back-btn:active {
    transform: translateY(1px);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1),
                -2px -2px 4px rgba(255, 255, 255, 0.7),
                inset 2px 2px 4px rgba(0, 0, 0, 0.1),
                inset -2px -2px 4px rgba(255, 255, 255, 0.5);
}

/* Breakdown Section */
.breakdown-section {
    background-color: #FFF8DC;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.breakdown-section h2 {
    color: #8B4513;
    margin-bottom: 15px;
    text-align: center;
}

.breakdown-section p {
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Chart Styles */
canvas#emiChart,
canvas#interestChart {
    max-width: 300px !important;
    max-height: 300px !important;
    margin: 20px auto;
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
}

.modal-content {
    width: 100%;
}

.modal h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rate-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rate-input label {
    color: #666;
}

.rate-input input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Wedding Jewelry Budget Planner Styles */
.planner-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    text-align: center;
}

.budget-input {
    max-width: 400px;
    margin: 0 auto 30px;
}

.jewelry-selection {
    margin: 20px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.jewelry-selection h3 {
    color: #2C8B80;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.jewelry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.jewelry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.jewelry-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.jewelry-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #FFD700;
    cursor: pointer;
}

.jewelry-item label {
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

.budget-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.budget-option {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.option-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.option-header h3 {
    color: #2C8B80;
    margin-bottom: 8px;
    font-size: 22px;
}

.option-desc {
    color: #666;
    font-size: 14px;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.breakdown-table th {
    background: #f8f8f8;
    padding: 12px;
    text-align: left;
    color: #444;
    font-weight: 600;
    border-bottom: 2px solid #eee;
}

.breakdown-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #666;
}

.breakdown-table .total-row {
    font-weight: bold;
    background: #f8f8f8;
}

.breakdown-table .total-row td {
    color: #333;
}

.summary-section {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.summary-section h3 {
    color: #2C8B80;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.summary-section .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-item {
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
    text-align: center;
}

.summary-item .label {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.summary-item .value {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.download-btn {
    display: inline-block;
    margin: 30px 0;
    padding: 14px 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 10px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.primary-btn, .secondary-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #2C8B80 0%, #40E0D0 100%);
    color: white;
    border: none;
}

.secondary-btn {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Wedding Planner Specific Styles */
.wedding-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid rgba(218, 165, 32, 0.3);
}

.wedding-header h2 {
    font-size: 32px;
    color: #8B4513;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #8B4513, #DAA520);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.planner-description {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    font-style: italic;
}

#wedding .calculator-form {
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#wedding .input-group {
    margin-bottom: 20px;
    position: relative;
}

#wedding .input-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a4a4a;
    font-weight: 600;
    font-size: 15px;
}

#wedding .input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}

#wedding .input-group input:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

#wedding .input-group input::placeholder {
    color: #999;
    font-style: italic;
}

/* Scrolling Images Section */
.scrolling-images-section {
    display: block !important;
    width: 100%;
    margin: 30px 0;
    background: #f0f0f0; /* Debug: visible background */
    min-height: 250px; /* Debug: ensure visible height */
}

.scrolling-images-container {
    width: 100%;
    max-width: 800px;
    height: 250px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #ddd; /* Debug: visible border */
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.scrolling-images {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(300px * 6);
    gap: 20px;
    height: 200px;
    background: #fafafa; /* Debug: visible background */
}

.image-slide {
    flex: 0 0 300px;
    height: 200px;
    padding: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #eee; /* Debug: visible background when image fails */
    border: 1px solid #ccc; /* Debug: visible border */
}

.image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-slide:hover img {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 3 - 60px));
    }
}

.scrolling-images:hover {
    animation-play-state: paused;
}

/* Live Rate Section Main Container */
.live-rate-section {
    background: linear-gradient(145deg, #1a237e, #283593);
    border-radius: 20px;
    padding: 25px;
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
                0 5px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Header Styles */
.rate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.rate-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

/* Admin Button */
.admin-btn {
    background: linear-gradient(145deg, #ff4081, #e91e63);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2),
                0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.admin-btn:hover {
    background: linear-gradient(145deg, #e91e63, #ff4081);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.admin-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Time Display */
.rate-time {
    color: #ffffff;
    font-size: 1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Rate Grid Layout */
.rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
}

/* Individual Rate Cards */
.rate-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transform: translateZ(0);
}

/* Different gradients for each karat type */
.rate-item:nth-child(1) {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2), rgba(255, 223, 0, 0.1));
}

.rate-item:nth-child(2) {
    background: linear-gradient(145deg, rgba(255, 200, 0, 0.2), rgba(255, 208, 0, 0.1));
}

.rate-item:nth-child(3) {
    background: linear-gradient(145deg, rgba(255, 185, 0, 0.2), rgba(255, 193, 0, 0.1));
}

.rate-item:nth-child(4) {
    background: linear-gradient(145deg, rgba(255, 170, 0, 0.2), rgba(255, 178, 0, 0.1));
}

/* Hover Effects */
.rate-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Rate Card Text Styles */
.rate-item span:first-child {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.rate-item .rate {
    font-size: 1.4em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Orbitron', sans-serif;
}

/* Section Title */
h4 {
    color: #ffffff;
    font-size: 1.2em;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

/* Live Indicator Animation */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite ease-in-out;
}

/* Rate Controls */
.rate-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.download-btn,
.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.download-btn {
    background: linear-gradient(135deg, #b88609, #ffd700);
    color: #fff;
}

.share-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
}

.download-btn:hover,
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.share-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
    overflow: hidden;
}

.share-modal-header {
    background: linear-gradient(135deg, #40E0D0 0%, #2C8B80 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.share-text {
    padding: 20px;
    color: #333;
    font-size: 0.9em;
    line-height: 1.5;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px 20px;
}

.share-button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0D65D9 100%);
}

.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0C85D0 100%);
}

.share-footer {
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #eee;
}

.share-note {
    margin: 0 0 10px;
    color: #666;
    font-size: 0.9em;
}

.download-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #b88609, #ffd700);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.download-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.download-report i {
    margin-right: 8px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold Loan Comparison Styles */
.summary-header {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.summary-header h3 {
    margin: 0 0 20px 0;
    font-family: 'Orbitron', sans-serif;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-item .label {
    font-size: 0.9em;
    color: #666;
}

.summary-item .value {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

.comparison-table {
    margin-top: 30px;
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2c3e50;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.comparison-table tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

/* Best Suggestion Styles */
#loan-best-suggestion {
    margin-top: 30px;
}

.best-suggestion-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.suggestion-summary {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.top-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.suggestion-card {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.suggestion-card.best-pick {
    border: 2px solid #FFD700;
    background: linear-gradient(135deg, #fff, #fffdf0);
}

.best-pick-badge {
    position: absolute;
    top: -12px;
    right: 10px;
    background: #FFD700;
    color: #2c3e50;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggestion-card h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.suggestion-details {
    display: grid;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.detail-item .label {
    color: #666;
}

.detail-item .value {
    font-weight: 500;
    color: #2c3e50;
}

/* Action Buttons Styling */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.action-buttons button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
}

.pdf-button {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    color: white;
}

.share-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.action-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.action-buttons i {
    font-size: 1.2em;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.back-button i {
    font-size: 1.2em;
}

/* Gold Loan Calculator Form Styles */
#goldloan-comparison .calculator-form {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

#goldloan-comparison .input-group {
    margin-bottom: 20px;
}

#goldloan-comparison .input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

#goldloan-comparison input[type="number"],
#goldloan-comparison select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

#goldloan-comparison input[type="number"]:focus,
#goldloan-comparison select:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    outline: none;
}

#goldloan-comparison .button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

#goldloan-comparison .primary-button,
#goldloan-comparison .secondary-button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#goldloan-comparison .primary-button {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2c3e50;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.3);
}

#goldloan-comparison .secondary-button {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

#goldloan-comparison .primary-button:hover,
#goldloan-comparison .secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#goldloan-comparison .primary-button:active,
#goldloan-comparison .secondary-button:active {
    transform: translateY(1px);
}

/* Enhanced Action Buttons */
#goldloan-comparison .action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

#goldloan-comparison .action-buttons button {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#goldloan-comparison .pdf-button {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    color: white;
}

#goldloan-comparison .share-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

#goldloan-comparison .action-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#goldloan-comparison .action-buttons button:active {
    transform: translateY(1px);
}

/* Enhanced Back Button */
#goldloan-comparison .back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

#goldloan-comparison .back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

#goldloan-comparison .back-button i {
    font-size: 1.2em;
}

/* Enhanced Title */
#goldloan-comparison h2 {
    font-family: 'Orbitron', sans-serif;
    color: #2c3e50;
    text-align: center;
    margin: 40px 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#goldloan-comparison h2 i {
    color: #ffd700;
    font-size: 1.2em;
}

/* Calculator Navigation */
.calculator-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calculator-nav h2 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calculator-nav h2 i {
    color: #ffd700;
}

.calculator-nav .back-button {
    position: absolute;
    left: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.calculator-nav .back-button:hover {
    transform: translateX(-5px);
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.calculator-nav .back-button i {
    font-size: 1.2em;
}

/* Enhanced Form Inputs */
.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    outline: none;
}

/* Button Group Enhancement */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.button-group button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.button-group .primary-button {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2c3e50;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.3);
}

.button-group .secondary-button {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

.button-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.button-group button:active {
    transform: translateY(1px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .calculator-nav {
        flex-direction: column;
        padding: 15px;
    }

    .calculator-nav .back-button {
        position: static;
        margin-bottom: 15px;
    }

    .button-group {
        flex-direction: column;
    }
}

/* Loan Comparison Styles */
.comparison-results {
    margin-top: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.summary-header h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-family: 'Orbitron', sans-serif;
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-item .label {
    color: #6c757d;
    font-size: 0.9em;
}

.summary-item .value {
    font-weight: 600;
    color: #2c3e50;
}

.comparison-table {
    padding: 20px;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #2c3e50;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #2c3e50;
}

.comparison-table tr:hover {
    background-color: #f8f9fa;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Best Suggestion Styles */
#loan-best-suggestion {
    margin-top: 30px;
}

.best-suggestion-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.suggestion-summary {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.top-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.suggestion-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.suggestion-card.best-pick {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fff, #fffdf0);
}

.best-pick-badge {
    position: absolute;
    top: -12px;
    right: 10px;
    background: #ffd700;
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.suggestion-card h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.suggestion-details {
    display: grid;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #dee2e6;
}

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

.detail-item .label {
    color: #6c757d;
}

.detail-item .value {
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .summary-details {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        margin: 0 -20px;
    }
    
    .top-suggestions {
        grid-template-columns: 1fr;
    }
}

/* Jewellery Shops Navigation Button Styles */
.jewellery-shops-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: linear-gradient(145deg, #ffd700 0%, #ffb347 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none; /* Added for <a> tag */
    color: inherit; /* Added for <a> tag */
}

.jewellery-shops-nav-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.jewellery-shops-nav-btn i {
    font-size: 2em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.jewellery-shops-nav-btn span {
    font-size: 1.1em;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
}

/* SIP Calculator specific styles */
#gold-sip .input-group {
    margin-bottom: 20px;
}

#gold-sip .breakdown-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Virtual Try-On Styles */
.tryon-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.tryon-introduction {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.tryon-info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.tryon-info h3 {
    font-family: var(--font-display, 'Playfair Display', serif);
    color: #B8860B;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.tryon-info p {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tryon-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.tryon-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4A4A4A;
}

.tryon-features li i {
    color: #D4AF37;
    font-size: 1.2rem;
}

.tryon-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-top: 10px;
}

.tryon-launch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.tryon-launch-btn i {
    font-size: 1.3rem;
}

.tryon-preview {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tryon-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.jewelry-preview {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.tryon-preview:hover .jewelry-preview {
    transform: scale(1.05);
}

.tryon-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.tryon-preview:hover .tryon-preview-overlay {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .tryon-introduction {
        flex-direction: column;
    }
    
    .tryon-info h3 {
        font-size: 1.5rem;
    }
    
    .tryon-launch-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Offline mode styles */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f2994a;
    color: white;
    text-align: center;
    padding: 8px;
    z-index: 1000;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.offline-indicator i {
    margin-right: 5px;
}

.offline-rate {
    opacity: 0.8;
    position: relative;
}

.offline-rate::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.offline-note {
    font-size: 0.8em;
    color: #f2994a;
    margin-left: 5px;
    font-style: italic;
}

/* Connectivity notifications */
.connectivity-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1010;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 90%;
    min-width: 300px;
    animation: slide-in 0.3s ease-out;
}

.connectivity-notification.success {
    background-color: #2E7D32;
}

.connectivity-notification.warning {
    background-color: #f2994a;
}

.connectivity-notification.error {
    background-color: #c62828;
}

.connectivity-notification .notification-content {
    display: flex;
    align-items: center;
}

.connectivity-notification i {
    margin-right: 10px;
    font-size: 1.2em;
}

.connectivity-notification .close-notification {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

.connectivity-notification.fade-out {
    animation: fade-out 0.3s ease-out forwards;
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}


