/* ==========================================================================
   MASTER STYLESHEET
   Combined from styles.css, styles_upgrade.css, and styles_main.css
   ========================================================================== */

/*
 ========================================================================== 
 === Mergered  ============================================================ 
 ========================================================================== 
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

:root {
    --bg-color: #e0e5ec;
    --primary-color: #4a77e2;
    --secondary-color: #34c759;
    --success-color: #28a745;
    --light-gray: #f8f9fa;
    --text-color: #3d4a5c;
    --text-color2: #5b6478;
    --white: #fff;
    --border-color: #dee2e6;
    --card-bg-color: rgba(255, 255, 255, 0.6);
    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(163, 177, 198, 0.5);
    --border-radius: 16px;
    --transition-speed: 0.3s;
    --font-base: 'Poppins', sans-serif;
    --color-success: #3d7c3a;
}

body {
    
    background-color: var(--bg-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
    font-family: var(--font-base);
    color: var(--text-color);  /* Default text color */
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center align items */
    min-height: 100vh; /* Ensure body takes full height */
}

.width1200 {
max-width: 1200px;
}


.navbar {
    position: fixed;
    top: 20px;
    right: 0;
    left: 0;
    z-index: 1000;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 0px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.makecenter {
    margin: 0;
    align-self: flex-start;
}

.navbar1200 {
    position: fixed;
    top: 20px;
    right: 0;
    left: 0;
    z-index: 1000;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


.menu-item {
    display: block;
    color: #333949;
    text-decoration: none;
    padding: 10px 0;
    font-weight: 400;
    transition: color 0.3s ease;
}



/* ==========================================================================
   UNIQUE & COMMON STYLES
   ========================================================================== */

        .feature-list {
            list-style: none;
            padding: 0;
            margin: 0 0 2.5rem 0;
            text-align: left;
        }

        .feature-item {
            display: flex;
            align-items: center;
            padding: 12px 0;
            color: var(--text-secondary);
            font-size: 0.95rem;
            font-weight: 500;
        }

        .feature-item::before {
            content: "✓";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            background: linear-gradient(135deg, var(--color-success), #27ae60);
            color: white;
            border-radius: 50%;
            margin-right: 12px;
            font-size: 0.8rem;
            font-weight: 700;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(61, 124, 58, 0.3);
        }

.cta-button.primary {
    background: #e0e5ec;
    color: #333949;
    box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
}

.login-button {
    padding: 10px 25px;
    background: #e0e5ec;
    border-radius: 10px;
    box-shadow: 5px 5px 10px #a3b1c6, -5px -5px 10px #ffffff;
    text-decoration: none;
    color: #333949;
    font-weight: 550;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.login-button:hover {
    /*
	box-shadow: inset 3px 3px 6px #a3b1c6, inset -3px -3px 6px #ffffff;
    transform: translateY(2px);
	*/
}

.nav-right {
    position: relative; /* Crucial for positioning the dropdown menu */
    display: flex;
    align-items: center;
    gap: 10px; /* This creates the 10px space */
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: #e0e5ec;
    border-radius: 10px;
    box-shadow: 5px 5px 10px #a3b1c6, -5px -5px 10px #ffffff;
    transition: all 0.3s ease;
    justify-content: center;
    align-items: center;
}

.hamburger-icon {
    width: 25px;
    height: 25px;
    transition: all 0.3s ease;
}

.hamburger-menu::before,
.hamburger-menu::after,
.css-hamburger-bar {
    display: none;
}

.menu {
    position: absolute;
    top: 60px; /* Position relative to .nav-right */
    right: 0;  /* Position relative to .nav-right */
    background: #e0e5ec;
    border-radius: 10px;
    box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
    padding: 20px;
    min-width: 150px;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.menu-item:hover {
    color: #5b6478;
}

body.firefox-mobile .hamburger-menu {
    padding: 12px 10px;
    width: 45px;
    height: 45px;
    gap: 4px;
}

body.firefox-mobile .hamburger-icon { display: none !important; }

body.firefox-mobile .hamburger-menu::before,
body.firefox-mobile .hamburger-menu::after,
body.firefox-mobile .css-hamburger-bar {
    display: block; content: ''; width: 25px; height: 3px;
    background-color: #333949; border-radius: 2px;
    transition: all 0.3s ease; transform-origin: center;
}

body.firefox-mobile .hamburger-menu.active::before { transform: translateY(3.5px) rotate(45deg); }
body.firefox-mobile .hamburger-menu.active::after { transform: translateY(-3.5px) rotate(-45deg); }
body.firefox-mobile .hamburger-menu.active .css-hamburger-bar { opacity: 0; }

.header {
    padding: 5px 0px 20px 0px;
    text-align: left;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding-top: 10px; /* Increased top padding to avoid overlap with fixed navbar */
}

.header1200 {
    padding: 0px 0px 20px 40px;
    text-align: left;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-top: 10px; /* Increased top padding to avoid overlap with fixed navbar */
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333949;
    margin-bottom: 0px;
    text-shadow: 2px 2px 4px rgba(163, 177, 198, 0.3);
}



.header h4 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #5b6478;
    margin-bottom: 0;
}

.hero {
    max-width: 1200px;
    width: 100%;
    padding: 40px 40px 60px 40px; /* Adjusted padding */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end; /* Changed from 'center' to align items to the bottom */
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333949;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(163, 177, 198, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5b6478;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 30px;
    /* margin: 20px 0; Removed to let parent gap control spacing and for alignment */
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #e0e5ec;
    border-radius: 15px;
	box-shadow: inset 5px 5px 10px #a3b1c6, inset -5px -5px 10px #ffffff;
    min-width: 80px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333949;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #5b6478;
    text-align: center;
    font-weight: 400;
}

.hero-visual {
    display: flex;
    position: relative;
    background: #e0e5ec;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
        aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hero-visual:hover {
    /*box-shadow: inset 5px 5px 10px #a3b1c6, inset -5px -5px 10px #ffffff;
    transform: translateY(4px);
	*/
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px; 
    max-width: 1200px;
    width: 100%;
    justify-content: center;
	padding: 40px;
    place-items: center;
}

.card {
    padding: 2rem;
    background: #e0e5ec;
    border-radius: 20px;
    text-decoration: none;
    color: #333949;
    display: flex;
    flex-direction: column;
    transform: none;
    box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    width: 100%;
    max-width: 320px;
    height: 320px;
	position: relative;
}

.card:hover {
    box-shadow: inset 5px 5px 10px #a3b1c6, inset -5px -5px 10px #ffffff;
    /*
	transform: translateY(4px);
	*/
}

.card-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333949;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5b6478;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-link-icon {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.footer {
    background: #e0e5ec;
    padding: 30px 40px 10px 40px;
    text-align: center;
    border-top: 1px solid rgba(163, 177, 198, 0.2);
    width: 100%;
    margin-top: auto;
    margin-bottom: 10px;
}

.footer p {
    color: #5b6478;
    font-size: 0.9rem;
    font-weight: 400;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.page-header p {
    font-size: 1.1rem;
    color: var(--text-color2);
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.plan-card {
    background-color: #e0e5ec;
    border: 1px solid #e0e5ec;
    border-radius: 12px;
    width: 320px;
    padding: 30px;
    padding-bottom: 100px; 
    box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card.current-plan {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
    /*transform: translateY(-5px);*/
}

.current-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color2);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}
.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.features-list li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.action-button {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.notallowed {
    cursor: not-allowed;
}

.upgrade-btn2 {
            
            left: 30px;
            right: 30px;        /* use a predictable unit, not 3cap */
            bottom: 48px;       /* lift the button so disclaimer can sit below */


            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            text-decoration: none;
            border-radius: 15px;
            font-weight: 600;
            font-size: 1.1rem;
            box-shadow: 
                0 8px 20px rgba(0, 123, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            position: absolute;
            overflow: hidden;
            width: auto;
            padding: 16px 40px;
            
        }




 .upgrade-btn2::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .upgrade-btn2:hover::before {
            left: 100%;
        }

        .upgrade-btn2:hover {
            background: linear-gradient(135deg, #0056b3, #007bff);
            box-shadow: 
                0 12px 30px rgba(0, 123, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            /*transform: translateY(-2px);*/
        }

        .upgrade-btn2:active {
            transform: translateY(0);
            box-shadow: 
                0 6px 15px rgba(0, 123, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }



         .btn_hallowed {
            
            left: 30px;
            right: 30px;        /* use a predictable unit, not 3cap */
            bottom: 48px;       /* lift the button so disclaimer can sit below */

            background:  #e0e5ec;
            color: #3d4a5c;
            text-decoration: none;
            border-radius: 15px;
            font-weight: 600;
            font-size: 1.1rem;
            box-shadow: inset 5px 5px 10px #a3b1c6, inset -5px -5px 10px #ffffff;
            transition: all 0.3s ease;
            position: absolute;
            overflow: hidden;
            width: auto;
            padding: 16px 40px;
        }





.no-underline-link {
        text-decoration: none;
        color: #112060;
        }

.no-underline-link_1 {
        text-decoration: none;
        color: #5b6478;
        }

.no-underline-link_2 {
        text-decoration: none;
        }

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #5b6478;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #333949;
}

.back-link::before {
    content: "←";
    margin-right: 8px;
    font-size: 1.2rem;
}

.disclaimer {
   position: absolute;
    left: 30px;
    right: 30px;
    bottom: 16px;
    text-align: center;
    font-size: 13px;
    color: #777;
    
}

.container { width: 100%; max-width: 800px; padding-top: 80px; }
header { text-align: left; margin-bottom: 3rem; }
header h1 { font-size: 2.8rem; font-weight: 600; color: var(--text-color); }
header p { font-size: 1.1rem; margin-top: 0rem; }

.nutrition-form { display: flex; flex-direction: column; gap: 1.5rem; }
.input-group { display: flex; flex-direction: column; }
.input-group label { margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }
.input-group input {
    border: none; outline: none; background: #e0e5ec; padding: 1rem;
    border-radius: 12px; font-size: 1rem; color: var(--text-color);
    box-shadow: inset 5px 5px 10px #a3b1c6, inset -5px -5px 10px #ffffff;
    transition: all var(--transition-speed) ease;
}
.input-group input:focus { box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light), 0 0 0 2px var(--primary-color); }
.submit-btn {
    border: none; outline: none; padding: 1rem; margin-top: 1rem; border-radius: 12px;
    background-color: var(--primary-color); color: white; font-size: 1.1rem; font-weight: 600; cursor: pointer;
    box-shadow: 4px 4px 12px var(--shadow-dark), -4px -4px 12px var(--shadow-light);
    transition: all var(--transition-speed) ease;
}
.submit-btn:hover { background-color: #3d65c4; transform: translateY(-2px); }
.submit-btn:active {
    box-shadow: inset 4px 4px 8px #3558ad, inset -4px -4px 8px #6390ff;
    transform: translateY(1px);
}
.submit-btn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    box-shadow: inset 2px 2px 4px #b3b3b3, inset -2px -2px 4px #e6e6e6;
    transform: none;
}

.error-message {
    background-color: #ffdddd; color: #d8000c; border: 1px solid #d8000c;
    padding: 1rem; border-radius: var(--border-radius); text-align: left; margin-top: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    word-wrap: break-word; white-space: pre-wrap;
}
.error-message a { color: #d8000c; font-weight: 600; }

.loader {
    border: 8px solid #e0e5ec;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    margin: 3rem auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.hidden {
    display: none;
}

.results-card {
    margin-top: 3rem; padding: 2rem; border-radius: var(--border-radius);
    background: var(--card-bg-color); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.results-header { text-align: center; margin-bottom: 1.5rem; }
.results-header h2 { font-size: 2.2rem; font-weight: 700; color: #1c2a3e; }
.results-header p { font-size: 1rem; color: #555; }

.main-calorie-display {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.main-calorie-display .label {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
}
.main-calorie-display .value {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}
.main-calorie-display .unit {
    font-size: 1.5rem;
    font-weight: 500;
    color: #666;
    margin-left: 0.25rem;
}

.section-title { font-size: 1.5rem; font-weight: 600; color: #2c3a4e; margin-top: 2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-color); }

.health-context-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.context-item { background: rgba(255,255,255,0.4); padding: 1rem; border-radius: 12px; text-align: center; }
.context-item .label { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.5rem; }
.context-item .value { font-weight: 600; font-size: 1.2rem; }
.context-item .value-big { font-size: 2rem; color: var(--primary-color); }
.context-item .justification { font-size: 0.8rem; margin-top: 0.25rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; padding: 0.25rem; }
.tag { background-color: var(--primary-color); color: white; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
.allergen-tag { background-color: #e53935; }

.macros-and-chart { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.nutrient-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; }
.nutrient-item { background: rgba(255,255,255,0.4); padding: 1rem; border-radius: 12px; text-align: center; }
.nutrient-item .label { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.25rem; }
.nutrient-item .value { font-weight: 600; font-size: 1.5rem; color: var(--primary-color); }
.nutrient-item .unit { font-size: 0.8rem; }
.nutrient-item .dv { font-size: 0.8rem; color: #666; font-weight: 500; }
.nutrient-item .sub-value { font-size: 0.85rem; color: #555; margin-top: 0.25rem; }

#macroPieChartContainer { max-width: 250px; margin: auto; }

.list-section ul { list-style: none; padding-left: 0; }
.list-section li { background: rgba(255,255,255,0.3); margin-bottom: 0.75rem; padding: 0.8rem 1.2rem; border-radius: 10px; border-left: 4px solid var(--secondary-color); }
.list-section li strong { color: var(--text-color); }

.burn-estimates { display: flex; justify-content: center; gap: 2rem; text-align: center; margin-top: 1.5rem; }
.burn-item .value { font-size: 1.8rem; font-weight: 600; color: var(--secondary-color); }

.download-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}
.download-section .section-title {
    border: none;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.download-btn {
    border: none;
    outline: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 2px 2px 8px var(--shadow-dark), -2px -2px 8px var(--shadow-light);
    transition: all var(--transition-speed) ease;
}
.download-btn:hover {
    background-color: #2aa848;
    transform: translateY(-2px);
}

.delete-btn {
    background-color: #dc3545; /* A standard 'danger' red */
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s ease-in-out;
}
.delete-btn:hover {
    background-color: #c82333; /* A darker red on hover */
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    font-size: 0.9rem;
    color: #8892a0;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 768px) {
    .header { padding: 80px 20px 20px 20px; }
    .header1200 { padding: 80px 20px 20px 20px; }
    .header h1 { font-size: 2rem; }
    .header h4 { font-size: 1rem; }
    .hero { grid-template-columns: 1fr; gap: 40px; padding: 20px 20px 40px 20px; align-items: center; }
    .hero-title { font-size: 2.2rem; }
    .hero-description { font-size: 1rem; }
    .hero-stats { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .stat-item { padding: 15px; min-width: 70px; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.75rem; }
    .login-button { padding: 8px 16px; font-size: 0.85rem; }
    .card-container { gap: 20px; grid-template-columns: 1fr; padding: 20px; }
    .card { padding: 1.5rem; max-width: 100%; }
    .card-title { font-size: 1.3rem; }
    .card-description { font-size: 0.9rem; }
    .footer { padding: 20px 20px 10px 20px; }
    body.firefox-mobile .hamburger-menu { width: 40px; height: 40px; padding: 10px 8px; }
    body.firefox-mobile .hamburger-menu::before,
    body.firefox-mobile .hamburger-menu::after,
    body.firefox-mobile .css-hamburger-bar { width: 20px; height: 2px; }
    body:not(.firefox-mobile) .hamburger-icon { width: 20px; height: 20px; }
    body { padding: 10px; }
    .container { padding-top: 70px; }
    .macros-and-chart { grid-template-columns: 1fr; }
    #macroPieChartContainer { order: -1; margin-bottom: 2rem; }
    .navbar { padding: 0 0px; }
    .navbar1200 { padding: 0 0px; }
}

@media (max-width: 480px) {
    .header { padding: 80px 15px 15px 15px; }
    .header1200 { padding: 80px 15px 15px 15px; }
    .header h1 { font-size: 1.8rem; }
    .header h4 { font-size: 0.95rem; }
    .hero { padding: 20px 15px 30px 15px; gap: 30px; }
    .hero-title { font-size: 1.9rem; }
    .hero-description { font-size: 0.95rem; }
    .hero-stats { gap: 10px; }
    .stat-item { padding: 12px; min-width: 60px; }
    .stat-number { font-size: 1.3rem; }
    .stat-label { font-size: 0.7rem; }
    .login-button { padding: 8px 12px; font-size: 0.8rem; }
    .hamburger-menu { padding: 8px; }
    .card-container { padding: 15px; gap: 15px; }
    .card { padding: 1.2rem; }
    .card-title { font-size: 1.2rem; }
    .card-description { font-size: 0.85rem; }
    body:not(.firefox-mobile) .hamburger-icon { width: 18px; height: 18px; }
    .navbar { padding: 0 0px; }
    .navbar1200 { padding: 0 0px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .card-container { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .header h1 { font-size: 2.2rem; }
}