/* ===================================================
           BMI Tool - Standalone Page Styles
           =================================================== */

        /* Page-level layout */
        .bmi-page-wrapper {
            min-height: 100vh;
            background: #f4f7f4;
            padding-bottom: 80px;
        }

        /* ── Breadcrumb ── */
        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            color: #64748b;
            margin-bottom: 36px;
            flex-wrap: wrap;
        }

        .breadcrumb a {
            text-decoration: none;
            color: var(--primary);
            font-weight: 500;
            transition: color 0.2s;
        }

        .breadcrumb a:hover {
            color: var(--primary-hover);
        }

        .breadcrumb .sep {
            color: #cbd5e1;
            font-size: 1.1rem;
        }

        .breadcrumb .current {
            color: #475569;
            font-weight: 600;
        }

        /* ── Page Header ── */
        .bmi-page-header {
            display: flex;
            align-items: flex-start;
            gap: 24px;
            margin-bottom: 48px;
        }

        .bmi-header-icon-box {
            width: 72px;
            height: 72px;
            background: white;
            border: 1.5px solid #e2e8f0;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(15, 74, 59, 0.06);
        }

        .bmi-header-icon-box svg {
            color: var(--primary);
        }

        .bmi-header-text h1 {
            font-family: var(--font-serif);
            font-size: 2.4rem;
            color: var(--primary);
            margin-bottom: 12px;
            line-height: 1.2;
        }

        .bmi-header-text p {
            color: #64748b;
            font-size: 1rem;
            line-height: 1.7;
            max-width: 680px;
        }

        /* ── Main 2-column layout ── */
        .bmi-main-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 28px;
            align-items: start;
        }

        @media (max-width: 900px) {
            .bmi-main-grid {
                grid-template-columns: 1fr;
            }

            .bmi-header-text h1 {
                font-size: 1.8rem;
            }

            .bmi-page-header {
                gap: 16px;
            }

            .bmi-header-icon-box {
                width: 56px;
                height: 56px;
            }
        }

        /* ── Card base ── */
        .bmi-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 4px 24px rgba(15, 74, 59, 0.07);
            overflow: hidden;
        }

        /* ─────────────────────────────
           LEFT CARD — Calculator
        ───────────────────────────── */
        .calc-header {
            background: #0f4c3a;
            color: white;
            padding: 18px 24px;
            display: flex;
            align-items: center;
            gap: 14px;
            font-family: var(--font-sans);
            font-weight: 700;
            font-size: 1rem;
            letter-spacing: 1.2px;
            text-transform: uppercase;
        }

        .calc-header svg {
            opacity: 0.9;
        }

        .calc-body {
            padding: 28px 24px;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        /* Unit Toggle */
        .unit-toggle {
            display: flex;
            background: #f1f5f9;
            border-radius: 10px;
            padding: 4px;
            width: fit-content;
        }

        .unit-btn {
            padding: 10px 28px;
            border: none;
            background: transparent;
            font-family: var(--font-sans);
            font-weight: 600;
            font-size: 0.9rem;
            color: #64748b;
            cursor: pointer;
            border-radius: 7px;
            transition: all 0.25s ease;
        }

        .unit-btn.active {
            background: #0f4c3a;
            color: white;
            box-shadow: 0 2px 8px rgba(15, 76, 58, 0.25);
        }

        /* Divider */
        .calc-divider {
            border: none;
            border-top: 1px solid #f1f5f9;
            margin: 0;
        }

        /* Input Groups */
        .input-group {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .input-icon-wrap {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: #f1f5f9;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #0f4c3a;
            flex-shrink: 0;
        }

        .input-content {
            flex: 1;
        }

        .input-label {
            display: block;
            font-size: 0.88rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 8px;
        }

        .input-row {
            display: flex;
            align-items: center;
            gap: 0;
            border: 1.5px solid #e2e8f0;
            border-radius: 10px;
            overflow: hidden;
            transition: border-color 0.2s;
        }

        .input-row:focus-within {
            border-color: #0f4c3a;
            box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.1);
        }

        .input-row input {
            flex: 1;
            padding: 13px 16px;
            border: none;
            outline: none;
            font-family: var(--font-sans);
            font-size: 1rem;
            color: #1e293b;
            background: transparent;
            min-width: 0;
        }

        .input-row input::placeholder {
            color: #94a3b8;
        }

        .input-unit-badge {
            padding: 13px 14px;
            background: #f8fafc;
            color: #64748b;
            font-size: 0.85rem;
            font-weight: 500;
            border-left: 1.5px solid #e2e8f0;
            white-space: nowrap;
        }

        /* Dual input for ft/in */
        .dual-input-row {
            display: flex;
            gap: 10px;
        }

        .dual-input-row .input-row {
            flex: 1;
        }

        /* Action Buttons */
        .calc-actions {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }

        .btn-calc-main {
            flex: 1;
            min-width: 160px;
            background: #0f4c3a;
            color: white;
            border: none;
            padding: 14px 20px;
            border-radius: 50px;
            font-family: var(--font-sans);
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.25s;
            box-shadow: 0 4px 14px rgba(15, 76, 58, 0.3);
        }

        .btn-calc-main:hover {
            background: #0a382a;
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(15, 76, 58, 0.35);
        }

        .btn-calc-main:active {
            transform: translateY(0);
        }

        .btn-reset-main {
            background: transparent;
            color: #0f4c3a;
            border: 1.5px solid #0f4c3a;
            padding: 14px 24px;
            border-radius: 50px;
            font-family: var(--font-sans);
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.25s;
        }

        .btn-reset-main:hover {
            background: #f0fdf4;
            border-color: #0a382a;
        }

        /* Info tip box */
        .info-tip {
            background: #f0fdf4;
            border-radius: 12px;
            padding: 16px 18px;
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .info-tip-icon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #bbf7d0;
            color: #166534;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 13px;
            flex-shrink: 0;
        }

        .info-tip p {
            margin: 0;
            font-size: 0.88rem;
            color: #334155;
            line-height: 1.6;
        }

        /* ─────────────────────────────
           RIGHT CARD — Results
        ───────────────────────────── */
        .result-card-body {
            padding: 32px 28px;
            display: flex;
            flex-direction: column;
            gap: 28px;
        }

        /* BMI Value Display */
        .bmi-value-display {
            display: flex;
            align-items: center;
            gap: 18px;
            opacity: 0.35;
            transition: opacity 0.4s ease;
        }

        .bmi-value-display.revealed {
            opacity: 1;
        }

        .bmi-value-icon {
            width: 52px;
            height: 52px;
            background: #f0fdf4;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #22c55e;
            flex-shrink: 0;
        }

        .bmi-value-text {
            font-family: var(--font-sans);
            font-size: 1.2rem;
            color: #475569;
            font-weight: 500;
        }

        .bmi-value-text .bmi-number {
            font-size: 2.4rem;
            font-weight: 800;
            color: #0f4c3a;
            line-height: 1;
            display: inline-block;
            margin-left: 4px;
            transition: all 0.4s ease;
        }

        /* Gauge */
        .gauge-wrap {
            position: relative;
            padding-bottom: 44px;
        }

        .gauge-labels {
            display: flex;
            justify-content: space-around;
            padding: 0 2%;
            margin-bottom: 7px;
            font-size: 0.8rem;
            color: #64748b;
            font-weight: 600;
        }

        .gauge-track {
            display: flex;
            height: 10px;
            border-radius: 6px;
            overflow: hidden;
            gap: 3px;
        }

        .gauge-seg {
            height: 100%;
            border-radius: 3px;
        }

        .seg-uw {
            background: #94a3b8;
            flex: 2.5;
        }

        .seg-hn {
            background: #84cc16;
            flex: 3.5;
        }

        .seg-ow {
            background: #0f4c3a;
            flex: 2;
        }

        .seg-ob {
            background: #7c3aed;
            flex: 2;
        }

        /* Animated pointer */
        .gauge-pointer {
            position: absolute;
            bottom: 0;
            left: 12.5%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            transition: left 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
            opacity: 0;
        }

        .gauge-pointer.show {
            opacity: 1;
        }

        .pointer-caret {
            width: 0;
            height: 0;
            border-left: 7px solid transparent;
            border-right: 7px solid transparent;
            border-bottom: 10px solid #0f4c3a;
        }

        .pointer-lbl {
            font-size: 0.82rem;
            font-weight: 700;
            color: #0f4c3a;
            white-space: nowrap;
            background: white;
            padding: 3px 10px;
            border-radius: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        /* Status banner */
        .bmi-status-banner {
            display: none;
            align-items: center;
            gap: 14px;
            padding: 14px 18px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.95rem;
            animation: slideIn 0.35s ease;
        }

        .bmi-status-banner.show {
            display: flex;
        }

        .bmi-status-banner.underweight {
            background: #f1f5f9;
            color: #475569;
        }

        .bmi-status-banner.healthy {
            background: #f0fdf4;
            color: #166534;
        }

        .bmi-status-banner.overweight {
            background: #f0fdf4;
            color: #0f4c3a;
        }

        .bmi-status-banner.obese {
            background: #faf5ff;
            color: #6b21a8;
        }

        .status-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        /* Category Table */
        .cat-table {
            width: 100%;
            border-collapse: collapse;
            border-spacing: 0;
        }

        .cat-table thead th {
            text-align: left;
            padding: 12px 10px;
            font-size: 0.82rem;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #f1f5f9;
        }

        .cat-table tbody tr {
            border-radius: 8px;
            transition: background 0.2s;
            cursor: default;
        }

        .cat-table tbody td {
            padding: 14px 10px;
            border-bottom: 1px solid #f8fafc;
            font-size: 0.88rem;
            color: #475569;
        }

        .cat-table tbody tr:last-child td {
            border-bottom: none;
        }

        .cat-table tbody tr.active td {
            background: #f0fdf4;
        }

        .cat-table tbody tr.active td:first-child {
            border-left: 3px solid #0f4c3a;
        }

        .cat-col-name {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .cat-dot {
            width: 14px;
            height: 14px;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .cat-name-text {
            font-weight: 700;
            color: #1e293b;
        }

        .cat-range-sub {
            font-size: 0.78rem;
            color: #94a3b8;
            margin-top: 1px;
        }

        .cat-weight-range {
            font-weight: 500;
            color: #334155;
        }

        /* Heart tip */
        .heart-tip {
            background: #fefefe;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px 18px;
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .heart-tip-icon {
            color: #22c55e;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .heart-tip p {
            margin: 0;
            font-size: 0.88rem;
            color: #334155;
            line-height: 1.6;
        }

        /* Error shake */
        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            20% {
                transform: translateX(-8px);
            }

            40% {
                transform: translateX(8px);
            }

            60% {
                transform: translateX(-5px);
            }

            80% {
                transform: translateX(5px);
            }
        }

        .shake {
            animation: shake 0.4s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Validation error */
        .input-row.error {
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

        /* ── Disclaimer ── */
        .bmi-disclaimer {
            background: white;
            border-radius: 16px;
            padding: 22px 28px;
            margin-top: 28px;
            border-left: 4px solid #0f4c3a;
            box-shadow: 0 2px 12px rgba(15, 74, 59, 0.05);
        }

        .bmi-disclaimer h4 {
            font-family: var(--font-sans);
            font-size: 0.9rem;
            font-weight: 700;
            color: #0f4c3a;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .bmi-disclaimer p {
            font-size: 0.88rem;
            gap: 3px;
        }

        .gauge-seg {
            height: 100%;
            border-radius: 3px;
        }

        .seg-uw {
            background: #94a3b8;
            flex: 2.5;
        }

        .seg-hn {
            background: #84cc16;
            flex: 3.5;
        }

        .seg-ow {
            background: #0f4c3a;
            flex: 2;
        }

        .seg-ob {
            background: #7c3aed;
            flex: 2;
        }

        /* Animated pointer */
        .gauge-pointer {
            position: absolute;
            bottom: 0;
            left: 12.5%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            transition: left 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
            opacity: 0;
        }

        .gauge-pointer.show {
            opacity: 1;
        }

        .pointer-caret {
            width: 0;
            height: 0;
            border-left: 7px solid transparent;
            border-right: 7px solid transparent;
            border-bottom: 10px solid #0f4c3a;
        }

        .pointer-lbl {
            font-size: 0.82rem;
            font-weight: 700;
            color: #0f4c3a;
            white-space: nowrap;
            background: white;
            padding: 3px 10px;
            border-radius: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        /* Status banner */
        .bmi-status-banner {
            display: none;
            align-items: center;
            gap: 14px;
            padding: 14px 18px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.95rem;
            animation: slideIn 0.35s ease;
        }

        .bmi-status-banner.show {
            display: flex;
        }

        .bmi-status-banner.underweight {
            background: #f1f5f9;
            color: #475569;
        }

        .bmi-status-banner.healthy {
            background: #f0fdf4;
            color: #166534;
        }

        .bmi-status-banner.overweight {
            background: #f0fdf4;
            color: #0f4c3a;
        }

        .bmi-status-banner.obese {
            background: #faf5ff;
            color: #6b21a8;
        }

        .status-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        /* Category Table */
        .cat-table {
            width: 100%;
            border-collapse: collapse;
            border-spacing: 0;
        }

        .cat-table thead th {
            text-align: left;
            padding: 12px 10px;
            font-size: 0.82rem;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #f1f5f9;
        }

        .cat-table tbody tr {
            border-radius: 8px;
            transition: background 0.2s;
            cursor: default;
        }

        .cat-table tbody td {
            padding: 14px 10px;
            border-bottom: 1px solid #f8fafc;
            font-size: 0.88rem;
            color: #475569;
        }

        .cat-table tbody tr:last-child td {
            border-bottom: none;
        }

        .cat-table tbody tr.active td {
            background: #f0fdf4;
        }

        .cat-table tbody tr.active td:first-child {
            border-left: 3px solid #0f4c3a;
        }

        .cat-col-name {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .cat-dot {
            width: 14px;
            height: 14px;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .cat-name-text {
            font-weight: 700;
            color: #1e293b;
        }

        .cat-range-sub {
            font-size: 0.78rem;
            color: #94a3b8;
            margin-top: 1px;
        }

        .cat-weight-range {
            font-weight: 500;
            color: #334155;
        }

        /* Heart tip */
        .heart-tip {
            background: #fefefe;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px 18px;
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .heart-tip-icon {
            color: #22c55e;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .heart-tip p {
            margin: 0;
            font-size: 0.88rem;
            color: #334155;
            line-height: 1.6;
        }

        /* Error shake */
        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            20% {
                transform: translateX(-8px);
            }

            40% {
                transform: translateX(8px);
            }

            60% {
                transform: translateX(-5px);
            }

            80% {
                transform: translateX(5px);
            }
        }

        .shake {
            animation: shake 0.4s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Validation error */
        .input-row.error {
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

        /* ── Disclaimer ── */
        .bmi-disclaimer {
            background: white;
            border-radius: 16px;
            padding: 22px 28px;
            margin-top: 28px;
            border-left: 4px solid #0f4c3a;
            box-shadow: 0 2px 12px rgba(15, 74, 59, 0.05);
        }

        .bmi-disclaimer h4 {
            font-family: var(--font-sans);
            font-size: 0.9rem;
            font-weight: 700;
            color: #0f4c3a;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .bmi-disclaimer p {
            font-size: 0.88rem;
            color: #64748b;
            line-height: 1.6;
            margin: 0;
        }

        /* ── Lang switcher override for this page ── */
        #currentLangText {
            font-weight: 600;
        }

        /* Responsive */
        @media (max-width: 600px) {
            .bmi-page-wrapper {
                padding-bottom: 40px;
            }

            .breadcrumb {
                margin-bottom: 20px;
            }

            .bmi-page-header {
                margin-bottom: 24px;
                gap: 12px;
            }

            .bmi-header-icon-box {
                width: 48px;
                height: 48px;
            }

            .bmi-header-text h1 {
                font-size: 1.4rem;
                line-height: 1.3;
            }

            .bmi-header-text p {
                font-size: 0.88rem;
                line-height: 1.55;
            }

            .bmi-card {
                border-radius: 16px;
            }

            .calc-body {
                padding: 20px 14px;
                gap: 18px;
            }

            .input-group {
                gap: 10px;
            }

            .input-icon-wrap {
                width: 40px;
                height: 40px;
                font-size: 0.9rem;
            }

            .input-row input {
                padding: 10px 10px;
                font-size: 0.9rem;
            }

            .input-unit-badge {
                padding: 10px 8px;
                font-size: 0.78rem;
            }

            .unit-btn {
                padding: 8px 16px;
                font-size: 0.85rem;
            }

            .calc-actions {
                flex-direction: column;
                gap: 10px;
            }

            .btn-calc-main,
            .btn-reset-main {
                justify-content: center;
                width: 100%;
                padding: 12px 16px;
                font-size: 0.9rem;
            }
        }