/* PitchPerfect2 - Glassmorphism Design System */
/* Copied and enhanced from Sales app */

/* Magical Sparkles Animation for AI Orb */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(59,130,246,0.6) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.sparkle-1 {
    top: 20%;
    left: 15%;
    animation: sparkle-float 3s ease-in-out infinite;
}

.sparkle-2 {
    top: 60%;
    left: 25%;
    animation: sparkle-float 2.5s ease-in-out infinite 0.5s;
}

.sparkle-3 {
    top: 30%;
    right: 20%;
    animation: sparkle-float 3.5s ease-in-out infinite 1s;
}

.sparkle-4 {
    top: 70%;
    right: 15%;
    animation: sparkle-float 2.8s ease-in-out infinite 1.5s;
}

.sparkle-5 {
    top: 45%;
    left: 10%;
    animation: sparkle-float 3.2s ease-in-out infinite 2s;
}

.sparkle-6 {
    top: 80%;
    left: 40%;
    animation: sparkle-float 2.7s ease-in-out infinite 0.8s;
}

@keyframes sparkle-float {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(0px) scale(0.5);
    }
    20% { 
        opacity: 1; 
        transform: translateY(-10px) scale(1);
    }
    80% { 
        opacity: 1; 
        transform: translateY(-15px) scale(1.2);
    }
}

/* Orange sparkles for coach mode */
.sparkle.orange {
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(245,158,11,0.6) 50%, transparent 100%);
}

/* Inner orb sparkles */
.sparkle-inner {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.sparkle-inner-1 {
    top: 20%;
    left: 25%;
    animation: inner-sparkle-float 2.5s ease-in-out infinite;
}

.sparkle-inner-2 {
    top: 60%;
    left: 30%;
    animation: inner-sparkle-float 3s ease-in-out infinite 0.5s;
}

.sparkle-inner-3 {
    top: 35%;
    right: 20%;
    animation: inner-sparkle-float 2.8s ease-in-out infinite 1s;
}

.sparkle-inner-4 {
    top: 75%;
    right: 25%;
    animation: inner-sparkle-float 3.2s ease-in-out infinite 1.2s;
}

.sparkle-inner-5 {
    top: 45%;
    left: 15%;
    animation: inner-sparkle-float 2.7s ease-in-out infinite 1.8s;
}

.sparkle-inner-6 {
    top: 80%;
    left: 40%;
    animation: inner-sparkle-float 3.5s ease-in-out infinite 0.8s;
}

@keyframes inner-sparkle-float {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.5);
    }
    25% { 
        opacity: 0.8; 
        transform: scale(1) translateY(-3px);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2) translateY(-5px);
    }
    75% { 
        opacity: 0.6; 
        transform: scale(1) translateY(-3px);
    }
}

/* Orange inner sparkles for coach mode */
.sparkle-inner.orange {
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,165,0,0.8) 50%, transparent 100%);
}

/* Font System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Root Variables */
:root {
  --primary-blue: rgba(30, 64, 175, 0.55);
  --primary-blue-hover: rgba(30, 64, 175, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow-primary: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc; /* Simple background color matching Sales app */
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* View Container System */
.view-container {
  display: none;
  animation: fadeIn 0.6s ease-in-out;
}

.view-container.active {
  display: block;
}

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

/* Glassmorphism Components */
.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-primary);
  transition: all 0.3s ease;
}

.glass-card:hover:not(.non-interactive) {
  box-shadow: 0 10px 35px 0 rgba(31, 38, 135, 0.15);
  transform: translateY(-3px);
}

/* Navigation Icon System */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease-out;
  text-decoration: none;
}

.nav-icon:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.nav-icon:active {
  transform: translateY(0);
}

/* Liquid Button System */
.liquid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem; 
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  background: var(--primary-blue);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15), 
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease-out;
  cursor: pointer;
  text-decoration: none;
}

.liquid-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
  background: var(--primary-blue-hover);
}

.liquid-button:disabled {
  background: rgba(156, 163, 175, 0.4);
  color: rgba(255, 255, 255, 0.8);
  cursor: not-allowed;
  transform: translateY(0) scale(1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  text-shadow: none;
}

/* Button Variants */
.liquid-button.primary {
  background: var(--primary-blue);
}

.liquid-button.secondary {
  background: rgba(75, 85, 99, 0.5);
}

.liquid-button.secondary:hover {
  background: rgba(75, 85, 99, 0.6);
}

.liquid-button.success {
  background: rgba(22, 163, 74, 0.6);
}

.liquid-button.success:hover {
  background: rgba(22, 163, 74, 0.7);
}

.liquid-button.danger {
  background: rgba(185, 28, 28, 0.55);
}

.liquid-button.danger:hover {
  background: rgba(185, 28, 28, 0.65);
}

.liquid-button.warning {
  background: rgba(245, 158, 11, 0.6);
}

.liquid-button.warning:hover {
  background: rgba(245, 158, 11, 0.7);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, #F97316, #EC4899, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Custom Components for PitchPerfect2 */

/* Skill Meter Component */
.skill-meter {
  background: linear-gradient(90deg, #22c55e 0%, #eab308 70%, #ef4444 100%);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-meter-fill {
  background: linear-gradient(90deg, #16a34a, #22c55e, #84cc16);
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-in-out;
  position: relative;
}

.skill-meter-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Level Badge */
.level-badge {
  background: linear-gradient(145deg, #8b5cf6, #7c3aed);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Streak Fire Icon */
.streak-fire {
  color: #f97316;
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.5));
  animation: flicker 2s infinite alternate;
}

@keyframes flicker {
  0% { opacity: 1; }
  100% { opacity: 0.8; }
}

/* Challenge Card */
.challenge-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.challenge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

.challenge-card.needs-attention {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.6), 
    rgba(251, 191, 36, 0.1)
  );
}

.challenge-card.mastered {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.6), 
    rgba(16, 185, 129, 0.1)
  );
}

