/* Premium Fintech Redesign - styles.css */
:root {
    --bg-color: #F8FAFC;         /* Soft off-white for background */
    --surface-color: #FFFFFF;    /* Clean white for cards */
    --primary-color: #111827;    /* Deep near-black for primary elements (Apple/Zerodha style) */
    --accent-color: #059669;     /* Emerald green for success/accents (INDMoney/CRED vibe) */
    --accent-hover: #047857;
    --text-main: #111827;        /* High contrast primary text */
    --text-muted: #4B5563;       /* Softer secondary text for readability */
    --border-color: #E5E7EB;     /* Subtle borders */
    
    /* Diffused, premium multi-layered shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.02), 0 5px 15px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.04), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 10px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Apple-like snap transition */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased; /* Crisper text rendering */
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base size for readability */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1040px; /* Slightly narrower for focused reading */
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    letter-spacing: -0.02em; /* Tighter tracking for headings */
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Premium Card Utility */
.glass-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: block;
    padding: 8px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    padding: 5rem 24px 4rem;
    gap: 4rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    font-weight: 400;
}

.hero-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Calculator Section */
.calculator-section {
    margin-top: 2rem;
    margin-bottom: 6rem;
}

.calculator-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--surface-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.specifics-toggle-group {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.toggle-question {
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1.05rem !important;
    color: var(--primary-color) !important;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon, .input-suffix {
    position: absolute;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

.input-icon { left: 16px; }
.input-suffix { right: 16px; }

/* Premium Input Styling */
input[type="number"], select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #F3F4F6;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #F9FAFB;
    transition: var(--transition-smooth);
    outline: none;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-wrapper input[type="number"] {
    padding-left: 40px;
}

.percent-wrapper input[type="number"] {
    padding-left: 20px;
    padding-right: 40px;
}

input[type="number"]:hover, select:hover {
    border-color: #E5E7EB;
    background-color: #FFFFFF;
}

input[type="number"]:focus, select:focus {
    border-color: var(--accent-color);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    background: #F3F4F6;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    padding: 6px;
}

.toggle-switch input[type="radio"] {
    display: none;
}

.toggle-switch label {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.toggle-switch input[type="radio"]:checked + label {
    background: var(--surface-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Premium Button with Ripple */
.calculate-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 3rem;
    padding: 18px;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, #374151 100%);
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.2);
}

.calculate-btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 600ms linear;
    background-color: rgba(255, 255, 255, 0.3);
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.calculate-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.25);
}

.calculate-btn:active {
    transform: translateY(1px) scale(0.99);
}

/* Results Section & Animations */
.results-section {
    padding: 2rem 24px;
}

/* Skeleton Loader */
.skeleton-wrapper {
    margin-bottom: 3rem;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skeleton-card {
    background: #E5E7EB;
    border-radius: var(--border-radius-lg);
    height: 120px;
    position: relative;
    overflow: hidden;
}

.skeleton-primary {
    grid-column: 1 / -1;
    height: 180px;
}

.skeleton-breakdown {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

.skeleton-chart, .skeleton-table {
    height: 380px;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: skeleton-sweep 1.5s infinite;
}

@keyframes skeleton-sweep {
    100% { left: 200%; }
}

/* Initial state for staggered animation */
.animate-card {
    opacity: 0;
    transform: translateY(40px);
}

/* The class added via JS to trigger staggered animation */
.animate-card.visible {
    animation: bounceFadeIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bounceFadeIn {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.result-section-title {
    margin-bottom: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.result-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface-color);
    border: 1px solid rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.result-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Primary In-Hand Card */
.primary-result {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: white;
    border: none;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.25);
}

.primary-result h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.primary-result .card-icon {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.highlight-amount {
    font-size: 4rem; /* Massive typography for emphasis */
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Secondary Cards Gradients & Icons */
.secondary-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

.secondary-card .amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Clickable Result Cards */
.clickable-card {
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clickable-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-4px) scale(1.02);
}

/* Icons */
.red-icon { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.blue-icon { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.yellow-icon { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.purple-icon { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.green-icon { background: rgba(16, 185, 129, 0.1); color: #10B981; }

/* Financial Health Score */
.health-score-container {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(180deg, var(--surface-color) 0%, #F9FAFB 100%);
    border: 1px solid var(--border-color);
}

.health-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.health-score-header h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.health-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    background: #4B5563; /* Default state */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

.health-badge.beginner { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3); }
.health-badge.growing { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3); }
.health-badge.strong { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%); box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3); }
.health-badge.excellent { background: linear-gradient(135deg, #10B981 0%, #059669 100%); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3); }

.health-gauge {
    margin-bottom: 1.5rem;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.gauge-bar-bg {
    width: 100%;
    height: 12px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.gauge-bar-fill {
    height: 100%;
    width: 0%; /* Default */
    background: linear-gradient(90deg, #F59E0B 0%, #3B82F6 33%, #8B5CF6 66%, #10B981 100%);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Glowing tip of the progress bar */
.gauge-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 20px;
    background: rgba(255,255,255,0.4);
    filter: blur(4px);
}

.health-explanation {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Assumptions Made Card */
.assumptions-card {
    margin-bottom: 3rem;
    padding: 2rem 2.5rem;
    background: #FFFBEB; /* Soft yellow for info */
    border: 1px solid #FDE68A;
}

.assumptions-card h3 {
    color: #D97706;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.assumptions-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.assumptions-card ul {
    margin-left: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.assumptions-card li {
    margin-bottom: 0.5rem;
}

.assumptions-card strong {
    color: var(--text-main);
}

.breakdown-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.chart-container, .table-container {
    padding: 2.5rem;
}

.chart-container h3, .table-container h3 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.25rem;
}

.canvas-wrapper {
    position: relative;
    height: 320px;
    width: 100%;
}

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

.breakdown-table td {
    padding: 1.25rem 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 1rem;
    color: var(--text-muted);
}

.breakdown-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.table-total td {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: none;
    padding-top: 2rem;
}

/* Smart Insights */
.smart-insights {
    margin-top: 6rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.insight-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: var(--transition-smooth);
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.insight-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.insight-card strong {
    color: var(--primary-color);
}

.insight-icon {
    font-size: 1.75rem;
    background: #F3F4F6;
    padding: 12px;
    border-radius: 12px;
}

/* Future Tools */
.future-tools {
    margin: 8rem auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.tool-card {
    background: var(--surface-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition-smooth);
}

.tool-card.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #F9FAFB;
}

.tool-card.disabled:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tool-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #F3F4F6;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* SEO Content Section */
.seo-content {
    margin: 6rem auto 4rem;
    max-width: 800px;
}

.seo-section {
    margin-bottom: 3rem;
}

.seo-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.seo-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.seo-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.seo-section ul, .seo-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.seo-section li {
    margin-bottom: 0.75rem;
}

.seo-section strong {
    color: var(--text-main);
}

/* Salary Components Grid */
.salary-components-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.component-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.component-card h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.component-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    margin: 8rem auto;
    max-width: 800px;
}

.faq-item {
    background: var(--surface-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.75rem 2rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question .icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 2rem;
    background: var(--surface-color);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 2rem 1.75rem;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--surface-color);
    padding: 4rem 0;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

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

/* Media Queries */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: left;
        padding: 8rem 24px 6rem;
    }

    .hero-content {
        flex: 1.1;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        margin: 0;
        font-size: 1.25rem;
    }

    .hero-illustration {
        flex: 0.9;
        display: flex;
        justify-content: flex-end;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .full-width {
        grid-column: 1 / -1;
    }

    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .breakdown-wrapper {
        grid-template-columns: 1.2fr 1fr;
        align-items: stretch;
    }
    
    .chart-container, .table-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .insights-grid, .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .salary-components-grid {
        grid-template-columns: 1fr 1fr;
    }

    .menu-toggle {
        display: none;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .insights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Optimization Styles */
@media (max-width: 767px) {
    .container { padding: 0 16px; }
    .glass-card, .calculator-card { padding: 1.5rem; }
    
    .hero { padding: 2rem 16px 3rem; gap: 2rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.75rem; margin-bottom: 2rem; }
    
    /* Fix grid layouts on mobile */
    .results-grid { grid-template-columns: 1fr; gap: 1rem; }
    .skeleton-grid { grid-template-columns: 1fr; gap: 1rem; }
    .skeleton-breakdown { grid-template-columns: 1fr; gap: 1.5rem; }
    
    .primary-result { padding: 1.5rem; }
    .result-card { padding: 1.25rem; }
    .highlight-amount { font-size: 2.5rem; }
    .secondary-card .amount { font-size: 1.75rem; }
    .card-header { margin-bottom: 1rem; }
    
    /* Health score stacking */
    .health-score-container { padding: 1.5rem; }
    .health-score-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    
    /* Tables and forms */
    .chart-container, .table-container { padding: 1.5rem 0; }
    .breakdown-table td { padding: 1rem 0; font-size: 0.9rem; }
    .table-total td { font-size: 1.1rem; }
    input[type="number"], select { padding: 14px 16px; font-size: 1rem; }
    
    /* Insight stacking */
    .insight-card { padding: 1.25rem; flex-direction: column; gap: 1rem; }
    .insight-icon { align-self: flex-start; }
    
    /* Fix paddings for smaller cards */
    .assumptions-card { padding: 1.5rem; }
    .faq-question { padding: 1.25rem 1.5rem; font-size: 1rem; }
    .faq-item.active .faq-answer { padding: 0 1.5rem 1.25rem; }
    
    .details-container { margin: 2rem 16px; padding: 1.5rem; }
    .summary-row { padding: 1rem; font-size: 0.95rem; }
    .summary-row.total { font-size: 1.1rem; }
    
    .footer { padding: 3rem 0; margin-top: 4rem; }
    .footer-links { flex-direction: column; gap: 1rem; align-items: center; }
}
