/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ElevenLabs Branding - Text Only */
.elevenlabs-branding-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 16px;
    color: rgba(16, 16, 16, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.elevenlabs-branding-inline i {
    font-size: 16px;
    color: #6366f1;
}

/* Demo End Message - Enhanced */
.demo-end-message {
    text-align: center;
    margin: 40px auto 30px auto;
    padding: 30px;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.demo-end-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: demoShimmer 4s infinite;
}


.demo-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-quote {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 8px;
}

.demo-thanks {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.demo-decoration {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.demo-decoration i {
    color: #ffd700;
    font-size: 1rem;
    animation: starTwinkle 2s ease-in-out infinite;
}

.demo-decoration i:nth-child(1) {
    animation-delay: 0s;
}

.demo-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.demo-decoration i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes demoShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}


@keyframes starTwinkle {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section Management */
.section {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.section.active {
    display: flex;
}

/* Welcome Section */
.hero {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.logo i {
    font-size: 2.5rem;
    color: #667eea;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #444;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* User Information Section */
.user-info-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.info-header {
    margin-bottom: 30px;
}

/* Header top section with back button and language display */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* Back button styling */
.back-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateX(-2px);
}

.back-btn i {
    font-size: 0.8rem;
}

/* Selected language info display */
.selected-language-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid #d1d9ff;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color:  #4c51bf;
    font-weight: 500;
}

.selected-language-info span:first-child {
    font-size: 1.2rem;
}

.info-header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-header .logo i {
    font-size: 3rem;
    color: #667eea;
}

.info-header h2 {
    color: #2d3748;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.info-header p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.info-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    color: #718096;
    font-size: 0.85rem;
    margin-top: 5px;
}



/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Language Selection */
.language-selector {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    text-align: center;
}

.language-selector h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.language-selector p {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.language-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.language-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.language-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.language-card .flag {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.language-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.language-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Voice Interface */
.voice-interface {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.connecting {
    background-color: #ffa500;
}

.status-dot.connected {
    background-color: #4caf50;
    animation: none;
}

.status-dot.disconnected {
    background-color: #f44336;
    animation: none;
}

.status-dot.error {
    background-color: #ff5722;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Connection Messages */
.connection-message {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.connection-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.connection-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.connection-message.info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

/* Retry Button */
.retry-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.retry-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.retry-button:active {
    transform: translateY(0);
}

/* Chat Messages */
.chat-container {
    height: 400px;
    margin-bottom: 30px;
}

.chat-messages {
    height: 100%;
    overflow-y: auto;
    padding: 25px;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

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

.message.user {
    flex-direction: row-reverse;
}

.message-content {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.message-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* AI Bot Messages - Make them STAND OUT */
.message.ai .message-content,
.message.ai-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-left-radius: 8px;
    font-weight: 500;
    border: 3px solid #5a6fd8;
    font-size: 1.1rem;
    padding: 18px 22px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* User Messages - Subtle and clean */
.message.user .message-content,
.message.user-message .message-content {
    background: #ffffff;
    color: #333;
    border-bottom-right-radius: 8px;
    border: 2px solid #e3f2fd;
    font-size: 1rem;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.message.ai .message-avatar,
.message.ai-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 3px solid white;
}

.message.user .message-avatar,
.message.user-message .message-avatar {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: 3px solid white;
}

/* Voice Controls */
.voice-controls {
    margin-bottom: 30px;
}

.audio-visualizer {
    text-align: center;
    margin-bottom: 20px;
}

.wave-container {
    display: inline-flex;
    gap: 3px;
    align-items: end;
    height: 40px;
}

.wave-bar {
    width: 4px;
    background: #667eea;
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 30px; }
}

.wave-container.listening .wave-bar {
    animation-play-state: running;
}

.wave-container:not(.listening) .wave-bar {
    height: 10px;
    animation-play-state: paused;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.voice-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.voice-btn:hover {
    background: #667eea;
    color: white;
}

.voice-btn.secondary {
    border-color: #999;
    color: #999;
}

.voice-btn.secondary:hover {
    background: #999;
    color: white;
}

.voice-btn.active {
    background: #667eea;
    color: white;
    animation: pulse-button 1.5s ease-in-out infinite;
}

@keyframes pulse-button {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Text Input */
.text-input-area {
    margin-top: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

#text-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#text-input:focus {
    border-color: #667eea;
}

.send-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

/* Live Transcription */
.live-transcription {
    margin-top: 20px;
    min-height: 50px;
}

.transcription-text {
    background: #f0f4ff;
    border: 1px solid #d1d9ff;
    border-radius: 10px;
    padding: 15px;
    font-style: italic;
    color: #666;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.transcription-text.active {
    background: #e8f4fd;
    border-color: #2196f3;
    color: #1976d2;
}

.transcription-text.bot-speaking {
    background: #fff3e0;
    border-color: #ff9800;
    color: #f57c00;
    font-weight: 500;
}

.transcription-text.bot-speaking.preparing {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
    font-weight: 600;
}

.wave-container.bot-speaking .wave-bar {
    background: #ff9800;
    animation: wave-bot 1s ease-in-out infinite;
}

.wave-container.bot-speaking.preparing .wave-bar {
    background: #4caf50;
    animation: wave-preparing 0.8s ease-in-out infinite;
}

@keyframes wave-bot {
    0%, 100% { height: 15px; }
    50% { height: 35px; }
}

@keyframes wave-preparing {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}

/* Progress Indicator */
.progress-indicator {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

/* Completion Section */
.completion {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 30px;
}

.completion h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.completion p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.partner-summary {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    text-align: left;
}

.partner-summary h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.partner-summary .detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.partner-summary .detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.partner-summary .detail-label {
    font-weight: 600;
    color: #555;
}

.partner-summary .detail-value {
    color: #333;
}

/* Tier Information Styles */
.tier-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.tier-badge i {
    color: #ffd700;
    font-size: 1.2rem;
}

.tier-description {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.tier-tier-1 {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}

.tier-tier-2 {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

/* Tier Selection Section */
.tier-selection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tier-header {
    margin-bottom: 50px;
    position: relative;
}

.tier-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.tier-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.tier-header .tier-icon {
    font-size: 5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.4));
    animation: starPulse 2s ease-in-out infinite;
}

.tier-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tier-sparkles i {
    position: absolute;
    font-size: 1.2rem;
    color: #ffd700;
    animation: sparkle 3s ease-in-out infinite;
}

.tier-sparkles i:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.tier-sparkles i:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.tier-sparkles i:nth-child(3) {
    bottom: 15%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

.tier-header h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff, #e9ecef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tier-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tier-result {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 50px;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.tier-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.tier-result .tier-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 25px 35px;
    border-radius: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.tier-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: badgeShimmer 3s infinite;
}

.badge-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 20px;
}

.badge-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.badge-decoration {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 20px;
    animation: checkPulse 2s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Legacy styles for compatibility */
.tier-result .tier-badge i {
    font-size: 1.5rem;
}

.tier-result .tier-badge.partnership-ready {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.tier-result .tier-badge.partnership-ready i {
    color: white;
}

.tier-result .tier-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

.onboarding-tracks h3 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.onboarding-tracks h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.track-card {
    background: rgba(255, 255, 255, 0.85); /* lighter background */
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* softer shadow */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--track-color-primary), var(--track-color-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.track-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--track-color-primary);
    background: rgba(255, 255, 255, 0.92); /* slightly brighter on hover */
}

.track-card:hover::before {
    transform: scaleX(1);
}

/* Service Track - Blue Theme */
.track-card[data-track="service"] {
    --track-color-primary: #3b82f6;
    --track-color-secondary: #1d4ed8;
}

.track-card[data-track="service"] .track-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sales Track - Green Theme */
.track-card[data-track="sales"] {
    --track-color-primary: #10b981;
    --track-color-secondary: #059669;
}

.track-card[data-track="sales"] .track-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Product Track - Purple Theme */
.track-card[data-track="product"] {
    --track-color-primary: #8b5cf6;
    --track-color-secondary: #7c3aed;
}

.track-card[data-track="product"] .track-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.track-card .track-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.track-card h4 {
    color: #111827; /* darker heading */
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
}

.track-card p {
    color: #374151; /* darker paragraph text */
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 500;
}

.track-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.track-card ul li {
    color: #1f2937; /* darker list items */
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.track-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--track-color-primary);
    font-weight: bold;
    font-size: 1.1rem;
}


.track-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.track-btn:active {
    transform: translateY(0);
}

/* Track Modal Styles */
.track-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.track-content {
    padding: 40px;
}

.track-header {
    text-align: center;
    margin-bottom: 40px;
}

.track-header .track-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.track-header h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2rem;
}

.track-header p {
    color: #666;
    font-size: 1.1rem;
}

.track-steps {
    margin-bottom: 40px;
}

.step {
    display: flex;
    margin-bottom: 40px;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.step-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.certification-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.module-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.module-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.module-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.module-btn, .portal-btn, .agreement-btn, .lead-btn, .docs-btn, .checklist-btn, .session-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.module-btn:hover, .portal-btn:hover, .agreement-btn:hover, .lead-btn:hover, .docs-btn:hover, .checklist-btn:hover, .session-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.collateral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.collateral-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.collateral-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.collateral-item i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.collateral-item span {
    color: #333;
    font-weight: 600;
    text-align: center;
}

.sandbox-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.api-key {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.api-key label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.api-key .form-input {
    flex: 1;
}

.copy-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.session-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.session-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.session-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.session-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.session-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.track-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

/* Qualification Section Styles */
.qualification {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.qualification-header {
    text-align: center;
    margin-bottom: 30px;
}

.qualification-header .qualification-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.qualification-header h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2rem;
}

.qualification-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Reuse existing voice interface styles for qualification */
#qualification-section .voice-interface {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

#qualification-section .chat-container {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

#qualification-section .voice-controls {
    padding: 20px;
    text-align: center;
}

#qualification-section .live-transcription {
    padding: 0 20px 20px;
}

#qualification-section .progress-indicator {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Phase 2: Voice-Only Qualification UI */
.voice-only-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 20px 20px;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    position: relative;
    gap: 30px;

    /* NEW styles */
    border-radius: 20px; /* Adjust for more/less roundness */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Adds depth */
}

/* Current Question Display (Above Mic) */
.current-question-display {
    width: 90%;
    max-width: 700px;
    text-align: center;
    padding: 25px 35px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.current-question-display p {
    color: #e2e8f0;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
}

/* Large Circular Mic Button */
.voice-mic-circle {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    flex-shrink: 0;
}

.mic-button-wrapper {
    position: relative;
    z-index: 2;
}

.circular-mic-btn {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.circular-mic-btn i {
    font-size: 3.5rem;
    color: #2d3748;
}

.circular-mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.circular-mic-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse-mic 1.5s ease-in-out infinite;
}

.circular-mic-btn.active i {
    color: white;
}

@keyframes pulse-mic {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 70px rgba(118, 75, 162, 0.8);
    }
}

/* Animated Ring Around Mic */
.mic-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid rgba(102, 126, 234, 0.5);
    opacity: 0;
    pointer-events: none;
}

.mic-ring.active {
    animation: ring-pulse 2s ease-out infinite;
    opacity: 1;
}

@keyframes ring-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* Status Bar Below Mic */
.voice-status-bar {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    width: 90%;
    max-width: 700px;
}

.status-item {
    text-align: center;
    min-width: 120px;
}

.status-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #a0aec0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.status-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
}

.status-value.connected {
    color: #48bb78;
}

.status-value.speaking {
    color: #667eea;
}

.latency-subtext {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-top: 4px;
    font-weight: 400;
}

/* Live Transcript Display */
.live-transcript-display {
    width: 90%;
    max-width: 600px;
    text-align: center;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 15px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-transcript-display.active {
    opacity: 1;
}

.transcript-label {
    font-size: 0.75rem;
    color: #a0aec0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.transcript-content {
    color: #e2e8f0;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    min-height: 24px;
}

/* Question Counter */
.question-counter {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.question-counter span {
    color: #8b9cff;
    font-weight: 700;
}

/* Responsive adjustments for Phase 2 */
@media (max-width: 768px) {
    .voice-only-container {
        padding: 40px 15px 15px;
        gap: 20px;
    }
    
    .current-question-display {
        padding: 20px 25px;
    }
    
    .current-question-display p {
        font-size: 1.1rem;
    }
    
    .voice-mic-circle {
        width: 200px;
        height: 200px;
    }
    
    .circular-mic-btn {
        width: 150px;
        height: 150px;
    }
    
    .circular-mic-btn i {
        font-size: 3rem;
    }
    
    .voice-status-bar {
        gap: 30px;
        padding: 15px 25px;
        flex-wrap: wrap;
    }
    
    .status-item {
        min-width: 80px;
    }
    
    .question-counter {
        top: 15px;
        right: 15px;
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .hero, .language-selector, .voice-interface, .completion {
        padding: 30px 20px;
    }
    
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .control-buttons {
        flex-direction: column;
    }
    
    .voice-btn {
        justify-content: center;
    }
    
    .status-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .language-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
}

/* Phase 2: Voice-Only Qualification UI */
#qualification-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.phase-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.phase {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.phase.completed {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.phase.active {
    background: linear-gradient(45deg, #007bff, #6610f2);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.voice-qualification-interface {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.question-progress {
    margin-bottom: 2rem;
}

.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #6610f2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

#current-question-text {
    font-size: 1.1rem;
    color: #e9ecef;
    margin-bottom: 2rem;
}

.voice-visualizer {
    margin: 2rem 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-wave {
    display: flex;
    gap: 4px;
    align-items: center;
}

.wave-bar {
    width: 4px;
    height: 20px;
    background: linear-gradient(45deg, #007bff, #6610f2);
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}

.mic-control-center {
    margin: 3rem 0;
}

.mic-button-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #6610f2);
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.mic-button-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

.mic-button-large.active {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3); }
    50% { box-shadow: 0 8px 25px rgba(220, 53, 69, 0.6); }
    100% { box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3); }
}

#mic-status {
    margin-top: 1rem;
    color: #adb5bd;
    font-size: 1rem;
}

.qualification-transcript {
    margin: 2rem 0;
    text-align: left;
}

.qualification-transcript h4 {
    color: #e9ecef;
    margin-bottom: 1rem;
}

.transcript-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 100px;
    color: #e9ecef;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qualification-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

/* Phase 3: Tier 2 Onboarding Tracks UI */
#onboarding-section {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.partner-tracks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.track-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-track:hover { box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3); }
.sales-track:hover { box-shadow: 0 15px 35px rgba(40, 167, 69, 0.3); }
.product-track:hover { box-shadow: 0 15px 35px rgba(255, 193, 7, 0.3); }

.track-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-track .track-icon { background: linear-gradient(45deg, #007bff, #6610f2); }
.sales-track .track-icon { background: linear-gradient(45deg, #28a745, #20c997); }
.product-track .track-icon { background: linear-gradient(45deg, #ffc107, #fd7e14); }

.track-card h3 {
    color: #e9ecef;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.track-card p {
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

.track-benefits ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 2rem;
}

.track-benefits li {
    color: #e9ecef;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.track-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.track-select-btn {
    background: linear-gradient(135deg, var(--track-color-primary), var(--track-color-secondary));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.track-select-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.track-select-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.track-select-btn:hover::before {
    left: 100%;
}

.track-select-btn:active {
    transform: translateY(-1px) scale(1.01);
}

/* Remove old track-specific button styles since we use CSS variables now */
.sales-track .track-select-btn,
.product-track .track-select-btn {
    background: linear-gradient(135deg, var(--track-color-primary), var(--track-color-secondary));
}

/* Certification Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header h2 {
    color: #e9ecef;
    margin: 0;
}

.close-modal {
    font-size: 2rem;
    color: #adb5bd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e9ecef;
}

.modal-body {
    padding: 2rem;
}

.certification-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.module-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.module-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #6610f2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.module-card h3 {
    color: #e9ecef;
    margin-bottom: 1rem;
}

.module-card p {
    color: #adb5bd;
    margin-bottom: 1rem;
}

.module-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: #adb5bd;
    font-size: 0.9rem;
}

.module-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.module-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

/* Enhanced Responsive Design for New UIs */
@media (max-width: 768px) {
    .partner-tracks {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .track-card {
        padding: 1.5rem;
    }
    
    .mic-button-large {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .qualification-actions {
        flex-direction: column;
    }
    
    .phase-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .phase {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .tier-badge {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .certification-modules {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Phase 3: Track Detail Pages
   ========================================================================== */

.track-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.track-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.track-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.track-header i {
    font-size: 5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.track-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff, #e9ecef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.track-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover .step-number::before {
    opacity: 0.3;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.step-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-action {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.staff-email-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.staff-email-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Certification Modules */
.certification-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cert-module {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.cert-module:hover {
    transform: scale(1.05);
}

.cert-module i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.cert-module h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.cert-module p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.cert-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cert-btn:hover {
    transform: translateY(-2px);
}

/* Resources List */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.resource-item:hover {
    background: #e9ecef;
}

.resource-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-right: 1rem;
}

.resource-item span {
    flex: 1;
    font-weight: 500;
    color: #1a1a1a;
}

.download-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: #667eea;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #5568d3;
}

/* Sandbox Info */
.sandbox-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.api-key-display {
    margin-bottom: 1.5rem;
}

.api-key-display label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.api-key-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.api-key-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #667eea;
}

.copy-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: #667eea;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #5568d3;
}

.checklist {
    margin-top: 1rem;
}

.checklist h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.checklist label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #666;
    cursor: pointer;
}

.checklist input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Track Actions */
.track-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.track-actions .primary-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Certification Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.certification-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.cert-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cert-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.cert-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.cert-header p {
    color: #666;
}

.cert-modules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cert-module-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
}

.cert-module-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.cert-module-item p {
    color: #666;
    margin-bottom: 0.5rem;
}

.cert-module-item .duration {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.cert-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.secondary-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: #667eea;
    color: white;
}

/* Back to Tracks Button */
.back-to-tracks-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    position: relative;
    overflow: hidden;
}

.back-to-tracks-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.back-to-tracks-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.back-to-tracks-btn:hover::before {
    left: 100%;
}

.back-to-tracks-btn i {
    font-size: 0.8rem;
}

/* Responsive Design for Track Pages */
@media (max-width: 768px) {
    .track-details-container {
        padding: 2rem 1rem;
    }
    
    .track-header h1 {
        font-size: 2rem;
    }
    
    .track-header p {
        font-size: 1rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .step-action {
        flex-direction: column;
    }
    
    .staff-email-input {
        width: 100%;
    }
    
    .certification-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .resource-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   Phase Transition Loading Screen
   ========================================================================== */

.phase-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.phase-loading-screen.active {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Loading Screen */
@media (max-width: 768px) {
    .loading-spinner {
        width: 60px;
        height: 60px;
        border-width: 6px;
    }
    
    .loading-message {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
}
