body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #0B1220;
    color: #E5E7EB;
}

.pm-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15), transparent 40%);
    z-index: -1;
}

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

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

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

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

.pm-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

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

.pm-title {
    font-size: 28px;
    margin-bottom: 8px;
}

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

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

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

.pm-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: white;
    box-sizing: border-box;
}

.pm-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.pm-btn-primary {
    height: 52px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    font-weight: 500;
    cursor: pointer;
}

.pm-btn-primary:hover {
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

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

.pm-footer-link span {
    color: #3B82F6;
    cursor: pointer;
}
.pm-helper-text {
    font-size: 14px;
    color: #9CA3AF;
    margin-top: 4px;
    margin-bottom: 8px;
    text-align: left;
}

.pm-error-text {
    color: #ff4444;
    font-size: 14px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 6px;
    border-left: 3px solid #ff4444;
}

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

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

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

.pm-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;
}

.pm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border: 2px solid #ffffff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
    cursor: pointer;
}

.pm-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border: 2px solid #ffffff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
    cursor: pointer;
}

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

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

/** step 6 **/

.pm-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.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #E5E7EB;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box
}

.pm-motivation-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.18);
}

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

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

.pm-motivation-card.is-selected {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.22);
}

.pm-textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    height: auto;
    padding: 16px 14px;
    resize: vertical;
    line-height: 1.5;
    margin: 0;
}

.pm-form textarea.pm-input {
    width: 100%;
    max-width: 100%;
}
.pm-form .pm-textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 120px;
    padding: 16px 14px;
    margin: 0;
}
.pm-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
/** step 8 **/
.pm-coach-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.pm-coach-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.18);
}

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

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

.pm-coach-avatar-ai {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    font-weight: 600;
}

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

.pm-coach-name {
    font-weight: 600;
    font-size: 14px;
}

.pm-coach-desc {
    font-size: 12px;
    color: #9CA3AF;
}

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

.pm-coach-card {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.pm-coach-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.18);
    transform: translateY(-1px);
}

/* SELECTED STATE */
.pm-coach-card.is-selected {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.10);
    box-shadow:
        0 0 18px rgba(59, 130, 246, 0.25),
        inset 0 0 0 1px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px) scale(1.01);
}

/* INNER LAYOUT */
.pm-coach-card-inner {
    display: flex;
    gap: 14px;
    align-items: center;
}

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

.pm-coach-avatar-ai {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    font-weight: 600;
}

/* TEXT */
.pm-coach-name {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.pm-coach-desc {
    font-size: 13px;
    color: #9CA3AF;
}
.pm-coach-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.pm-coach-badge {
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    font-weight: 500;
    white-space: nowrap;
    align-self: flex-start;
}

.pm-processing-step {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.pm-processing-step.is-active {
    opacity: 1;
    color: #E5E7EB;
}

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

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

.pm-processing-step.is-active .pm-processing-dot {
    background: #3B82F6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

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

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

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

.pm-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.22), rgba(59, 130, 246, 0.12) 45%, rgba(139, 92, 246, 0.18) 100%);
    box-shadow:
        0 0 30px rgba(59, 130, 246, 0.22),
        0 0 60px rgba(139, 92, 246, 0.18),
        inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.pm-processing-orb-inner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

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

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

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

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

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

.pm-processing-step.is-active {
    color: #E5E7EB;
    opacity: 1;
}

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

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

.pm-processing-step.is-active .pm-processing-dot {
    background: #3B82F6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

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

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

.pm-processing-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
    transition: width 0.45s ease;
}

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

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

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

.pm-preview-hero,
.pm-preview-stat-card,
.pm-preview-insight-card,
.pm-preview-locked-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
}

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

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

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

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

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

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

.pm-preview-insight-card .pm-input+.pm-input,
.pm-preview-insight-card .pm-row,
.pm-preview-insight-card .pm-helper-text {
    margin-top: 12px;
}

.pm-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: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 0 24px rgba(59, 130, 246, 0.12),
        0 0 36px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.pm-growth-income-value {
    display: block;
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #E5E7EB;
    text-shadow: 0 0 18px rgba(59, 130, 246, 0.20);
}

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

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

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

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

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

/* Optional: make slider feel more intentional */
.pm-range-5 {
    width: 100%;
}