/* ===== CSS Variables ===== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --accent: #10b981;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #475569;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.brand-icon {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--gradient-1);
    color: var(--text) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600 !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.avatar-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--gradient-1);
    filter: blur(40px);
    opacity: 0.4;
    animation: pulse 3s ease-in-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.avatar-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--surface);
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid var(--background);
    z-index: 2;
}

.status-indicator.online {
    background: var(--accent);
    animation: statusPulse 2s ease-in-out infinite;
}

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

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero h1 .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-demo {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-demo:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-demo i {
    font-size: 1.1em;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.btn-icon:hover {
    color: var(--text);
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about-section {
    background: var(--surface);
}

.about-summary {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-muted);
}

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

.about-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.card-title {
    font-weight: 600;
    color: var(--text);
}

.card-org {
    color: var(--primary-light);
}

.card-location {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Experience Section ===== */
.experience-section {
    background: var(--background);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 3rem;
}

.timeline-icon {
    position: absolute;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-light);
}

.timeline-content {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.timeline-content h3 {
    color: var(--text);
    margin-bottom: 0.25rem;
}

.timeline-org {
    color: var(--primary-light);
    font-weight: 500;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
}

.timeline-details li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.timeline-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

/* ===== Education Section ===== */
.education-section {
    background: var(--surface);
}

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

.education-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    gap: 1rem;
}

.education-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--background) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: var(--primary);
}

.edu-icon {
    font-size: 2rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.edu-content h3 {
    color: var(--text);
    margin-bottom: 0.25rem;
}

.edu-field {
    color: var(--primary-light);
    font-weight: 500;
}

.edu-school {
    color: var(--text-muted);
}

.edu-year {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.edu-thesis {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Skills Section ===== */
.skills-section {
    background: var(--background);
}

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

.skill-category {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.skill-category h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text);
}

.skill-category h3 i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--background);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ===== Research Section ===== */
.research-section {
    background: var(--surface);
}

.research-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    gap: 1.5rem;
}

.research-icon {
    font-size: 3rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.research-content h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.research-journal {
    color: var(--primary-light);
    font-weight: 500;
}

.research-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.research-abstract {
    color: var(--text-muted);
}

/* ===== Certifications Section ===== */
.certifications-section {
    background: var(--background);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.cert-item {
    background: var(--surface);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cert-item i {
    color: var(--secondary);
}

.cert-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Honors Section ===== */
.honors-section {
    background: var(--surface);
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.honor-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.honor-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.honor-card h3 {
    color: var(--text);
    margin-bottom: 0.25rem;
}

.honor-card p {
    color: var(--primary-light);
}

.honor-desc {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}

/* ===== Chat Section - Side by Side Layout ===== */
.chat-section {
    background: var(--background);
    padding: 5rem 0;
}

.chat-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.conversation-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Avatar Panel */
.avatar-panel {
    text-align: center;
}

.avatar-display-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--border);
}

.avatar-static {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar speaking animation - subtle glow pulse */
.avatar-speaking {
    animation: avatarSpeak 1.5s ease-in-out infinite;
}

@keyframes avatarSpeak {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
        transform: scale(1);
    }
    25% {
        filter: brightness(1.05) drop-shadow(0 0 15px rgba(139, 92, 246, 0.5));
        transform: scale(1.01);
    }
    50% {
        filter: brightness(1.02) drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
        transform: scale(1.005);
    }
    75% {
        filter: brightness(1.08) drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
        transform: scale(1.015);
    }
}

#avatarCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.conversation-controls {
    margin-bottom: 1rem;
}

.status-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

/* Chat Panel */
.chat-panel {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    height: 600px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-light);
}

.chat-title {
    font-weight: 600;
    color: var(--text);
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
}

.bot-message {
    align-self: flex-start;
}

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

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--text-muted);
}

.user-message .message-avatar {
    background: var(--primary);
    color: white;
}

.message-content {
    background: var(--background);
    padding: 0.875rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.user-message .message-content {
    background: var(--primary);
    border-color: var(--primary);
}

.message-content p {
    margin: 0;
}

/* Partial Transcript */
.partial-transcript {
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-light);
    border-top: 1px solid var(--border);
}

.partial-transcript i {
    color: var(--accent);
}

/* Chat Input */
.chat-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface-light);
}

.input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

#textInput {
    flex: 1;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    min-height: 48px;
    max-height: 150px;
}

#textInput:focus {
    outline: none;
    border-color: var(--primary);
}

#textInput::placeholder {
    color: var(--text-muted);
}

.input-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn.primary {
    background: var(--gradient-1);
    border: none;
    color: white;
}

.action-btn.primary:hover {
    transform: scale(1.05);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* ===== Footer ===== */
.footer {
    background: var(--surface);
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.footer-brand i {
    color: var(--primary-light);
}

.footer-tagline {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links i {
    margin-right: 0.5rem;
}

.footer-tech {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-legal {
    color: var(--text-muted);
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .conversation-layout {
        grid-template-columns: 1fr;
    }

    .avatar-panel {
        max-width: 350px;
        margin: 0 auto;
    }

    .chat-panel {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .avatar-circle {
        width: 160px;
        height: 160px;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .research-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: #1e293b;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification i {
    font-size: 1.25rem;
}

.toast-error {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Error Message in Chat */
.error-message {
    background: rgba(220, 38, 38, 0.1);
    border-left: 3px solid #dc2626;
}

.error-message .message-avatar {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.error-message .message-avatar i {
    color: white;
}

.error-content {
    color: #dc2626;
}

.retry-btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.retry-btn i {
    font-size: 0.75rem;
}

/* ===== Recording Indicator ===== */
.recording-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ef4444;
    border-radius: 24px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.rec-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: recPulse 1.5s ease-in-out infinite;
}

@keyframes recPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.rec-text {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.rec-timer {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

/* Recording Indicator - Paused State */
.recording-indicator.paused .rec-dot {
    background: #f59e0b;
    animation: none;
}

.recording-indicator.paused .rec-text {
    color: #f59e0b;
}

/* ===== Consent Modal ===== */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

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

.consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.consent-dialog {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    animation: modalSlideUp 0.3s ease;
}

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

.consent-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.consent-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.consent-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
}

.consent-body {
    padding: 1.5rem 2rem;
}

.consent-body p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.consent-body ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.consent-body ul li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.consent-body ul li i {
    color: var(--accent);
    font-size: 1rem;
}

.consent-note {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text) !important;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.consent-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--surface-light);
    border-radius: 0 0 18px 18px;
}

.consent-footer .btn {
    flex: 1;
    justify-content: center;
    padding: 0.875rem 1.5rem;
}

/* Responsive adjustments for consent modal */
@media (max-width: 600px) {
    .consent-dialog {
        width: 95%;
        max-width: none;
    }

    .consent-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .consent-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .consent-header h3 {
        font-size: 1.25rem;
    }

    .consent-body {
        padding: 1rem 1.5rem;
    }

    .consent-footer {
        flex-direction: column;
        padding: 1rem 1.5rem;
    }

    .consent-footer .btn {
        width: 100%;
    }

    .recording-indicator {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.375rem 0.75rem;
    }

    .rec-text,
    .rec-timer {
        font-size: 0.75rem;
    }

    .rec-dot {
        width: 10px;
        height: 10px;
    }
}
