:root {
            --primary: #4A90E2;
            --accent: #50C878;
            --bg: #F8FAFC;
            --card-bg: #FFFFFF;
            --text: #2C3E50;
            --text-light: #7F8C8D;
            --border: #E1E8ED;
            --underweight: #3498DB;
            --normal: #50C878;
            --overweight: #F39C12;
            --obese: #E74C3C;
            --shadow-sm: 0 2px 8px rgba(74, 144, 226, 0.08);
            --shadow-md: 0 4px 16px rgba(74, 144, 226, 0.12);
            --shadow-lg: 0 8px 32px rgba(74, 144, 226, 0.16);
        }

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

        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: var(--text);
            min-height: 100vh;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .container {
            width: 100%;
            max-width: 480px;
            margin: 0 auto;
        }

        header {
            text-align: center;
            margin-bottom: 32px;
        }

        .logo {
            font-size: clamp(48px, 10vw, 64px);
            margin-bottom: 12px;
            filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
        }

        h1 {
            font-family: 'Poppins', sans-serif;
            font-size: clamp(28px, 5vw, 36px);
            font-weight: 700;
            color: white;
            margin-bottom: 8px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .tagline {
            font-size: clamp(14px, 2.5vw, 16px);
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
        }

        .card {
            background: var(--card-bg);
            border-radius: 24px;
            padding: clamp(24px, 5vw, 32px);
            box-shadow: var(--shadow-lg);
            margin-bottom: 20px;
        }

        .input-group {
            margin-bottom: 24px;
        }

        label {
            display: block;
            font-weight: 600;
            font-size: clamp(14px, 2.5vw, 15px);
            color: var(--text);
            margin-bottom: 8px;
        }

        .input-wrapper {
            display: flex;
            gap: 12px;
            align-items: stretch;
        }

        input[type="number"] {
            flex: 1;
            padding: 14px 16px;
            border: 2px solid var(--border);
            border-radius: 12px;
            font-size: clamp(15px, 2.5vw, 16px);
            font-family: 'Inter', sans-serif;
            transition: all 0.3s ease;
            background: var(--bg);
            color: var(--text);
            min-height: 48px;
        }

        input[type="number"]:focus {
            outline: none;
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
        }

        input[type="number"]:hover {
            border-color: var(--primary);
        }

        select {
            padding: 14px 16px;
            border: 2px solid var(--border);
            border-radius: 12px;
            font-size: clamp(14px, 2.5vw, 15px);
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            background: var(--bg);
            color: var(--text);
            cursor: pointer;
            transition: all 0.3s ease;
            min-height: 48px;
            min-width: 80px;
        }

        select:focus {
            outline: none;
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
        }

        select:hover {
            border-color: var(--primary);
        }

        .button-group {
            display: flex;
            gap: 12px;
            margin-top: 24px;
        }

        button {
            flex: 1;
            padding: 16px 24px;
            border: none;
            border-radius: 12px;
            font-size: clamp(15px, 2.5vw, 16px);
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
            min-height: 52px;
            box-shadow: var(--shadow-sm);
        }

        .btn-calculate {
            background: linear-gradient(135deg, var(--primary) 0%, #357ABD 100%);
            color: white;
        }

        .btn-calculate:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .btn-calculate:active {
            transform: scale(0.97);
        }

        .btn-reset {
            background: var(--bg);
            color: var(--text);
            border: 2px solid var(--border);
        }

        .btn-reset:hover {
            background: white;
            border-color: var(--primary);
            color: var(--primary);
        }

        .btn-reset:active {
            transform: scale(0.97);
        }

        .result-card {
            background: var(--card-bg);
            border-radius: 24px;
            padding: clamp(24px, 5vw, 32px);
            box-shadow: var(--shadow-lg);
            display: none;
        }

        .result-card.active {
            display: block;
            animation: slideUp 0.4s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .result-header {
            text-align: center;
            margin-bottom: 24px;
        }

        .result-label {
            font-size: clamp(14px, 2.5vw, 15px);
            color: var(--text-light);
            font-weight: 500;
            margin-bottom: 8px;
        }

        .bmi-value {
            font-family: 'Poppins', sans-serif;
            font-size: clamp(48px, 10vw, 64px);
            font-weight: 700;
            color: var(--primary);
            line-height: 1;
            margin-bottom: 12px;
        }

        .category-badge {
            display: inline-block;
            padding: 8px 20px;
            border-radius: 24px;
            font-size: clamp(14px, 2.5vw, 16px);
            font-weight: 600;
            color: white;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .category-underweight {
            background: var(--underweight);
        }

        .category-normal {
            background: var(--normal);
        }

        .category-overweight {
            background: var(--overweight);
        }

        .category-obese {
            background: var(--obese);
        }

        .bmi-scale {
            margin-top: 32px;
            padding-top: 24px;
            border-top: 2px solid var(--border);
        }

        .scale-title {
            font-size: clamp(14px, 2.5vw, 15px);
            font-weight: 600;
            color: var(--text);
            margin-bottom: 16px;
            text-align: center;
        }

        .scale-bar {
            height: 16px;
            border-radius: 8px;
            background: linear-gradient(to right, 
                var(--underweight) 0%, 
                var(--underweight) 25%, 
                var(--normal) 25%, 
                var(--normal) 50%, 
                var(--overweight) 50%, 
                var(--overweight) 75%, 
                var(--obese) 75%, 
                var(--obese) 100%);
            position: relative;
            margin-bottom: 12px;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .scale-indicator {
            position: absolute;
            top: -8px;
            width: 4px;
            height: 32px;
            background: var(--text);
            border-radius: 2px;
            transform: translateX(-2px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            transition: left 0.5s ease;
        }

        .scale-indicator::before {
            content: '';
            position: absolute;
            top: -6px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 8px solid var(--text);
        }

        .scale-labels {
            display: flex;
            justify-content: space-between;
            font-size: clamp(11px, 2vw, 12px);
            color: var(--text-light);
            font-weight: 500;
        }

        .scale-range {
            flex: 1;
            text-align: center;
            padding: 0 4px;
        }

        .info-section {
            margin-top: 24px;
            padding: 16px;
            background: var(--bg);
            border-radius: 12px;
            border-left: 4px solid var(--primary);
        }

        .info-title {
            font-size: clamp(13px, 2.5vw, 14px);
            font-weight: 600;
            color: var(--text);
            margin-bottom: 8px;
        }

        .info-text {
            font-size: clamp(12px, 2.5vw, 13px);
            color: var(--text-light);
            line-height: 1.6;
        }

        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-light);
        }

        .empty-state-icon {
            font-size: clamp(48px, 10vw, 64px);
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .empty-state-text {
            font-size: clamp(14px, 2.5vw, 15px);
            font-weight: 500;
        }

        footer {
            text-align: center;
            margin-top: 24px;
            padding: 16px;
            color: rgba(255, 255, 255, 0.8);
            font-size: clamp(12px, 2.5vw, 13px);
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        @media (max-width: 375px) {
            .input-wrapper {
                flex-direction: column;
            }

            select {
                width: 100%;
            }

            .button-group {
                flex-direction: column;
            }
        }

        @media (min-width: 768px) {
            body {
                padding: 40px;
            }

            .container {
                max-width: 520px;
            }
        }

#__wc_fb_btn{position:fixed;bottom:18px;right:18px;z-index:99999;background:#1a1a2e;border:1px solid rgba(255,255,255,0.12);border-radius:24px;padding:8px 14px;font-size:12px;color:#e2e8f0;cursor:pointer;font-family:system-ui,-apple-system,sans-serif;box-shadow:0 4px 16px rgba(0,0,0,0.3);display:flex;align-items:center;gap:6px;transition:all 0.2s;user-select:none}
#__wc_fb_btn:hover{background:#252540;border-color:rgba(255,255,255,0.2);transform:translateY(-1px)}
#__wc_fb_panel{position:fixed;bottom:64px;right:18px;z-index:99999;background:#0f1624;border:1px solid #1a2d45;border-radius:12px;padding:16px;width:260px;box-shadow:0 8px 32px rgba(0,0,0,0.5);display:none;font-family:system-ui,-apple-system,sans-serif}
#__wc_fb_panel.open{display:block}
.__wc_fb_title{font-size:13px;color:#e2e8f0;margin-bottom:12px;font-weight:500}
.__wc_fb_emojis{display:flex;justify-content:space-around;margin-bottom:12px}
.__wc_fb_emoji{font-size:26px;cursor:pointer;padding:6px;border-radius:8px;transition:all 0.15s;border:2px solid transparent}
.__wc_fb_emoji:hover{background:rgba(255,255,255,0.08);transform:scale(1.1)}
.__wc_fb_emoji.selected{border-color:rgba(196,168,74,0.6);background:rgba(196,168,74,0.08)}
.__wc_fb_prompt{font-size:11px;color:#4a6a90;margin-bottom:6px}
.__wc_fb_ta{width:100%;background:rgba(255,255,255,0.04);border:1px solid #1e2d45;border-radius:6px;padding:8px;color:#e2e8f0;font-size:11px;font-family:system-ui,-apple-system,sans-serif;resize:none;outline:none;box-sizing:border-box;line-height:1.5}
.__wc_fb_ta:focus{border-color:#2a4060}
.__wc_fb_actions{display:flex;gap:6px;margin-top:8px;justify-content:flex-end}
.__wc_fb_skip{font-size:11px;color:#2a4060;cursor:pointer;padding:4px 8px;background:transparent;border:none}
.__wc_fb_send{font-size:11px;color:#c4a84a;background:rgba(196,168,74,0.08);border:0.5px solid rgba(196,168,74,0.3);border-radius:4px;padding:5px 12px;cursor:pointer;font-family:system-ui}
.__wc_fb_send:hover{background:rgba(196,168,74,0.15)}
.__wc_fb_thanks{text-align:center;padding:8px 0;font-size:13px;color:#4ade80}