.friction-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px at 15% 5%, rgba(38, 208, 168, 0.08), transparent 45%),
        radial-gradient(1000px at 85% 0%, rgba(52, 152, 219, 0.06), transparent 40%),
        linear-gradient(180deg, #0A1628 0%, #102540 45%, #0A1628 100%);
}

.friction-page::before {
    content: "";
    position: absolute;
    inset: -10% -20% auto -20%;
    height: 50%;
    background: radial-gradient(800px at 50% 0%, rgba(12, 20, 35, 0.45), transparent 55%);
    pointer-events: none;
}

.friction-container {
    position: relative;
    z-index: 1;
}

.friction-header {
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.friction-title {
    background: linear-gradient(135deg, #26D0A8 0%, #4FFFDF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.friction-card {
    background: rgba(26, 47, 79, 0.6);
    border: 1px solid rgba(38, 208, 168, 0.12);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(12, 20, 35, 0.35);
    backdrop-filter: blur(10px);
}

.friction-card-title {
    color: #ffffff;
}

.friction-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00695C 0%, #00897B 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.friction-label {
    display: block;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

.option-card {
    position: relative;
    background: rgba(10, 22, 40, 0.55);
    border: 2px solid rgba(38, 208, 168, 0.2);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.option-card:hover {
    border-color: rgba(38, 208, 168, 0.5);
    background: rgba(10, 22, 40, 0.7);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: #26D0A8;
    background: linear-gradient(135deg, rgba(0, 105, 92, 0.3) 0%, rgba(0, 137, 123, 0.3) 100%);
    box-shadow: 0 12px 28px rgba(38, 208, 168, 0.25);
}

.option-card.selected::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #26D0A8;
}

.option-card.selected::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 13px;
    width: 6px;
    height: 10px;
    border-right: 2px solid #0A1628;
    border-bottom: 2px solid #0A1628;
    transform: rotate(45deg);
    z-index: 1;
}

.option-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    color: #26D0A8;
}

.option-value {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.option-label {
    font-size: 0.75rem;
    color: #8B9CB6;
    line-height: 1.3;
}

.friction-range {
    width: 100%;
    height: 6px;
    background: rgba(38, 208, 168, 0.2);
    border-radius: 999px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.friction-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00695C 0%, #26D0A8 100%);
    box-shadow: 0 2px 8px rgba(38, 208, 168, 0.4);
    cursor: pointer;
}

.friction-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00695C 0%, #26D0A8 100%);
    box-shadow: 0 2px 8px rgba(38, 208, 168, 0.4);
    cursor: pointer;
    border: none;
}

.slider-value {
    color: #8B9CB6;
}

.slider-value .current-value {
    color: #26D0A8;
    font-weight: 600;
}

.friction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.friction-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #00695C 0%, #00897B 100%);
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(38, 208, 168, 0.2);
}

.friction-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(38, 208, 168, 0.3);
}

.manual-config-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #26D0A8;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.manual-config-link:hover {
    background: rgba(38, 208, 168, 0.1);
    color: #4FFFDF;
}

.friction-manual-config {
    border-top: 1px solid rgba(38, 208, 168, 0.2);
    padding-top: 20px;
}

.friction-manual-note {
    color: #8B9CB6;
}

.results-section {
    animation: fadeInUp 0.5s ease;
}

.impact-card {
    background: linear-gradient(135deg, rgba(0, 105, 92, 0.2) 0%, rgba(38, 208, 168, 0.1) 100%);
    border: 2px solid #26D0A8;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.impact-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #26D0A8;
    margin-bottom: 6px;
}

.impact-label {
    font-size: 0.9rem;
    color: #8B9CB6;
}

.metric-box {
    background: rgba(10, 22, 40, 0.4);
    border: 1px solid rgba(38, 208, 168, 0.2);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.metric-box-label {
    font-size: 0.75rem;
    color: #8B9CB6;
    margin-bottom: 6px;
}

.metric-box-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #26D0A8;
}

.cta-section {
    background: linear-gradient(135deg, #00695C 0%, #00897B 100%);
    border-radius: 16px;
    padding: 32px;
    border: 2px solid #26D0A8;
    box-shadow: 0 16px 40px rgba(38, 208, 168, 0.3);
}

.cta-title {
    color: #ffffff;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    background: #ffffff;
    color: #00695C;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    background: #4FFFDF;
}

.cta-note {
    color: rgba(255, 255, 255, 0.75);
}

.icon-inline {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .friction-card {
        padding: 20px;
    }

    .impact-value {
        font-size: 2rem;
    }

    .metric-box-value {
        font-size: 1.35rem;
    }

    .cta-section {
        padding: 24px;
    }
}
