/* SYN10 Voice Analysis - Enhanced UI with Animations */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Landing Page Color Palette - Exact Match */
    --bg-1: #071B1A;
    --bg-2: #0A2F2C;
    --bg-3: #0F3A37;
    --brand: #0E837E;
    --brand-2: #12B7AA;
    --primary-cyan: #43E6D6;
    --primary-green: #00FFA3;
    --accent-2: #A6FFF6;
    --danger: #FF4757;
    --warning: #FFC76B;
    --success: #00D4AA;
    
    /* Background Colors */
    --bg-primary: #071B1A;
    --bg-secondary: #0A2F2C;
    --bg-tertiary: #0F3A37;
    --surface: rgba(15, 58, 55, 0.6);
    --surface-glass: rgba(67, 230, 214, 0.02);
    
    /* Text Colors */
    --text-primary: #EAF7F6;
    --text-secondary: rgba(234, 247, 246, 0.7);
    --text-muted: rgba(156, 210, 207, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #43E6D6 0%, #00FFA3 100%);
    --gradient-cyan: linear-gradient(135deg, #43E6D6 0%, #12B7AA 100%);
    --gradient-cosmic: linear-gradient(135deg, #43E6D6 0%, #00FFA3 50%, #A6FFF6 100%);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: 
        radial-gradient(80vw 80vw at 70% -10%, #083331 0%, transparent 60%),
        radial-gradient(65vw 65vw at -10% 30%, #0A4944 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-1), var(--bg-2));
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Neural Background Animation - Like Landing Page */
.neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(67, 230, 214, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(18, 183, 170, 0.2), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(67, 230, 214, 0.4), transparent),
        radial-gradient(1px 1px at 10% 60%, rgba(18, 183, 170, 0.3), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(0, 255, 163, 0.2), transparent),
        radial-gradient(1px 1px at 75% 85%, rgba(67, 230, 214, 0.3), transparent);
    background-size: 100px 100px, 150px 150px, 80px 80px, 120px 120px, 110px 110px, 90px 90px;
    animation: neuralMove 30s linear infinite;
}

@keyframes neuralMove {
    0% { 
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; 
    }
    100% { 
        background-position: 100% 100%, -100% 100%, 100% -100%, -100% -100%, 50% 150%, -50% 50%; 
    }
}

/* Floating Particles */
.particle-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 20s infinite linear;
    box-shadow: 0 0 10px rgba(67, 230, 214, 0.5);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 22s; }
.particle:nth-child(3) { left: 35%; animation-delay: 4s; animation-duration: 28s; }
.particle:nth-child(4) { left: 50%; animation-delay: 6s; animation-duration: 20s; }
.particle:nth-child(5) { left: 65%; animation-delay: 8s; animation-duration: 24s; }
.particle:nth-child(6) { left: 75%; animation-delay: 10s; animation-duration: 26s; }
.particle:nth-child(7) { left: 85%; animation-delay: 12s; animation-duration: 23s; }
.particle:nth-child(8) { left: 95%; animation-delay: 14s; animation-duration: 27s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
        transform: translateY(90vh) translateX(-10px) scale(1);
    }
    90% {
        opacity: 0.4;
        transform: translateY(10vh) translateX(10px) scale(1);
    }
    100% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
}

/* Navigation - Glassmorphic Premium */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    background: rgba(7, 27, 26, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(67, 230, 214, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.6s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Brain Video Container */
.brain-video {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(67, 230, 214, 0.3);
    box-shadow: 0 0 20px rgba(67, 230, 214, 0.2);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(67, 230, 214, 0.2); }
    50% { box-shadow: 0 0 30px rgba(67, 230, 214, 0.4); }
}

.brain-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    position: relative;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(67, 230, 214, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(67, 230, 214, 0.8)); }
}

.feature-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(18, 183, 170, 0.2);
    border: 1px solid rgba(18, 183, 170, 0.5);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--brand-2);
    font-weight: 600;
}

