:root {
    --primary-blue: #0a335c;
    --secondary-blue: #1e5a8a;
    --primary-orange: #f79b6b;
    --secondary-orange: #ff8a50;
    --dark-gray: #1a1a1a;
    --medium-gray: #666;
    --light-gray: #f8f9fa;
    --border-gray: #f0f0f0;
    --gradient-blue: linear-gradient(135deg, #0a335c 0%, #1e5a8a 100%);
    --gradient-orange: linear-gradient(135deg, #f79b6b 0%, #ff8a50 100%);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: #333;
    background: #f8f9fa;
}

.text-primary { color: var(--primary-blue) !important; }

/* Hero Section */
.hero-section {
    background: var(--gradient-blue);
    color: white;
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><polygon points="0,0 1000,0 1000,100"/></svg>');
    background-size: 100% 100%;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Calculator Section */
.calculator-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.calc-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px 35px;
    border: 1px solid var(--border-gray);
}

.calc-card h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 30px;
}

.form-label {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(247, 155, 107, 0.25);
}

.input-group-text {
    background: var(--light-gray);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary-blue);
}

.input-group .form-control {
    border-left: none;
}

.input-group .input-group-text + .form-control {
    border-left: none;
}

.input-group > .input-group-text:first-child {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .form-control:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-calculate {
    background: var(--gradient-orange);
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(247, 155, 107, 0.4);
    color: white;
}

.btn-reset {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
}

.btn-reset:hover {
    background: var(--primary-blue);
    color: white;
}

/* Comparison Layout */
.compare-side {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.compare-side.side-a {
    border-color: var(--primary-blue);
}

.compare-side.side-b {
    border-color: var(--primary-orange);
}

.compare-side-title {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
}

.compare-side.side-a .compare-side-title {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.compare-side.side-b .compare-side-title {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.compare-result-card {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
}

.compare-result-card.card-a {
    background: var(--gradient-blue);
}

.compare-result-card.card-b {
    background: var(--gradient-orange);
}

.compare-result-card h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 5px;
}

.compare-result-card .value {
    font-size: 1.4rem;
    font-weight: 700;
}

.compare-winner {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 12px;
    padding: 20px 30px;
    text-align: center;
    margin-top: 10px;
}

.compare-winner i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

#compareResultsSection .result-card:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

#compareResultsSection .compare-result-card {
    margin-bottom: 0;
}

.compare-shared-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.compare-shared-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Calculator Mode Toggle */
.calc-mode-toggle {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.calc-mode-btn {
    flex: 1;
    max-width: 180px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--medium-gray);
}

.calc-mode-btn i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.calc-mode-btn span {
    font-size: 0.95rem;
}

.calc-mode-btn.active {
    border-color: var(--primary-blue);
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 5px 20px rgba(10, 51, 92, 0.3);
}

.calc-mode-btn:not(.active):hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Period Type Toggle */
.period-toggle {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.period-toggle .toggle-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background: white;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--medium-gray);
    transition: all 0.3s ease;
}

.period-toggle .toggle-btn.active {
    background: var(--gradient-blue);
    color: white;
}

/* Rate Type Toggle */
.rate-toggle {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    margin-bottom: 10px;
}

.rate-toggle .toggle-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background: white;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--medium-gray);
    transition: all 0.3s ease;
}

.rate-toggle .toggle-btn.active {
    background: var(--gradient-blue);
    color: white;
}

/* Results Section */
.results-section {
    display: none;
    padding: 60px 0;
    background: white;
}

.results-section.show { display: block; }

.result-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    height: 100%;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.result-icon {
    width: 65px;
    height: 65px;
    background: var(--gradient-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.result-card h5 {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-value {
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 700;
}

.result-value.highlight {
    color: #27ae60;
}

/* Chart */
.chart-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    border: 1px solid var(--border-gray);
    margin-top: 40px;
}

.chart-container h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 25px;
}

/* Table */
.table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    border: 1px solid var(--border-gray);
    margin-top: 40px;
    overflow-x: auto;
}

.table-container h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 25px;
}

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

.table-investment thead th {
    background: var(--gradient-blue);
    color: white;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.table-investment thead th:first-child {
    border-radius: 10px 0 0 0;
}

.table-investment thead th:last-child {
    border-radius: 0 10px 0 0;
}

.table-investment tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-gray);
    font-size: 0.9rem;
}

.table-investment tbody tr:hover {
    background: rgba(247, 155, 107, 0.08);
}

.table-investment tbody tr:nth-child(even) {
    background: #fafbfc;
}

.table-investment tbody tr:nth-child(even):hover {
    background: rgba(247, 155, 107, 0.08);
}

.text-profit { color: #27ae60; font-weight: 600; }

/* Info Cards */
.info-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 35px 30px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.info-card h4 {
    color: var(--primary-blue);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--medium-gray);
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

/* ===== TOP SOCIAL BAR ===== */
.bg-primary {
    background-color: #0a335c !important;
}

.top-social-bar a {
    transition: color 0.3s ease;
}

.top-social-bar a:hover {
    color: var(--primary-orange) !important;
}

/* ===== NAVBAR ===== */
.navbar {
    min-height: 121px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar .navbar-brand img {
    height: 62px;
}

.navbar .nav-link {
    color: var(--primary-blue) !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px !important;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-orange) !important;
}

.navbar-search-btn {
    color: var(--primary-blue);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 10px;
    transition: color 0.3s ease;
}

.navbar-search-btn:hover {
    color: var(--primary-orange);
}

/* ===== FOOTER IMPERIOOG ===== */
.footer-section {
    background: var(--primary-blue);
    color: white;
    padding: 50px 0 20px;
}

.footer-section .footer-logo img {
    max-width: 120px;
    margin-bottom: 15px;
}

.footer-section h5 {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section .footer-links {
    list-style: none;
    padding: 0;
}

.footer-section .footer-links li {
    margin-bottom: 10px;
}

.footer-section .footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.footer-section .footer-links a:hover {
    color: var(--primary-orange);
}

.footer-section .footer-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-section .footer-disclaimer-text {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-orange);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(247, 155, 107, 0.4);
    transition: all 0.3s ease;
}

.scroll-top:hover {
    transform: translateY(-3px);
}

.scroll-top.show { display: flex; align-items: center; justify-content: center; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp 0.6s ease-out; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .calc-card { padding: 25px 20px; }
    .result-value { font-size: 1.3rem; }
    .chart-container, .table-container { padding: 20px 15px; }
    .table-investment thead th,
    .table-investment tbody td { padding: 10px 8px; font-size: 0.8rem; }
    .main-navbar .nav-link { font-size: 0.8rem; padding: 6px 10px !important; }
    .footer-section .footer-logo img { max-width: 90px; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.7rem; }
    .result-card { margin-bottom: 15px; }
}
