/* ============================================
   INTERACTIVE UI DEMO ANIMATION - SHARE JOURNEYS
   ============================================ */

/* Main Container */
.share-ui-demo {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Animated Cursor */
.demo-cursor {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
    transition: opacity 0.3s ease, transform 0.15s ease;
}

.demo-cursor svg {
    transform: rotate(-15deg);
}

.demo-cursor.clicking {
    transform: scale(0.9);
}

/* Progress Bar - Horizontal Step Bar Design */
.demo-progress-bar {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-bottom: 24px;
    border-radius: 10px;
    margin: 2rem 0;
    border: 1px solid var(--secondary-grey-color);
    transition: background 0.8s ease, border-color 0.6s ease;
}

.demo-progress-bar.all-complete {
    background: linear-gradient(90deg, var(--blurple), var(--purple));
    border-color: transparent;
}

.demo-progress-bar.all-complete .progress-step {
    background: transparent;
    box-shadow: none;
    color: var(--white);
}

.demo-progress-bar.all-complete .progress-step.completed {
    background: transparent;
    box-shadow: none;
}

.demo-progress-bar.all-complete .progress-step:not(:last-child)::after {
    opacity: 0;
}

.progress-step {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: transparent;
    color: var(--inv-bg-color);
    background: var(--main-bg-color);
    opacity: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.progress-step:first-child {
    border-radius: 10px 0 0 10px;
}

.progress-step:last-child {
    border-radius: 0 10px 10px 0;
}

.progress-step::before {
    content: '';
    position: absolute;
    inset: 0;

    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.progress-step:hover::before {
    opacity: 1;
}

.progress-step {
    color: color-mix(in srgb, var(--inv-bg-color) 40%, transparent);
    opacity: 1;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;

    opacity: 0.5;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.current {
    opacity: 1;
    color: var(--lightblue) !important;
    font-weight: 600;
    font-size: 12px;
    scale: 1.05;

    z-index: 10;
    border-radius: 8px;
    border: 1px solid var(--lightblue) !important;
}

.progress-step.current::before {
    opacity: 1;
}

.progress-step.current .step-label,
.progress-step.current .step-percent {
    color: var(--lightblue) !important;
}

.progress-step.completed {
    opacity: 1;
    background: linear-gradient(90deg, var(--blurple), var(--purple));
    background-size: 400% 100%;
    color: var(--white);
    box-shadow:
        0 2px 8px rgba(99, 179, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-step-1.completed { background-position: 0% 0; }
.progress-step-2.completed { background-position: 33.33% 0; }
.progress-step-3.completed { background-position: 66.66% 0; }
.progress-step-4.completed { background-position: 100% 0; }

.progress-step.completed::before {
    opacity: 1;
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%); */
}

@keyframes stepPulse {
    0%, 100% {
        background: rgba(99, 179, 237, 0.08);
        box-shadow:
            0 0 20px rgba(99, 179, 237, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        background: rgba(99, 179, 237, 0.15);
        box-shadow:
            0 0 30px rgba(99, 179, 237, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.step-label {
    font-size: 13px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--inv-bg-color);
    opacity: 0.4;
}

.step-number {
    color: inherit !important;
    opacity: 1 !important;
}

.step-check {
    display: none;
    flex-shrink: 0;
    margin-right: 3px;
}

.progress-step.completed .step-number {
    display: none;
}

.progress-step.completed .step-check {
    display: inline-block;
    stroke: var(--white);
    color: var(--white);
}

.progress-step.current .step-label {
    font-weight: 700;
    opacity: 1;
}
.progress-step.completed .step-label {
    opacity: 1;
}
.step-percent {
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
    padding: 2px 6px;
    background: rgba(99, 179, 237, 0.15);
    border-radius: 4px;

}

.progress-step.current .step-percent {
    opacity: 1;
    background: rgba(99, 179, 237, 0.25);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-step.completed .step-label,
.progress-step.completed .step-percent {
    color: var(--white);

}

.progress-step.completed .step-percent {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Demo Content Area */
.demo-content {
    position: relative;
    min-height: 480px;
    pointer-events: none !important;
    cursor: default !important;
}

.demo-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.demo-step.active {
    opacity: 1;
    visibility: visible;
}


.demo-step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--inv-bg-color);
    margin-bottom: 24px;
    text-align: center;
}


.demo-step-2 .demo-panel {
    position: relative;
}

/* Template Utility Bar */
.template-utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 2px;
}

.template-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--inv-bg-color);
    opacity: 0.4;
    letter-spacing: 0.02em;
}

.template-utility-actions {
    display: flex;
    gap: 4px;
}

.template-utility-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--inv-bg-color);
    opacity: 0.35;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.template-utility-btn:hover {
    opacity: 0.6;
    background: var(--secondary-grey-color);
}

.template-utility-btn svg {
    flex-shrink: 0;
}

/* Step 1: Template Selection */
.template-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
}

.template-card {
    /* background-color: color-mix(in srgb, var(--inv-bg-color) 4%, var(--main-bg-color)); */
    border: 1px solid color-mix(in srgb, var(--inv-bg-color) 8%, transparent);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: scale(1) translateY(0);
    box-shadow: 0 16px 48px rgba(0,0,0,.12);
    overflow: hidden;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--inv-bg-color) 10%, transparent) 50%, transparent 100%);
    pointer-events: none;
}

