
        :root {
            --primary: #1b4d3e;
            --primary-hover: #143d31;
            --accent: #f39c12;
            --accent-hover: #d35400;
            --bg: #f4f7f6;
            --card-bg: #ffffff;
            --text-dark: #1e293b;
            --text-muted: #64748b;
            --border: #e2e8f0;
            --radius: 16px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }

        body {
            background-color: var(--bg);
            color: var(--text-dark);
            line-height: 1.6;
        }

        /* Header & Navigation */
        header {
            background-color: var(--primary);
            color: #ffffff;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        }

        .header-container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 14px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.3rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-links {
            display: flex;
            gap: 20px;
        }

        .nav-links a {
            color: #e2e8f0;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.2s;
        }

        .nav-links a:hover {
            color: var(--accent);
        }

        .burger-icon {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            background: none;
            border: none;
            padding: 4px;
        }

        .burger-icon span {
            width: 25px;
            height: 3px;
            background-color: #ffffff;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        /* Mobile Nav Dropdown */
        @media (max-width: 768px) {
            .burger-icon { display: flex; }
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                right: 0;
                left: 0;
                background-color: var(--primary-hover);
                flex-direction: column;
                padding: 16px 24px;
                gap: 14px;
                box-shadow: 0 10px 15px rgba(0,0,0,0.1);
            }
            .nav-links.show { display: flex; }
        }

        /* Main Wrapper Layout */
        .main-wrapper {
            max-width: 1100px;
            margin: 32px auto;
            padding: 0 16px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 32px;
        }

        @media (min-width: 880px) {
            .main-wrapper {
                grid-template-columns: 460px 1fr;
            }
        }

        /* Form Card Styling */
        .calculator-card {
            background: var(--card-bg);
            padding: 28px 24px;
            border-radius: var(--radius);
            box-shadow: 0 10px 30px rgba(0,0,0,0.04);
            border: 1px solid var(--border);
            height: fit-content;
        }

        .calculator-card h1 {
            color: var(--primary);
            font-size: 1.5rem;
            margin-bottom: 6px;
        }

        .calculator-card p {
            color: var(--text-muted);
            font-size: 0.88rem;
            margin-bottom: 22px;
        }

        .form-group {
            margin-bottom: 18px;
            display: flex;
            flex-direction: column;
        }

        label {
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 0.9rem;
            color: #334155;
        }

        input, select {
            padding: 12px 14px;
            border: 1.5px solid var(--border);
            border-radius: 10px;
            font-size: 0.95rem;
            outline: none;
            background-color: #f8fafc;
            transition: all 0.2s ease;
        }

        input:focus, select:focus {
            border-color: var(--primary);
            background-color: #ffffff;
            box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.12);
        }

        .gender-container {
            display: flex;
            gap: 10px;
        }

        .gender-btn {
            flex: 1;
            padding: 11px;
            border: 1.5px solid var(--border);
            background: #f8fafc;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            color: var(--text-muted);
            transition: all 0.2s;
        }

        .gender-btn.active {
            background: var(--primary);
            color: #ffffff;
            border-color: var(--primary);
            box-shadow: 0 4px 12px rgba(27, 77, 62, 0.2);
        }

        .input-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .submit-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--accent), #e67e22);
            color: #ffffff;
            border: none;
            border-radius: 12px;
            font-size: 1.05rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
            transition: transform 0.1s ease, box-shadow 0.2s;
            margin-top: 8px;
        }

        .submit-btn:active { transform: scale(0.98); }

        /* Results Display */
        .results-section {
            margin-top: 24px;
            padding-top: 20px;
            border-top: 2px dashed var(--border);
        }

        .hidden { display: none !important; }

        .macros-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin: 16px 0;
        }

        .macro-card {
            background: #f8fafc;
            padding: 14px;
            border-radius: 12px;
            text-align: center;
            border: 1px solid var(--border);
        }

        .macro-card.highlight {
            background: #f0fdf4;
            border-color: #bbf7d0;
        }

        .macro-card .val {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--primary);
            display: block;
        }

        .macro-card .lbl {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

                .plans-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .plan-box {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            border-radius: 10px;
            background: #f8fafc;
            border: 1px solid var(--border-color);
        }

        .plan-box .plan-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: #334155;
        }

        .plan-box .plan-desc {
            font-size: 0.75rem;
            color: #64748b;
            display: block;
        }

        .plan-box .plan-value {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        .badge {
            background: #f59e0b;
            color: white;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 6px;
            margin-right: 4px;
        }


        .action-btns {
            display: flex;
            gap: 10px;
margin-top: 10px;
        }

        .action-btn {
            flex: 1;
            padding: 10px;
            border: 1px solid var(--border);
            background: #ffffff;
            border-radius: 10px;
            font-size: 0.88rem;
            cursor: pointer;
            font-weight: 600;
            color: #334155;
            transition: background 0.2s;
        }

        .action-btn:hover { background: #f1f5f9; }

        /* Article & FAQ Styling */
        .content-section {
            background: var(--card-bg);
            padding: 32px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: 0 10px 30px rgba(0,0,0,0.04);
        }

        .content-section h2 {
            color: var(--primary);
            font-size: 1.35rem;
            margin: 20px 0 12px 0;
        }

        .content-section p, .content-section ul {
            font-size: 0.95rem;
            color: #475569;
            margin-bottom: 12px;
        }

        .content-section ul { padding-right: 20px; }

        /* Accordion FAQ */
        .faq-accordion {
            margin-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .faq-card {
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            background: #f8fafc;
        }

        .faq-toggle {
            width: 100%;
            padding: 16px;
            background: none;
            border: none;
            text-align: right;
            font-size: 0.98rem;
            font-weight: 700;
            color: var(--text-dark);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .faq-toggle span.icon {
            font-size: 1.1rem;
            transition: transform 0.3s ease;
        }

        .faq-card.open .faq-toggle span.icon {
            transform: rotate(180deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
            padding: 0 16px;
            background: #ffffff;
            font-size: 0.9rem;
            color: #475569;
        }

        .faq-card.open .faq-answer {
            max-height: 200px;
            padding: 14px 16px;
            border-top: 1px dashed var(--border);
        }

        /* Footer & Fixed Modal */
        footer {
            background-color: #0f2d24;
            color: #94a3b8;
            padding: 32px 16px;
            text-align: center;
            font-size: 0.88rem;
            margin-top: 50px;
        }

        footer a {
            color: #cbd5e1;
            text-decoration: underline;
            margin: 0 10px;
            cursor: pointer;
        }

        .modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(15, 23, 42, 0.65);
            backdrop-filter: blur(4px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 20px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-card {
            background: #ffffff;
            padding: 28px;
            border-radius: var(--radius);
            max-width: 480px;
            width: 100%;
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
            transform: translateY(15px);
            transition: transform 0.25s ease;
        }

        .modal-overlay.active .modal-card {
            transform: translateY(0);
        }

        .modal-card h3 {
            color: var(--primary);
            margin-bottom: 12px;
            font-size: 1.2rem;
        }

        .modal-card p {
            color: #475569;
            font-size: 0.92rem;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .close-btn {
            width: 100%;
            padding: 10px;
            background: var(--primary);
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
        }

        @media print {
            header, footer, form, .action-btns, .content-section { display: none !important; }
            .calculator-card { border: none; box-shadow: none; width: 100%; }
        }
   