/* ===== YANY Studio — max.ru-inspired Design ===== */
/* Pure black, purple/indigo gradients, no emojis, Inter font */

:root {
    --bg: #000000;
    --surface: #0D0D0D;
    --surface-2: #161618;
    --surface-3: #1C1C1E;
    --border: rgba(255, 255, 255, 0.06);
    --text: #FFFFFF;
    --text-2: #A1A1AA;
    --text-3: #71717A;
    --purple: #6C3AED;
    --purple-light: #8B5CF6;
    --blue: #00B4D8;
    --gradient: linear-gradient(135deg, #6C3AED 0%, #00B4D8 100%);
    --gradient-v: linear-gradient(180deg, #6C3AED 0%, #00B4D8 100%);
    --gradient-text: linear-gradient(135deg, #A78BFA 0%, #22D3EE 100%);
    --user-bubble: #6C3AED;
    --ai-bubble: #1C1C1E;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --nav-height: 72px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

/* ===== PAGES ===== */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* ===== BACKGROUND GLOW ===== */
.bg-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(108, 58, 237, 0.15) 0%, rgba(0, 180, 216, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-2);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-link-accent {
    color: var(--purple-light);
    font-weight: 600;
}

.nav-link-accent:hover {
    color: #A78BFA;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 180px 32px 120px;
    z-index: 1;
}

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

.hero-text h1 {
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

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

.hero-desc {
    font-size: 20px;
    color: var(--text-2);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-hero:hover {
    background: var(--purple-light);
    transform: translateY(-2px);
}

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

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-hero-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== FEATURES ===== */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px 120px;
    position: relative;
    z-index: 1;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 160px;
}

.feature-block-reverse {
    direction: rtl;
}

.feature-block-reverse>* {
    direction: ltr;
}

.feature-text h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 18px;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 460px;
}

.feature-mockup {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.chat-mockup {
    max-width: 380px;
    margin: 0 auto;
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.mock-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
}

.mock-name {
    font-weight: 700;
    font-size: 15px;
}

.mock-status {
    font-size: 12px;
    color: var(--text-3);
}

.mock-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
}

.mock-bubble-user {
    background: var(--purple);
    margin-left: auto;
    border-bottom-right-radius: 4px;
    text-align: right;
}

.mock-bubble-ai {
    background: var(--surface-3);
    border-bottom-left-radius: 4px;
    color: var(--text-2);
}

.mock-input-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-3);
}

.mock-send-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient);
}

.voice-mockup {
    text-align: center;
    padding: 48px 24px;
    max-width: 380px;
    margin: 0 auto;
}

.voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}

.wave-bar {
    width: 6px;
    border-radius: 3px;
    background: var(--gradient-v);
    animation: waveAnim 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.4s;
}

.wave-bar:nth-child(6) {
    animation-delay: 0.5s;
}

.wave-bar:nth-child(7) {
    animation-delay: 0.6s;
}

.wave-bar:nth-child(8) {
    animation-delay: 0.7s;
}

.wave-bar:nth-child(9) {
    animation-delay: 0.8s;
}

.wave-bar:nth-child(10) {
    animation-delay: 0.9s;
}

@keyframes waveAnim {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.4;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.voice-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 8px;
}

.voice-transcript {
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
    color: var(--text-2);
}

.conf-mockup {
    max-width: 380px;
    margin: 0 auto;
}

.conf-mock-header {
    font-weight: 700;
    font-size: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
}

.conf-mock-participants {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.conf-mock-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-2);
}

.conf-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.conf-mock-chat {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conf-mock-msg {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.4;
}

.conf-mock-msg b {
    color: var(--text);
    font-weight: 600;
}

/* ===== CTA ===== */
.cta-section {
    text-align: center;
    padding: 120px 32px;
    position: relative;
    z-index: 1;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 58, 237, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-logo {
    margin-bottom: 40px;
}

.cta-section h2 {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 40px;
    color: var(--text-2);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 32px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-3);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 14px;
    color: var(--text-3);
}

/* ===== CHAT PAGE ===== */
#chat-page {
    min-height: 100vh;
}

.chat-layout {
    display: flex;
    height: 100vh;
}

.chat-sidebar {
    width: 280px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

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

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
}

.btn-new-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px;
    padding: 12px;
    background: rgba(108, 58, 237, 0.15);
    border: 1px solid rgba(108, 58, 237, 0.3);
    border-radius: var(--radius-sm);
    color: var(--purple-light);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-new-chat:hover {
    background: rgba(108, 58, 237, 0.25);
}

.conv-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px;
}

.conv-item {
    padding: 12px;
    border-radius: var(--radius-xs);
    margin-bottom: 2px;
    cursor: pointer;
    transition: background 0.15s;
}