/* Folder card variant */
.template-folder .template-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-folder-icon {
    width: 48px;
    height: 48px;
    fill: var(--purple) !important;
    color: var(--purple) !important;
}

.template-options:has(.template-card.hovered) .template-card:not(.hovered) {
    opacity: 0.45;
    filter: blur(0.5px);
}

.template-card.hovered {
    transform: scale(1.03) translateY(-2px);
    /* background-color: color-mix(in srgb, var(--inv-bg-color) 8%, var(--main-bg-color)); */
    border-color: color-mix(in srgb, var(--inv-bg-color) 15%, transparent);
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
    z-index: 2;
}

.template-card.selected {
    border-color: color-mix(in srgb, var(--purple) 40%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--purple) 15%, transparent),
                0 16px 48px rgba(0,0,0,.15);
}

.template-card.click-ripple {
    animation: cardClickRipple 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardClickRipple {
    0%   { transform: scale(1.03) translateY(-2px); }
    40%  { transform: scale(0.96) translateY(0); }
    100% { transform: scale(1) translateY(0); }
}

.template-icon {
    width: 56px;
    height: 56px;
    position: relative;
}

.template-circle-bg {
    position: absolute;
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
}

.template-circle-bg path {
    fill: rgba(139,92,246,0.08) !important;
}

.template-circle-stages {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.template-circle-stages rect {
    fill: var(--secondary-grey-color) !important;
    rx: 4;
    ry: 4;
}

.template-info {
    text-align: center;
}

.template-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--inv-bg-color);
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}

.template-stages {
    font-size: 10px;
    color: var(--inv-bg-color);
    opacity: 0.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

.template-selected-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(139,92,246,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--inv-bg-color);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.template-card.selected .template-selected-badge {
    opacity: 1;
    transform: scale(1);
    background: var(--lightblue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 149, 255, 0.3);
}

/* Tooltip */
.demo-tooltip {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.3s ease;
}

.demo-tooltip.visible {
    opacity: 1;
}

.tooltip-content {
    background: var(--main-bg-color);
    backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--inv-bg-color) 20%, transparent);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--inv-bg-color);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600 !important;
}

/* Step 2: Customer Selection */
.customer-section {
    max-width: 500px;
    margin: 0 auto;
    font-size: 14px !important;
}

.customer-section *,
.customer-section button,
.customer-section span,
.customer-section input {
    font-size: 14px !important;
}

.customer-section .floating-label {
    font-size: 14px !important;
}

.customer-section .autofill-label {
    font-size: 11px !important;
}

.customer-section .crm-filled-via {
    font-size: 11px !important;
}

.customer-section .company-meta {
    font-size: 11px !important;
}

/* Choice Options (Enter Manually / From CRM) */
.customer-choice-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.choice-option,
.choice-option * {
    color: var(--inv-bg-color) !important;
}

