@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;700;800&family=Inter:wght@400;500&display=swap');

:root {
    --bg:         #14141A;
    --surface:    #1E1E26;
    --accent:     #2DC4A7;
    --accent-ink: #06231C;
    --text:       #ECEAE4;
    --muted:      #9B988F;
    --line:       rgba(255,255,255,.07);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

.sr-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 10%, rgba(45, 196, 167, 0.07), transparent 40%);
    z-index: -1;
}

.sr-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.sr-header {
    padding: 24px 0;
}

.sr-logo {
    font-weight: 600;
    font-size: 20px;
}

.sr-content {
    width: 100%;
    max-width: 720px;
    padding: 20px;
}

.sr-card {
    background: #1E1E26;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.25s ease;
}

.sr-card-lg {
    padding: 24px;
    box-sizing: border-box;
}

.sr-title {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ECEAE4;
}

.sr-subtitle {
    font-size: 14px;
    color: #9B988F;
    margin-bottom: 24px;
}

.sr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.sr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
    box-sizing: border-box;
    width: 100%;
}

.sr-input {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0 14px;
    color: #ECEAE4;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.sr-input:focus {
    outline: none;
    border-color: #2DC4A7;
    box-shadow: 0 0 10px rgba(45, 196, 167, 0.25);
}

.sr-btn-primary {
    height: 52px;
    border: none;
    border-radius: 10px;
    background: #2DC4A7;
    color: var(--accent-ink);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sr-btn-primary:hover {
    background: #26A88F;
    box-shadow: 0 4px 16px rgba(45, 196, 167, 0.35);
}

.sr-footer-link {
    font-size: 13px;
    text-align: center;
    color: #9B988F;
}

.sr-footer-link a,
.sr-footer-link span {
    color: #2DC4A7;
    cursor: pointer;
    text-decoration: none;
}

.sr-helper-text {
    font-size: 14px;
    color: #9B988F;
    margin-top: 4px;
    margin-bottom: 8px;
    text-align: left;
}

.sr-error-text {
    color: #f87171;
    font-size: 14px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 6px;
    border-left: 3px solid #f87171;
}

.sr-field-display {
    text-align: center;
    padding: 8px 0 2px;
}

.sr-helper-label {
    font-size: 13px;
    color: #9B988F;
    margin-bottom: 8px;
}

.sr-metric-value {
    font-size: 46px;
    line-height: 1;
    font-weight: 700;
    color: #ECEAE4;
    letter-spacing: -0.03em;
}

.sr-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    outline: none;
    margin: 8px 0 2px;
}

.sr-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2DC4A7;
    border: 2px solid #ffffff;
    box-shadow: 0 0 12px rgba(45, 196, 167, 0.45);
    cursor: pointer;
}

.sr-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2DC4A7;
    border: 2px solid #ffffff;
    box-shadow: 0 0 12px rgba(45, 196, 167, 0.45);
    cursor: pointer;
}

.sr-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9B988F;
    margin-bottom: 10px;
}

.sr-textarea {
    min-height: 120px;
    height: auto;
    padding: 16px 14px;
    resize: vertical;
    line-height: 1.5;
}

/** step 5 motivations **/

.sr-motivation-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    width: 100%;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #ECEAE4;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box
}

.sr-motivation-card:hover {
    border-color: rgba(45, 196, 167, 0.4);
    box-shadow: 0 0 14px rgba(45, 196, 167, 0.12);
}

.sr-motivation-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sr-motivation-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.sr-motivation-card.is-selected {
    background: rgba(45, 196, 167, 0.10);
    border-color: rgba(45, 196, 167, 0.55);
    box-shadow: 0 0 18px rgba(45, 196, 167, 0.15);
}

.sr-form textarea.sr-input {
    width: 100%;
    max-width: 100%;
}
.sr-form .sr-textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 120px;
    padding: 16px 14px;
    margin: 0;
}
.sr-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/** coach cards (step 9) **/
.sr-coach-card {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    box-sizing: border-box;
    min-width: 0;
}

.sr-coach-card:hover {
    border-color: rgba(45, 196, 167, 0.4);
    box-shadow: 0 0 14px rgba(45, 196, 167, 0.12);
    transform: translateY(-1px);
}

.sr-coach-card.is-selected {
    border-color: #2DC4A7;
    background: rgba(45, 196, 167, 0.08);
    box-shadow:
        0 0 18px rgba(45, 196, 167, 0.20),
        inset 0 0 0 1px rgba(45, 196, 167, 0.25);
    transform: translateY(-1px) scale(1.01);
}

