:root {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --accent: #38bdf8;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.wrap {
    max-width: 500px;
    margin: 40px auto;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.3);
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #fff;
    outline: none;
    cursor: pointer;
}

button {
    margin-top: 10px;
    padding: 16px;
    width: 100%;
    border: none;
    border-radius: 12px;
    background: var(--text-main);
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: var(--accent);
    transform: scale(1.02);
}

.result {
    display: none;
    margin-top: 30px;
    background: #020617;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--accent);
    animation: fadeIn 0.6s ease-out;
}

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

.score-box {
    text-align: center;
    margin: 20px 0;
}

.score {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
}

/* Progress Bar */
.progress-container {
    background: #1e293b;
    height: 8px;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0%;
    transition: width 1s ease-in-out;
}

.ref-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.meaning { margin-top: 15px; font-size: 1rem; color: #cbd5e1; }
.reflection { margin-top: 20px; padding: 15px; border-left: 3px solid var(--accent); background: rgba(56, 189, 248, 0.05); font-style: italic; }

.foot { margin-top: 40px; font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* --- Landing Page Styles --- */
.hero {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.hero p {
    color: var(--text-muted);
}

.feature-list {
    text-align: left;
    margin: 30px auto;
    max-width: 300px;
}

.feature-list p {
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
}

.feature-list ul {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

.button-start {
    display: inline-block;
    margin-top: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    background: var(--text-main);
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.button-start:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* --- Action Plan / Tips Styles --- */
.action-plan {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #334155; /* Separator line */
}

.action-plan h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.action-plan ul {
    list-style: none;
    padding: 0;
}

.action-plan li {
    margin-bottom: 10px;
    padding: 12px 15px;
    background-color: rgba(239, 68, 68, 0.05); /* danger with opacity */
    border-radius: 8px;
    border-left: 4px solid var(--danger);
    font-size: 0.9rem;
}

.action-plan li.success-tip {
    background-color: rgba(34, 197, 94, 0.05); /* success with opacity */
    border-left-color: var(--success);
}

/* --- Action Buttons on Result Page --- */
.action-buttons-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-whatsapp, .button-secondary {
    display: block;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.button-whatsapp {
    background-color: #25D366;
    color: white;
}

.button-secondary {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.button-secondary:hover {
    background-color: rgba(56, 189, 248, 0.1);
}