/* ===== RETIREMENT CALCULATOR ===== */
.rc-wrapper {
    font-family: 'Inter', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    color: #1a2a3a;
}

/* Header */
.rc-header {
    background: linear-gradient(135deg, #0d7a75, #0a4a6e);
    color: white;
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}
.rc-header h2 { margin: 0 0 8px; font-size: 28px; }
.rc-header p { margin: 0; opacity: 0.85; font-size: 15px; }

/* Currency Bar */
.rc-currency-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f9f8;
    border: 1px solid #0d7a75;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.rc-currency-bar label { font-weight: 600; color: #0d7a75; }
.rc-currency-bar select {
    border: 1px solid #0d7a75;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    color: #0a4a6e;
    background: white;
    cursor: pointer;
}

/* Main Grid */
.rc-main-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 800px) {
    .rc-main-grid { grid-template-columns: 1fr; }
}

/* Inputs Panel */
.rc-inputs-panel {
    background: white;
    border-radius: 16px;
    border: 1px solid #e0f0ef;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(13,122,117,0.08);
}

/* Tabs */
.rc-tabs {
    display: flex;
    gap: 4px;
    background: #f0f9f8;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}
.rc-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #0a4a6e;
    cursor: pointer;
    transition: all 0.2s;
}
.rc-tab.active {
    background: linear-gradient(135deg, #0d7a75, #0a4a6e);
    color: white;
}

/* Tab Panels */
.rc-tab-panel { display: none; }
.rc-tab-panel.active { display: block; }

/* Field Groups */
.rc-field-group {
    margin-bottom: 18px;
}
.rc-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0a4a6e;
    margin-bottom: 8px;
}
.rc-currency-label {
    font-weight: 400;
    color: #0d7a75;
    font-size: 12px;
}

/* Slider Row */
.rc-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rc-slider-row input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 4px;
    background: linear-gradient(to right, #0d7a75 50%, #e0f0ef 50%);
    outline: none;
    cursor: pointer;
}
.rc-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d7a75;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(13,122,117,0.4);
    cursor: pointer;
}
.rc-slider-row input[type="number"] {
    width: 70px;
    border: 1px solid #0d7a75;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0a4a6e;
    text-align: center;
}
.rc-slider-row span {
    font-size: 12px;
    color: #0d7a75;
    font-weight: 600;
    min-width: 24px;
}

/* Input Prefix */
.rc-input-prefix {
    display: flex;
    align-items: center;
    border: 1px solid #0d7a75;
    border-radius: 8px;
    overflow: hidden;
}
.rc-prefix {
    background: #0d7a75;
    color: white;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 14px;
}
.rc-input-prefix input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #0a4a6e;
    outline: none;
}

/* Calculate Button */
.rc-calc-btn {
    width: 100%;
    background: linear-gradient(135deg, #0d7a75, #0a4a6e);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.2s;
}
.rc-calc-btn:hover { opacity: 0.9; }

/* Results Panel */
.rc-results-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero Card */
.rc-hero-card {
    background: linear-gradient(135deg, #0d7a75, #0a4a6e);
    color: white;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}
.rc-hero-label { font-size: 14px; opacity: 0.85; margin-bottom: 8px; }
.rc-hero-value { font-size: 38px; font-weight: 800; margin-bottom: 8px; }
.rc-hero-sub { font-size: 14px; opacity: 0.85; }

/* Stat Grid */
.rc-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 600px) {
    .rc-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
.rc-stat-card {
    background: white;
    border: 1px solid #e0f0ef;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(13,122,117,0.06);
}
.rc-stat-icon { font-size: 22px; margin-bottom: 6px; }
.rc-stat-label { font-size: 11px; color: #666; margin-bottom: 4px; font-weight: 500; }
.rc-stat-value { font-size: 16px; font-weight: 700; color: #0a4a6e; }

/* Charts Row */
.rc-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .rc-charts-row { grid-template-columns: 1fr; }
}
.rc-chart-box {
    background: white;
    border: 1px solid #e0f0ef;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(13,122,117,0.06);
}
.rc-chart-box h4 { margin: 0 0 12px; font-size: 14px; color: #0a4a6e; }

/* Readiness */
.rc-readiness-card {
    background: white;
    border: 1px solid #e0f0ef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(13,122,117,0.06);
}
.rc-readiness-card h4 { margin: 0 0 12px; color: #0a4a6e; font-size: 15px; }
.rc-readiness-bar-bg {
    background: #e0f0ef;
    border-radius: 8px;
    height: 14px;
    overflow: hidden;
    margin-bottom: 8px;
}
.rc-readiness-bar {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #0d7a75, #0a4a6e);
    transition: width 0.8s ease;
}
.rc-readiness-label { font-size: 13px; color: #0d7a75; font-weight: 600; }

/* Table */
.rc-table-section {
    background: white;
    border: 1px solid #e0f0ef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(13,122,117,0.06);
}
.rc-table-section h4 { margin: 0 0 12px; color: #0a4a6e; font-size: 15px; }
.rc-table-scroll { overflow-x: auto; }
.rc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rc-table th {
    background: linear-gradient(135deg, #0d7a75, #0a4a6e);
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
}
.rc-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f9f8;
    color: #1a2a3a;
}
.rc-table tr:nth-child(even) td { background: #f8fffe; }
.rc-table tr:hover td { background: #e0f0ef; }

/* Tips */
.rc-tips-section {
    background: white;
    border: 1px solid #e0f0ef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(13,122,117,0.06);
}
.rc-tips-section h4 { margin: 0 0 12px; color: #0a4a6e; font-size: 15px; }
.rc-tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 600px) { .rc-tips-grid { grid-template-columns: 1fr; } }
.rc-tip-card {
    background: #f0f9f8;
    border-left: 4px solid #0d7a75;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #0a4a6e;
    line-height: 1.5;
}

/* Export Bar */
.rc-export-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.rc-export-btn {
    flex: 1;
    min-width: 100px;
    background: white;
    border: 2px solid #0d7a75;
    color: #0d7a75;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.rc-export-btn:hover {
    background: linear-gradient(135deg, #0d7a75, #0a4a6e);
    color: white;
}