/* Score Display */
.score-display {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.score-up {
  color: #10b981;
}

.score-down {
  color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .glass-card {
    margin: 1rem;
    border-radius: 1rem;
  }
  
  .liquid-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .challenge-card {
    padding: 1rem;
  }
}

/* Loading States */
.loading-shimmer {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.2), 
    rgba(255, 255, 255, 0.5), 
    rgba(255, 255, 255, 0.2)
  );
  background-size: 200% 100%;
  animation: shimmer-loading 1.5s infinite;
}

@keyframes shimmer-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Rich Feedback Display Styling */
.rich-feedback-container {
    width: 100%;
    max-width: none;
}

.rich-feedback-content {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
    color: #1e293b;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.rich-feedback-content::-webkit-scrollbar {
    width: 8px;
}

.rich-feedback-content::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
}

.rich-feedback-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}

.rich-feedback-content::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: translateY(-2px);
}

/* 💎 PREMIUM FEEDBACK EXPERIENCE - 10X DESIGNER LEVEL */
.premium-feedback-experience {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* Premium Header */
.feedback-premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.premium-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #b45309;
    font-size: 16px;
}

.premium-icon {
    font-size: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

.ai-powered-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Grade Hero Section */
.grade-hero-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.grade-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.grade-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.grade-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.grade-circle:hover {
    transform: scale(1.05);
}

.grade-a-plus, .grade-a { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.grade-a-minus, .grade-b-plus { 
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.grade-b, .grade-b-minus { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.grade-letter {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.grade-number {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.grade-verdict {
    max-width: 400px;
}

.grade-verdict h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grade-verdict p {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

/* TL;DR Section */
.tldr-section {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.section-icon {
    font-size: 24px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

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

.tldr-card {
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tldr-card::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 ease;
}

.tldr-card:hover::before {
    left: 100%;
}

.tldr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.strength-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.blindspot-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.gamechanger-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.card-icon {
    font-size: 24px;
    margin-bottom: 0.5rem;
}

.card-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.card-content {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

/* Feedback Sections */
.feedback-section {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.celebration-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    position: relative;
}

.celebration-sparkles {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    animation: sparkle 1.5s ease-in-out infinite;
}

.warning-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.golden-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    position: relative;
}

.dollar-indicator {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.power-header {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(126, 34, 206, 0.05) 100%);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.scripts-header, .nudges-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

/* Content Styling */
.moment-highlight {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #10b981;
}

.timestamp-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timestamp-critical {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.moment-quote {
    font-size: 16px;
    font-style: italic;
    color: #1e293b;
    border-left: 3px solid #10b981;
    padding-left: 1rem;
    margin: 1rem 0;
    font-weight: 500;
}

.why-brilliant, .level-up-tip, .impact-analysis, .why-mattered, .business-cost {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.tip-icon, .script-icon, .signal-icon, .elite-icon, .cost-icon, .power-icon, .drill-icon {
    margin-right: 0.5rem;
}

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

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-icon {
    font-size: 24px;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 32px;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
}

.metric-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0.5rem 0;
}

.metric-benchmark {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Script Cards */
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.script-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.script-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.script-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.script-scenario {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 14px;
}

.script-text {
    font-size: 16px;
    font-weight: 600;
    color: #3b82f6;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.script-why {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Nudges List */
.nudges-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nudge-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #10b981;
}

.nudge-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.nudge-text {
    font-weight: 500;
    color: #1e293b;
}

/* Premium Actions */
.premium-actions {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.premium-actions::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6);
    border-radius: 20px;
    z-index: -1;
    animation: gradient-border 3s ease-in-out infinite;
}

.action-cta h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.action-cta p {
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-get-analysis, .btn-transcript {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-get-analysis {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-transcript {
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(10px);
}

.btn-get-analysis:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-transcript:hover {
    background: white;
    transform: translateY(-2px);
}

.premium-upgrade-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.upgrade-link {
    color: #3b82f6;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.upgrade-link:hover {
    color: #1d4ed8;
}

/* Email Capture Modal */
.email-capture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.email-capture-modal {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
}

.email-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.email-modal-header p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 2rem;
}

.email-input {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease;
    background: rgba(248, 250, 252, 0.5);
}

.email-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
}

.email-benefits {
    margin-bottom: 2rem;
}

.benefit-item {
    padding: 0.75rem 0;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
}

.email-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-send-email, .btn-skip-email {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-send-email {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.btn-skip-email {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

/* Success Toast */
.success-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    z-index: 3000;
    animation: slideInRight 0.4s ease;
}

/* Animations */
@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@keyframes gradient-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

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

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .grade-visual {
        flex-direction: column;
        gap: 2rem;
    }
    
    .tldr-grid, .scripts-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .email-actions {
        flex-direction: column;
    }
    
    .premium-feedback-experience {
        padding: 0 1rem;
    }
}
/* Custom scrollbar for transcript */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Transcript entry styles */
.transcript-entry {
    animation: fadeInUp 0.3s ease-out;
}

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

/* Speaking animation for AI orb */
#modal-ai-orb.speaking {
    animation: pulse-speak 1.5s ease-in-out infinite;
}

@keyframes pulse-speak {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}
EOF < /dev/null