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

:root {
    --primary: #D97757;
    --primary-dark: #B85A3D;
    --secondary: #2C7A7B;
    --secondary-light: #4FD1C5;
    --background: #FBF8F3;
    --surface: #FFFFFF;
    --text: #2D3748;
    --text-light: #718096;
    --accent: #F6AD55;
    --success: #48BB78;
    --error: #E53E3E;
    --border: #E2E8F0;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: linear-gradient(135deg, #FBF8F3 0%, #F7EDE2 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: var(--surface);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo: centered on desktop, left-aligned on mobile */
.header__logo {
    cursor: pointer;
    line-height: 1;
    /* Desktop: center via absolute positioning */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
@media (max-width: 768px) {
    .header__logo {
        position: static;
        transform: none;
        text-align: left;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.user-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-info {
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Tab label responsive toggle */
.tab-label-short { display: none; }
@media (max-width: 768px) {
    .tab-label-full  { display: none; }
    .tab-label-short { display: inline; }
}

/* ---- Header: desktop vs mobile nav ---- */

.header__desktop-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}
.header__mobile-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

@media (max-width: 768px) {
    .header__desktop-nav { display: none; }
    .header__mobile-nav  { display: flex; }
}

/* Toolkits icon button (mobile) */
.header__toolkits-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-light, #718096);
    transition: background 0.15s, color 0.15s;
    position: relative;
    overflow: hidden;
}

/* Burger button */
.header__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text, #2D3748);
    border-radius: 8px;
    transition: background 0.15s;
    position: relative;
    overflow: hidden;
}
.header__burger:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile dropdown menu */
.header__mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    z-index: 200;
    animation: menuFadeIn 0.15s ease-out;
}
@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* User info header row */
.header__mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
}
.header__mobile-menu-user-info {
    flex: 1;
    min-width: 0;
}
.header__mobile-menu-user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header__mobile-menu-user-email {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.header__mobile-menu-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    flex-shrink: 0;
}

/* Menu divider */
.header__mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.4rem 0.5rem;
}

/* Menu items */
.header__mobile-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.7rem 0.75rem;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: background 0.15s;
    text-align: left;
}
.header__mobile-menu-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
.header__mobile-menu-item--primary {
    color: var(--primary);
    font-weight: 600;
}
.header__mobile-menu-item--upgrade {
    color: var(--primary);
    font-weight: 600;
    background: rgba(217, 119, 87, 0.06);
}
.header__mobile-menu-item--upgrade:hover {
    background: rgba(217, 119, 87, 0.12);
}

.main-content {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-bottom: 3rem;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.section {
    background: var(--surface);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
}

h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(120deg, transparent 0%, var(--accent) 0%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 85%;
    padding: 0 0.2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: var(--background);
    transition: all 0.3s ease;
    resize: vertical;
}

select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: var(--background);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    cursor: pointer;
}

select::-ms-expand {
    display: none;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.1);
}

select:hover {
    border-color: var(--primary);
    background-color: rgba(217, 119, 87, 0.02);
}

.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: var(--background);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(217, 119, 87, 0.05);
}

.file-upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(217, 119, 87, 0.1);
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

button {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 87, 0.3);
}

.btn-secondary {
    background: var(--border);
    color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
    background: #CBD5E0;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--background);
    border: 2px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.tag:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tag.selected {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
}

@media (max-width: 768px) {
    .tag-container {
        gap: 0.5rem;
    }
    .tag {
        padding: 0.35rem 0.7rem;
        font-size: 0.82rem;
    }
    .transition-intent-buttons button {
        padding: 6px 6px !important;
        font-size: 0.78rem !important;
    }
}

.transition-intent-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ---- Career Accordion ---- */

.career-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.career-accordion__card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.career-accordion__card:hover {
    border-color: rgba(217, 119, 87, 0.35);
}
.career-accordion__card--expanded {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(217, 119, 87, 0.1);
}
.career-accordion__card--selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(217, 119, 87, 0.04), rgba(246, 173, 85, 0.03));
}

.career-accordion__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    color: var(--text-light);
    transition: background 0.15s;
}
.career-accordion__header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.career-accordion__title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
    line-height: 1.3;
}

