/* ========================================
   DEMO GUIDED FLOW STYLES - PREMIUM v2
   9-step redesign with Moti personality
   ======================================== */

/* --- Progress Bar --- */
.demo-progress-wrap {
    padding: 20px 24px 0;
    background: linear-gradient(180deg, var(--white), var(--gray-50));
    border-bottom: 1px solid var(--gray-200);
}
.demo-progress-bar {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-bottom: 10px;
}
.progress-segment {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.progress-segment.filled { background: var(--gold); }
.progress-segment.current {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.5);
}
.progress-segment.current::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}
.segment-dot { display: none; }
.demo-progress-label {
    font-size: 0.82rem; color: var(--gray-500); padding-bottom: 14px;
    font-weight: 600; letter-spacing: 0.02em;
}
.demo-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy); padding: 5px 14px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.3);
}
.nav-item.completed { opacity: 0.7; }
.nav-check { margin-left: auto; font-size: 0.7rem; color: var(--success); }

/* --- Step Card --- */
.demo-content { padding: 24px !important; max-width: 800px; }
.demo-step-card {
    background: linear-gradient(160deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    padding: 36px; margin-bottom: 24px; border: 1px solid rgba(0,0,0,0.04);
}
.demo-step-header { margin-bottom: 28px; }
.demo-step-header h2 {
    font-size: 1.5rem; font-weight: 800; color: var(--gray-900);
    margin-bottom: 10px; line-height: 1.3;
}
.demo-step-header h2 i {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-right: 10px !important;
}
.demo-step-header p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.6; }
.demo-step-subtitle { color: var(--gray-400); font-size: 0.78rem; font-weight: 400; }

/* --- Forms --- */
.demo-form { display: flex; flex-direction: column; gap: 16px; }
.demo-form-group { display: flex; flex-direction: column; gap: 6px; }
.demo-form-group label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.demo-form-group input, .demo-form-group select {
    padding: 12px 16px; border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm); font-size: 0.95rem;
    font-family: inherit; background: var(--gray-50); transition: var(--transition);
}
.demo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Upload --- */
.demo-upload-area { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.demo-upload-box {
    background: linear-gradient(135deg, var(--gray-50), #f0f2f5);
    border: 2px dashed var(--gray-300); border-radius: 14px;
    padding: 28px; text-align: center; min-height: 120px;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 10px;
}
.demo-upload-box.uploaded {
    border-color: var(--success); border-style: solid;
    background: linear-gradient(135deg, rgba(81,207,102,0.04), rgba(81,207,102,0.08));
}
.demo-upload-box .upload-icon { font-size: 2rem; color: var(--gray-400); }
.demo-upload-box.uploaded .upload-icon { color: var(--success); }
.demo-upload-box .upload-text { font-size: 0.85rem; color: var(--gray-500); font-weight: 600; }

/* --- Report Card --- */
.report-card {
    background: linear-gradient(160deg, #0d1329, #1a2342);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2); margin-top: 24px;
}
.report-card-header {
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(212,168,83,0.15), rgba(232,201,122,0.08));
    border-bottom: 1px solid rgba(212,168,83,0.2);
    color: var(--gold); font-weight: 700; font-size: 0.95rem;
    display: flex; align-items: center; gap: 10px;
}
.report-card-badge {
    margin-left: auto; background: rgba(212,168,83,0.15);
    color: var(--gold-light); padding: 3px 10px; border-radius: 12px;
    font-size: 0.7rem; font-weight: 600;
}
.report-card-body { padding: 20px 24px; }
.report-card-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85); font-size: 0.9rem;
}
.report-card-row:last-child { border-bottom: none; }
.report-card-row.highlight {
    background: rgba(212,168,83,0.08); margin: 0 -24px;
    padding: 14px 24px; border-radius: 8px;
}
.report-icon { font-size: 1.1rem; width: 28px; text-align: center; flex-shrink: 0; }
.report-label { color: rgba(255,255,255,0.5); width: 80px; font-size: 0.82rem; font-weight: 600; flex-shrink: 0; }
.report-value { font-weight: 600; }
.verified-badge {
    background: rgba(81,207,102,0.15); color: var(--success);
    padding: 2px 8px; border-radius: 8px; font-size: 0.72rem;
    font-weight: 700; margin-left: 6px;
}
.trust-grade {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy); padding: 4px 16px; border-radius: 20px;
    font-size: 1rem; font-weight: 800;
    box-shadow: 0 2px 12px rgba(212,168,83,0.4);
}
.report-card-footer {
    padding: 14px 24px; background: rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.4); font-size: 0.78rem; text-align: center;
}

