* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333333;
    padding-bottom: 50px;
}

/* Navbar - Centered Navigation Tabs */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: relative;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* CENTER ALIGNED LOAN TABS */
.nav-tabs {
    display: flex;
    list-style: none;
    gap: 25px;
    flex: 1;
    justify-content: center;
    margin: 0 20px;
}

.tab-link {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    padding: 6px 12px;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-link:hover {
    color: #111827;
}

.tab-link.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
    font-weight: 600;
}

/* Custom Dropdown Trigger Container */
.custom-dropdown-container {
    position: relative;
    margin-left: auto;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-section {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* Left Section */
.left {
    flex: 2;
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.left h1 {
    font-size: 28px;
    color: #111827;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 25px;
}

.params-box h3 {
    font-size: 15px;
    color: #374151;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 22px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-row label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.5px;
}

/* EDITABLE INPUT BOXES */
.input-wrapper {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 3px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
}

.input-wrapper span {
    color: #0369a1;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease;
}

.value-input {
    background: transparent;
    border: none;
    outline: none;
    color: #0369a1;
    font-weight: 700;
    font-size: 14px;
    width: 85px;
    text-align: right;
    transition: color 0.2s ease;
}

.input-wrapper:hover,
.input-wrapper:focus-within {
    background: #e6f9f5;
    border-color: #00d09c;
}

.input-wrapper:hover span,
.input-wrapper:hover .value-input,
.input-wrapper:focus-within span,
.input-wrapper:focus-within .value-input {
    color: #00d09c;
}

.value-input::-webkit-outer-spin-button,
.value-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* GREEN SLIDER & DYNAMIC TRACK FILL */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #00d09c 0%, #00d09c 50%, #e5e7eb 50%, #e5e7eb 100%);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00d09c;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 208, 156, 0.4);
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

/* Right Section - Dark Card */
.right {
    flex: 1;
    background: #090d16;
    color: white;
    padding: 25px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-subtitle {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 1px;
}

.emi-title {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 15px;
}

.right h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.chart-box {
    width: 100%;
    max-width: 200px;
    margin: 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-box canvas {
    width: 100% !important;
    height: auto !important;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #1f2937;
    padding-top: 15px;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #ffffff;
}

.summary-item strong {
    color: #ffffff;
}

.summary-item.total strong {
    color: #ffffff;
    font-size: 15px;
}

.schedule-main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid #1f2937;
    padding-top: 15px;
}

.amort-header-title {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 8px;
}

.toggle-amort-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

.circle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #4b5563;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
}

.toggle-amort-btn:hover .circle-icon {
    border-color: #00d09c;
    color: #00d09c;
}

.schedule-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 30px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.year-block {
    border-bottom: 1px solid #f3f4f6;
}

.year-block:last-child {
    border-bottom: none;
}

.year-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    transition: color 0.2s;
}

.year-header:hover {
    color: #00d09c;
}

.chevron-icon {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.year-block.active .chevron-icon {
    transform: rotate(180deg);
}

.month-table-wrapper {
    display: none;
    padding: 15px;
    margin: 10px 0 20px 0;
    background-color: #f4fbf7;
    border-radius: 12px;
    border: 1px solid #e1f5ee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.year-block.active .month-table-wrapper {
    display: block;
}

.amort-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
}

.amort-table th {
    text-align: left;
    padding: 12px 10px;
    color: #64748b;
    font-weight: 500;
    font-size: 13px;
    border-bottom: 1px solid #d1eae1;
    white-space: nowrap;
}

.amort-table td {
    padding: 12px 10px;
    color: #222529;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.amort-table tbody tr {
    transition: background 0.15s ease;
}

.amort-table tbody tr:hover {
    background-color: #e8f7f1;
}

.month-table-wrapper::-webkit-scrollbar {
    height: 4px;
}

.month-table-wrapper::-webkit-scrollbar-track {
    background: #e1f5ee;
    border-radius: 10px;
}

.month-table-wrapper::-webkit-scrollbar-thumb {
    background: #00d09c;
    border-radius: 10px;
}

.load-more-box {
    text-align: center;
    margin-top: 25px;
}

.btn-load-more {
    background-color: #00d09c;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-load-more:hover {
    background-color: #00b889;
}

/* CUSTOM FLOATING DROPDOWN WITH HD FLAG IMAGES */
.custom-dropdown-btn {
    background: #1e293b;
    color: white;
    border: 1px solid #475569;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.custom-dropdown-btn:hover {
    background: #334155;
}

.btn-flag-img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.custom-dropdown-menu {
    position: absolute;
    right: 0;
    top: 45px;
    width: 230px;
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid #e2e8f0;
}

.custom-dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f1f5f9;
}

.flag-img {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    margin-right: 12px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dropdown-item .country-name {
    flex: 1;
}

.dropdown-item .checkmark {
    color: #2563eb;
    font-weight: bold;
    visibility: hidden;
}

.dropdown-item.active .checkmark {
    visibility: visible;
}

.dropdown-item.active {
    background: #eff6ff;
    color: #2563eb;
}

/* MODERN FINTECH OFFERS SECTION */
.offers-container {
    max-width: 100%;
    margin: 45px auto 25px auto;
}

.offers-header {
    margin-bottom: 20px;
}

.offers-tag {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 1px;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.offers-title {
    font-size: 22px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.offer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: all 0.25s ease;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.offer-card.popular-card {
    border: 1.5px solid #22c55e;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.08);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.blue-icon { background: #eff6ff; }
.green-icon { background: #f0fdf4; }
.gold-icon { background: #fffbeb; }

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
}

.blue-badge { background: #eff6ff; color: #1d4ed8; }
.green-badge { background: #dcfce7; color: #15803d; }
.gold-badge { background: #fef3c7; color: #b45309; }

.offer-card h4 {
    font-size: 18px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 4px;
}

.offer-rate {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.offer-rate strong {
    color: #0f172a;
    font-size: 16px;
}

.offer-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 22px;
    flex-grow: 1;
}

.apply-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #0f172a;
    color: #ffffff;
    padding: 11px 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.apply-btn:hover {
    background: #1e293b;
    transform: scale(1.01);
}

.apply-btn.primary-btn {
    background: #16a34a;
}

.apply-btn.primary-btn:hover {
    background: #15803d;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
        flex-direction: column;
        gap: 12px;
    }

    .nav-tabs {
        margin: 5px 0;
        gap: 10px;
        overflow-x: auto;
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 5px;
    }

    .container {
        margin: 20px auto;
        padding: 0 12px;
    }

    .main-section {
        flex-direction: column;
        gap: 20px;
    }

    .left, .right {
        padding: 20px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .schedule-section {
        padding: 15px;
    }

    .month-table-wrapper {
        padding: 10px;
    }
}
