/* =============================================
   НУМЕРОЛОГИЯ - Стили сайта
   ============================================= */

:root {
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-dark: #5b21b6;
    --gold: #f59e0b;
    --gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
}

/* ---- GENERAL ---- */
body { font-family: 'Segoe UI', sans-serif; background: #f8f7ff; }

.text-purple { color: var(--purple) !important; }
.bg-purple   { background: var(--purple) !important; }

.btn-purple {
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all .3s;
}
.btn-purple:hover {
    opacity: .9;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124,58,237,.35);
}

.btn-outline-purple {
    color: var(--purple);
    border: 2px solid var(--purple);
    border-radius: 12px;
    font-weight: 600;
    background: transparent;
    transition: all .3s;
}
.btn-outline-purple:hover {
    background: var(--purple);
    color: #fff;
}

/* ---- NAVBAR ---- */
.navbar-brand { font-size: 1.4rem; letter-spacing: .5px; }

/* ---- HERO ---- */
.hero-section {
    background: var(--gradient);
    position: relative;
    padding-bottom: 80px !important;
}
.hero-emoji { font-size: 4rem; animation: float 3s ease-in-out infinite; }
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.hero-waves {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f8f7ff' d='M0,40 C360,80 1080,0 1440,40 L1440,60 L0,60 Z'/%3E%3C/svg%3E") bottom/cover;
}

/* ---- FEATURES ---- */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

/* ---- CHATBOT ---- */
.chatbot-container {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(124,58,237,.15);
    background: #fff;
    overflow: hidden;
    border: 1px solid #e9d5ff;
}

.chat-messages {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #faf5ff;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
}
.chat-message.bot  { justify-content: flex-start; }
.chat-message.user { justify-content: flex-end; }

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: .92rem;
    line-height: 1.5;
}
.chat-message.bot .chat-bubble {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-bottom-left-radius: 4px;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.chat-message.user .chat-bubble {
    background: var(--gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #f3e8ff;
}
.chat-input-area .form-control {
    border-radius: 12px 0 0 12px;
    border-color: #e9d5ff;
    font-size: .9rem;
}
.chat-input-area .form-control:focus {
    box-shadow: none;
    border-color: var(--purple);
}
.chat-input-area .btn-purple {
    border-radius: 0 12px 12px 0;
    padding: 0 18px;
}

/* Typing indicator */
.typing-dots span {
    display: inline-block;
    width: 7px; height: 7px;
    background: var(--purple-light);
    border-radius: 50%;
    margin: 0 2px;
    animation: typing .8s infinite alternate;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
    from { transform: translateY(0); opacity: .5; }
    to   { transform: translateY(-5px); opacity: 1; }
}

/* ---- RESULT CARD ---- */
.result-card { padding: 20px; }
.result-avatar {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.life-path-number {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.matrix-table td {
    width: 33%;
    font-size: 1.1rem;
    padding: 10px 5px !important;
    background: #faf5ff;
}
.matrix-table tr:nth-child(2) td { background: #f3e8ff; }

/* ---- CHAKRA VISUAL ---- */
.chakra-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.chakra-circle {
    padding: 10px 25px;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    background: var(--color, #7c3aed);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transition: transform .2s;
    cursor: default;
}
.chakra-circle:hover { transform: scale(1.05); }

/* ---- PLAN CARDS ---- */
.plan-card {
    border-radius: 20px;
    border: 2px solid #e9d5ff;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(124,58,237,.2); }
.plan-popular { border-color: var(--purple); }
.plan-badge {
    position: absolute;
    top: 15px; right: -25px;
    background: var(--gradient);
    color: #fff;
    padding: 4px 35px;
    font-size: .8rem;
    font-weight: 700;
    transform: rotate(45deg);
}
.plan-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: #374151;
    line-height: 1.2;
}
.plan-card ul li { padding: 4px 0; font-size: .9rem; }

/* ---- KASPI BADGE ---- */
.kaspi-badge {
    display: inline-flex;
    align-items: center;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: .9rem;
    gap: 8px;
}

/* ---- PROGRESS BAR ---- */
.progress { border-radius: 10px; background: #f3e8ff; }
.progress-bar { border-radius: 10px; }

/* ---- SCROLLBAR ---- */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #e9d5ff; border-radius: 2px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .display-4 { font-size: 2rem; }
    .hero-section { padding: 40px 0 80px; }
    .plan-card { margin-bottom: 1rem; }
}