.choice-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background-color: transparent !important;
    border: 1.5px solid color-mix(in srgb, var(--inv-bg-color) 15%, transparent) !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.choice-option span {
    color: var(--inv-bg-color) !important;
}

.choice-option svg {
    flex-shrink: 0;
    opacity: 0.6;
    stroke: var(--inv-bg-color) !important;
    transition: opacity 0.3s ease;
}

.choice-option:hover {
    opacity: 1;
    border-color: color-mix(in srgb, var(--inv-bg-color) 35%, transparent) !important;
    background-color: color-mix(in srgb, var(--inv-bg-color) 4%, transparent) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.choice-option.selected,
.choice-option.selected * {
    color: var(--blurple) !important;
}

.choice-option.selected {
    opacity: 1;
    border-color: var(--blurple) !important;
    background-color: color-mix(in srgb, var(--blurple) 8%, transparent) !important;
}

.choice-option.selected span {
    color: var(--blurple) !important;
}

.choice-option.selected svg {
    opacity: 1;
    stroke: var(--blurple) !important;
}

.choice-option.dimmed,
.choice-option.dimmed * {
    color: var(--inv-bg-color) !important;
}

.choice-option.dimmed {
    opacity: 0.3;
    pointer-events: none;
    background-color: transparent !important;
}

/* AI Working Indicator */
.ai-working-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: color-mix(in srgb, var(--inv-bg-color) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--inv-bg-color) 10%, transparent);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
}

.ai-working-indicator.visible {
    opacity: 1;
    transform: translateY(0);
    padding: 12px 16px;
    margin-top: 16px;
    margin-bottom: 12px;
    max-height: 60px;
}

.ai-working-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: block;
    animation: ai-icon-bounce 1.2s ease-in-out infinite;
}

.ai-working-icon path,
.ai-working-icon circle {
    fill: var(--blurple) !important;
    stroke: var(--blurple) !important;
}

@keyframes ai-icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.ai-working-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--inv-bg-color);
    opacity: 0.7;
}

.ai-working-dots {
    display: inline-block;
    animation: ai-dots-pulse 1.4s ease-in-out infinite;
}

@keyframes ai-dots-pulse {
    0%, 20% { opacity: 0.3; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0.3; }
}

.input-wrapper {
    margin-bottom: 24px;
}

.input-field-demo {
    position: relative;
    background: var(--main-bg-color);
    border: 1px solid color-mix(in srgb, var(--inv-bg-color) 15%, transparent);
    border-radius: 10px;
    padding: 20px 24px;
    font-size: 16px;
    color: var(--inv-bg-color);
    min-height: 52px;
    display: flex;
    align-items: center;
}

.floating-label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    color: var(--inv-bg-color);
    opacity: 0.35;
    pointer-events: none;
    transition: all 0.25s ease;
    text-align: left;
}

.input-field-demo .floating-label {
    left: 14px;
}

.crm-dropdown-button .floating-label {
    left: 14px;
}

.typed-text {
    color: var(--inv-bg-color);
}


.or-divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: color-mix(in srgb, var(--inv-bg-color) 15%, transparent);
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}

.or-divider span {
    background: var(--main-bg-color);
    padding: 0 16px;
    font-size: 13px;
    color: var(--inv-bg-color);
    opacity: 0.5;
    font-weight: 600;
}