.nav-controls {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(67, 230, 214, 0.05);
    border: 1px solid rgba(67, 230, 214, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    background: rgba(67, 230, 214, 0.1);
    border-color: var(--primary-cyan);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(67, 230, 214, 0.2);
}

/* Main Section */
.main-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 2;
}

/* Voice Card - Premium Glass Design with Inner Beauty */
.voice-card {
    background: 
        radial-gradient(circle at 20% 20%, rgba(67, 230, 214, 0.08), transparent 70%),
        rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(67, 230, 214, 0.2);
    border-radius: 32px;
    padding: 3px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(67, 230, 214, 0.1);
}

.voice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-cyan),
        var(--primary-green),
        transparent
    );
    animation: borderGlow 3s linear infinite;
}

.voice-card-inner {
    background: linear-gradient(135deg, 
        rgba(15, 58, 55, 0.9) 0%, 
        rgba(10, 47, 44, 0.95) 100%);
    border-radius: 29px;
    padding: 3rem;
    position: relative;
}

.voice-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2) drop-shadow(0 0 30px rgba(67, 230, 214, 0.5)); }
}

.voice-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Microphone Status */
.mic-status {
    text-align: center;
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mic-status.success {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--success);
}

.mic-status.error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--error);
}

/* Recording Circle Animation - UPDATED */
.recording-circle-container {
    width: 250px;
    height: 250px;
    margin: 2rem auto;
    position: relative;
    animation: fadeIn 0.5s ease;
}

.recording-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

/* Only animate when .animating class is present */
.recording-circle.animating {
    animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(-90deg); }
    100% { transform: rotate(270deg); }
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke: #FF4757;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 10px rgba(255, 71, 87, 0.5));
}

.circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Only animate pulse when recording */
.recording-circle.animating .pulse-circle {
    animation: pulse-recording 2s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
}

/* Timer Inside Circle - NEW */
.timer-in-circle {
    font-size: 3rem;
    font-weight: 300;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(67, 230, 214, 0.5));
}

/* Audio Visualizer - Enhanced */
.audio-visualizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    height: 100px;
    margin: 1rem auto 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    max-width: 350px;
    pointer-events: none; /* Prevent clicks */
}

.audio-visualizer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    filter: blur(10px);
    animation: visualizer-glow 2s ease-in-out infinite;
}

@keyframes visualizer-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.audio-bar {
    width: 8px;
    min-height: 4px;
    background: linear-gradient(to top, var(--primary-cyan), var(--primary-green));
    border-radius: 4px 4px 0 0;
    transition: height 0.1s ease;
    position: relative;
    box-shadow: 0 0 15px rgba(67, 230, 214, 0.5);
    animation: bar-dance 0.5s ease-in-out infinite;
}

.audio-bar:nth-child(odd) {
    animation-delay: 0.1s;
}

.audio-bar:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes bar-dance {
    0%, 100% { height: 20px; }
    50% { height: 50px; }
}

.audio-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(166, 255, 246, 0.8);
}

/* Recording Controls - Updated spacing */
.recording-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0 1rem;
}

