:root {
    --bg-cream: #fbf9f4;
    --brand-red: #e11d48;
    --brand-red-dark: #be123c;
    --brand-red-gradient: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #ffe4e6;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 10px 30px -5px rgba(225, 29, 72, 0.08);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-cream);
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 16px;
}

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

/* Hero / Header Card */
.profile-card {
    background: var(--brand-red-gradient);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 35px rgba(190, 18, 60, 0.25);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 8px #34d399;
}

.avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 14px auto;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.verified-icon {
    position: absolute;
    bottom: 2px;
    right: 4px;
    background: #10b981;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid white;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.role-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pru-badge {
    background: white;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-card);
}

/* Progress Bar Card */
.progress-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-bar-bg {
    height: 8px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-red-gradient);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Main Form Card */
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.step-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-box {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #f3f4f6;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
}

.input-box:focus {
    border-color: var(--brand-red);
    background: white;
}

/* Selection Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.option-btn {
    background: #fafafa;
    border: 2px solid #f3f4f6;
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.option-btn i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.option-btn:hover, .option-btn.selected {
    border-color: var(--brand-red);
    background: #fff1f2;
    color: var(--brand-red-dark);
}

.option-btn.selected i {
    color: var(--brand-red);
}

/* Buttons & Navigation */
.btn-container {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-red-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--text-main);
    width: 35%;
}

/* Results / Dashboard Styling */
.score-box {
    background: #fff1f2;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.score-num {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--brand-red-dark);
    line-height: 1;
}

.score-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-top: 10px;
    text-transform: uppercase;
}

.status-critical { background: #fee2e2; color: #991b1b; }
.status-warning { background: #fef3c7; color: #92400e; }
.status-good { background: #d1fae5; color: #065f46; }

.metric-card {
    background: #fafafa;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: white;
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    font-size: 1rem;
}

.metric-title { font-size: 0.85rem; font-weight: 800; color: var(--text-main); }
.metric-sub { font-size: 0.75rem; color: var(--text-muted); }
.metric-gap { font-size: 0.9rem; font-weight: 800; color: var(--brand-red-dark); text-align: right; }

.blurred-box {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px dashed var(--brand-red);
    padding: 20px;
    background: #fff;
    text-align: center;
    margin-top: 20px;
}

.blurred-content {
    filter: blur(5px);
    user-select: none;
    opacity: 0.5;
}

.lock-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    font-weight: 800;
}