.career-accordion__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}
.career-accordion__tag {
    background: #f5f5f5;
    color: #666;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}

.career-accordion__snippet {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Panel expand/collapse */
.career-accordion__panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}
.career-accordion__card--expanded .career-accordion__panel {
    max-height: 2000px; /* generous upper bound for long content */
    opacity: 1;
}

.career-accordion__content {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0 1.25rem 1.25rem;
}

/* ---- Selected Preview ---- */

.career-selected-preview {
    background: linear-gradient(135deg, rgba(217, 119, 87, 0.07), rgba(246, 173, 85, 0.04));
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    animation: fadeSlideIn 0.25s ease-out;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .career-accordion__card,
    .career-accordion__panel,
    .career-selected-preview {
        animation: none !important;
        transition: none !important;
    }
    .career-accordion__panel { max-height: none; opacity: 1; }
    .career-accordion__card:not(.career-accordion__card--expanded) .career-accordion__panel {
        max-height: 0; opacity: 0; display: none;
    }
}

.welcome-section {
    text-align: center;
    padding: 3rem 1rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* CTA visibility: desktop shows above-fold + below-process, mobile shows mobile-only */
.welcome-cta-above-fold {
    display: block;
}

.welcome-cta-mobile {
    display: none;
}

@media (max-width: 768px) {
    .welcome-cta-mobile {
        display: block;
    }
    .welcome-cta-desktop {
        display: none;
    }
    .welcome-cta-above-fold {
        display: none;
    }
}

/* ── Sample action plan mockup ─────────────────────── */
.sample-career-preview {
    animation: fadeIn 0.6s ease-out;
}

/* ── Toolkit preview grid ─────────────────────────── */
.toolkit-preview__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.toolkit-preview__card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.toolkit-preview__card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.toolkit-preview__icon {
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}

.toolkit-preview__title {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.35rem;
}

.toolkit-preview__desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 480px) {
    .toolkit-preview__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border-top: 3px solid var(--primary);
}

.stat-number {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

.stat-source {
    display: block;
    color: var(--text-light);
    font-size: 0.72rem;
    font-style: italic;
    margin-top: 0.25rem;
    opacity: 0.7;
}

/* ── Site-wide footer ────────────────────────────────── */
.site-footer {
    margin-top: auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
.site-footer__links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.site-footer__links a {
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}
.site-footer__links a:hover {
    color: var(--primary);
}
.site-footer__legal {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.75rem;
}

/* ── FAQ page ────────────────────────────────────────── */
.faq-page {
    max-width: 720px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 2rem;
}

.faq-category__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.85rem;
}

.faq-category__items {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    transition: color 0.15s;
}

.faq-item__header:hover {
    color: var(--primary);
}

.faq-item__question {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.faq-item__answer {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary, var(--text-light));
    padding: 0 0.25rem 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-page {
        padding: 1rem 0.5rem;
    }
    .faq-item__question {
        font-size: 0.9rem;
    }
    .faq-item__answer {
        font-size: 0.85rem;
    }
}

.resource-list {
    list-style: none;
    margin-top: 1rem;
}

.resource-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--background);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-light);
    transition: all 0.3s ease;
}

.resource-item:hover {
    transform: translateX(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.resource-title {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.resource-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.resource-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.resource-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid #F56565;
    color: #C53030;
}

.alert-info {
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid #4299E1;
    color: #2B6CB0;
}

/* Common utility classes */
.journey-card {
    margin-top: 0;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: 12px;
}

.journey-card-item {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.badge {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    height: fit-content;
}

.badge-secondary {
    background: rgba(246, 173, 85, 0.15);
    color: var(--secondary);
}

.next-step-box {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.next-step-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.cta-section {
    margin-top: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.button-group-centered {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    .main-content {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .welcome-section h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 1.5rem;
    }

    .header {
        padding: 1rem;
    }
}

.fade-enter {
    opacity: 0;
    transform: translateY(20px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease-out;
}

/* Waiting Content Styles */
.waiting-content-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.6s ease-in-out;
}

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

.waiting-content-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.waiting-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

/* Stat Content */
.waiting-stat .stat-highlight {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.waiting-stat .stat-insight {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.waiting-stat .stat-source {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Quote Content */
.waiting-quote .quote-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: white;
    font-style: italic;
    margin: 0.5rem 0;
}

.waiting-quote .quote-author {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* Success Story Content */
.waiting-story .story-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.waiting-story .story-detail {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Encouragement Content */
.waiting-encouragement .encouragement-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    line-height: 1.5;
}

/* ── Sticky mobile CTA bar ─────────────────────────── */
.sticky-cta-bar {
    display: none;
}

@media (max-width: 768px) {
    .sticky-cta-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.75rem 1rem;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
        background: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        z-index: 90;
    }

    /* Add padding to main content so sticky bar doesn't cover it */
    .section:has(~ .sticky-cta-bar),
    .section:last-child {
        padding-bottom: 5rem;
    }

    /* Hide the inline button group on mobile when sticky bar is present */
    .sticky-cta-bar ~ .button-group,
    .section:has(.sticky-cta-bar) > .button-group {
        /* Keep visible but reduce emphasis — sticky bar is primary */
    }
}

/* ── Step back button ──────────────────────────────── */
.step-back-button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.15s;
}
.step-back-button:hover {
    opacity: 0.7;
}
