* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    min-height: 100vh;
}

/* ===== WELCOME SCREEN ===== */
#welcomeScreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-box {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(233,30,140,0.15);
}

.welcome-logo {
    font-size: 56px;
    margin-bottom: 8px;
}

.welcome-box h1 {
    color: #880e4f;
    font-size: 32px;
    margin-bottom: 8px;
}

.welcome-tagline {
    color: #ad1457;
    font-size: 15px;
    font-style: italic;
    margin-bottom: 20px;
}

.trust-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.trust-badges span {
    background: #fce4ec;
    color: #880e4f;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.welcome-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
    text-align: left;
}

.start-btn {
    background: #e91e8c;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
}

/* ===== MAIN APP ===== */
#mainApp {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 16px;
    width: 100%;
    max-width: 480px;
}

.header h1 {
    color: #880e4f;
    font-size: 24px;
}

.header p {
    color: #ad1457;
    font-size: 14px;
    margin-top: 5px;
}

.trust-strip {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    width: 100%;
    max-width: 480px;
}

.trust-strip span {
    background: white;
    color: #880e4f;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stage-selector {
    background: white;
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    max-width: 480px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stage-selector label {
    display: block;
    color: #880e4f;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.stage-selector select {
    width: 100%;
    padding: 10px;
    border: 2px solid #f48fb1;
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    background: white;
}

.mood-selector {
    background: white;
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    max-width: 480px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mood-selector label {
    display: block;
    color: #880e4f;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.mood-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mood-btn {
    padding: 8px 14px;
    border: 2px solid #f48fb1;
    border-radius: 20px;
    background: white;
    color: #ad1457;
    font-size: 13px;
    cursor: pointer;
}

.mood-btn.selected {
    background: #e91e8c;
    color: white;
    border-color: #e91e8c;
}

.chat-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 420px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.message.bot {
    background: #fce4ec;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: #e91e8c;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.hint {
    background: #fff9c4;
    color: #666;
    font-size: 12px;
    align-self: center;
    text-align: center;
    border-radius: 12px;
    max-width: 90%;
}

.chat-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #f8bbd0;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #f48fb1;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.chat-input input:focus {
    border-color: #e91e8c;
}

.chat-input button {
    background: #e91e8c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 18px;
    cursor: pointer;
}

.typing {
    color: #ad1457;
    font-size: 13px;
    font-style: italic;
    padding: 0 16px 8px;
}

.feedback-container {
    background: white;
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    max-width: 480px;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.feedback-container p {
    color: #880e4f;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
}

.feedback-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.feedback-btn {
    padding: 10px 20px;
    border: 2px solid #f48fb1;
    border-radius: 20px;
    background: white;
    color: #ad1457;
    font-size: 14px;
    cursor: pointer;
}

#feedbackThanks p {
    color: #e91e8c;
    font-size: 14px;
    margin-top: 10px;
}

/* ===== TABS ===== */
.tab-nav {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    margin-bottom: 16px;
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 10px 4px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #ad1457;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #e91e8c;
    color: white;
}

.tab-content {
    width: 100%;
    max-width: 480px;
}

/* ===== EXERCISES ===== */
.section-title {
    color: #880e4f;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.section-desc {
    color: #ad1457;
    font-size: 13px;
    margin-bottom: 16px;
}

.exercise-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.exercise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,30,140,0.15);
}

.exercise-icon {
    font-size: 32px;
}

.exercise-info h3 {
    color: #880e4f;
    font-size: 15px;
    margin-bottom: 4px;
}

.exercise-info p {
    color: #999;
    font-size: 12px;
}

.exercise-player {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.exercise-step {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 60px;
}

.exercise-timer {
    color: #ad1457;
    font-size: 13px;
    margin-bottom: 16px;
}

.exercise-next-btn {
    background: #e91e8c;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 32px;
    font-size: 15px;
    cursor: pointer;
    margin-right: 8px;
}

.exercise-close-btn {
    background: transparent;
    color: #ad1457;
    border: 2px solid #f48fb1;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 15px;
    cursor: pointer;
}

/* ===== AFFIRMATIONS ===== */
.affirmation-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.affirmation-text {
    color: #880e4f;
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
    min-height: 80px;
}

.affirmation-btn {
    background: #e91e8c;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
}

/* ===== JOURNAL ===== */
.journal-prompt {
    background: #fce4ec;
    border-radius: 12px;
    padding: 14px;
    color: #880e4f;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    font-style: italic;
}

.journal-input {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #f48fb1;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: white;
    outline: none;
    resize: vertical;
    margin-bottom: 12px;
    font-family: 'Segoe UI', sans-serif;
}

.journal-input:focus {
    border-color: #e91e8c;
}

.journal-save-btn {
    background: #e91e8c;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px 32px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
}

.journal-saved {
    text-align: center;
    color: #e91e8c;
    font-size: 14px;
    margin-top: 12px;
    font-weight: 600;
}

/* ===== CODE SCREEN ===== */
#welcomeScreen, #codeScreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.code-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #f48fb1;
    border-radius: 12px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 3px;
    font-weight: 700;
    color: #880e4f;
    outline: none;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.code-input:focus {
    border-color: #e91e8c;
}

.code-error {
    color: #e53935;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
}

.start-btn-free {
    background: transparent;
    color: #ad1457;
    border: 2px solid #f48fb1;
    border-radius: 25px;
    padding: 14px 32px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* ===== UPGRADE PROMPT ===== */
.upgrade-prompt {
    background: #fce4ec;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-top: 16px;
    width: 100%;
    max-width: 480px;
}

.upgrade-prompt p {
    color: #880e4f;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 600;
}

.upgrade-prompt p:last-child {
    font-weight: normal;
    color: #ad1457;
}

/* ===== MESSAGE COUNTER ===== */
.message-counter {
    text-align: center;
    color: #ad1457;
    font-size: 12px;
    padding: 4px;
}
