/* ==========================================================================
   WORKFLOW VISUAL TEMPLATES
   
   Visual themes for CEIUS flow navigation
   All colours use design-tokens.css variables for easy customisation
   
   Usage: Add one of these classes to your .flow-card element:
   - cards-fan       : 3D fanned cards
   - cards-stack     : Vertical stacked bars  
   - cards-timeline  : Horizontal timeline dots
   - cards-grid      : Grid of cards
   - cards-minimal   : Simple pill buttons
   - cards-chevron   : Arrow/chevron steps
   - cards-circles   : Connected circles
   - cards-metro     : Metro/Windows tiles
   
   Dependencies: 
   - design-tokens.css (must be loaded first)
   - ceius-flow.css (base flow styles)
   ========================================================================== */

/* ==========================================================================
   CARDS-FAN : 3D Fanned Cards
   ========================================================================== */

.flow-card.cards-fan {
    background: linear-gradient(135deg, var(--ctx-navy) 0%, var(--ctx-teal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.flow-card.cards-fan .flow-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-5);
}

.flow-card.cards-fan .flow-header h2 {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 700;
    color: white;
}

.flow-card.cards-fan .flow-header-meta {
    font-size: var(--text-sm);
    opacity: 0.7;
    margin-top: 4px;
}

.flow-card.cards-fan .flow-steps {
    display: flex;
    position: relative;
    justify-content: center;
    perspective: 800px;
    min-height: 140px;
    padding: var(--space-5) 0;
    background: transparent;
}

.flow-card.cards-fan .flow-step {
    text-decoration: none;
    color: white;
    position: absolute;
    cursor: pointer;
    transition: all 0.4s ease;
    transform-origin: bottom center;
}

.flow-card.cards-fan .flow-step:nth-child(1) { transform: rotate(-20deg) translateX(-80px); z-index: 1; }
.flow-card.cards-fan .flow-step:nth-child(2) { transform: rotate(-10deg) translateX(-40px); z-index: 2; }
.flow-card.cards-fan .flow-step:nth-child(3) { transform: rotate(0deg); z-index: 3; }
.flow-card.cards-fan .flow-step:nth-child(4) { transform: rotate(10deg) translateX(40px); z-index: 2; }
.flow-card.cards-fan .flow-step:nth-child(5) { transform: rotate(20deg) translateX(80px); z-index: 1; }

.flow-card.cards-fan .flow-step:hover {
    transform: translateY(-15px) rotate(0deg) !important;
    z-index: 10 !important;
}

.flow-card.cards-fan .flow-step.active {
    transform: translateY(-20px) rotate(0deg) scale(1.1) !important;
    z-index: 15 !important;
}

.flow-card.cards-fan .flow-step-circle {
    width: 70px;
    height: 100px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--ctx-teal), var(--ctx-navy));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.flow-card.cards-fan .flow-step.done .flow-step-circle {
    background: linear-gradient(145deg, var(--ctx-gold-light), var(--ctx-gold));
    border-color: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-fan .flow-step.active .flow-step-circle {
    background: linear-gradient(145deg, white, var(--gray-100));
    border-color: white;
    color: var(--ctx-navy);
    box-shadow: 0 15px 40px rgba(255,255,255,0.3);
}

.flow-card.cards-fan .flow-step-label {
    font-size: 8px;
    margin-top: 4px;
}

.flow-card.cards-fan .flow-connector { display: none; }

/* ==========================================================================
   CARDS-STACK : Vertical Stacked Bars
   ========================================================================== */

.flow-card.cards-stack {
    background: linear-gradient(180deg, var(--ctx-navy) 0%, color-mix(in srgb, var(--ctx-navy) 70%, black) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.flow-card.cards-stack .flow-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.flow-card.cards-stack .flow-header h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: white;
}

.flow-card.cards-stack .flow-header-meta {
    opacity: 0.6;
    font-size: var(--text-sm);
}

.flow-card.cards-stack .flow-steps {
    display: flex;
    gap: var(--space-4);
    align-items: flex-end;
    justify-content: center;
    min-height: 200px;
    padding: var(--space-5);
    background: transparent;
}

.flow-card.cards-stack .flow-step {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    flex: none;
}

.flow-card.cards-stack .flow-step-circle {
    width: 80px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.1);
    padding: var(--space-4) var(--space-3);
    text-align: center;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.3s;
}

.flow-card.cards-stack .flow-step:nth-child(1) .flow-step-circle { height: 80px; }
.flow-card.cards-stack .flow-step:nth-child(2) .flow-step-circle { height: 100px; }
.flow-card.cards-stack .flow-step:nth-child(3) .flow-step-circle { height: 120px; }
.flow-card.cards-stack .flow-step:nth-child(4) .flow-step-circle { height: 140px; }
.flow-card.cards-stack .flow-step:nth-child(5) .flow-step-circle { height: 160px; }

.flow-card.cards-stack .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    border-color: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-stack .flow-step.active .flow-step-circle {
    background: white;
    border-color: white;
    color: var(--ctx-navy);
    transform: scale(1.1);
}

.flow-card.cards-stack .flow-step:hover .flow-step-circle {
    transform: translateY(-10px);
}

.flow-card.cards-stack .flow-step-label {
    font-size: 9px;
    margin-top: var(--space-2);
}

.flow-card.cards-stack .flow-connector { display: none; }

/* ==========================================================================
   CARDS-TIMELINE : Horizontal Timeline with Dots
   ========================================================================== */

.flow-card.cards-timeline {
    background: linear-gradient(135deg, var(--ctx-navy) 0%, var(--ctx-teal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    color: white;
}

.flow-card.cards-timeline .flow-header {
    margin-bottom: var(--space-6);
}

.flow-card.cards-timeline .flow-header h2 {
    font-size: var(--text-xl);
    color: white;
    margin-bottom: var(--space-1);
}

.flow-card.cards-timeline .flow-header-meta {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
    opacity: 1;
}

.flow-card.cards-timeline .flow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: var(--space-5) 0;
    background: transparent;
}

/* Timeline line */
.flow-card.cards-timeline .flow-steps::before {
    content: '';
    position: absolute;
    top: calc(var(--space-5) + 25px);
    left: 40px;
    right: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
}

.flow-card.cards-timeline .flow-step {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    z-index: 1;
}

.flow-card.cards-timeline .flow-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 4px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: none;
    transition: all 0.3s;
}

.flow-card.cards-timeline .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    border-color: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-timeline .flow-step.active .flow-step-circle {
    background: white;
    border-color: white;
    color: var(--ctx-navy);
    transform: scale(1.2);
}

.flow-card.cards-timeline .flow-step-label {
    font-size: 11px;
    margin-top: var(--space-3);
    color: rgba(255,255,255,0.85);
}

.flow-card.cards-timeline .flow-connector { display: none; }

/* ==========================================================================
   CARDS-GRID : Grid of Cards
   ========================================================================== */

.flow-card.cards-grid {
    background: linear-gradient(135deg, var(--ctx-navy) 0%, var(--ctx-teal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    color: white;
}

.flow-card.cards-grid .flow-header {
    margin-bottom: var(--space-5);
}

.flow-card.cards-grid .flow-header h2 {
    font-size: var(--text-xl);
    color: white;
    margin-bottom: var(--space-1);
}

.flow-card.cards-grid .flow-header-meta {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
    opacity: 1;
}

.flow-card.cards-grid .flow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-3);
    background: transparent;
    padding: 0;
}

.flow-card.cards-grid .flow-step {
    text-decoration: none;
    color: white;
}

.flow-card.cards-grid .flow-step-circle {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: none;
    transition: all 0.3s;
}

.flow-card.cards-grid .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    border-color: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-grid .flow-step.active .flow-step-circle {
    background: white;
    border-color: white;
    color: var(--ctx-navy);
    transform: scale(1.05);
}

.flow-card.cards-grid .flow-step:hover .flow-step-circle {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
}

.flow-card.cards-grid .flow-step.done:hover .flow-step-circle {
    background: var(--ctx-gold-light);
}

.flow-card.cards-grid .flow-step-circle > span:first-child {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.flow-card.cards-grid .flow-step-label {
    font-size: 10px;
    margin-top: var(--space-2);
    color: rgba(255,255,255,0.85);
}

.flow-card.cards-grid .flow-connector { display: none; }

/* ==========================================================================
   CARDS-MINIMAL : Simple Pill Buttons
   ========================================================================== */

.flow-card.cards-minimal {
    background: linear-gradient(135deg, var(--ctx-navy) 0%, var(--ctx-teal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    color: white;
}

.flow-card.cards-minimal .flow-header {
    margin-bottom: var(--space-4);
}

.flow-card.cards-minimal .flow-header h2 {
    font-size: var(--text-lg);
    color: white;
}

.flow-card.cards-minimal .flow-header-meta {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
    opacity: 1;
}

.flow-card.cards-minimal .flow-steps {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
    background: transparent;
    padding: 0;
}

.flow-card.cards-minimal .flow-step {
    text-decoration: none;
    flex-direction: row;
}

.flow-card.cards-minimal .flow-step-circle {
    width: auto;
    height: auto;
    border-radius: 50px;
    padding: var(--space-2) var(--space-4);
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: none;
    color: white;
    transition: all 0.2s;
}

.flow-card.cards-minimal .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    border-color: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-minimal .flow-step.active .flow-step-circle {
    background: white;
    border-color: white;
    color: var(--ctx-navy);
}

.flow-card.cards-minimal .flow-step:hover .flow-step-circle {
    background: rgba(255,255,255,0.25);
}

.flow-card.cards-minimal .flow-step.done:hover .flow-step-circle {
    background: var(--ctx-gold-light);
}

.flow-card.cards-minimal .flow-step-label {
    font-size: var(--text-sm);
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    color: inherit;
}

.flow-card.cards-minimal .flow-connector { display: none; }

/* ==========================================================================
   CARDS-CHEVRON : Arrow/Chevron Steps
   ========================================================================== */

.flow-card.cards-chevron {
    background: linear-gradient(135deg, color-mix(in srgb, var(--ctx-navy) 70%, white) 0%, color-mix(in srgb, var(--ctx-teal) 60%, white) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    color: var(--ctx-navy);
}

.flow-card.cards-chevron .flow-header {
    margin-bottom: var(--space-5);
}

.flow-card.cards-chevron .flow-header h2 {
    font-size: var(--text-lg);
    color: var(--ctx-navy);
}

.flow-card.cards-chevron .flow-header-meta {
    color: var(--ctx-navy);
    font-size: var(--text-sm);
    opacity: 0.7;
}

.flow-card.cards-chevron .flow-steps {
    display: flex;
    background: transparent;
    padding: 0;
}

.flow-card.cards-chevron .flow-step {
    text-decoration: none;
    flex: 1;
    position: relative;
    color: white;
}

.flow-card.cards-chevron .flow-step-circle {
    width: 100%;
    height: auto;
    border-radius: 0;
    padding: var(--space-4) var(--space-5) var(--space-4) var(--space-6);
    background: rgba(255,255,255,0.5);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
    margin-left: -15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ctx-navy);
    border: none;
    box-shadow: none;
    transition: all 0.3s;
}

.flow-card.cards-chevron .flow-step:first-child .flow-step-circle {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    margin-left: 0;
    padding-left: var(--space-5);
}

.flow-card.cards-chevron .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-chevron .flow-step.active .flow-step-circle {
    background: var(--ctx-navy);
    color: white;
}

.flow-card.cards-chevron .flow-step:hover .flow-step-circle {
    background: rgba(255,255,255,0.7);
}

.flow-card.cards-chevron .flow-step.done:hover .flow-step-circle {
    background: var(--ctx-gold-light);
}

.flow-card.cards-chevron .flow-step-label {
    font-size: 10px;
    margin-top: 2px;
    color: var(--ctx-navy);
}

.flow-card.cards-chevron .flow-connector { display: none; }

/* ==========================================================================
   CARDS-CIRCLES : Connected Circles (uses brand gradient)
   ========================================================================== */

.flow-card.cards-circles {
    background: linear-gradient(135deg, var(--ctx-navy) 0%, var(--ctx-teal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    color: white;
}

.flow-card.cards-circles .flow-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.flow-card.cards-circles .flow-header h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-1);
    color: white;
}

.flow-card.cards-circles .flow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    background: transparent;
    padding: 0;
}

/* Connection line */
.flow-card.cards-circles .flow-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: rgba(255,255,255,0.3);
}

.flow-card.cards-circles .flow-step {
    text-decoration: none;
    color: white;
    text-align: center;
    width: 70px;
    z-index: 1;
}

.flow-card.cards-circles .flow-step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    box-shadow: none;
    transition: all 0.3s;
}

.flow-card.cards-circles .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    border-color: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-circles .flow-step.active .flow-step-circle {
    background: white;
    border-color: white;
    color: var(--ctx-navy);
    transform: scale(1.15);
}

.flow-card.cards-circles .flow-step-label {
    font-size: 10px;
    opacity: 0.9;
}

.flow-card.cards-circles .flow-connector { display: none; }

/* ==========================================================================
   CARDS-METRO : Metro/Windows Tiles (uses brand colours)
   ========================================================================== */

.flow-card.cards-metro {
    background: var(--ctx-navy);
    border-radius: 0;
    padding: var(--space-5);
    color: white;
}

.flow-card.cards-metro .flow-header {
    margin-bottom: var(--space-5);
}

.flow-card.cards-metro .flow-header h2 {
    font-size: var(--text-2xl);
    font-weight: 300;
    color: white;
}

.flow-card.cards-metro .flow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: transparent;
    padding: 0;
}