.crm-dropdown-wrapper {
    position: relative;
    opacity: 0;
    max-height: 0;
    overflow: visible;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

.crm-dropdown-wrapper.revealed {
    opacity: 1;
    max-height: 500px;
}

.crm-dropdown-button {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: var(--main-bg-color);
    border: 1px solid color-mix(in srgb, var(--inv-bg-color) 10%, transparent);
    border-radius: 10px;
    padding: 0 18px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--inv-bg-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.crm-dropdown-button.filled .floating-label {
    opacity: 0;
}

.crm-dropdown-button > svg:first-of-type {
    display: none;
}

.crm-dropdown-button .crm-filled-value {
    opacity: 0;
    position: absolute;
    left: 14px;
    right: 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--inv-bg-color);
    transition: opacity 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.crm-dropdown-button.filled .crm-filled-value {
    opacity: 1;
}

.crm-filled-via {
    font-weight: 400;
    opacity: 0.5;
    margin-left: 6px;
    font-size: 11px;
}

.crm-button-text {
    opacity: 0;
}

.crm-dropdown-button:hover {
    background: var(--main-bg-color);
    border-color: color-mix(in srgb, var(--inv-bg-color) 30%, transparent);
}

.crm-dropdown-button svg:first-child {
    color: var(--inv-bg-color);
    opacity: 0.7;
}

.dropdown-arrow {
    margin-left: auto;
    color: var(--inv-bg-color);
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.crm-dropdown-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
}

.crm-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--main-bg-color);
    backdrop-filter: blur(20px);
    border: 1px solid color-mix(in srgb, var(--inv-bg-color) 20%, transparent);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.crm-dropdown-wrapper.open .crm-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.dropdown-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.dropdown-item:hover {
    background: color-mix(in srgb, var(--inv-bg-color) 5%, transparent);
}

.dropdown-item.selected {
    background: color-mix(in srgb, var(--inv-bg-color) 10%, transparent);
}

.company-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--blurple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.dropdown-item-2 .company-avatar {
    background: var(--purple);
}

.dropdown-item-3 .company-avatar {
    background: #d946ef;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--inv-bg-color);
    margin-bottom: 2px;
}

.company-meta {
    font-size: 12px;
    color: var(--inv-bg-color);
    opacity: 0.5;
}

.sf-opp-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 8px;
    padding: 2px 6px 2px 4px;
    font-size: 9px !important;
    font-weight: 600;
    color: #00A1E0 !important;
    background: rgba(0, 161, 224, 0.08);
    border: 1px solid rgba(0, 161, 224, 0.2);
    border-radius: 3px;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.crm-linked-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--lightestgreen);
    border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.crm-linked-confirm.visible {
    opacity: 1;
    transform: translateY(0);
}

.crm-linked-confirm span {
    color: var(--green);
}

.crm-linked-confirm svg {
    stroke: var(--green);
    flex-shrink: 0;
}

/* Journey Success Reveal — replaces form after completion */
.customer-section {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.customer-section.fade-out {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.journey-success-reveal {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.journey-success-reveal.active {
    opacity: 1;
    transform: translateY(-10px);
}

.journey-success-check {
    animation: journeyCheckPop 0.5s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes journeyCheckPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.journey-success-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--inv-bg-color);
}

.journey-success-subtitle {
    font-size: 0.8rem;
    color: var(--inv-bg-color);
    opacity: 0.6;
}

/* Step 3 teams success reveal */
.share-teams-section {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.share-teams-section.fade-out {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.teams-success-reveal {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.teams-success-reveal.active {
    opacity: 1;
    transform: translateY(-50px);
}

/* Autofill Fields */
.crm-autofill-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.crm-autofill-fields.revealed {
    opacity: 1;
}

.autofill-field {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    border: 1.5px solid color-mix(in srgb, var(--inv-bg-color) 15%, transparent);
    border-radius: 10px;
    height: 50px;
    overflow: hidden;
    text-align: left;
}

.autofill-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--inv-bg-color);
    opacity: 0.35;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: opacity 0.3s ease;
    text-align: left;
}

.autofill-value {
    position: absolute;
    left: 16px;
    right: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--inv-bg-color);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-align: left;
}

.autofill-field.filled .autofill-label {
    opacity: 0;
}

.autofill-field.filled .autofill-value {
    opacity: 1;
    transform: translateY(0);
}

.autofill-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--blurple) 50%, var(--purple) 50%);
    vertical-align: middle;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-right: 4px;
}

/* Shimmer animation */
.autofill-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        color-mix(in srgb, var(--blurple) 8%, transparent) 40%,
        color-mix(in srgb, var(--purple) 12%, transparent) 60%,
        transparent 100%
    );
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.autofill-field.shimmer .autofill-shimmer {
    opacity: 1;
    animation: autofill-shimmer 0.6s ease-out forwards;
}

