/* ============================================ */
/* DASHBOARD BASE STYLES                        */
/* ============================================ */
.dashboard-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem 1rem;
    position: relative;
    flex-direction: column;
}

.dashboard-wrapper.has-cache {
    align-items: stretch;
    padding-top: 0.5rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 163, 115, 0.4);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    z-index: 10;
}

.dashboard-card.compact {
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 1rem;
}

.user-icon-wrapper {
    width: 6rem;
    height: 6rem;
    background-color: rgba(212, 163, 115, 0.2);
    border: 1px solid rgba(212, 163, 115, 0.4);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-darkGold);
    font-size: 3rem;
    margin: 0 auto 1.5rem auto;
}

.greeting-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.greeting-title span {
    color: var(--brand-darkGold);
}

.greeting-desc {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.info-box {
    background-color: rgba(249, 250, 251, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.info-box-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 6rem;
    height: 6rem;
    background-color: rgba(212, 163, 115, 0.05);
    border-bottom-left-radius: 100px;
    z-index: 0;
}

.info-box-header {
    font-weight: 700;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-edit-small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--brand-darkGold);
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(212, 163, 115, 0.2);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-edit-small:hover {
    background-color: #f9fafb;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-darkGold);
    flex-shrink: 0;
    font-size: 0.875rem;
}

.info-label {
    font-weight: 600;
    color: #9ca3af;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.125rem;
}

.info-value {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .action-grid {
        grid-template-columns: 1fr 1fr;
    }

    .btn-primary-large {
        grid-column: span 2;
    }
}

.btn-primary-large {
    background-color: var(--brand-darkGold);
    color: white;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary-large:hover {
    background-color: #d4a373;
    transform: translateY(-4px);
}

.btn-secondary {
    background: white;
    color: var(--brand-darkGold);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid rgba(212, 163, 115, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: rgba(212, 163, 115, 0.6);
    background: rgba(212, 163, 115, 0.05);
}

/* ============================================ */
/* DASHBOARD CACHED DATA STYLES                 */
/* ============================================ */

/* Tab Panels */
.dash-tab-panel {
    display: none;
}

.dash-tab-panel.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dash-results-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 80px;
    /* space for bottom nav */
}

/* Cache status banner */
.cache-banner {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #166534;
}

.cache-banner i {
    font-size: 1.1rem;
}

.no-cache-banner {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #92400e;
    margin-bottom: 16px;
}

/* ============================================ */
/* BOTTOM TAB NAV BAR                           */
/* ============================================ */
.dash-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.dash-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 52px;
    -webkit-tap-highlight-color: transparent;
}

.dash-nav-item i {
    font-size: 1.15rem;
    transition: all 0.2s;
}

.dash-nav-item.active {
    color: var(--brand-darkGold, #b08d55);
}

.dash-nav-item.active i {
    transform: scale(1.15);
}

.dash-nav-item:active {
    transform: scale(0.92);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .dash-bottom-nav {
        display: none;
    }

    .dash-results-container {
        padding-bottom: 2rem;
    }
}

/* Desktop tab buttons */
.dash-desktop-tabs {
    display: none;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

@media (min-width: 769px) {
    .dash-desktop-tabs {
        display: flex;
    }
}

.dash-desktop-tab {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-desktop-tab:hover {
    border-color: var(--brand-darkGold, #b08d55);
    color: var(--brand-darkGold, #b08d55);
}

.dash-desktop-tab.active {
    background: var(--brand-darkGold, #b08d55);
    color: #fff;
    border-color: var(--brand-darkGold, #b08d55);
}

/* ============================================ */
/* MORE POPUP                                   */
/* ============================================ */
.dash-more-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transition: bottom 0.3s ease;
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.dash-more-popup.open {
    bottom: 60px;
}

.dash-more-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.dash-more-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
}

.dash-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dash-more-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.dash-more-item i {
    font-size: 1.3rem;
    color: var(--brand-darkGold, #b08d55);
}

.dash-more-item:active {
    transform: scale(0.95);
}

.dash-more-locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.dash-more-locked i {
    color: #9ca3af;
}

.dash-more-link {
    background: linear-gradient(135deg, #fffbf0, #fef3c7);
    border-color: #fbbf24;
}

.dash-more-link i {
    color: #d97706;
}

.dash-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.dash-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================ */
/* DASHBOARD CARD TWEAKS WHEN CACHE EXISTS      */
/* ============================================ */
.dashboard-card.compact .greeting-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.dashboard-card.compact .greeting-desc {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* Refresh / recalculate button */
.btn-recalculate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #b08d55, #8a6a30);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(176, 141, 85, 0.3);
    transition: all 0.2s;
}

.btn-recalculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(176, 141, 85, 0.4);
}
/* සංයුක්ත (Compact) ප්‍රකාරය සඳහා විශේෂ සැකසුම් */
.dashboard-card.compact {
    padding: 0.75rem 1rem !important; /* කාඩ්පතේ පිටත ඉඩ අඩු කරයි */
}

.dashboard-card.compact .info-box {
    padding: 0.25rem 0 !important; /* ඇතුළත ඉඩ ඉවත් කරයි */
    margin-bottom: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.dashboard-card.compact .info-box-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.dashboard-card.compact .info-box-bg-shape {
    display: none !important; /* පසුබිම් හැඩතල ඉවත් කරයි */
}

/* කුඩා තිර වලදී බටන් එකිනෙක නොවී පේළියට තබා ගැනීමට */
@media (max-width: 480px) {
    .dashboard-card.compact .info-box-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .dashboard-card.compact .info-box-header span {
        font-size: 0.8rem;
    }
}

/* ============================================ */
/* CALCULATION MODAL STYLES                     */
/* ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #ffffff;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(212, 163, 115, 0.35);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px) scale(0.98);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafaf9;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.modal-header h3 i {
    color: var(--brand-darkGold, #b08d55);
}

.modal-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* Modal Form Styles */
.modal-form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.modal-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.375rem;
}

.modal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.modal-input-wrapper i {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    z-index: 5;
}

.modal-form-control {
    width: 100%;
    padding: 0.65rem 0.75rem 0.65rem 2.25rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s;
    background: #ffffff;
    box-sizing: border-box;
}

.modal-form-control:focus {
    outline: none;
    border-color: var(--brand-darkGold, #b08d55);
    box-shadow: 0 0 0 3px rgba(176, 141, 85, 0.15);
}

.modal-grid-3 {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 8px;
}

.modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.modal-grid-4-time {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr;
    gap: 8px;
}

.modal-select-control {
    width: 100%;
    padding: 0.65rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s;
    background: #ffffff;
    box-sizing: border-box;
}

.modal-select-control:focus {
    outline: none;
    border-color: var(--brand-darkGold, #b08d55);
    box-shadow: 0 0 0 3px rgba(176, 141, 85, 0.15);
}

/* Autocomplete suggestions */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 21000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.autocomplete-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.autocomplete-results li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
}

.autocomplete-results li:hover {
    background: #f8fafc;
}

/* Modal Footer */
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fafaf9;
}

.btn-modal-cancel {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1.5px solid #cbd5e1;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-cancel:hover {
    background: #f8fafc;
    color: #334155;
    border-color: #94a3b8;
}

.btn-modal-submit {
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    background: var(--brand-darkGold, #b08d55);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(176, 141, 85, 0.2);
}

.btn-modal-submit:hover {
    background: #9d7c49;
}

.btn-modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* DST Warning box */
.dst-warning-box {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #b45309;
    margin-bottom: 1.25rem;
    display: none;
    line-height: 1.45;
}

/* Modal Spinner overlay */
.modal-spinner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

/* ============================================ */
/* PREMIUM UPGRADE MODAL STYLES                 */
/* ============================================ */

/* Modal Gold Accent & Gradient */
.premium-modal .modal-card {
    border: 2px solid rgba(212, 163, 115, 0.6);
    background: linear-gradient(to bottom, #ffffff, #fffdfa);
}

.premium-modal .modal-header {
    background: linear-gradient(135deg, #fafaf9, #f5efe6);
    border-bottom: 1.5px solid rgba(212, 163, 115, 0.2);
}

/* Steps Indicator */
.premium-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    position: relative;
}

.premium-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.premium-step-item {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.premium-step-item.active {
    border-color: #b08d55;
    background: #b08d55;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(176, 141, 85, 0.3);
}

.premium-step-item.completed {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

/* Pricing Header */
.premium-price-box {
    background: linear-gradient(135deg, #b08d55, #d4a373);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(176, 141, 85, 0.2);
}

.premium-price-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.premium-price-amount {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.premium-price-period {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Features list */
.premium-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.premium-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #334155;
}

.premium-features-list li:last-child {
    border-bottom: none;
}

.premium-features-list li i {
    color: #b08d55;
    margin-top: 3px;
    font-size: 1rem;
}

/* Accordion */
.payment-accordion {
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

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

.accordion-header {
    background: #f8fafc;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-title i {
    color: #b08d55;
    font-size: 1.1rem;
}

.accordion-icon {
    transition: transform 0.2s ease;
    font-size: 0.9rem;
    color: #64748b;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: #ffffff;
}

.accordion-item.open .accordion-content {
    padding: 1.25rem;
    max-height: 500px;
    border-top: 1px solid #e2e8f0;
}

/* Bank Details Table */
.bank-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.bank-details-table td {
    padding: 8px 0;
    vertical-align: top;
}

.bank-details-table td:first-child {
    width: 35%;
    font-weight: 600;
    color: #64748b;
}

.bank-details-table td:last-child {
    color: #1e293b;
    font-weight: 500;
}

.bank-details-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #475569;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.2s;
}

.bank-details-copy:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Drag and Drop Zone */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: #b08d55;
    background: rgba(176, 141, 85, 0.03);
}

.upload-dropzone i.upload-icon {
    font-size: 2.5rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.upload-dropzone:hover i.upload-icon, .upload-dropzone.dragover i.upload-icon {
    color: #b08d55;
}

.upload-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.4;
}

.upload-text strong {
    color: #b08d55;
}

.upload-hint {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* File Preview */
.file-preview-container {
    margin-top: 1rem;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-preview-info {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 80%;
}

.file-preview-info i {
    font-size: 1.5rem;
    color: #b08d55;
}

.file-preview-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    font-size: 0.75rem;
    color: #94a3b8;
}

.file-preview-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.file-preview-remove:hover {
    background: #fee2e2;
}

/* Success Card */
.premium-success-card {
    text-align: center;
    padding: 1.5rem;
}

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

.premium-success-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.premium-success-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ============================================ */
/* MOBILE SPACING & PADDING OPTIMIZATIONS       */
/* ============================================ */
@media (max-width: 600px) {
    .dashboard-wrapper {
        padding: 0.5rem 0.25rem 1rem !important; /* Reduce left/right padding from 16px to 4px */
    }
    .dashboard-wrapper.has-cache {
        padding: 0.5rem 0.25rem 1rem !important;
    }
    .dashboard-card {
        padding: 1.5rem 1rem !important; /* Reduce card side padding from 32px to 16px */
        border-radius: 1rem !important;
    }
    .dash-results-container {
        padding: 0.5rem !important; /* Reduce results container side padding from 16px to 8px */
    }
}