.flow-card.cards-metro .flow-step {
    text-decoration: none;
    color: white;
}

.flow-card.cards-metro .flow-step-circle {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0;
    background: color-mix(in srgb, var(--ctx-navy) 70%, white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
    transition: all 0.2s;
}

.flow-card.cards-metro .flow-step.done .flow-step-circle {
    background: var(--ctx-teal);
    color: white;
}

.flow-card.cards-metro .flow-step.active .flow-step-circle {
    background: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-metro .flow-step:hover .flow-step-circle {
    background: color-mix(in srgb, var(--ctx-navy) 50%, white);
}

.flow-card.cards-metro .flow-step.done:hover .flow-step-circle {
    background: color-mix(in srgb, var(--ctx-teal) 80%, white);
}

.flow-card.cards-metro .flow-step-circle > span:first-child {
    font-size: var(--text-3xl);
    font-weight: 300;
}

.flow-card.cards-metro .flow-step-label {
    font-size: 11px;
    margin-top: var(--space-1);
    opacity: 0.8;
}

.flow-card.cards-metro .flow-connector { display: none; }

/* ==========================================================================
   CARDS-HEXAGON : Honeycomb hexagon shapes
   ========================================================================== */

.flow-card.cards-hexagon {
    background: linear-gradient(135deg, var(--ctx-navy) 0%, var(--ctx-teal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    color: white;
}

.flow-card.cards-hexagon .flow-header h2 { color: white; }
.flow-card.cards-hexagon .flow-header-meta { color: rgba(255,255,255,0.7); }

.flow-card.cards-hexagon .flow-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    background: transparent;
    padding: var(--space-4) 0;
}

.flow-card.cards-hexagon .flow-step {
    text-decoration: none;
    color: white;
}

.flow-card.cards-hexagon .flow-step-circle {
    width: 70px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s;
}

.flow-card.cards-hexagon .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-hexagon .flow-step.active .flow-step-circle {
    background: white;
    color: var(--ctx-navy);
    transform: scale(1.1);
}

.flow-card.cards-hexagon .flow-step-label { font-size: 10px; margin-top: var(--space-2); }
.flow-card.cards-hexagon .flow-connector { display: none; }

/* ==========================================================================
   CARDS-DIAMOND : Rotated diamond shapes
   ========================================================================== */

.flow-card.cards-diamond {
    background: linear-gradient(180deg, var(--ctx-navy) 0%, var(--ctx-teal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    color: white;
}

.flow-card.cards-diamond .flow-header { text-align: center; }
.flow-card.cards-diamond .flow-header h2 { color: white; }
.flow-card.cards-diamond .flow-header-meta { color: rgba(255,255,255,0.7); }

.flow-card.cards-diamond .flow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    background: transparent;
    padding: var(--space-6) 0;
}

.flow-card.cards-diamond .flow-step {
    text-decoration: none;
    color: white;
}

.flow-card.cards-diamond .flow-step-circle {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.flow-card.cards-diamond .flow-step-circle > span:first-child {
    transform: rotate(-45deg);
}

.flow-card.cards-diamond .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    border-color: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-diamond .flow-step.active .flow-step-circle {
    background: white;
    border-color: white;
    color: var(--ctx-navy);
    transform: rotate(45deg) scale(1.15);
}

.flow-card.cards-diamond .flow-step-label { 
    font-size: 10px; 
    margin-top: var(--space-4);
    transform: rotate(0deg);
}
.flow-card.cards-diamond .flow-connector { display: none; }

/* ==========================================================================
   CARDS-CUBE : 3D Cube effect
   ========================================================================== */

.flow-card.cards-cube {
    background: linear-gradient(135deg, var(--ctx-navy) 0%, color-mix(in srgb, var(--ctx-navy) 80%, black) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    color: white;
}

.flow-card.cards-cube .flow-header h2 { color: white; }
.flow-card.cards-cube .flow-header-meta { color: rgba(255,255,255,0.7); }

.flow-card.cards-cube .flow-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    background: transparent;
    padding: var(--space-5) 0;
    perspective: 1000px;
}

.flow-card.cards-cube .flow-step {
    text-decoration: none;
    color: white;
}

.flow-card.cards-cube .flow-step-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--ctx-teal) 0%, var(--ctx-navy) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        5px 5px 0 color-mix(in srgb, var(--ctx-navy) 60%, black),
        10px 10px 0 color-mix(in srgb, var(--ctx-navy) 40%, black);
    transition: all 0.3s;
    transform: translateZ(0);
}

.flow-card.cards-cube .flow-step:hover .flow-step-circle {
    transform: translate(-3px, -3px);
    box-shadow: 
        8px 8px 0 color-mix(in srgb, var(--ctx-navy) 60%, black),
        13px 13px 0 color-mix(in srgb, var(--ctx-navy) 40%, black);
}

.flow-card.cards-cube .flow-step.done .flow-step-circle {
    background: linear-gradient(135deg, var(--ctx-gold-light) 0%, var(--ctx-gold) 100%);
    color: var(--ctx-navy);
    box-shadow: 
        5px 5px 0 color-mix(in srgb, var(--ctx-gold) 60%, black),
        10px 10px 0 color-mix(in srgb, var(--ctx-gold) 40%, black);
}

.flow-card.cards-cube .flow-step.active .flow-step-circle {
    background: white;
    color: var(--ctx-navy);
    box-shadow: 
        5px 5px 0 var(--gray-300),
        10px 10px 0 var(--gray-200);
}

.flow-card.cards-cube .flow-step-label { font-size: 10px; margin-top: var(--space-3); }
.flow-card.cards-cube .flow-connector { display: none; }

/* ==========================================================================
   CARDS-RIBBON : Folded ribbon/banner style
   ========================================================================== */

.flow-card.cards-ribbon {
    background: var(--ctx-navy);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    color: white;
}

.flow-card.cards-ribbon .flow-header h2 { color: white; }
.flow-card.cards-ribbon .flow-header-meta { color: rgba(255,255,255,0.7); }

.flow-card.cards-ribbon .flow-steps {
    display: flex;
    background: transparent;
    padding: 0;
    margin: 0 -24px;
}

.flow-card.cards-ribbon .flow-step {
    text-decoration: none;
    color: white;
    flex: 1;
    position: relative;
}

.flow-card.cards-ribbon .flow-step-circle {
    width: 100%;
    padding: var(--space-4) var(--space-3);
    background: var(--ctx-teal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
    border-radius: 0;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.flow-card.cards-ribbon .flow-step:nth-child(odd) .flow-step-circle {
    background: var(--ctx-teal);
    transform: skewX(-5deg);
}

.flow-card.cards-ribbon .flow-step:nth-child(even) .flow-step-circle {
    background: color-mix(in srgb, var(--ctx-teal) 80%, var(--ctx-navy));
    transform: skewX(5deg);
}

.flow-card.cards-ribbon .flow-step-circle > * {
    transform: skewX(0deg);
}

.flow-card.cards-ribbon .flow-step.done .flow-step-circle {
    background: var(--ctx-gold) !important;
    color: var(--ctx-navy);
}

.flow-card.cards-ribbon .flow-step.active .flow-step-circle {
    background: white !important;
    color: var(--ctx-navy);
}

.flow-card.cards-ribbon .flow-step-label { font-size: 10px; margin-top: 4px; }
.flow-card.cards-ribbon .flow-connector { display: none; }

/* ==========================================================================
   CARDS-WAVE : Flowing wave with dots
   ========================================================================== */

.flow-card.cards-wave {
    background: linear-gradient(135deg, var(--ctx-navy) 0%, var(--ctx-teal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    color: white;
    position: relative;
    overflow: hidden;
}

.flow-card.cards-wave::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C57.1,118.92,156.63,69.08,321.39,56.44Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.flow-card.cards-wave .flow-header h2 { color: white; }
.flow-card.cards-wave .flow-header-meta { color: rgba(255,255,255,0.7); }

.flow-card.cards-wave .flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: transparent;
    padding: var(--space-4) 0;
    position: relative;
    z-index: 1;
}

.flow-card.cards-wave .flow-step {
    text-decoration: none;
    color: white;
    text-align: center;
}

.flow-card.cards-wave .flow-step:nth-child(1) { transform: translateY(0); }
.flow-card.cards-wave .flow-step:nth-child(2) { transform: translateY(-15px); }
.flow-card.cards-wave .flow-step:nth-child(3) { transform: translateY(-25px); }
.flow-card.cards-wave .flow-step:nth-child(4) { transform: translateY(-15px); }
.flow-card.cards-wave .flow-step:nth-child(5) { transform: translateY(0); }

.flow-card.cards-wave .flow-step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s;
}

.flow-card.cards-wave .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    border-color: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-wave .flow-step.active .flow-step-circle {
    background: white;
    border-color: white;
    color: var(--ctx-navy);
    transform: scale(1.15);
}

.flow-card.cards-wave .flow-step-label { font-size: 10px; margin-top: var(--space-2); }
.flow-card.cards-wave .flow-connector { display: none; }

/* ==========================================================================
   CARDS-PILLS : Rounded pill capsules
   ========================================================================== */

.flow-card.cards-pills {
    background: linear-gradient(135deg, color-mix(in srgb, var(--ctx-navy) 70%, white) 0%, color-mix(in srgb, var(--ctx-teal) 60%, white) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    color: var(--ctx-navy);
}

.flow-card.cards-pills .flow-header h2 { color: var(--ctx-navy); }
.flow-card.cards-pills .flow-header-meta { color: var(--ctx-navy); opacity: 0.7; }

.flow-card.cards-pills .flow-steps {
    display: flex;
    gap: var(--space-3);
    background: transparent;
    padding: var(--space-3) 0;
}

.flow-card.cards-pills .flow-step {
    text-decoration: none;
    flex: 1;
    color: var(--ctx-navy);
}

.flow-card.cards-pills .flow-step-circle {
    width: 100%;
    padding: var(--space-4) var(--space-3);
    background: white;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.flow-card.cards-pills .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    border-color: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-pills .flow-step.active .flow-step-circle {
    background: var(--ctx-navy);
    border-color: var(--ctx-navy);
    color: white;
    transform: scale(1.05);
}

.flow-card.cards-pills .flow-step-label { font-size: 10px; margin-top: 4px; }
.flow-card.cards-pills .flow-connector { display: none; }

/* ==========================================================================
   CARDS-BLOCKS : Staggered 3D blocks
   ========================================================================== */

.flow-card.cards-blocks {
    background: var(--ctx-navy);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    color: white;
}

.flow-card.cards-blocks .flow-header h2 { color: white; }
.flow-card.cards-blocks .flow-header-meta { color: rgba(255,255,255,0.7); }

.flow-card.cards-blocks .flow-steps {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--space-3);
    background: transparent;
    padding: var(--space-5) 0;
}

.flow-card.cards-blocks .flow-step {
    text-decoration: none;
    color: white;
}

.flow-card.cards-blocks .flow-step:nth-child(1) .flow-step-circle { height: 60px; }
.flow-card.cards-blocks .flow-step:nth-child(2) .flow-step-circle { height: 80px; }
.flow-card.cards-blocks .flow-step:nth-child(3) .flow-step-circle { height: 100px; }
.flow-card.cards-blocks .flow-step:nth-child(4) .flow-step-circle { height: 80px; }
.flow-card.cards-blocks .flow-step:nth-child(5) .flow-step-circle { height: 60px; }

.flow-card.cards-blocks .flow-step-circle {
    width: 60px;
    background: linear-gradient(180deg, var(--ctx-teal) 0%, color-mix(in srgb, var(--ctx-teal) 70%, var(--ctx-navy)) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: inset -3px 0 0 rgba(0,0,0,0.2), inset 3px 0 0 rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.flow-card.cards-blocks .flow-step.done .flow-step-circle {
    background: linear-gradient(180deg, var(--ctx-gold-light) 0%, var(--ctx-gold) 100%);
    color: var(--ctx-navy);
}

.flow-card.cards-blocks .flow-step.active .flow-step-circle {
    background: linear-gradient(180deg, white 0%, var(--gray-100) 100%);
    color: var(--ctx-navy);
}

.flow-card.cards-blocks .flow-step:hover .flow-step-circle {
    transform: translateY(-5px);
}

.flow-card.cards-blocks .flow-step-label { font-size: 10px; margin-top: var(--space-2); }
.flow-card.cards-blocks .flow-connector { display: none; }

/* ==========================================================================
   CARDS-ORBIT : Orbital ring with planets
   ========================================================================== */

.flow-card.cards-orbit {
    background: radial-gradient(ellipse at center, var(--ctx-teal) 0%, var(--ctx-navy) 70%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    color: white;
}

.flow-card.cards-orbit .flow-header { text-align: center; }
.flow-card.cards-orbit .flow-header h2 { color: white; }
.flow-card.cards-orbit .flow-header-meta { color: rgba(255,255,255,0.7); }

.flow-card.cards-orbit .flow-steps {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    padding: var(--space-5);
    position: relative;
}

.flow-card.cards-orbit .flow-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 20%, rgba(255,255,255,0.3) 80%, transparent 100%);
    border-radius: 50%;
    transform: translateY(-50%);
}

.flow-card.cards-orbit .flow-step {
    text-decoration: none;
    color: white;
    z-index: 1;
}

.flow-card.cards-orbit .flow-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 50%, transparent 70%);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255,255,255,0.2), inset 0 0 20px rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.flow-card.cards-orbit .flow-step.done .flow-step-circle {
    background: radial-gradient(circle at 30% 30%, var(--ctx-gold-light) 0%, var(--ctx-gold) 70%);
    border-color: var(--ctx-gold);
    color: var(--ctx-navy);
    box-shadow: 0 0 25px var(--ctx-gold);
}

.flow-card.cards-orbit .flow-step.active .flow-step-circle {
    background: radial-gradient(circle at 30% 30%, white 0%, var(--gray-100) 70%);
    border-color: white;
    color: var(--ctx-navy);
    box-shadow: 0 0 30px rgba(255,255,255,0.5);
    transform: scale(1.2);
}

.flow-card.cards-orbit .flow-step-label { font-size: 10px; margin-top: var(--space-2); }
.flow-card.cards-orbit .flow-connector { display: none; }

/* ==========================================================================
   CARDS-NEON : Glowing neon style
   ========================================================================== */

.flow-card.cards-neon {
    background: #0a0a0a;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    color: white;
    border: 1px solid var(--ctx-teal);
    box-shadow: 0 0 20px color-mix(in srgb, var(--ctx-teal) 30%, transparent);
}

.flow-card.cards-neon .flow-header h2 { 
    color: var(--ctx-teal);
    text-shadow: 0 0 10px var(--ctx-teal);
}
.flow-card.cards-neon .flow-header-meta { color: rgba(255,255,255,0.5); }

.flow-card.cards-neon .flow-steps {
    display: flex;
    justify-content: space-between;
    background: transparent;
    padding: var(--space-5) 0;
}

.flow-card.cards-neon .flow-step {
    text-decoration: none;
    color: white;
}

.flow-card.cards-neon .flow-step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--ctx-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ctx-teal);
    box-shadow: 0 0 10px var(--ctx-teal), inset 0 0 10px color-mix(in srgb, var(--ctx-teal) 20%, transparent);
    transition: all 0.3s;
}

.flow-card.cards-neon .flow-step.done .flow-step-circle {
    border-color: var(--ctx-gold);
    color: var(--ctx-gold);
    box-shadow: 0 0 15px var(--ctx-gold), inset 0 0 15px color-mix(in srgb, var(--ctx-gold) 30%, transparent);
    background: color-mix(in srgb, var(--ctx-gold) 10%, transparent);
}

.flow-card.cards-neon .flow-step.active .flow-step-circle {
    border-color: white;
    color: white;
    box-shadow: 0 0 20px white, inset 0 0 20px rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
}

.flow-card.cards-neon .flow-step-label { 
    font-size: 10px; 
    margin-top: var(--space-2);
    color: rgba(255,255,255,0.6);
}
.flow-card.cards-neon .flow-step.done .flow-step-label { color: var(--ctx-gold); }
.flow-card.cards-neon .flow-step.active .flow-step-label { color: white; }
.flow-card.cards-neon .flow-connector { display: none; }

/* ==========================================================================
   CARDS-GRADIENT : Individual gradient cards
   ========================================================================== */

.flow-card.cards-gradient {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    color: var(--ctx-navy);
}

.flow-card.cards-gradient .flow-header h2 { color: var(--ctx-navy); }
.flow-card.cards-gradient .flow-header-meta { color: var(--gray-600); }

.flow-card.cards-gradient .flow-steps {
    display: flex;
    gap: var(--space-3);
    background: transparent;
    padding: 0;
}

.flow-card.cards-gradient .flow-step {
    text-decoration: none;
    flex: 1;
}

.flow-card.cards-gradient .flow-step-circle {
    width: 100%;
    padding: var(--space-5) var(--space-3);
    background: linear-gradient(180deg, var(--ctx-teal) 0%, var(--ctx-navy) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.flow-card.cards-gradient .flow-step.done .flow-step-circle {
    background: linear-gradient(180deg, var(--ctx-gold-light) 0%, var(--ctx-gold) 100%);
    color: var(--ctx-navy);
}

.flow-card.cards-gradient .flow-step.active .flow-step-circle {
    background: linear-gradient(180deg, white 0%, var(--gray-200) 100%);
    color: var(--ctx-navy);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.flow-card.cards-gradient .flow-step-label { font-size: 10px; margin-top: var(--space-2); }
.flow-card.cards-gradient .flow-connector { display: none; }

/* ==========================================================================
   CARDS-STEPS : Numbered step indicators
   ========================================================================== */

.flow-card.cards-steps {
    background: linear-gradient(135deg, var(--ctx-navy) 0%, var(--ctx-teal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    color: white;
}

.flow-card.cards-steps .flow-header h2 { color: white; }
.flow-card.cards-steps .flow-header-meta { color: rgba(255,255,255,0.7); }

.flow-card.cards-steps .flow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    background: transparent;
    padding: var(--space-4) 0;
}

.flow-card.cards-steps .flow-steps::before {
    content: '';
    position: absolute;
    top: calc(var(--space-4) + 24px);
    left: 40px;
    right: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
}

.flow-card.cards-steps .flow-step {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.flow-card.cards-steps .flow-step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 3px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
}

.flow-card.cards-steps .flow-step::before {
    content: attr(data-step);
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--ctx-teal);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-card.cards-steps .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    border-color: var(--ctx-gold);
    color: var(--ctx-navy);
}

.flow-card.cards-steps .flow-step.active .flow-step-circle {
    background: white;
    border-color: white;
    color: var(--ctx-navy);
    transform: scale(1.1);
}

.flow-card.cards-steps .flow-step-label { font-size: 10px; margin-top: var(--space-2); }
.flow-card.cards-steps .flow-connector { display: none; }

/* ==========================================================================
   CARDS-ARROW : Large arrow progression
   ========================================================================== */

.flow-card.cards-arrow {
    background: linear-gradient(90deg, var(--ctx-navy) 0%, var(--ctx-teal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    color: white;
    position: relative;
}

.flow-card.cards-arrow .flow-header h2 { color: white; }
.flow-card.cards-arrow .flow-header-meta { color: rgba(255,255,255,0.7); }

.flow-card.cards-arrow .flow-steps {
    display: flex;
    background: transparent;
    padding: 0;
}

.flow-card.cards-arrow .flow-step {
    text-decoration: none;
    flex: 1;
    color: white;
}

.flow-card.cards-arrow .flow-step-circle {
    width: 100%;
    padding: var(--space-5) var(--space-4);
    background: rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    border-right: 3px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.flow-card.cards-arrow .flow-step:last-child .flow-step-circle {
    border-right: none;
}

.flow-card.cards-arrow .flow-step.done .flow-step-circle {
    background: var(--ctx-gold);
    color: var(--ctx-navy);
    border-color: color-mix(in srgb, var(--ctx-gold) 70%, black);
}

.flow-card.cards-arrow .flow-step.active .flow-step-circle {
    background: white;
    color: var(--ctx-navy);
}

.flow-card.cards-arrow .flow-step-circle > span:first-child {
    font-size: var(--text-2xl);
}

.flow-card.cards-arrow .flow-step-label { font-size: 10px; margin-top: var(--space-2); }
.flow-card.cards-arrow .flow-connector { display: none; }

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR ALL THEMES
   ========================================================================== */

@media (max-width: 768px) {
    .flow-card.cards-fan .flow-steps {
        min-height: 100px;
    }
    
    .flow-card.cards-fan .flow-step-circle {
        width: 50px;
        height: 70px;
    }
    
    .flow-card.cards-stack .flow-steps {
        min-height: 140px;
    }
    
    .flow-card.cards-stack .flow-step-circle {
        width: 60px;
    }
    
    .flow-card.cards-grid .flow-steps,
    .flow-card.cards-metro .flow-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .flow-card.cards-chevron .flow-steps {
        flex-wrap: wrap;
    }
    
    .flow-card.cards-chevron .flow-step {
        flex: 1 1 40%;
    }
    
    .flow-card.cards-chevron .flow-step-circle {
        clip-path: none;
        margin-left: 0;
        padding: var(--space-3);
        border-radius: var(--radius);
    }
}

@media (max-width: 480px) {
    .flow-card.cards-grid .flow-steps,
    .flow-card.cards-metro .flow-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}