@keyframes autofill-shimmer {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.autofill-field.shimmer {
    border-color: color-mix(in srgb, var(--blurple) 30%, transparent);
}

/* Step 3: Share Teams - Horizontal Two-Sided Layout */
.demo-step-3 {
    height: calc(100% - 40px);
}
.demo-step-3 .demo-panel {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}
.share-teams-section {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex: 1;
}

.team-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 16px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--inv-bg-color) 2%, transparent);
    border: 1px solid color-mix(in srgb, var(--inv-bg-color) 6%, transparent);
}

.team-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--inv-bg-color);
    opacity: 0.9;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--inv-bg-color) 8%, transparent);
}

.team-label {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.06em;
    opacity: 1;
    color: var(--inv-bg-color);
}

.team-external-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(234, 179, 8, 0.1);
    color: #b45309;
    border: 1px solid rgba(234, 179, 8, 0.25);
    line-height: 1;
}

.team-source-tag {
    font-weight: 600;
    font-size: 9px;
    opacity: 0.8;
    letter-spacing: 0.04em;
    text-transform: none;
    margin-left: auto;
}

.member-source-label {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

.team-header svg {
    color: var(--inv-bg-color);
    opacity: 0.75;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--main-bg-color);
    border: 1px solid color-mix(in srgb, var(--inv-bg-color) 8%, transparent);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.team-member.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.team-member.success {
    border-color: rgba(34, 197, 94, 0.3);
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--inv-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--main-bg-color);
    font-size: 11px;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.customer-team .member-avatar {
    background: linear-gradient(135deg, var(--blurple), var(--purple));
    color: #fff;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--inv-bg-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-email-typed::after {
    content: '|';
    color: var(--blurple);
    font-weight: 400;
    margin-left: 1px;
    opacity: 0;
}

.customer-email-typed.typing::after {
    opacity: 1;
    animation: blink-cursor 0.7s step-end infinite;
}

.customer-email-typed.typed::after {
    opacity: 0;
    animation: none;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.member-role {
    font-size: 10px;
    color: var(--inv-bg-color);
    opacity: 0.65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-source {
    font-style: italic;
    opacity: 0.85;
}

.member-status {
    flex-shrink: 0;
    position: relative;
    min-width: 0;
    text-align: right;
    margin-left: auto;
}

.status-badge {
    display: none;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.status-badge svg {
    flex-shrink: 0;
}

.status-badge.active {
    display: inline-flex;
    animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.badge-added {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.badge-added svg {
    stroke: #16a34a;
}

.badge-invite-sent {
    background: rgba(86, 154, 241, 0.12);
    color: var(--blurple);
}

.badge-invite-sent svg {
    stroke: var(--blurple);
}

.badge-awaiting {
    background: rgba(234, 179, 8, 0.12);
    color: #ca8a04;
}

.badge-awaiting svg {
    stroke: #ca8a04;
}

.badge-joined {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.badge-joined svg {
    stroke: #16a34a;
}

/* Step 4: AI Personalization */
.ai-section {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.personalize-two-col-layout {
    max-width: 720px;
}

.ai-header {
    text-align: center;
    margin-bottom: 28px;
}

.ai-icon-large {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--blurple), var(--purple));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--main-bg-color);
    box-shadow: 0 4px 20px rgba(120, 115, 245, 0.3);
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--inv-bg-color) 40%, transparent);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(var(--inv-bg-color-rgb, 15, 23, 42), 0);
    }
}

.ai-icon-large.done {
    animation: none;
    box-shadow: 0 4px 20px rgba(120, 115, 245, 0.3);
}

.ai-status-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--inv-bg-color);
    line-height: 1.4;
    letter-spacing: -0.01em;
    transition: opacity 0.4s ease;
}

.ai-header.hidden,
.ai-tasks.hidden,
.ai-progress-bar-wrapper.hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease, margin-bottom 0.4s ease;
}

.ai-tasks-scroll {
    margin-top: 20px;
}

.ai-tasks-scroll.hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease, margin-top 0.4s ease;
}

.ai-tasks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-task {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--main-bg-color);
    border: 1px solid color-mix(in srgb, var(--inv-bg-color) 12%, transparent);
    border-radius: 10px;
    opacity: 0;
    max-height: 0;
    padding: 0 16px;
    margin: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.35s ease, padding 0.35s ease, margin 0.35s ease;
}

