:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-hover: #1d4ed8;
    --primary-shadow: rgb(37 99 235 / 25%);
    
    /* Legacy Primary (for backward compatibility) */
    --primary-color: var(--primary);
    --primary-color-light: var(--primary-light);
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --accent: #36cfc9;
    
    /* Legacy Semantic (for backward compatibility) */
    --success-color: var(--success);
    --warning-color: var(--warning);
    --danger-color: var(--danger);
    --info-color: var(--info);
    
    /* Surface Colors */
    --surface: #ffffff;
    --surface-muted: #f4f6fb;
    --surface-elevated: #ffffff;
    --background: #f8fafc;
    
    /* Legacy Surface (for backward compatibility) */
    --surface-color: var(--surface);
    --light-bg: var(--background);
    --secondary-bg: #e2e8f0;
    
    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    
    /* Legacy Border (for backward compatibility) */
    --border-color: var(--border);
    
    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Legacy Text (for backward compatibility) */
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --secondary-color: #334155;
    
    /* Shadow System */
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.08);
    --shadow-md: 0 4px 12px rgb(15 23 42 / 0.08);
    --shadow-lg: 0 12px 24px rgb(15 23 42 / 0.12);
    --shadow-xl: 0 20px 25px rgb(15 23 42 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    
    /* Legacy Border Radius (for backward compatibility) */
    --border-radius: var(--radius-lg);
    --border-radius-sm: var(--radius-md);
    --border-radius-lg: var(--radius-xl);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Layout */
    --max-width-reading: 720px;
    --max-width-content: 1200px;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    
    /* Angle Converter Variables (for educational content styling) */
    --angle-primary: #2563eb;
    --angle-primary-dark: #1d4ed8;
    --angle-accent: #0ea5e9;
    --angle-surface: #ffffff;
    --angle-border: #e2e8f0;
    --angle-text: #0f172a;
    --angle-muted: #64748b;
    --angle-success: #22c55e;
    --angle-radius-lg: 1.5rem;
    --angle-radius-md: 1rem;
    --angle-radius-sm: 0.75rem;
    --angle-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --angle-shadow-lg: 0 30px 60px rgba(37, 99, 235, 0.12);
}

.bmi-calculator-page {
    padding: 2rem 0;
}

.bmi-intro {
    margin-bottom: 3rem;
}

.bmi-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.bmi-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 700px;
    line-height: 1.6;
}

.bmi-meta {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-chip {
    background: var(--light-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.bmi-main {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(148, 163, 184, 0.25);
    margin-bottom: 4rem;
}

.bmi-card {
    padding: 0rem 2rem;
    height: 100%;
}

.bmi-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.angle-support {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

.tooltip {
    position: relative;
    display: inline-flex;
}

.tooltip-trigger {
    border: none;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    border-radius: 999px;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-main);
    color: #ffffff;
    padding: 0.8rem;
    border-radius: var(--angle-radius-sm);
    width: 240px;
    font-size: 0.85rem;
    line-height: 1.4;
    transition: opacity 0.2s ease;
    z-index: 40;
}

.tooltip:hover .tooltip-text,
.tooltip:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.field-input {
    width: 100%;
    padding: clamp(0.95rem, 2.5vw, 1.15rem);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.select-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.unit-select {
    appearance: none;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath fill='%2364748b' d='M5.23 7.21a1 1 0 0 1 1.4-.18L10 9.58l3.37-2.55a1 1 0 1 1 1.22 1.58l-4 3a1 1 0 0 1-1.22 0l-4-3a1 1 0 0 1-.14-1.4Z'/%3E%3C/svg%3E") no-repeat right 1.25rem center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.unit-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.primary-btn {
    flex: 1 1 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
}

.secondary-btn {
    flex: 1 1 160px;
    background: #ffffff;
    color: var(--primary);
    border: 2px solid rgba(37, 99, 235, 0.35);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.input-with-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.unit-selector {
    width: 100%;
    max-width: 140px;
    padding: 0.625rem 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--surface-color);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563eb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.unit-selector:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.unit-selector:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-shadow);
}

.height-input-wrapper,
.weight-input-wrapper {
    width: 100%;
    flex: 1;
}

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

.input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.label-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-trigger {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--text-secondary);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.tooltip-trigger:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--text-main);
    color: white;
    text-align: center;
    border-radius: 0.5rem;
    padding: 0.75rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: var(--shadow-lg);
}

.tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-main) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

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

