* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

/* ===== Верхняя glass-капсула ===== */
.top-bar {
    width: 92%;
    height: 35px;
    margin-top: 18px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.title {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.9;
}

/* Кнопки справа */
.nav-buttons {
    position: absolute;
    right: 10px;
    display: flex;
    gap: 10px;
}

/* ===== ЕДИНЫЙ СТИЛЬ КНОПОК ===== */
.btn {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(14px);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 6px 16px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.25);
}

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

/* Круглые кнопки */
.circle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Обычные кнопки */
button, .upload {
    padding: 12px 22px;
    border-radius: 16px;
    font-size: 15px;
}

/* ===== Страницы ===== */
.page {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hidden { display: none; }

.card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.avatar { font-size: 60px; margin-bottom: 10px; }

.chat-box {
    width: 300px;
    height: 150px;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

/* ===== Рисовалка ===== */
canvas {
    border-radius: 22px;
    background: black;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.controls { display: flex; gap: 15px; }

textarea {
    width: 600px;
    height: 300px;
    border-radius: 22px;
    border: none;
    padding: 15px;
    background: rgba(0,0,0,0.65);
    color: #00ff88;
    font-family: monospace;
    font-size: 10px;
    resize: none;
}