.ai-task.is-active,
.ai-task.completed {
    opacity: 1;
    max-height: 80px;
    padding: 16px;
}

.ai-task.dismissed {
    opacity: 0;
    max-height: 0;
    padding: 0 16px;
    margin: 0;
    border-color: transparent;
}

.task-indicator {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.task-spinner {
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-top-color: #a5b4fc;
    opacity: 0;
}

.ai-task.is-active .task-spinner {
    opacity: 1;
    animation: spin 1s linear infinite;
}

.ai-task.completed .task-spinner {
    opacity: 0;
}

.task-check {
    width: 1.1rem;
    height: 1.1rem;
    color: #34d399;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 250ms ease, transform 250ms ease;
}

.ai-task.completed .task-indicator {
    background: rgba(34, 197, 94, 0.9);
    border: 2px solid rgba(34, 197, 94, 1);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.7);
}

.ai-task.completed .task-check {
    opacity: 1;
    transform: scale(1);
    color: #ffffff;
    stroke: #ffffff;
    stroke-width: 3;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.task-text {
    font-size: 0.9rem;
    color: var(--inv-bg-color);
    opacity: 0.85;
    font-weight: 500;
    line-height: 1.5;
}

.ai-task.completed .task-text {
    opacity: 1;
}

/* Personalize Flow Body - Two-column: circle left, log right */
.personalize-flow-body {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    opacity: 1;
    max-height: 360px;
    overflow: hidden;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.personalize-flow-body.is-hidden {
    opacity: 0;
    max-height: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.personalize-two-col {
    align-items: stretch;
    gap: 1.5rem;
}

.personalize-circle-column {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: width 0.6s ease, flex-grow 0.6s ease;
}

.personalize-circle-column.is-centered {
    flex-grow: 1;
    width: 100%;
    justify-content: center;
}

.personalize-circle-chart {
    width: 280px;
    height: 280px;
    position: relative;
    flex-shrink: 0;
    filter: drop-shadow(0 0 60px rgba(139, 92, 246, 0.12))
           drop-shadow(0 0 120px rgba(99, 102, 241, 0.06));
}

.personalize-circle-ring {
    position: absolute;
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
}

.personalize-circle-nodes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.personalize-circle-nodes rect {
    fill: var(--secondary-grey-color);
    transition: fill 0.4s ease, filter 0.4s ease;
    rx: 4;
    ry: 4;
}

.personalize-circle-nodes rect.is-idle {
    fill: var(--secondary-grey-color);
}

.personalize-circle-nodes rect.is-working {
    fill: var(--blurple);
    filter: drop-shadow(0 0 6px rgba(165, 180, 252, 0.4));
    animation: personalizeNodePulse 1s ease-in-out infinite;
}

.personalize-circle-nodes rect.is-complete {
    fill: #22c55e;
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.3));
}

@keyframes personalizeNodePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 1; }
}

.personalize-circle-center {
    display: none !important;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: var(--inv-bg-color);
    opacity: 0.75;
    padding: 4.5rem;
    line-height: 1.4;
    letter-spacing: 0.015em;
}

/* Personalize Log Panel — light theme */
.personalize-log {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
    height: 240px;
    opacity: 1;
    transition: opacity 0.5s ease, flex 0.6s ease, max-width 0.6s ease;
    max-width: 400px;
}

.personalize-log.is-hiding {
    opacity: 0;
    flex: 0;
    max-width: 0;
    overflow: hidden;
    pointer-events: none;
}

.personalize-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--inv-bg-color) 8%, transparent);
}

.personalize-log-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--inv-bg-color);
    opacity: 0.9;
}

.personalize-log-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blurple);
}

.personalize-log-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blurple);
    animation: personalizePulse 2s ease-in-out infinite;
}

@keyframes personalizePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--blurple) 40%, transparent); }
    50% { opacity: 0.5; box-shadow: 0 0 8px 3px color-mix(in srgb, var(--blurple) 0%, transparent); }
}

.personalize-log-progress {
    height: 3px;
    background: color-mix(in srgb, var(--inv-bg-color) 8%, transparent);
    overflow: hidden;
}