.sr-coach-card-inner {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.sr-coach-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sr-coach-avatar-ai {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2DC4A7;
    font-weight: 600;
    flex-shrink: 0;
}

.sr-coach-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.sr-coach-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.sr-coach-name {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
    color: #ECEAE4;
}

.sr-coach-desc {
    font-size: 13px;
    color: #9B988F;
}

.sr-coach-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sr-coach-badge {
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #2DC4A7;
    color: var(--accent-ink);
    font-weight: 600;
    white-space: nowrap;
    align-self: flex-start;
}

/** payment processing indicator **/
.sr-processing-step {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.sr-processing-step.is-active {
    opacity: 1;
    color: #ECEAE4;
}

.sr-processing-step.is-complete {
    opacity: 0.7;
    color: #5ef0c0;
}

.sr-processing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-block;
    margin-right: 8px;
}

.sr-processing-step.is-active .sr-processing-dot {
    background: #2DC4A7;
    box-shadow: 0 0 8px rgba(45, 196, 167, 0.6);
}

.sr-processing-step.is-complete .sr-processing-dot {
    background: #5ef0c0;
}

.sr-processing-card {
    max-width: 680px;
}

.sr-processing-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.sr-processing-orb {
    width: 88px;
    height: 88px;
    margin: 6px auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(45, 196, 167, 0.12) 45%, rgba(45, 196, 167, 0.15) 100%);
    box-shadow:
        0 0 30px rgba(45, 196, 167, 0.18),
        0 0 60px rgba(45, 196, 167, 0.12),
        inset 0 0 18px rgba(255, 255, 255, 0.06);
}

.sr-processing-orb-inner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #2DC4A7;
    box-shadow: 0 0 18px rgba(45, 196, 167, 0.45);
}

.sr-processing-card .sr-title {
    margin-bottom: 10px;
}

.sr-processing-card .sr-subtitle {
    max-width: 520px;
    margin: 0 auto 26px;
}

.sr-processing-panel {
    width: 100%;
    margin-top: 6px;
    padding: 22px 20px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sr-processing-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.sr-processing-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 22px;
    font-size: 14px;
    color: #9B988F;
    opacity: 0.55;
    transition: all 0.3s ease;
}

.sr-processing-step.is-active {
    color: #ECEAE4;
    opacity: 1;
}

.sr-processing-step.is-complete {
    color: #5ef0c0;
    opacity: 0.82;
}

.sr-processing-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.sr-processing-step.is-active .sr-processing-dot {
    background: #2DC4A7;
    box-shadow: 0 0 10px rgba(45, 196, 167, 0.6);
}

.sr-processing-step.is-complete .sr-processing-dot {
    background: #5ef0c0;
    box-shadow: 0 0 8px rgba(94, 240, 192, 0.35);
}

.sr-processing-bar {
    width: 100%;
    height: 8px;
    margin-top: 20px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.sr-processing-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: #2DC4A7;
    box-shadow: 0 0 14px rgba(45, 196, 167, 0.35);
    transition: width 0.45s ease;
}

.sr-processing-actions {
    width: 100%;
    margin-top: 24px;
    padding-top: 4px;
}

.sr-processing-actions .sr-btn-primary {
    width: 100%;
}

@media (max-width: 640px) {
    .sr-processing-panel {
        padding: 18px 16px 16px;
    }
}

/** plan preview cards **/
.sr-preview-hero,
.sr-preview-stat-card,
.sr-preview-insight-card,
.sr-preview-locked-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 18px;
}

.sr-preview-hero {
    text-align: center;
}

.sr-preview-hero-label,
.sr-preview-section-label,
.sr-preview-stat-label {
    font-size: 12px;
    color: #9B988F;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sr-preview-hero-value,
.sr-preview-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #ECEAE4;
    line-height: 1.1;
}

.sr-preview-hero-subtext,
.sr-preview-stat-subtext {
    font-size: 14px;
    color: #9B988F;
    margin-top: 6px;
}

.sr-preview-insight-text,
.sr-preview-locked-item {
    font-size: 14px;
    line-height: 1.5;
    color: #ECEAE4;
}

.sr-preview-locked-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/** growth income card (step 6) **/
.sr-growth-income-card {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 22px 20px;
    margin: 4px 0 2px;
    border-radius: 16px;
    background: rgba(45, 196, 167, 0.10);
    border: 1px solid rgba(45, 196, 167, 0.20);
    box-shadow: 0 0 24px rgba(45, 196, 167, 0.08);
}

.sr-growth-income-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9B988F;
    margin-bottom: 8px;
}

.sr-growth-income-value {
    display: block;
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #ECEAE4;
}

.sr-growth-income-subtext {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #9B988F;
}

.sr-slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sr-slider-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #9B988F;
    padding: 0 2px;
}

.sr-slider-label-left {
    text-align: left;
}

.sr-slider-label-right {
    text-align: right;
}

.sr-range-5 {
    width: 100%;
}
