/* ===== ROOT VARIABLES ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0e27;
    --darker-bg: #070b1f;
    --card-bg: rgba(15, 23, 42, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.1);
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 14px;

.human-avatar {
    object-fit: cover;
    filter: saturate(1.05);
}

.avatar-mouth {
    position: absolute;
    bottom: 74px; /* approximate location relative to dicebear face */
    left: 50%;
    width: 54px;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 40px/18px;
    background: linear-gradient(180deg,#d34d6b 0%, #8b1b35 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity .18s, transform .18s;
    pointer-events: none;
}

.speaking .avatar-mouth {
    opacity: 1;
    animation: mouthTalk .35s linear infinite;
}

@keyframes mouthTalk {
    0%,100% { transform: translateX(-50%) scaleY(0.25); }
    35% { transform: translateX(-50%) scaleY(1); }
    55% { transform: translateX(-50%) scaleY(0.55); }
    75% { transform: translateX(-50%) scaleY(0.9); }
}
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.loader-percentage {
    font-size: 32px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ===== HEADER ===== */
.avatar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

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

.header-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--card-bg);
    border-color: rgba(102, 126, 234, 0.5);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    padding: 80px 50px;
    overflow: hidden;
}

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

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #667eea;
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #764ba2;
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #4facfe;
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== AVATAR DISPLAY ===== */
.avatar-display {
    text-align: center;
    flex-shrink: 0;
}

.avatar-circle {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 0 auto 30px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--card-bg);
    border: 4px solid rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 2;
    animation: avatarBreathe 4s ease-in-out infinite;
}

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

.avatar-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.avatar-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--darker-bg), var(--darker-bg)) padding-box,
                var(--primary-gradient) border-box;
    animation: rotate 10s linear infinite;
}

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

.avatar-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.avatar-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-3px);
}

.avatar-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-color);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== HERO TEXT ===== */
.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
}

/* ===== CHAT SECTION ===== */
.chat-section {
    padding: 60px 50px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.chat-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 700px;
}

.chat-header {
    padding: 25px 30px;
    background: rgba(102, 126, 234, 0.05);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.chat-mode {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
}

.chat-header-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 10px;
}

.chat-welcome {
    text-align: center;
    padding: 40px 20px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 20px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s ease-in-out infinite;
}

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

.chat-welcome h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

.chat-welcome p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.quick-action-btn {
    padding: 15px 20px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.quick-action-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Chat Messages */
.message {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    animation: slideIn 0.3s ease-out;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.message-sender {
    font-weight: 600;
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.message-text {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px 18px;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 15px;
}

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

.message.user .message-text {
    background: var(--primary-gradient);
}

.message-text.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 15px 30px;
}

.typing-indicator.active {
    display: flex;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.6);
    animation: typing 1.4s ease-in-out infinite;
}

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

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

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

/* Chat Input */
.chat-input-container {
    padding: 20px 30px;
    background: rgba(102, 126, 234, 0.03);
    border-top: 1px solid var(--border-color);
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 15px;
    transition: border-color 0.3s;
}

.chat-input-wrapper:focus-within {
    border-color: rgba(102, 126, 234, 0.5);
}

.input-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.input-action-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
}

.input-action-btn.recording {
    color: var(--error-color);
    animation: pulse-red 1s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    outline: none;
}

.chat-input::placeholder {
    color: var(--text-secondary);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    flex-shrink: 0;
}

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

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== FEATURES PANEL ===== */
.features-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CALL MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.modal-overlay.active {
    display: flex;
}

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

.modal-content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--error-color);
    color: white;
}

.call-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    position: relative;
}

.call-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(102, 126, 234, 0.3);
}

.call-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--success-color);
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

.call-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.call-status {
    color: var(--success-color);
    font-size: 16px;
    margin-bottom: 10px;
}

.call-duration {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.call-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.call-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mute-btn,
.speaker-btn {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
}

.mute-btn:hover,
.speaker-btn:hover {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.end-call-btn {
    background: var(--error-color);
    color: white;
}

.end-call-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ===== VIDEO CALL MODAL ===== */
.video-call-modal {
    max-width: 900px;
    padding: 30px;
}

.video-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 30px;
    min-height: 500px;
}

.main-video {
    position: relative;
    background: var(--darker-bg);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.ai-video-placeholder {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(102, 126, 234, 0.3);
}

.video-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--success-color);
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

.user-video {
    position: relative;
    background: var(--darker-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

#userVideoStream {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-off-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--darker-bg);
    color: var(--text-secondary);
    gap: 15px;
}

.camera-off-placeholder svg {
    opacity: 0.5;
}

.camera-off-placeholder p {
    font-size: 14px;
    font-weight: 500;
}

.video-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.user-label {
    background: rgba(102, 126, 234, 0.8);
}

.video-info {
    text-align: center;
    margin-bottom: 20px;
}

.video-info .call-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.video-info .call-status {
    font-size: 14px;
    margin-bottom: 5px;
}

.video-info .call-duration {
    font-size: 20px;
    margin-bottom: 0;
}

.camera-btn {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
}

.camera-btn:hover {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.camera-btn.camera-off {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.muted {
    background: rgba(239, 68, 68, 0.2) !important;
    color: var(--error-color) !important;
}

/* Video Call Chat Input */
.video-chat-input {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.video-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.video-input:focus {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(15, 23, 42, 0.9);
}

.video-input::placeholder {
    color: var(--text-secondary);
}

.video-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary-gradient);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.video-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.video-send-btn:active {
    transform: scale(0.95);
}

/* ===== CHARACTER SELECT MODAL ===== */
.character-modal {
    max-width: 900px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 10px;
}

.character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.character-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0,0,0,.35);
    border-color: rgba(102, 126, 234, 0.5);
}

.character-card img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid rgba(102, 126, 234, 0.35);
}

.character-name {
    font-size: 14px;
    color: var(--text-primary);
}

.inline-note {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .chat-section {
        grid-template-columns: 1fr;
    }
    
    .features-panel {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .feature-card {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .avatar-header {
        padding: 15px 20px;
    }
    
    .header-nav {
        display: none;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .avatar-circle {
        width: 200px;
        height: 200px;
    }
    
    .chat-section {
        padding: 30px 20px;
    }
    
    .chat-container {
        height: 600px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .user-video {
        height: 300px;
    }
    
    .main-video {
        height: 400px;
    }
    
    .call-controls {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .call-btn {
        width: 50px;
        height: 50px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .video-call-modal {
        max-width: 95%;
    }
}