.personalize-log-progress .ai-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blurple), var(--purple));
    transition: width 0.5s ease;
}

.personalize-log-body {
    flex: 1;
    margin: 0.65rem 0;
    overflow-y: auto;
    scrollbar-width: none;
    /* font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', ui-monospace, monospace; */
}

.personalize-log-body::-webkit-scrollbar {
    display: none;
}

/* Log entries */
.p-log-entry {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.4rem 1rem;
    opacity: 0;
    transform: translateY(6px);
    animation: pLogEntryIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pLogEntryIn {
    to { opacity: 1; transform: translateY(0); }
}

.p-log-entry--system .p-log-msg {
    color: var(--blurple);
    font-weight: 600;
    opacity: 1;
}

.p-log-entry--success .p-log-msg {
    color: #22c55e;
    font-weight: 600;
    opacity: 1;
}

.p-log-entry--success .p-log-msg::before {
    content: "\2713  ";
    font-weight: 700;
    color: #22c55e;
}

.p-log-msg {
    font-size: 0.7rem;
    color: var(--inv-bg-color);
    opacity: 0.9;
    line-height: 1.6;
    text-align: left;
    font-weight: 500;
}

.p-log-dots {
    display: inline;
}

.p-log-dots::after {
    content: '';
    animation: pLogDotsAnim 1.5s steps(4, end) infinite;
}

@keyframes pLogDotsAnim {
    0%  { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

.personalize-log.is-complete .personalize-log-pulse {
    background: #22c55e;
    animation: none;
    box-shadow: 0 0 4px 2px rgba(34, 197, 94, 0.3);
}

/* Keep old styles for backward compat */
.personalize-task-panel {
    flex: 1;
    min-width: 0;
}

.ai-progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-progress-bar-demo {
    flex: 1;
    height: 6px;
    background: color-mix(in srgb, var(--inv-bg-color) 10%, transparent);
    border-radius: 8px;
    overflow: hidden;
}

.ai-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blurple), var(--purple));
    box-shadow: 0 0 10px rgba(120, 115, 245, 0.35);
    border-radius: 8px;
    transition: width 0.5s ease;
}