/* --- AI Result --- */
.demo-ai-result {
    background: linear-gradient(135deg, #f0f7ff, #f5f0ff);
    border-radius: 14px; padding: 22px; margin: 20px 0;
    border-left: 5px solid var(--gold);
}
.demo-ai-result .ai-line {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 12px; font-size: 0.9rem; color: var(--gray-800); line-height: 1.6;
}
.demo-ai-result .ai-line:last-child { margin-bottom: 0; }

/* --- Moti Avatar --- */
.moti-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; flex-shrink: 0;
    background: linear-gradient(135deg, #ff6b9d, #c850c0, #4158d0);
    color: white; box-shadow: 0 2px 12px rgba(200,80,192,0.35);
    letter-spacing: -0.5px;
}

/* --- Moti Comment --- */
.moti-comment {
    background: linear-gradient(135deg, rgba(200,80,192,0.06), rgba(65,88,208,0.06));
    border: 1px solid rgba(200,80,192,0.12); border-radius: 12px;
    padding: 14px 18px; font-size: 0.88rem; color: var(--gray-700);
    line-height: 1.6; font-style: italic; margin: 8px 0 0 0;
    display: flex; align-items: flex-start; gap: 10px;
}
.moti-comment.compact {
    padding: 10px 14px; font-size: 0.82rem; margin: 0;
    border-radius: 0 0 12px 12px; border-top: none;
}
.moti-comment.highlight {
    background: linear-gradient(135deg, rgba(212,168,83,0.08), rgba(255,107,157,0.06));
    border-color: rgba(212,168,83,0.2);
}
.moti-comment-icon { font-style: normal; font-size: 1rem; flex-shrink: 0; }
.moti-pick-badge {
    background: linear-gradient(135deg, #ff6b9d, #c850c0);
    color: white; padding: 2px 10px; border-radius: 12px;
    font-size: 0.68rem; font-weight: 700; margin-left: 8px; vertical-align: middle;
}

/* --- Chat Bubbles --- */
.demo-chat {
    background: linear-gradient(180deg, #f0f2f5 0%, #e8ebf0 100%);
    border-radius: 16px; padding: 24px; max-height: 600px;
    overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
    border: 1px solid var(--gray-200);
}
.demo-chat-msg {
    display: flex; gap: 10px; max-width: 85%;
    opacity: 0; transform: translateY(10px);
}
.demo-chat-msg.visible { opacity: 1; transform: translateY(0); transition: all 0.5s ease; }
.demo-chat-msg.ai { align-self: flex-start; }
.demo-chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.demo-chat-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.demo-chat-avatar.user-avatar {
    background: linear-gradient(135deg, #339af0, #66a6ff);
    box-shadow: 0 2px 12px rgba(51,154,240,0.3); color: white;
}
.demo-chat-bubble {
    background: var(--white); border-radius: 18px 18px 18px 4px;
    padding: 14px 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 0.9rem; line-height: 1.7;
}
.demo-chat-msg.user .demo-chat-bubble {
    background: linear-gradient(135deg, #2c3e6e, #1e2d54);
    color: #ffffff; border-radius: 18px 18px 4px 18px;
    font-weight: 500;
}
.moti-bubble {
    background: rgba(255,255,255,0.95) !important;
    border: 1px solid rgba(200,80,192,0.12) !important;
}

/* --- Condition Summary --- */
.condition-summary-card {
    background: linear-gradient(160deg, #0d1329, #1a2342);
    border-radius: 14px; overflow: hidden; margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.condition-summary-header {
    padding: 14px 20px; color: var(--gold); font-weight: 700;
    font-size: 0.9rem; background: rgba(212,168,83,0.1);
    border-bottom: 1px solid rgba(212,168,83,0.15);
}
.condition-summary-header i { margin-right: 8px; }
.condition-summary-body {
    padding: 16px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.condition-item { display: flex; align-items: center; gap: 8px; }
.condition-label { color: rgba(255,255,255,0.4); font-size: 0.78rem; font-weight: 600; width: 50px; flex-shrink: 0; }
.condition-value { color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 600; }

/* --- AI Search Panel --- */
.ai-search-panel {
    background: linear-gradient(160deg, #0d1329, #1a2342);
    border-radius: 16px; padding: 28px; margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.search-header { color: var(--gold); font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; }
.search-header i { margin-right: 8px; }
.search-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.search-step {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    opacity: 0.3; transition: all 0.6s ease;
}
.search-step.done {
    opacity: 1; background: rgba(81,207,102,0.06); border-color: rgba(81,207,102,0.2);
}
.search-step.active {
    opacity: 1; background: rgba(212,168,83,0.08); border-color: rgba(212,168,83,0.3);
    box-shadow: 0 0 20px rgba(212,168,83,0.1);
}
.search-step-icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4);
    font-size: 0.8rem; flex-shrink: 0; transition: all 0.6s ease;
}
.search-step.done .search-step-icon { background: rgba(81,207,102,0.15); color: var(--success); }
.search-step.active .search-step-icon { background: rgba(212,168,83,0.15); color: var(--gold); }
.step-label { color: rgba(255,255,255,0.6); font-size: 0.88rem; font-weight: 500; flex: 1; transition: color 0.6s; }
.search-step.done .step-label, .search-step.active .step-label { color: rgba(255,255,255,0.9); }
.step-count { color: rgba(255,255,255,0.3); font-size: 0.82rem; font-weight: 700; transition: color 0.6s; }
.search-step.done .step-count { color: var(--success); }
.search-step.active .step-count { color: var(--gold); }
.search-progress { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.search-bar {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px; transition: width 5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(212,168,83,0.5);
}
.moti-intro-section { opacity: 0; transition: opacity 0.8s ease; }
.moti-intro-section.visible { opacity: 1; }

/* --- Match Cards --- */
.demo-match-card {
    background: rgba(255,255,255,0.7); backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255,255,255,0.5); border-radius: 18px;
    padding: 24px; display: flex; gap: 20px; align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.demo-match-card:hover {
    border-color: rgba(212,168,83,0.4);
    box-shadow: 0 8px 32px rgba(212,168,83,0.15); transform: translateY(-3px);
}
.demo-match-card.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212,168,83,0.06), rgba(232,201,122,0.08));
    box-shadow: 0 8px 40px rgba(212,168,83,0.25);
}
.demo-match-card.candidate-card { margin: 8px 0; }
.demo-match-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; flex-shrink: 0; position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.demo-match-card.selected .demo-match-avatar::before {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    background: conic-gradient(var(--gold), var(--gold-light), var(--gold), var(--gold-light), var(--gold));
    z-index: -1; animation: avatarRingRotate 4s linear infinite;
}
.demo-match-info { flex: 1; min-width: 0; }
.demo-match-name { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.demo-match-detail { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 6px; font-weight: 500; }
.demo-match-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.demo-match-tags .tag {
    background: rgba(212,168,83,0.1); color: var(--gold-dark);
    padding: 3px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 600;
}
.demo-match-compat { text-align: center; flex-shrink: 0; }
.demo-compat-circle {
    width: 72px; height: 72px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; position: relative;
}
.demo-compat-circle svg {
    position: absolute; top: 0; left: 0; width: 72px; height: 72px; transform: rotate(-90deg);
}
.demo-compat-circle svg circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.demo-compat-circle svg circle.bg { stroke: var(--gray-200); }
.demo-compat-circle svg circle.fill {
    stroke: var(--gold); stroke-dasharray: 201; stroke-dashoffset: 201;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px rgba(212,168,83,0.4));
}
.demo-compat-score { font-size: 1.2rem; font-weight: 800; color: var(--gold); position: relative; z-index: 1; }
.demo-compat-label { font-size: 0.65rem; color: var(--gray-500); font-weight: 600; position: relative; z-index: 1; }

/* --- Q&A Cards --- */
.qa-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 12px; overflow: hidden; margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.qa-question {
    padding: 14px 18px; background: var(--gray-50);
    font-size: 0.9rem; font-weight: 600; color: var(--gray-700);
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--gray-200);
}
.qa-q-badge {
    background: var(--gold); color: var(--navy); width: 24px; height: 24px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 800; flex-shrink: 0;
}
.qa-answer {
    padding: 14px 18px; display: flex; align-items: flex-start; gap: 12px;
    font-size: 0.9rem; color: var(--gray-800); line-height: 1.6;
}
.qa-answer-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
}

/* --- Mutual Interest --- */
.mutual-waiting { text-align: center; padding: 40px 20px; transition: all 0.6s ease; }
.mutual-waiting.hidden { opacity: 0; height: 0; padding: 0; overflow: hidden; }
.waiting-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.waiting-dots span {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--gold); animation: dotPulse 1.4s ease-in-out infinite;
}
.waiting-dots span:nth-child(2) { animation-delay: 0.2s; }
.waiting-dots span:nth-child(3) { animation-delay: 0.4s; }
.mutual-waiting p { color: var(--gray-500); font-size: 0.9rem; font-weight: 500; }
.mutual-result { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.mutual-result.visible { opacity: 1; transform: translateY(0); }
.linh-response-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; margin: 12px 0; }
.linh-response-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.linh-response-bubble {
    background: linear-gradient(135deg, #f0f7ff, #f5f0ff);
    border: 1px solid rgba(212,168,83,0.15); border-radius: 18px 18px 18px 4px;
    padding: 16px 20px; font-size: 0.92rem; line-height: 1.7;
    color: var(--gray-800); font-style: italic;
}
.mutual-interest-card {
    background: linear-gradient(160deg, #fff9e6, #fff0f6);
    border: 2px solid rgba(212,168,83,0.25); border-radius: 20px;
    padding: 32px; text-align: center; margin: 24px 0;
    box-shadow: 0 8px 32px rgba(212,168,83,0.12);
}
.mutual-avatar-wrap {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; margin-bottom: 16px;
}
.mutual-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.mutual-heart-anim { font-size: 2rem; animation: heartBeat 1.5s ease infinite; }
.mutual-names { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.mutual-status { font-size: 0.9rem; color: var(--gold-dark); font-weight: 600; }

/* --- Consent Cards --- */
.consent-cards { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.consent-card { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; }
.consent-card.agreed {
    background: linear-gradient(135deg, rgba(81,207,102,0.06), rgba(81,207,102,0.12));
    border: 1px solid rgba(81,207,102,0.25); color: var(--gray-800);
}
.consent-card.agreed i { color: var(--success); font-size: 1.2rem; }

/* --- Chat Room --- */
.demo-chatroom { border-radius: 18px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.06); }
.demo-chatroom-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white); padding: 16px 22px; display: flex; align-items: center; gap: 14px;
}
.demo-chatroom-header .room-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.demo-chatroom-header .room-name { font-weight: 700; font-size: 1rem; }
.demo-chatroom-header .room-status { font-size: 0.75rem; color: var(--success); }
.ai-translating-badge {
    margin-left: auto; background: rgba(200,80,192,0.15);
    color: rgba(255,255,255,0.8); padding: 5px 12px; border-radius: 16px;
    font-size: 0.72rem; font-weight: 600; animation: pulse 2s ease infinite;
}
.demo-chatroom-messages {
    padding: 24px; display: flex; flex-direction: column; gap: 20px;
    min-height: 320px; background: linear-gradient(180deg, #1a1f2e, #0f1320);
    color: #ffffff;
}
.demo-chat-pair { display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(12px); }
.demo-chat-pair.visible { opacity: 1; transform: translateY(0); transition: all 0.5s ease; }
.demo-chat-pair.sent { align-items: flex-end; }
.demo-chat-pair.received { align-items: flex-start; }
.demo-chat-pair .chat-row { display: flex; align-items: flex-end; gap: 8px; }
.demo-chat-pair.sent .chat-row { flex-direction: row-reverse; }
.demo-chat-pair .chat-avatar-sm {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; flex-shrink: 0;
}
.demo-chat-original { max-width: 72%; padding: 12px 18px; border-radius: 18px; font-size: 0.9rem; line-height: 1.6; }
.demo-chat-pair.sent .demo-chat-original {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy); border-bottom-right-radius: 4px; font-weight: 500;
    box-shadow: 0 2px 12px rgba(212,168,83,0.3);
}
.demo-chat-pair.received .demo-chat-original {
    background: rgba(255,255,255,0.15); color: #ffffff;
    border-bottom-left-radius: 4px; backdrop-filter: blur(8px);
    font-weight: 500;
}
.demo-chat-translation {
    max-width: 72%; padding: 6px 14px; font-size: 0.76rem;
    color: rgba(255,255,255,0.5); background: rgba(212,168,83,0.1);
    border-radius: 12px; display: inline-flex; align-items: center; gap: 6px;
}
.demo-chat-translation .translate-icon { font-size: 0.85rem; }
.demo-chatroom-footer {
    padding: 14px 22px; background: var(--white);
    border-top: 1px solid var(--gray-200); display: flex; align-items: center; gap: 10px;
}
.demo-ai-translate-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; background: linear-gradient(135deg, rgba(212,168,83,0.12), rgba(232,201,122,0.08));
    border: 1px solid rgba(212,168,83,0.2); border-radius: 24px;
    font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.7);
}

/* --- Reveal --- */
.demo-reveal-wrap { text-align: center; padding: 20px; position: relative; overflow: hidden; }
.demo-reveal-avatars { display: flex; align-items: center; justify-content: center; gap: 32px; margin: 24px 0; }
.demo-reveal-avatar {
    width: 100px; height: 100px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem; position: relative;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.demo-reveal-avatar::before {
    content: ''; position: absolute; inset: -5px; border-radius: 50%;
    background: conic-gradient(var(--gold), var(--gold-light), var(--gold), var(--gold-light), var(--gold));
    z-index: -1; opacity: 0; transition: opacity 1s ease;
}
.demo-reveal-avatar.revealed::before { opacity: 1; animation: avatarRingRotate 3s linear infinite; }
.demo-reveal-avatar.revealed { box-shadow: 0 0 40px rgba(212,168,83,0.45); animation: revealPulse 2s ease infinite; }
.demo-reveal-arrow {
    font-size: 2rem; color: var(--gold);
    animation: heartBeat 1.5s ease infinite;
    filter: drop-shadow(0 0 8px rgba(212,168,83,0.4));
}
.demo-reveal-info {
    background: linear-gradient(160deg, #ffffff, #fafbfc);
    border-radius: 16px; padding: 24px; margin: 24px auto; max-width: 420px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid rgba(212,168,83,0.15); text-align: left;
}
.demo-reveal-info-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem;
}
.demo-reveal-info-item:last-child { border-bottom: none; }
.demo-reveal-info-item .reveal-label { color: var(--gray-500); width: 90px; font-weight: 600; font-size: 0.85rem; }
.demo-reveal-info-item .reveal-value {
    color: var(--gray-800); font-weight: 600;
    filter: blur(4px); user-select: none; transition: filter 1.5s ease;
}
.demo-reveal-info-item .reveal-value.unblurred { filter: blur(0); }
.demo-congrats {
    margin: 28px 0; font-size: 1.4rem; font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1.4;
}
.demo-congrats small {
    display: block; font-size: 0.9rem !important; font-weight: 400;
    -webkit-text-fill-color: var(--gray-600); margin-top: 8px;
}

/* Confetti */
.confetti-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; z-index: 0; }
.confetti { position: absolute; width: 10px; height: 10px; border-radius: 2px; top: -10px; animation: confettiFall linear infinite; }
.confetti:nth-child(odd) { border-radius: 50%; }
.confetti:nth-child(1) { left: 5%; background: var(--gold); animation-duration: 3.5s; }
.confetti:nth-child(2) { left: 15%; background: #ff6b6b; animation-duration: 4s; animation-delay: 0.2s; }
.confetti:nth-child(3) { left: 25%; background: var(--gold-light); animation-duration: 3.2s; animation-delay: 0.5s; }
.confetti:nth-child(4) { left: 35%; background: #339af0; animation-duration: 4.5s; animation-delay: 0.1s; }
.confetti:nth-child(5) { left: 45%; background: #51cf66; animation-duration: 3.8s; animation-delay: 0.3s; }
.confetti:nth-child(6) { left: 55%; background: var(--gold); animation-duration: 3.4s; animation-delay: 0.6s; }
.confetti:nth-child(7) { left: 65%; background: #fcc419; animation-duration: 4.2s; animation-delay: 0.15s; }
.confetti:nth-child(8) { left: 75%; background: #f06595; animation-duration: 3.6s; animation-delay: 0.4s; }
.confetti:nth-child(9) { left: 85%; background: var(--gold-light); animation-duration: 3.9s; animation-delay: 0.25s; }
.confetti:nth-child(10) { left: 95%; background: #339af0; animation-duration: 4.1s; animation-delay: 0.55s; }
.confetti:nth-child(11) { left: 10%; background: #ff6b6b; animation-duration: 3.7s; animation-delay: 0.7s; }
.confetti:nth-child(12) { left: 30%; background: var(--gold); animation-duration: 4.3s; animation-delay: 0.35s; }
.confetti:nth-child(13) { left: 50%; background: #51cf66; animation-duration: 3.3s; animation-delay: 0.8s; }
.confetti:nth-child(14) { left: 70%; background: #fcc419; animation-duration: 4.4s; animation-delay: 0.45s; }
.confetti:nth-child(15) { left: 90%; background: #f06595; animation-duration: 3.5s; animation-delay: 0.65s; }

/* --- Navigation --- */
.demo-nav-buttons {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--gray-200);
}
.demo-btn-prev {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 22px; background: var(--gray-100); color: var(--gray-600);
    border-radius: 10px; font-weight: 600; font-size: 0.9rem;
    transition: var(--transition); text-decoration: none; border: none; cursor: pointer;
}
.demo-btn-prev:hover { background: var(--gray-200); color: var(--gray-800); transform: translateX(-2px); }
.demo-btn-next {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy); border-radius: 12px; font-weight: 800; font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none; border: none; cursor: pointer;
    box-shadow: 0 4px 20px rgba(212,168,83,0.35); position: relative; overflow: hidden;
}
.demo-btn-next::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}
.demo-btn-next:hover::before { left: 100%; }
.demo-btn-next:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(212,168,83,0.45); }
.demo-btn-home {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: linear-gradient(135deg, var(--success), #69db7c);
    color: var(--white); border-radius: 12px; font-weight: 800; font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none; box-shadow: 0 4px 20px rgba(81,207,102,0.35);
    animation: ctaPulse 2.5s ease infinite;
}
.demo-btn-home:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(81,207,102,0.45); }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes shimmer { 0% { left: -100%; } 100% { left: 200%; } }
@keyframes avatarRingRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes heartBeat {
    0%, 100% { transform: scale(1); } 25% { transform: scale(1.15); }
    50% { transform: scale(1); } 75% { transform: scale(1.1); }
}
@keyframes dotPulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes revealPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(212,168,83,0.3); }
    50% { box-shadow: 0 0 50px rgba(212,168,83,0.5), 0 0 100px rgba(212,168,83,0.2); }
}
@keyframes confettiFall {
    0% { top: -10px; transform: rotate(0deg) translateX(0); opacity: 1; }
    25% { transform: rotate(90deg) translateX(20px); }
    50% { transform: rotate(180deg) translateX(-20px); opacity: 0.8; }
    75% { transform: rotate(270deg) translateX(15px); }
    100% { top: 100%; transform: rotate(360deg) translateX(-10px); opacity: 0; }
}
@keyframes ctaPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .demo-content { padding: 16px !important; }
    .demo-step-card { padding: 22px; }
    .demo-upload-area { grid-template-columns: 1fr; }
    .demo-form-row { grid-template-columns: 1fr; }
    .demo-match-card { flex-direction: column; text-align: center; }
    .demo-match-avatar { margin: 0 auto; }
    .demo-match-tags { justify-content: center; }
    .demo-nav-buttons { flex-direction: column; gap: 12px; }
    .demo-btn-next, .demo-btn-prev, .demo-btn-home { width: 100%; justify-content: center; }
    .demo-reveal-avatars { gap: 16px; }
    .demo-reveal-avatar { width: 80px; height: 80px; font-size: 2rem; }
    .condition-summary-body { grid-template-columns: 1fr; }
    .mutual-avatar-wrap { gap: 12px; }
    .mutual-avatar { width: 60px; height: 60px; font-size: 1.5rem; }
    .report-card-row { flex-wrap: wrap; }
    .ai-translating-badge { display: none; }
}

/* === Card Shuffle Animation === */
.card-shuffle-area {
    background: linear-gradient(135deg, #0d1321, #1a1f35);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    text-align: center;
    overflow: hidden;
}

.shuffle-label {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin-bottom: 24px;
}
.shuffle-label i { color: var(--gold); margin-right: 6px; }

.shuffle-deck {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-height: 100px;
    overflow: hidden;
    align-items: center;
    margin-bottom: 20px;
    perspective: 800px;
}

.shuffle-card {
    width: 56px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardAppear 0.4s ease-out calc(var(--i) * 0.08s) both;
}

.sc-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
}

.sc-name {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

@keyframes cardAppear {
    from { opacity: 0; transform: scale(0.5) rotateY(90deg); }
    to { opacity: 1; transform: scale(1) rotateY(0); }
}

/* Shuffle running state */
.shuffle-deck.shuffling .shuffle-card {
    animation: cardShuffle 0.3s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * 0.05s);
}

@keyframes cardShuffle {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(calc(var(--i) * 2deg - 10deg)); }
}

/* Cards being filtered out */
.shuffle-deck.filtered .sc-pass {
    opacity: 0;
    transform: scale(0.3) rotateY(180deg) translateY(40px);
    width: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

/* Cards that stay - highlight */
.shuffle-deck.filtered .sc-stay {
    transform: scale(1.15);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
    background: rgba(212, 168, 83, 0.1);
}

.shuffle-deck.filtered .sc-stay .sc-avatar {
    font-size: 18px;
    color: #fff;
}

.shuffle-result {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
}

.shuffle-result.visible {
    opacity: 1;
    transform: translateY(0);
}

/* AI Appearance Evaluation */
.ai-look-eval {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(212,168,83,0.08), rgba(212,168,83,0.03));
    border: 1px solid rgba(212,168,83,0.15);
    border-radius: 8px;
    font-size: 11px;
}

.ai-look-icon { font-size: 13px; flex-shrink: 0; }

.ai-look-text {
    color: #8b7355;
    font-weight: 500;
    line-height: 1.4;
}
