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

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --accent: #e50914;
    --accent-hover: #b81a24;
    --text: #ffffff;
    --text-muted: #888888;
    --border: #1f1f1f;
    --shadow: rgba(0, 0, 0, 0.5);
}

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

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?q=80&w=2070&auto=format');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: slowZoom 20s ease infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 24px;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.hero-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-hint span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.scroll-hint i {
    color: var(--accent);
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

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

/* ============ HAMBURGER ============ */
.hamburger {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1100;
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* ============ SIDE MENU ============ */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
    border-right: 1px solid var(--border);
    box-shadow: 5px 0 30px var(--shadow);
}

.side-menu.open {
    left: 0;
}

.side-menu-header {
    padding: 28px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.close-menu {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.close-menu:hover {
    background: var(--accent);
}

.side-nav {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

.side-nav a i {
    width: 24px;
    font-size: 1rem;
}

.side-nav a:hover {
    background: rgba(229, 9, 20, 0.15);
    color: white;
    transform: translateX(5px);
}

.side-nav a.active {
    background: rgba(229, 9, 20, 0.2);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.side-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.side-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
}

#sideUserName {
    font-size: 0.85rem;
}

.side-login {
    width: 100%;
    background: var(--accent);
    border: none;
    padding: 10px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: 0.2s;
}

.side-login:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.side-social {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.side-social a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.2s;
}

.side-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* ============ NAVBAR ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo span:first-child {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.85rem;
}

.nav-links a:hover {
    background: rgba(229, 9, 20, 0.15);
    color: white;
}

.nav-links a.active {
    background: var(--accent);
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

#searchInput {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    padding: 8px 14px 8px 38px;
    border-radius: 50px;
    color: white;
    width: 220px;
    font-size: 0.85rem;
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 12px;
    margin-top: 8px;
    display: none;
    border: 1px solid var(--border);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.search-dropdown.show {
    display: block;
}

.search-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: 0.2s;
}

.search-item:hover {
    background: rgba(229, 9, 20, 0.15);
}

.lang-wrapper {
    position: relative;
}

#langBtn {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border-radius: 12px;
    margin-top: 8px;
    display: none;
    border: 1px solid var(--border);
    overflow: hidden;
    min-width: 140px;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown button {
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
}

.lang-dropdown button:hover {
    background: rgba(229, 9, 20, 0.2);
    color: var(--accent);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 5px 15px;
    border-radius: 50px;
}

.user-area i {
    font-size: 1.1rem;
    color: var(--accent);
}

#userName {
    font-size: 0.85rem;
    font-weight: 500;
}

.login-btn {
    background: white;
    border: none;
    padding: 6px 14px;
    border-radius: 50px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    transition: 0.2s;
}

.login-btn:hover {
    background: var(--accent);
    color: white;
}

.login-btn i {
    color: #4285f4;
}

.login-btn:hover i {
    color: white;
}

/* ============ MAIN ============ */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.page {
    animation: fadeIn 0.4s ease;
}

.page.hidden {
    display: none;
}

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

/* DASHBOARD GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px var(--shadow);
}

.dashboard-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.dashboard-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.dashboard-card p {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* GRIDS */
.featured-grid, .content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px var(--shadow);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.7rem;
    color: #6b7280;
}

.card-meta i {
    margin-right: 5px;
    color: var(--accent);
}

/* ENCYCLOPEDIA */
.encyclopedia-search {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.encyclopedia-search input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    padding: 14px 20px;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
}

.encyclopedia-search button {
    background: var(--accent);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.encyclopedia-search button:hover {
    background: var(--accent-hover);
}

.encyclopedia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.encyclopedia-item {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
}

.encyclopedia-item h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.encyclopedia-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* QUIZ */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.quiz-header h2 {
    font-size: 2rem;
    color: var(--accent);
}

.quiz-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.quiz-category {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--border);
}

.quiz-category:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.quiz-category i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.quiz-category h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.quiz-category p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.quiz-area {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid var(--border);
}

.quiz-question {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.quiz-option {
    background: rgba(255,255,255,0.05);
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--border);
}

.quiz-option:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: var(--accent);
}

.quiz-option.correct {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
}

.quiz-option.wrong {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.quiz-result {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--accent);
}

.quiz-next {
    background: var(--accent);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.quiz-next:hover {
    background: var(--accent-hover);
}

/* CALCULATOR */
.calculator-container {
    max-width: 500px;
    margin: 0 auto;
}

.calculator-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent);
}

.calculator {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 24px;
    border: 1px solid var(--border);
}

.calc-display {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    color: white;
    font-size: 1.5rem;
    text-align: right;
    margin-bottom: 20px;
    font-family: monospace;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.calc-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.calc-btn:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--accent);
}

.calc-btn.operator {
    background: rgba(229, 9, 20, 0.2);
    color: var(--accent);
}