.ai-progress-percent {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--inv-bg-color);
    min-width: 35px;
    text-align: right;
    opacity: 0.8;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #share > .max-w-7xl {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .share-ui-demo {
        padding: 0;
    }

    .demo-progress-bar {
        gap: 0;
        padding: 0;
        margin: 1rem 0;
    }

    .progress-step {
        padding: 6px 6px;
        font-size: 9px;
        justify-content: center;
    }

    .step-label {
        font-size: 0;
    }

    .step-label .step-number {
        font-size: 9px;
    }

    .step-label .step-check {
        width: 10px;
        height: 10px;
    }

    .progress-step.current {
        padding: 6px 16px;
    }

    .progress-step.current .step-label {
        font-size: 9px;
        white-space: nowrap;
    }

    .progress-step.current .step-label .step-number {
        font-size: 9px;
    }

    .step-percent {
        display: none;
    }

    .demo-panel {
        padding: 12px;
    }

    .template-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .template-card {
        padding: 10px;
    }

    .template-icon {
        width: 40px;
        height: 40px;
    }

    .template-name {
        font-size: 11px;
    }

    .demo-content {
        min-height: 400px;
    }

    .template-count {
        display: none;
    }

    .choice-option {
        padding: 5px 10px;
        font-size: 12px;
        gap: 6px;
    }

    .choice-option svg {
        width: 14px;
        height: 14px;
    }

    /* Step 3: Minimal teams on mobile */
    .share-teams-section {
        gap: 8px !important;
    }

    .team-section {
        padding: 8px !important;
    }

    .team-header {
        margin-bottom: 6px !important;
        font-size: 10px !important;
        gap: 3px !important;
        flex-wrap: wrap !important;
    }

    .team-header svg {
        width: 12px !important;
        height: 12px !important;
        flex-shrink: 0 !important;
    }

    .team-label {
        font-size: 10px !important;
    }

    .team-member {
        padding: 4px 0 !important;
        gap: 6px !important;
    }

    .member-avatar {
        width: 24px !important;
        height: 24px !important;
        font-size: 9px !important;
    }

    .member-name {
        font-size: 11px !important;
    }

    .member-role {
        font-size: 9px !important;
    }

    .member-status .status-badge {
        font-size: 9px !important;
        padding: 1px 4px !important;
    }

    .member-status .status-badge svg {
        width: 8px !important;
        height: 8px !important;
    }

    .team-source-tag,
    .team-external-badge {
        font-size: 8px !important;
        padding: 1px 4px !important;
    }

    .crm-source,
    .member-source-label {
        display: none !important;
    }

    .share-permissions-row {
        padding: 5px 8px !important;
        margin-top: 6px !important;
    }

    .share-permissions-label {
        font-size: 9px !important;
    }

    .share-perm-opt {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    /* Step 4: Personalize - match ai editor/creator layout on mobile */
    .personalize-flow-body {
        max-height: none !important;
        gap: 0.75rem !important;
    }

    .personalize-circle-chart {
        width: 100px !important;
        height: 100px !important;
    }

    .personalize-circle-column {
        flex-shrink: 0 !important;
        align-items: flex-start !important;
    }

    .personalize-circle-center {
        display: none !important;
    }

    .personalize-log {
        flex: 1 !important;
        min-width: 0 !important;
        height: auto !important;
        max-width: none !important;
    }

    .personalize-log-header {
        padding: 0.4rem 0.5rem !important;
    }

    .personalize-log-title {
        font-size: 0.5rem !important;
    }

    .personalize-log-status {
        font-size: 0.5rem !important;
    }

    .personalize-log-body {
        max-height: 120px !important;
        overflow-y: auto !important;
    }

    .p-log-entry {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.55rem !important;
        gap: 0.3rem !important;
    }

    .p-log-msg {
        font-size: 0.55rem !important;
        line-height: 1.4 !important;
    }

    .ai-header.is-hidden {
        display: none !important;
    }

    .demo-end-actions {
        padding-top: 12px !important;
        gap: 8px !important;
    }

    .demo-end-btn {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
}

@media (max-width: 480px) {
    .demo-step-title {
        font-size: 18px;
    }

    .progress-label {
        display: none;
    }

    .template-name {
        font-size: 13px;
    }

    .team-member {
        font-size: 13px;
    }
}

/* Permissions Row */
.share-permissions-row.fade-out {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.share-permissions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    margin-top: 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--inv-bg-color) 3%, transparent);
    border: 1px solid color-mix(in srgb, var(--inv-bg-color) 7%, transparent);
}

.share-permissions-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--inv-bg-color);
    opacity: 0.45;
}

.share-perm-options {
    display: flex;
    gap: 2px;
    background: color-mix(in srgb, var(--inv-bg-color) 5%, transparent);
    border-radius: 7px;
    padding: 3px;
}

.share-perm-opt {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 5px;
    color: var(--inv-bg-color);
    opacity: 0.35;
    cursor: default;
}

.share-perm-opt.is-selected {
    background: var(--main-bg-color);
    opacity: 1;
    color: var(--blurple);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Demo End Actions (Share Another / Navigate) */
.demo-end-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.demo-end-actions.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.demo-end-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid transparent !important;
    background-color: transparent !important;
    color: var(--inv-bg-color) !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.demo-share-another,
.demo-share-another * {
    color: var(--blurple) !important;
}

.demo-share-another {
    border-color: var(--blurple) !important;
    background-color: transparent !important;
}

.demo-share-another svg {
    stroke: var(--blurple) !important;
    fill: none !important;
}

.demo-share-another span {
    color: var(--blurple) !important;
}

.demo-share-another:hover {
    background-color: color-mix(in srgb, var(--blurple) 10%, transparent) !important;
}

.demo-navigate,
.demo-navigate * {
    color: var(--purple) !important;
}

.demo-navigate {
    border-color: var(--purple) !important;
    background-color: transparent !important;
}

.demo-navigate svg {
    stroke: var(--purple) !important;
    fill: none !important;
}

.demo-navigate span {
    color: var(--purple) !important;
}

.demo-navigate:hover {
    background-color: color-mix(in srgb, var(--purple) 10%, transparent) !important;
}
