/* Scientifier - Science-Based Learning Platform */
/* Main Stylesheet */

:root {
    --font-main: 'Outfit', sans-serif;

    /* Colors - Light Mode (Default) */
    --color-bg: #f5f5f5;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #525252;
    --color-primary: #10b981;
    --color-primary-glow: rgba(16, 185, 129, 0.2);
    --color-accent: #fbbf24;
    --color-accent-glow: rgba(251, 191, 36, 0.2);
    --color-success: #22c55e;
    --color-error: #ef4444;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark Mode */
body.dark-mode {
    --color-bg: #050a04;
    --color-surface: #0a1408;
    --color-text: #e0e0e0;
    --color-text-muted: #a3b3a0;
    --color-primary-glow: rgba(16, 185, 129, 0.4);
    --color-accent-glow: rgba(251, 191, 36, 0.4);
}

body {
    background: var(--color-bg);
    color: var(--color-text);
}

body.dark-mode .header {
    background: rgba(10, 10, 10, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

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

*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1400px;
    /* Increased from 1200px to reduce horizontal space/isolation */
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: var(--spacing-sm) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 150;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-primary);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.lang-switcher select,
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.lang-switcher select:hover,
.theme-toggle:hover {
    border-color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: #0ea472;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--color-primary-glow);
}

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

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

body.dark-mode .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--color-primary-glow);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.neural-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.app-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.app-badge img {
    height: 40px;
    transition: var(--transition);
}

.app-badge:hover img {
    transform: scale(1.05);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    background: var(--color-surface);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
}

/* Trust Section / Stats */
.trust-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

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

/* Sections */
.section {
    padding: var(--spacing-lg) 0;
}

/* Content Sections - used on method page, etc. */
.content-section {
    padding: var(--spacing-md) 0;
}

.hero-section {
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.section-alt {
    background: var(--color-surface);
}

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

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.about-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.about-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

/* Testimonials */
.testimonial-card {
    text-align: center;
}

.testimonial-avatar {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.star-rating {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}

.quote {
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.author {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.achievement {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Chat Section */
.chat-section {
    padding: var(--spacing-xl) 0;
}

.chat-container-preview {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.chat-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
}

.chat-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--color-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Newsletter */
.newsletter-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(251, 191, 36, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.newsletter-inline {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: var(--spacing-md) auto;
}

.newsletter-inline input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: var(--radius-sm);
}

.newsletter-inline button {
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-inline button:hover {
    background: #0ea472;
}

.newsletter-privacy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Messages/Alerts */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: var(--color-success);
    color: white;
}

.alert-error {
    background: var(--color-error);
    color: white;
}

.close-alert {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: var(--spacing-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-surface);
        padding: 80px 20px 20px;
        transition: right 0.3s;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

/* =============================================
   FORM STYLES
   ============================================= */

/* Auth Pages Layout */
.auth-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--color-text-muted);
}

/* Form Groups */
.form-group {
    margin-bottom: var(--spacing-sm);
}

/* =============================================
   SCIENTI FLOATING BUTTON & CHAT WINDOW
   ============================================= */

/* The draggable floating button */
#scienti-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transition: filter 0.3s;
}

#scienti-fab:active {
    cursor: grabbing;
}

#scienti-fab:hover {
    filter: brightness(1.15);
}

/* Concentric circles icon */
.scienti-circles {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scienti-circle-outer {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.5);
    /* golden 50% transparent */
    border: 2px solid rgba(251, 191, 36, 0.7);
    animation: scientiPulse 2.5s ease-in-out infinite;
}

.scienti-circle-inner {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    /* green filled */
    box-shadow: 0 0 12px var(--color-primary-glow);
    z-index: 2;
}

/* Live indicator dot */
.scienti-live-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid var(--color-surface);
    z-index: 3;
    animation: liveBlink 1.2s ease-in-out infinite;
}

@keyframes liveBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes scientiPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.35;
    }
}

.scienti-fab-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Chat Window — Golden accent theme */
.scienti-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: var(--color-surface);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--radius-md);
    display: none;
    flex-direction: column;
    z-index: 2000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(251, 191, 36, 0.08);
    overflow: hidden;
    resize: both;
    min-width: 300px;
    min-height: 350px;
    animation: windowOpen 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.scienti-window.active {
    display: flex;
}

.scienti-window-header {
    background: linear-gradient(90deg, var(--color-surface), rgba(251, 191, 36, 0.08));
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.scienti-window-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--color-accent);
}

.scienti-window-title .live-badge {
    font-size: 0.6rem;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: liveBlink 1.2s ease-in-out infinite;
}

.scienti-window-controls {
    display: flex;
    gap: 8px;
}

.window-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

.window-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.window-control-btn.close:hover {
    background: var(--color-error);
}

.scienti-window-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-image: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.03) 0%, transparent 100%);
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.assistant {
    background: rgba(251, 191, 36, 0.06);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border-left: 2px solid var(--color-accent);
}

.chat-msg.user {
    background: var(--color-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-msg.typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    min-width: 60px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.4;
    animation: quickTyping 1.4s infinite;
}

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

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

@keyframes quickTyping {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}


.scienti-window-footer {
    padding: 12px;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
}

#scienti-quick-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-size: 0.9rem;
}

#scienti-quick-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.15);
}

.chat-send-btn {
    background: var(--color-accent);
    border: none;
    color: #1a1a1a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Form Inputs */
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
}

body.dark-mode .form-input,
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="number"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="url"],
body.dark-mode textarea,
body.dark-mode select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}


/* Textarea */
textarea {
    resize: vertical;
    min-height: 120px;
}

/* Select */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 20px;
    padding-right: 2.5rem;
}

/* Checkbox and Radio */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--color-text);
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* Form Validation */
.form-error {
    display: block;
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-help {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Alerts */
.alert {
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    border: 1px solid;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--color-error);
    color: var(--color-error);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--color-success);
    color: var(--color-success);
}

/* Social Auth */
.social-auth {
    margin-top: var(--spacing-md);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--spacing-md) 0;
    color: var(--color-text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 var(--spacing-sm);
    font-size: 0.875rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-google {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.btn-google:hover {
    background: #f9fafb;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
}

.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* =============================================
   VOICE & LIVE MODE IMPROVEMENTS
   ============================================= */
.mic-btn,
.live-mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mic-btn:hover,
.live-mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
}

.mic-btn.active {
    background: var(--color-error);
    color: white;
    box-shadow: 0 0 15px var(--color-error);
    animation: pulseMic 1.5s infinite;
}

@keyframes pulseMic {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.live-mode-btn {
    width: auto;
    padding: 0 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.live-mode-btn.active {
    background: var(--color-primary);
    color: var(--color-bg);
}

.live-overlay {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 300px;
    background: rgba(5, 10, 4, 0.95);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
    margin-bottom: 10px;
}

.live-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding: var(--spacing-md);
}

.live-orb {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 50px var(--color-primary-glow);
}

.live-orb::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: orbPulse 2s infinite;
}

@keyframes orbPulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.visualizer .bar {
    width: 6px;
    background: var(--color-primary);
    border-radius: 10px;
    min-height: 4px;
    transition: height 0.1s ease;
}

/* Toast Notifications System */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.toast.active {
    transform: translateX(0);
}

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

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.toast-msg {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.toast-close {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast--accent {
    border-left-color: var(--color-accent);
}

.toast--accent .toast-title {
    color: var(--color-accent);
}

.toast--success {
    border-left-color: var(--color-success);
}

.toast--error {
    border-left-color: var(--color-error);
}