.input-with-unit input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 4.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 500;
    background: var(--surface-color);
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgb(15 23 42 / 0.04);
    min-height: 52px;
}

.input-with-unit input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-shadow);
}

.input-with-unit input:hover:not(:focus) {
    border-color: var(--border-dark);
}

.input-with-unit input::placeholder {
    color: var(--text-muted);
}

.unit-label {
    position: absolute;
    right: 1.25rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    pointer-events: none;
    background: var(--surface-color);
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.height-imperial-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.height-input-wrapper,
.weight-input-wrapper {
    width: 100%;
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.calculate-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.calculate-btn:active {
    transform: translateY(0);
}

.ghost-btn {
    padding: 1rem 1.5rem;
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ghost-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--light-bg);
}

.result-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 30px 40px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.result-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.4), transparent 55%);
    pointer-events: none;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.result-number {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 800;
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    position: relative;
    margin-bottom: 1rem;
}

.result-number::after {
    content: attr(data-unit);
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.result-equation {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.conversion-formula {
    background: rgba(15, 23, 42, 0.45);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
    border-left: 3px solid rgba(37, 99, 235, 0.6);
}

.formula-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.copy-buttons-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.copy-buttons-row .copy-btn {
    flex: 1 1 auto;
    min-width: 140px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.copy-btn[data-state="copied"] {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.6);
}

.bmi-progress-container {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}


.bmi-progress-track {
    position: relative;
    height: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    overflow: visible;
    margin-bottom: 1.5rem;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.08),
        0 2px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.bmi-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        #06b6d4 0%,
        #10b981 25%,
        #f59e0b 50%,
        #ef4444 75%,
        #dc2626 100%);
    border-radius: 50px;
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 20px rgba(6, 182, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: progressGlow 2s ease-in-out infinite alternate;
}

.bmi-progress-pointer {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid var(--text-primary);
    border-radius: 50%;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 0 0 4px rgba(255, 255, 255, 0.9),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        0 2px 8px rgba(37, 99, 235, 0.3);
    transition: left 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    animation: pointerPulse 2s ease-in-out infinite;
}

.bmi-progress-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

.bmi-progress-labels span {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.bmi-progress-labels span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.bmi-progress-labels span:hover::before {
    left: 100%;
}

.bmi-progress-labels span.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(37, 99, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bmi-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 0.5rem;
}

.bmi-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.bmi-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bmi-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bmi-stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(37, 99, 235, 0.4);
}

.bmi-stat-card:hover::before {
    transform: scaleX(1);
}

.bmi-stat-card:hover::after {
    opacity: 1;
}

.bmi-stat-card:last-child {
    grid-column: span 2;
    max-width: 100%;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow:
        0 8px 24px rgba(37, 99, 235, 0.35),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-icon::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;
}

.stat-icon:hover::before {
    left: 100%;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.stat-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.stat-content h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-content p {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-content small {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.4;
    display: block;
    font-weight: 500;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.share-container {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

.share-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
}

.share-x {
    background: #000000;
    color: white;
}

.share-x:hover {
    background: #333333;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #166fe5;
}

.share-linkedin {
    background: #0a66c2;
    color: white;
}

.share-linkedin:hover {
    background: #095d9e;
}

.share-reddit {
    background: #ff4500;
    color: white;
}

.share-reddit:hover {
    background: #e63e00;
}

.share-telegram {
    background: #0088cc;
    color: white;
}

.share-telegram:hover {
    background: #0077b5;
}

.share-whatsapp {
    background: #25d366;
    color: white;
}

.share-whatsapp:hover {
    background: #20ba5a;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.angle-seo-section {
    padding: 2rem 0;
}

.angle-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.angle-education-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.angle-education-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.angle-education-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.angle-education-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.angle-education-card a:hover {
    border-bottom-color: var(--primary);
}

.angle-education-card ul {
    margin-bottom: 1.5rem;
}

.angle-education-card li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.infographic-timeline {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
}

.infographic-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.timeline-container {
    max-width: 100%;
    overflow-x: auto;
}

.timeline-items {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.timeline-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon svg {
    width: 100%;
    height: 100%;
}

.timeline-era {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-years {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.infographic-bmi-scale {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.bmi-scale-visualization {
    position: relative;
}

.bmi-scale-bar {
    display: flex;
    width: 100%;
    height: 50px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.bmi-range {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: none;
    transition: opacity 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.bmi-range:last-child {
    border-right: none;
}

.bmi-range-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.bmi-range-value {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 500;
}

.bmi-scale-markers {
    position: relative;
    height: 20px;
}

.scale-marker {
    position: absolute;
    top: -2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(4px);
}

.infographic-bmi-calculation {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
    margin-top: 1rem;
}

.division-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.division-svg {
    width: 100%;
    max-width: 120px;
    height: auto;
}

.division-label {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.division-label span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

.division-details {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.5rem;
}

@media (max-width: 992px) {
    .bmi-card {
        padding: 0 1rem;
    }
    
    .timeline-items {
        flex-direction: column;
    }
    
    .timeline-item {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .bmi-calculator-page {
        padding: 1rem 0;
    }
    
    .bmi-title {
        font-size: 2rem;
    }

    .bmi-subtitle {
        font-size: 1rem;
    }

    .bmi-main {
        padding: 1.5rem;
    }

    .bmi-card {
        padding: 0;
        margin-bottom: 2rem;
    }

    .result-card {
        padding: 1.5rem;
    }

    .result-number {
        font-size: clamp(2rem, 5vw, 2.75rem);
    }

    .height-imperial-inputs {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .bmi-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0.25rem;
    }

    .bmi-stat-card:last-child {
        grid-column: span 1;
    }

    .bmi-stat-card {
        padding: 1.75rem;
    }

    .bmi-progress-container {
        padding: 1.5rem;
    }

    .bmi-progress-labels {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }


    .copy-buttons-row {
        flex-direction: column;
    }

    .copy-buttons-row .copy-btn {
        width: 100%;
    }

    .share-buttons {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .share-buttons {
        justify-content: center;
    }

    .timeline-items {
        flex-direction: column;
    }

    .timeline-item {
        min-width: 100%;
    }

    .division-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .bmi-calculator-page {
        padding: 1rem 0;
    }

    .bmi-intro {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }

    .bmi-title {
        font-size: 1.75rem;
    }

    .bmi-card,
    .result-card {
        padding: 1rem;
    }

    .bmi-stats-grid {
        margin-bottom: 2rem;
    }

    .bmi-stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-content h4 {
        font-size: 0.8125rem;
    }

    .stat-content p {
        font-size: 1.5rem;
    }

    .stat-content small {
        font-size: 0.8125rem;
    }

    .result-number {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .bmi-progress-labels {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }

    .bmi-progress-container {
        padding: 1.25rem;
    }

    .share-buttons {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes progressGlow {
    0% {
        box-shadow:
            0 4px 20px rgba(6, 182, 212, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow:
            0 6px 24px rgba(6, 182, 212, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes pointerPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.25),
            0 0 0 4px rgba(255, 255, 255, 0.9),
            inset 0 2px 4px rgba(255, 255, 255, 0.8),
            0 2px 8px rgba(37, 99, 235, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.3),
            0 0 0 5px rgba(255, 255, 255, 0.95),
            inset 0 2px 4px rgba(255, 255, 255, 0.9),
            0 4px 12px rgba(37, 99, 235, 0.4);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.25),
            0 0 0 4px rgba(255, 255, 255, 0.9),
            inset 0 2px 4px rgba(255, 255, 255, 0.8),
            0 2px 8px rgba(37, 99, 235, 0.3);
    }
}

*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