.conv-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.conv-item.active {
    background: rgba(108, 58, 237, 0.12);
}

.conv-item-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.conv-item-meta {
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-bottom {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.sidebar-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--text-3);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-action:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.sidebar-action.voice-active {
    color: var(--purple-light);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.topbar-menu {
    background: none;
    border: none;
    color: var(--text-2);
    cursor: pointer;
    padding: 4px;
    display: none;
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-name {
    font-weight: 700;
    font-size: 16px;
}

.topbar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
}

.topbar-status {
    font-size: 13px;
    color: var(--text-3);
}

.messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.messages-inner {
    max-width: 760px;
    margin: 0 auto;
}

.message {
    display: flex;
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

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

.message.assistant {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 560px;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

.message.user .message-bubble {
    background: var(--purple);
    border-bottom-right-radius: 4px;
}

.message.assistant .message-bubble {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 4px;
    padding: 0 4px;
}

.message.user .message-time {
    text-align: right;
}

.message-image {
    max-width: 300px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: block;
}

.message.streaming .message-bubble {
    background: var(--surface-2);
    border: 1px solid rgba(108, 58, 237, 0.2);
}

.welcome {
    text-align: center;
    padding: 120px 20px 60px;
}

.welcome-logo {
    margin-bottom: 24px;
}

.welcome h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.welcome p {
    font-size: 16px;
    color: var(--text-2);
    max-width: 420px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.welcome-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.welcome-chip {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: transparent;
    color: var(--text-2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.welcome-chip:hover {
    border-color: var(--purple);
    color: var(--text);
    background: rgba(108, 58, 237, 0.08);
}

.typing-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 13px;
    color: var(--text-3);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-light);
    animation: dotBounce 1.4s ease-in-out infinite;
}

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

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

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.input-bar {
    padding: 16px 24px 24px;
}

.input-bar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 760px;
    margin: 0 auto;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    min-height: 52px;
    transition: border-color 0.2s;
}

.input-bar-inner:focus-within {
    border-color: rgba(108, 58, 237, 0.4);
}

.input-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-3);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

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

.input-icon-btn.listening {
    color: #EF4444;
}

.input-field-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.photo-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 4px;
}

.photo-preview img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.photo-remove {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#message-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    resize: none;
    padding: 4px 8px;
    max-height: 200px;
    line-height: 1.5;
    height: 32px;
}

#message-input::placeholder {
    color: var(--text-2);
}

.send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

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

.send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* ===== CONFERENCE PAGE (Zoom-style) ===== */
.conf-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #0a0a0a;
    position: relative;
}

.conf-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    z-index: 10;
}

.conf-topbar-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.conf-topbar-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.conf-topbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.conf-topbar-status {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.conf-code-badge {
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.12);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #22C55E;
    letter-spacing: 2px;
    font-family: 'Inter', monospace;
}

.conf-member-count {
    font-size: 12px;
    color: var(--text-3);
}

.conf-topbar-actions {
    display: flex;
    gap: 6px;
}

.conf-body {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

.conf-video-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    min-width: 0;
    padding: 8px;
}

.video-grid {
    width: 100%;
    height: 100%;
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* Dynamic video grid layouts */
.video-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.video-grid.grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.video-grid.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.video-grid.grid-5,
.video-grid.grid-6 {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.video-grid video,
.video-tile {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #131313;
}

.video-tile {
    position: relative;
    overflow: hidden;
}

.video-tile video {
    border-radius: 0;
    object-fit: contain !important;
    max-height: 100%;
}

.video-tile .vt-name {
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
}

.video-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.video-empty-icon {
    color: rgba(255, 255, 255, 0.15);
}

.video-empty p {
    font-size: 14px;
    color: var(--text-3);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: #131313;
    border-radius: 12px;
    color: var(--text-3);
    font-size: 13px;
}

.video-placeholder .vp-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: white;
}

.video-pip {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 160px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-pip video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.video-fullscreen-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.video-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Sidebar */
.conf-sidebar {
    width: 340px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.conf-sidebar.hidden {
    width: 0;
    opacity: 0;
    overflow: hidden;
    border: none;
}

.conf-sidebar-tabs {
    display: flex;
    padding: 8px 8px 0;
    gap: 4px;
}

.conf-stab {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.conf-stab.active {
    background: rgba(99, 102, 241, 0.2);
    color: white;
}

.conf-stab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
}

.conf-sidebar-panel {
    flex: 1;
    display: none;
    flex-direction: column;
    min-height: 0;
}

.conf-sidebar-panel.active {
    display: flex;
}

.conf-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
}

.conf-msg {
    margin-bottom: 10px;
    animation: fadeInUp 0.2s ease;
}

.conf-msg.system {
    text-align: center;
    font-size: 12px;
    color: var(--text-3);
    padding: 4px 0;
}

.conf-msg-sender {
    font-size: 12px;
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 2px;
}

.conf-msg-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}

.conf-msg-time {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
}

.conf-chat-input {
    display: flex;
    gap: 8px;
    padding: 10px 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.conf-chat-input textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    color: white;
    font-family: inherit;
    font-size: 13px;
    resize: none;
    outline: none;
    max-height: 80px;
}

.conf-chat-input textarea::placeholder {
    color: var(--text-3);
}

.conf-send-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.conf-send-btn:hover {
    opacity: 0.85;
}

.conf-canvas-wrap {
    flex: 1;
    padding: 8px;
    min-height: 0;
}

.conf-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: crosshair;
    touch-action: none;
}

.canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 12px;
}

.canvas-colors {
    display: flex;
    gap: 6px;
}

.color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.color-btn.active {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.15);
}

.color-btn:hover:not(.active) {
    transform: scale(1.1);
}

.canvas-clear-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.canvas-clear-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

/* Bottom toolbar */
.conf-toolbar {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 16px 12px;
    z-index: 10;
}

.toolbar-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding-top: 8px;
}

.tb-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    min-width: 64px;
}

.tb-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.tb-btn.off {
    color: #EF4444;
}

.tb-btn.off:hover {
    background: rgba(239, 68, 68, 0.1);
}

.tb-green {
    color: #22C55E;
}

.tb-green:hover {
    background: rgba(34, 197, 94, 0.1);
}

.tb-end {
    color: #EF4444;
}

.tb-end:hover {
    background: rgba(239, 68, 68, 0.1);
}

.rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
}

.tb-btn.recording .rec-dot {
    background: #EF4444;
    animation: recPulse 1s ease-in-out infinite;
}

.tb-btn.recording {
    color: #EF4444;
}

@keyframes recPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.rec-timer {
    font-family: 'Inter', monospace;
    font-size: 10px;
    opacity: 0.6;
}

.emoji-bar {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 8px 0 4px;
}

.emoji-bar button {
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s;
    padding: 4px;
}

.emoji-bar button:hover {
    transform: scale(1.3);
}

.reactions-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
}

.floating-reaction {
    position: absolute;
    font-size: 36px;
    bottom: 100px;
    animation: floatUp 2.2s ease-out forwards;
}

.floating-reaction .fr-name {
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    display: block;
    text-align: center;
    margin-top: 2px;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.6);
    }

    15% {
        transform: translateY(-20px) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translateY(-250px) scale(1);
    }
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
}

.modal-box h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.modal-box p {
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 28px;
}

.modal-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.field::placeholder {
    color: var(--text-3);
}

.field:focus {
    border-color: rgba(108, 58, 237, 0.5);
}

.modal-or {
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
    padding: 4px 0;
    position: relative;
}

.modal-or::before,
.modal-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.modal-or::before {
    left: 0;
}

.modal-or::after {
    right: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 13px;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 100px;
    }

    .feature-block-reverse {
        direction: ltr;
    }

    .hero-text h1 {
        letter-spacing: -1px;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 24px);
        top: 8px;
    }

    .nav-inner {
        padding: 10px 16px;
        border-radius: 16px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 20px 80px;
    }

    .hero-desc {
        font-size: 17px;
    }

    .btn-hero {
        padding: 14px 24px;
        font-size: 15px;
    }

    .features {
        padding: 20px 20px 80px;
    }

    .cta-section {
        padding: 80px 20px;
    }

    .cta-logo {
        width: 80px;
        height: 80px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .chat-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 200;
        transition: left 0.3s ease;
    }

    .chat-sidebar.open {
        left: 0;
    }

    .sidebar-close {
        display: flex;
    }

    .topbar-menu {
        display: flex;
    }

    .messages-area {
        padding: 16px;
    }

    .input-bar {
        padding: 12px 16px 16px;
    }

    .welcome {
        padding: 80px 16px 40px;
    }

    .welcome h2 {
        font-size: 26px;
    }

    /* Conference responsive */
    .conf-body {
        flex-direction: column;
    }

    .conf-sidebar {
        width: 100%;
        max-height: 45vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .conf-sidebar.hidden {
        max-height: 0;
        width: 100%;
    }

    .video-grid video,
    .video-tile video {
        object-fit: contain;
    }

    .video-pip {
        width: 100px;
        height: 75px;
        bottom: 8px;
        right: 8px;
    }

    .video-pip video {
        object-fit: cover;
    }

    .tb-btn span {
        display: none;
    }

    .tb-btn {
        min-width: 44px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .welcome-actions {
        flex-direction: column;
        gap: 8px;
    }

    .welcome-chip {
        text-align: center;
    }
}