.cp-journey-green {
    --j-color: var(--cp-green, #16a34a);
    --j-color-light: var(--cp-green-light, #22c55e);
    --j-rgb: 22, 163, 74;
}

.cp-journey-orange {
    --j-color: var(--cp-orange, #ea580c);
    --j-color-light: var(--cp-orange-light, #f97316);
    --j-rgb: 234, 88, 12;
}

.cp-journey-gold,
.cp-journey-yellow {
    --j-color: var(--cp-gold, #d97706);
    --j-color-light: var(--cp-gold-light, #fbbf24);
    --j-rgb: 217, 119, 6;
}

.cp-journey-purple {
    --j-color: var(--cp-purple, #7c3aed);
    --j-color-light: #a855f7;
    --j-rgb: 124, 58, 237;
}

.cp-journey-blue {
    --j-color: var(--cp-blue, #2563eb);
    --j-color-light: #60a5fa;
    --j-rgb: 37, 99, 235;
}

.cp-journey-red {
    --j-color: var(--cp-red, #dc2626);
    --j-color-light: #ef4444;
    --j-rgb: 220, 38, 38;
}

.cp-journey-teal {
    --j-color: var(--cp-teal, #0d9488);
    --j-color-light: #14b8a6;
    --j-rgb: 13, 148, 136;
}

.cp-journey-pink {
    --j-color: var(--cp-pink, #db2777);
    --j-color-light: #f472b6;
    --j-rgb: 219, 39, 119;
}

.cp-journey-indigo {
    --j-color: var(--cp-indigo, #4f46e5);
    --j-color-light: #818cf8;
    --j-rgb: 79, 70, 229;
}

.cp-journey-cyan {
    --j-color: var(--cp-cyan, #0891b2);
    --j-color-light: #06b6d4;
    --j-rgb: 8, 145, 178;
}

.cp-journey-card {
    background: linear-gradient(165deg, rgba(var(--j-rgb, 22, 163, 74), 0.08) 0%, var(--bg-elevated) 45%, var(--bg-surface) 100%);
    border: 2px solid rgba(var(--j-rgb, 22, 163, 74), 0.22);
    border-bottom: 5px solid var(--j-color, var(--cp-green));
    border-radius: var(--radius-xl, 24px);
    box-shadow: 0 4px 20px rgba(var(--j-rgb, 22, 163, 74), 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 320px;
    container-type: inline-size;
}

[data-theme="dark"] .cp-journey-card {
    background: linear-gradient(165deg, rgba(var(--j-rgb, 22, 163, 74), 0.18) 0%, var(--bg-surface) 50%, var(--bg-elevated) 100%);
    border: 2px solid rgba(var(--j-rgb, 22, 163, 74), 0.35);
    border-bottom: 5px solid var(--j-color, var(--cp-green));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 25px rgba(var(--j-rgb, 22, 163, 74), 0.12);
}

.cp-journey-card:not(.is-locked):hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--j-color, var(--cp-green));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), 0 0 30px rgba(var(--j-rgb, 22, 163, 74), 0.25);
}

[data-theme="dark"] .cp-journey-card:not(.is-locked):hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(var(--j-rgb, 22, 163, 74), 0.35);
}

.cp-journey-icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--j-rgb, 22, 163, 74), 0.16) 0%, rgba(var(--j-rgb, 22, 163, 74), 0.06) 100%);
    border: 3px solid rgba(var(--j-rgb, 22, 163, 74), 0.3);
    color: var(--j-color, var(--cp-green));
    font-size: 3.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 24px rgba(var(--j-rgb, 22, 163, 74), 0.18);
}

[data-theme="dark"] .cp-journey-icon-circle {
    background: linear-gradient(135deg, rgba(var(--j-rgb, 22, 163, 74), 0.28) 0%, rgba(var(--j-rgb, 22, 163, 74), 0.12) 100%);
    border: 3px solid rgba(var(--j-rgb, 22, 163, 74), 0.5);
    color: var(--j-color-light, var(--j-color, var(--cp-green)));
    box-shadow: 0 8px 28px rgba(var(--j-rgb, 22, 163, 74), 0.3), inset 0 0 16px rgba(var(--j-rgb, 22, 163, 74), 0.2);
}

.cp-journey-card:not(.is-locked):hover .cp-journey-icon-circle {
    transform: scale(1.12) rotate(5deg);
    border-color: var(--j-color, var(--cp-green));
    box-shadow: 0 12px 30px rgba(var(--j-rgb, 22, 163, 74), 0.4);
}

.cp-journey-emoji {
    font-size: 3.2rem;
    line-height: 1;
}

.cp-journey-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    white-space: normal;
    text-wrap: balance;
    width: 100%;
}

.cp-journey-title p {
    margin: 0;
    line-height: inherit;
}

.cp-journey-title p + p {
    margin-top: 0.35rem;
}

.cp-journey-title strong,
.cp-journey-title b {
    font-weight: 900;
}

.cp-journey-title [data-size="sm"],
.cp-journey-title .text-sm {
    font-size: 0.82em;
    font-weight: 600;
    opacity: 0.9;
}

.cp-journey-title [data-size="lg"],
.cp-journey-title .text-lg {
    font-size: 1.18em;
    font-weight: 800;
}

.cp-journey-title [data-size="xl"],
.cp-journey-title .text-xl {
    font-size: 1.35em;
    font-weight: 900;
}

.cp-journey-title [data-align="left"],
.cp-journey-title .text-start {
    text-align: left;
}

.cp-journey-title [data-align="center"],
.cp-journey-title .text-center {
    text-align: center;
}

.cp-journey-title [data-align="right"],
.cp-journey-title .text-end {
    text-align: right;
}

.cp-journey-title.is-long-title-sm {
    font-size: clamp(0.98rem, 1.8vw, 1.15rem);
    letter-spacing: -0.025em;
}

.cp-journey-title.is-long-title-xs {
    font-size: clamp(0.84rem, 1.5vw, 0.98rem);
    letter-spacing: -0.03em;
}

.cp-journey-title.is-long-title-xxs {
    font-size: clamp(0.72rem, 1.2vw, 0.84rem);
    letter-spacing: -0.035em;
}

@container (max-width: 270px) {
    .cp-journey-title {
        font-size: 1.08rem;
    }
    .cp-journey-title.is-long-title-sm {
        font-size: 0.94rem;
    }
    .cp-journey-title.is-long-title-xs {
        font-size: 0.82rem;
    }
    .cp-journey-title.is-long-title-xxs {
        font-size: 0.72rem;
    }
}

[data-theme="dark"] .cp-journey-title {
    color: #ffffff;
}

.cp-journey-card:not(.is-locked):hover .cp-journey-title {
    color: var(--j-color, var(--cp-green));
}

[data-theme="dark"] .cp-journey-card:not(.is-locked):hover .cp-journey-title {
    color: var(--j-color-light, var(--j-color));
}

.cp-journey-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 320px;
    word-break: normal;
    overflow-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: none;
    text-wrap: pretty;
}

.cp-journey-description p {
    margin-bottom: 0.4rem;
}

.cp-journey-description p:last-child {
    margin-bottom: 0;
}

.cp-journey-description strong,
.cp-journey-description b {
    color: var(--text-primary);
    font-weight: 700;
}

.cp-journey-description h2,
.cp-journey-description h3,
.cp-journey-description h4 {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    margin: 0.45rem 0 0.2rem;
    line-height: 1.25;
}

.cp-journey-description h2 {
    font-size: 1.15rem;
}

.cp-journey-description h3 {
    font-size: 1.05rem;
}

.cp-journey-description h4 {
    font-size: 0.92rem;
}

.cp-journey-description [data-size="sm"],
.cp-journey-description .text-sm {
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.88;
}

.cp-journey-description [data-size="lg"],
.cp-journey-description .text-lg {
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.35;
}

.cp-journey-description [data-size="xl"],
.cp-journey-description .text-xl {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.cp-journey-description [data-align="left"],
.cp-journey-description .text-start {
    text-align: left;
}

.cp-journey-description [data-align="center"],
.cp-journey-description .text-center {
    text-align: center;
}

.cp-journey-description [data-align="right"],
.cp-journey-description .text-end {
    text-align: right;
}

.cp-journey-description ul,
.cp-journey-description ol {
    text-align: left;
    margin: 0.4rem 0;
    padding-left: 1.25rem;
}

.cp-journey-description li {
    margin-bottom: 0.2rem;
}

.cp-journey-description hr {
    border: none;
    border-top: 1px solid rgba(var(--j-rgb, 22, 163, 74), 0.25);
    margin: 0.6rem auto;
    width: 65%;
}

[data-theme="dark"] .cp-journey-description strong,
[data-theme="dark"] .cp-journey-description b,
[data-theme="dark"] .cp-journey-description h2,
[data-theme="dark"] .cp-journey-description h3,
[data-theme="dark"] .cp-journey-description h4 {
    color: #ffffff;
}

.cp-journey-btn {
    background: var(--j-color, var(--cp-green)) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 32px;
    border-radius: 99px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(var(--j-rgb, 22, 163, 74), 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cp-journey-card:not(.is-locked):hover .cp-journey-btn {
    background: var(--j-color-light, var(--j-color)) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--j-rgb, 22, 163, 74), 0.5);
}

.cp-journey-btn.is-locked-btn {
    background: var(--bg-surface) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    opacity: 0.75;
}

.cp-journey-card.is-locked {
    filter: grayscale(0.8) brightness(0.85);
    cursor: not-allowed;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.locked-badge {
    background: var(--cp-gold, #d97706);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-lg);
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(217, 119, 6, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
    }
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

.icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    font-size: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 576px) {
    .cp-journey-icon-circle {
        width: 80px;
        height: 80px;
        font-size: 2.6rem;
    }

    .cp-journey-emoji {
        font-size: 2.6rem;
    }

    .cp-journey-title {
        font-size: 1.10rem;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    .cp-journey-title.is-long-title-sm {
        font-size: 0.95rem;
    }

    .cp-journey-title.is-long-title-xs {
        font-size: 0.82rem;
    }

    .cp-journey-title.is-long-title-xxs {
        font-size: 0.72rem;
    }

    .cp-journey-card {
        min-height: auto;
        padding: 24px 16px !important;
    }
}