.calc-btn.equal {
    background: var(--accent);
    color: white;
}

/* AI SECTION */
.ai-container {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.ai-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.ai-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.ai-sidebar-header span {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-chat {
    background: rgba(229, 9, 20, 0.2);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.new-chat:hover {
    background: var(--accent);
}

.chat-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    transition: 0.2s;
}

.chat-item.active {
    background: rgba(229, 9, 20, 0.2);
    border-left: 3px solid var(--accent);
}

.chat-item span {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.chat-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: 0.2s;
}

.chat-item:hover .chat-delete {
    opacity: 1;
}

.chat-delete:hover {
    color: var(--accent);
}

.ai-main {
    flex: 1;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.ai-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-header span {
    font-weight: 600;
    color: var(--accent);
}

.edit-title {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.edit-title:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message.user .msg-bubble {
    background: var(--accent);
    border-radius: 20px 20px 8px 20px;
}

.message.bot .msg-bubble {
    background: rgba(255,255,255,0.08);
    border-radius: 20px 20px 20px 8px;
}

.msg-bubble {
    max-width: 80%;
    padding: 12px 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg-time {
    font-size: 0.65rem;
    color: #6b7280;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing {
    display: flex;
    gap: 5px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    width: fit-content;
}

.typing span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: typingAnim 1.4s infinite;
}

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

@keyframes typingAnim {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.ai-input-area {
    display: flex;
    padding: 20px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.ai-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
}

.ai-input-area input:focus {
    outline: none;
    border-color: var(--accent);
}

.voice-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    width: 48px;
    height: 48px;
    border-radius: 50px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.voice-btn:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.voice-btn.recording {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    animation: voicePulse 1.2s infinite;
}

@keyframes voicePulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.4); transform: scale(1); }
    70% { box-shadow: 0 0 0 12px rgba(229, 9, 20, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); transform: scale(1); }
}

.voice-status {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--accent);
    animation: slideUp 0.3s ease;
    pointer-events: none;
}

.voice-status i { color: var(--accent); font-size: 1.2rem; }
.voice-status .status-text { color: white; }

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

.ai-input-area input.voice-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

#aiSendBtn {
    background: var(--accent);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#aiSendBtn.stop-btn {
    background: #ef4444;
    animation: pulse 1s infinite;
}

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

.ai-suggestions {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.suggestion {
    background: rgba(255,255,255,0.05);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
}

.suggestion:hover {
    background: var(--accent);
    color: white;
}

/* SINGLE PAGE */
.back-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    margin-bottom: 28px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.back-btn:hover {
    background: var(--accent);
    transform: translateX(-5px);
}

.single-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid var(--border);
}

.single-card h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.single-meta {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.single-card img, .single-card iframe {
    width: 100%;
    border-radius: 20px;
    margin: 24px 0;
}

.single-card iframe { height: 480px; }

/* ABOUT */
.about-container { max-width: 800px; margin: 0 auto; }
.about-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 48px;
    text-align: center;
    border: 1px solid var(--border);
}
.about-card h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--accent);
}
.about-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}
.about-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}
.about-stats .stat { text-align: center; }
.about-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}
.about-stats .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* CONTACTS */
.contacts-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.contacts-container h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--accent);
}
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.contact-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
}
.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.contact-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
}
.business-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border);
}
.business-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--accent);
}
.business-card p { color: var(--text-muted); }

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}
.modal.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    max-width: 320px;
    border: 1px solid var(--accent);
}
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 24px;
}
.modal-buttons button {
    padding: 8px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.confirm-yes { background: var(--accent); color: white; }
.confirm-no { background: rgba(255,255,255,0.1); color: white; }

/* FOOTER */
footer {
    background: var(--bg-card);
    padding: 48px 24px 32px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
    text-align: center;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    font-size: 0.9rem;
}
.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}
footer p { color: #6b7280; font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-container { padding-left: 80px; }
    .hero-content h1 { font-size: 2.2rem; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid, .content-grid { grid-template-columns: 1fr; }
    .ai-container { flex-direction: column; }
    .ai-sidebar { width: 100%; }
    .chat-list { flex-direction: row; overflow-x: auto; }
    .chat-item { min-width: 160px; }
    .calc-buttons { grid-template-columns: repeat(4, 1fr); }
    .quiz-categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
    .nav-actions { width: 100%; justify-content: space-between; margin-top: 12px; }
    #searchInput { width: 160px; }
    .user-area span { display: none; }
    .hero-content h1 { font-size: 1.6rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .single-card { padding: 24px; }
    .single-card iframe { height: 220px; }
    .calc-buttons { grid-template-columns: repeat(3, 1fr); }
    .quiz-categories { grid-template-columns: 1fr; }
    .voice-btn { width: 44px; height: 44px; }
    .voice-status { bottom: 80px; font-size: 0.8rem; padding: 10px 18px; }
}