/* Buttons - Enhanced */
.btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.btn-icon {
    font-size: 1.2em;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-1);
    box-shadow: 
        0 10px 40px rgba(67, 230, 214, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(67, 230, 214, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background: rgba(67, 230, 214, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(67, 230, 214, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(67, 230, 214, 0.15);
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(67, 230, 214, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
}

.btn-outline:hover {
    background: rgba(67, 230, 214, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(67, 230, 214, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.btn-export {
    background: linear-gradient(135deg, var(--success), #00B090);
    color: white;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, var(--danger), #E73C4E);
    color: white;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-ghost:hover {
    color: var(--primary-cyan);
    background: rgba(67, 230, 214, 0.05);
}

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

/* Prompt Card - Moved up with less margin */
.prompt-card {
    background: linear-gradient(135deg, 
        rgba(18, 183, 170, 0.1) 0%, 
        rgba(67, 230, 214, 0.05) 100%);
    border: 1px solid rgba(18, 183, 170, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prompt-inner {
    position: relative;
    z-index: 2;
}

.prompt-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 163, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.prompt-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    position: relative;
}

.prompt-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 1rem 0;
    position: relative;
}

/* Shortcuts Hint */
.shortcuts-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.shortcuts-hint kbd {
    padding: 0.25rem 0.5rem;
    background: rgba(67, 230, 214, 0.1);
    border: 1px solid rgba(67, 230, 214, 0.2);
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', monospace;
    margin: 0 0.25rem;
}

/* Results Section - Enhanced */
.results-section {
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 2;
}

.results-card {
    background: 
        radial-gradient(circle at 30% 30%, rgba(67, 230, 214, 0.08), transparent 70%),
        rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(67, 230, 214, 0.2);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.results-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.metric-card {
    background: linear-gradient(135deg,
        rgba(15, 58, 55, 0.6) 0%,
        rgba(10, 47, 44, 0.7) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(67, 230, 214, 0.2);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(67, 230, 214, 0.2);
}

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

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(67, 230, 214, 0.5));
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.5rem 0;
}

.metric-status {
    color: var(--primary-cyan);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Wellness Score - Better positioning */
.wellness-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2.5rem auto;
    padding: 2.5rem;
    background: linear-gradient(135deg,
        rgba(15, 58, 55, 0.3) 0%,
        rgba(67, 230, 214, 0.05) 100%);
    border-radius: 32px;
    position: relative;
    max-width: 600px;
}

.score-circle {
    width: 180px;
    height: 180px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        from 0deg,
        var(--primary-cyan) 0deg,
        var(--primary-green) 180deg,
        var(--accent-2) 360deg
    );
    border-radius: 50%;
    padding: 4px;
    box-shadow: 
        0 0 60px rgba(67, 230, 214, 0.5),
        inset 0 0 60px rgba(0, 255, 163, 0.3);
    animation: rotateGlow 10s linear infinite;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--bg-primary);
    border-radius: 50%;
    z-index: 1;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    z-index: 2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.score-feedback {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
}

/* New Insights Section - Replacing "What Changed Today" */
.insights-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(15, 58, 55, 0.2);
    border-radius: 24px;
}

.insights-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(67, 230, 214, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.insight-card.positive {
    border-color: rgba(0, 255, 163, 0.3);
    background: linear-gradient(135deg,
        rgba(0, 255, 163, 0.05) 0%,
        rgba(0, 255, 163, 0.02) 100%);
}

.insight-card.neutral {
    border-color: rgba(67, 230, 214, 0.3);
    background: linear-gradient(135deg,
        rgba(67, 230, 214, 0.05) 0%,
        rgba(67, 230, 214, 0.02) 100%);
}

.insight-card.tip {
    border-color: rgba(255, 199, 107, 0.3);
    background: linear-gradient(135deg,
        rgba(255, 199, 107, 0.05) 0%,
        rgba(255, 199, 107, 0.02) 100%);
}

.insight-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.insight-content h4 {
    color: var(--primary-cyan);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.insight-content p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* Dashboard Section - COMPLETELY REDESIGNED */
.dashboard-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 2;
}

.dashboard-card {
    background: 
        radial-gradient(circle at 20% 20%, rgba(67, 230, 214, 0.08), transparent 70%),
        rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(67, 230, 214, 0.2);
    border-radius: 32px;
    padding: 3px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(67, 230, 214, 0.1);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-cyan),
        var(--primary-green),
        transparent
    );
    animation: borderGlow 3s linear infinite;
}

.dashboard-card-inner {
    background: linear-gradient(135deg, 
        rgba(15, 58, 55, 0.9) 0%, 
        rgba(10, 47, 44, 0.95) 100%);
    border-radius: 29px;
    padding: 3rem;
    position: relative;
}

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

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Quick Stats Row */
.dashboard-stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(135deg,
        rgba(67, 230, 214, 0.05) 0%,
        rgba(0, 255, 163, 0.03) 100%);
    border: 1px solid rgba(67, 230, 214, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, 
        transparent,
        rgba(67, 230, 214, 0.3),
        transparent
    );
    margin: 0 2rem;
}

/* Trends Section */
.trends-section {
    margin-bottom: 3rem;
}

.trends-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-cyan);
    text-align: center;
}

.trend-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.trend-card {
    background: linear-gradient(135deg,
        rgba(15, 58, 55, 0.5) 0%,
        rgba(10, 47, 44, 0.6) 100%);
    border: 1px solid rgba(67, 230, 214, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.trend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(67, 230, 214, 0.4);
}

.trend-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.trend-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(67, 230, 214, 0.5));
}

.trend-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 60px;
    margin-bottom: 1rem;
}

.chart-bar {
    width: 12px;
    background: linear-gradient(to top, var(--primary-cyan), var(--primary-green));
    border-radius: 6px 6px 0 0;
    transition: height 0.3s ease;
    box-shadow: 0 0 10px rgba(67, 230, 214, 0.3);
}

.trend-value {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Weekly Summary */
.weekly-summary-card {
    background: linear-gradient(135deg,
        rgba(18, 183, 170, 0.1) 0%,
        rgba(67, 230, 214, 0.05) 100%);
    border: 1px solid rgba(18, 183, 170, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-cyan);
}

/* Dashboard Actions */
.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dashboard-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(67, 230, 214, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, 
        rgba(15, 58, 55, 0.95) 0%, 
        rgba(10, 47, 44, 0.98) 100%);
    border: 1px solid rgba(67, 230, 214, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(67, 230, 214, 0.1);
    color: var(--primary-cyan);
    transform: rotate(90deg);
}

.modal-body {
    color: var(--text-primary);
}

.setting-group {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(67, 230, 214, 0.1);
}

.setting-group:last-child {
    border-bottom: none;
}

.setting-group h3 {
    color: var(--primary-cyan);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.setting-group p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.setting-group ul {
    list-style: none;
    padding-left: 0;
}

.setting-group ul li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.setting-group ul li kbd {
    margin-left: 0.5rem;
}

.link {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, 
        rgba(15, 58, 55, 0.95) 0%, 
        rgba(10, 47, 44, 0.98) 100%);
    border: 1px solid rgba(67, 230, 214, 0.3);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1500;
    animation: slideUp 0.5s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.install-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.install-icon {
    font-size: 1.5rem;
}

.install-text {
    color: var(--text-primary);
    font-weight: 500;
}

.install-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.install-close:hover {
    color: var(--primary-cyan);
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(67, 230, 214, 0.1) 0%, rgba(0, 255, 163, 0.1) 100%);
    border: 1px solid rgba(67, 230, 214, 0.3);
    border-radius: 16px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.privacy-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 230, 214, 0.1), transparent);
    animation: shimmer 3s infinite;
}

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

.privacy-icon {
    font-size: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .voice-card-inner,
    .dashboard-card-inner {
        padding: 2rem 1.5rem;
    }
    
    .timer-in-circle {
        font-size: 2.5rem;
    }
    
    .recording-circle-container {
        width: 200px;
        height: 200px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .voice-title,
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-stats-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
        margin: 0 auto;
    }
    
    .trend-cards {
        grid-template-columns: 1fr;
    }
    
    .summary-items {
        grid-template-columns: 1fr;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .dashboard-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-section,
    .dashboard-section {
        padding: 1rem;
    }
    
    .voice-card-inner,
    .dashboard-card-inner {
        padding: 1.5rem 1rem;
    }
    
    .results-card {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-stats-row {
        padding: 1.5rem 1rem;
    }
}
