/* ==========================================
   AI Chat - Main Stylesheet
   ========================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #faf6f2 0%, #f5efe8 50%, #f0e9e0 100%);
    color: #5a4a42;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Semi-transparent flower background */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 90%;
    background-image: url('../images/flower-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right bottom;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   Header
   ========================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, #faf6f2, transparent);
}

.home-btn {
    background: linear-gradient(180deg, #ffffff 0%, #faf6f2 50%, #f0e9e0 100%);
    border: none;
    color: #6b5344;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 
        0 3px 6px rgba(139, 115, 85, 0.2),
        0 6px 12px rgba(139, 115, 85, 0.15),
        inset 0 -2px 4px rgba(139, 115, 85, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 5px 10px rgba(139, 115, 85, 0.3),
        0 10px 20px rgba(139, 115, 85, 0.2),
        inset 0 -2px 4px rgba(139, 115, 85, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.home-btn svg {
    width: 18px;
    height: 18px;
}

/* Subscription Badge */
.subscription-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #faf6f2 50%, #f0e9e0 100%);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #6b5344;
    box-shadow: 
        0 2px 4px rgba(139, 115, 85, 0.15),
        0 4px 8px rgba(139, 115, 85, 0.1),
        inset 0 -1px 3px rgba(139, 115, 85, 0.08),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

.subscription-badge.pro {
    background: linear-gradient(180deg, #fff9e6 0%, #fff3cc 50%, #ffe699 100%);
    color: #8b6914;
}

.subscription-badge.unlimited {
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    color: #2e7d32;
}

.badge-icon {
    font-size: 14px;
}

.badge-text {
    white-space: nowrap;
}

/* ==========================================
   Cloud Buttons
   ========================================== */
.try-free-btn {
    background: linear-gradient(180deg, #ffffff 0%, #faf6f2 50%, #f0e9e0 100%);
    color: #8b6914;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 4px 8px rgba(139, 115, 85, 0.2),
        0 8px 16px rgba(139, 115, 85, 0.15),
        0 12px 24px rgba(139, 115, 85, 0.1),
        inset 0 -2px 6px rgba(139, 115, 85, 0.1),
        inset 0 2px 6px rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.3s ease;
}

.try-free-btn::before {
    content: '✨';
    margin-right: 4px;
}

.try-free-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 12px rgba(139, 115, 85, 0.3),
        0 12px 24px rgba(139, 115, 85, 0.2),
        0 18px 36px rgba(139, 115, 85, 0.15),
        inset 0 -2px 6px rgba(139, 115, 85, 0.15),
        inset 0 2px 6px rgba(255, 255, 255, 0.9);
}

.try-free-btn svg {
    width: 16px;
    height: 16px;
    color: #8b6914;
}

/* ==========================================
   Main Content & Greeting
   ========================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 200px;
}

.greeting {
    text-align: left;
    width: 100%;
    max-width: 680px;
    margin-bottom: 200px;
    position: relative;
    z-index: 1;
}

.greeting h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #6b5344;
}

.greeting h1::after {
    content: '';
}

.greeting p {
    font-size: 28px;
    color: #8b7355;
    font-weight: 400;
}

.greeting .voice-hint {
    font-size: 16px;
    color: #a89078;
    font-weight: 400;
    margin-top: 16px;
    opacity: 0.85;
}

/* ==========================================
   Bottom Section
   ========================================== */
.bottom-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, #faf6f2 30%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

/* ==========================================
   Suggestion Cards
   ========================================== */
.suggestions-title {
    max-width: 680px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #8b7355;
    margin-bottom: 12px;
    font-weight: 500;
}

.suggestions-title.hidden {
    display: none;
}

.suggestions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 680px;
    width: 100%;
    margin-bottom: 16px;
}

.suggestion-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 50%, #f5f0ea 100%);
    border: none;
    border-radius: 30px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 
        0 4px 8px rgba(139, 115, 85, 0.15),
        0 8px 16px rgba(139, 115, 85, 0.1),
        0 12px 24px rgba(139, 115, 85, 0.05),
        inset 0 -2px 6px rgba(139, 115, 85, 0.08),
        inset 0 2px 6px rgba(255, 255, 255, 0.9);
}

.suggestion-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 6px 12px rgba(139, 115, 85, 0.2),
        0 12px 24px rgba(139, 115, 85, 0.15),
        0 18px 36px rgba(139, 115, 85, 0.1),
        inset 0 -2px 6px rgba(139, 115, 85, 0.1),
        inset 0 2px 6px rgba(255, 255, 255, 1);
}

.suggestion-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b5344;
    margin-bottom: 4px;
}

.suggestion-card h3::before {
    content: '';
}

.suggestion-card p {
    font-size: 14px;
    color: #8b7355;
}

/* ==========================================
   Input Area
   ========================================== */
.input-container {
    max-width: 680px;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 50%, #f5f0ea 100%);
    border: none;
    border-radius: 35px;
    padding: 16px 20px;
    box-shadow: 
        0 4px 8px rgba(139, 115, 85, 0.15),
        0 8px 16px rgba(139, 115, 85, 0.1),
        0 12px 24px rgba(139, 115, 85, 0.05),
        inset 0 -2px 6px rgba(139, 115, 85, 0.08),
        inset 0 2px 6px rgba(255, 255, 255, 0.9);
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-input {
    background: none;
    border: none;
    color: #4a3040;
    font-size: 16px;
    outline: none;
    width: 100%;
    resize: none;
}

.message-input::placeholder {
    color: #b0a090;
}

.input-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Model Section with Voice Toggle */
.model-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* Voice Response Toggle */
.voice-response-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 12px;
    background: transparent;
    transition: all 0.3s;
}

.voice-response-toggle:hover {
    background: rgba(139, 115, 85, 0.1);
}

.voice-response-toggle input {
    display: none;
}

.toggle-checkmark {
    width: 14px;
    height: 14px;
    border: 1.5px solid #a08060;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toggle-checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s;
}

.voice-response-toggle input:checked + .toggle-checkmark {
    background: linear-gradient(180deg, #8b7355 0%, #6b5344 100%);
    border-color: #6b5344;
}

.voice-response-toggle input:checked + .toggle-checkmark::after {
    transform: rotate(45deg) scale(1);
}

.toggle-label {
    font-size: 11px;
    color: #a08060;
    font-weight: 500;
}

.model-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #8b7355;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
}

.model-selector svg {
    width: 16px;
    height: 16px;
}

.send-btn {
    background: linear-gradient(180deg, #ffffff 0%, #faf6f2 50%, #f0e9e0 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 
        0 3px 6px rgba(139, 115, 85, 0.2),
        0 6px 12px rgba(139, 115, 85, 0.15),
        0 9px 18px rgba(139, 115, 85, 0.1),
        inset 0 -2px 4px rgba(139, 115, 85, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.send-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 
        0 5px 10px rgba(139, 115, 85, 0.3),
        0 10px 20px rgba(139, 115, 85, 0.2),
        0 15px 30px rgba(139, 115, 85, 0.15),
        inset 0 -2px 4px rgba(139, 115, 85, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.send-btn svg {
    width: 18px;
    height: 18px;
    color: #6b5344;
}

/* Voice Input Button */
.voice-btn {
    background: linear-gradient(180deg, #ffffff 0%, #faf6f2 50%, #f0e9e0 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 
        0 3px 6px rgba(139, 115, 85, 0.2),
        0 6px 12px rgba(139, 115, 85, 0.15),
        0 9px 18px rgba(139, 115, 85, 0.1),
        inset 0 -2px 4px rgba(139, 115, 85, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.voice-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 
        0 5px 10px rgba(139, 115, 85, 0.3),
        0 10px 20px rgba(139, 115, 85, 0.2),
        0 15px 30px rgba(139, 115, 85, 0.15),
        inset 0 -2px 4px rgba(139, 115, 85, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.voice-btn svg {
    width: 18px;
    height: 18px;
    color: #6b5344;
}

.voice-btn.listening {
    background: linear-gradient(180deg, #ffe5e5 0%, #ffcccc 50%, #ff9999 100%);
    animation: pulse-voice 1.5s ease-in-out infinite;
}

.voice-btn.listening svg {
    color: #c0392b;
}

@keyframes pulse-voice {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 3px 6px rgba(192, 57, 43, 0.3),
            0 6px 12px rgba(192, 57, 43, 0.2);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 
            0 5px 10px rgba(192, 57, 43, 0.4),
            0 10px 20px rgba(192, 57, 43, 0.3);
    }
}

/* ==========================================
   Pricing Page
   ========================================== */
.pricing-page {
    display: none;
    min-height: 100vh;
    padding: 60px 20px;
    flex-direction: column;
    align-items: center;
}

.pricing-page.active {
    display: flex;
}

.chat-page.hidden {
    display: none;
}

.pricing-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: #6b5344;
}

.pricing-title::before {
    content: '';
}

.pricing-title::after {
    content: '';
}

.pricing-cards {
    display: flex;
    gap: 20px;
    max-width: 1100px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 50%, #f5f0ea 100%);
    border: none;
    border-radius: 40px;
    padding: 32px 28px;
    width: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 6px 12px rgba(139, 115, 85, 0.15),
        0 12px 24px rgba(139, 115, 85, 0.1),
        0 18px 36px rgba(139, 115, 85, 0.05),
        inset 0 -3px 8px rgba(139, 115, 85, 0.08),
        inset 0 3px 8px rgba(255, 255, 255, 0.9);
}

.pricing-card.featured {
    position: relative;
    transform: scale(1.04);
    box-shadow: 
        0 8px 16px rgba(139, 115, 85, 0.2),
        0 16px 32px rgba(139, 115, 85, 0.15),
        0 24px 48px rgba(139, 115, 85, 0.1),
        inset 0 -3px 8px rgba(139, 115, 85, 0.12),
        inset 0 3px 8px rgba(255, 255, 255, 1);
}

.plan-name {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    color: #6b5344;
}

.plan-price {
    text-align: center;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 42px;
    font-weight: 700;
    color: #6b5344;
}

.price-currency {
    font-size: 18px;
    color: #a08060;
    vertical-align: top;
}

.price-period {
    font-size: 14px;
    color: #a08060;
}

.plan-description {
    text-align: center;
    font-size: 13px;
    color: #8b7355;
    margin-bottom: 4px;
}

.plan-savings {
    text-align: center;
    font-size: 13px;
    color: #8b6914;
    margin-bottom: 20px;
    height: 18px;
}

.plan-btn {
    background: linear-gradient(180deg, #ffffff 0%, #faf6f2 50%, #f0e9e0 100%);
    color: #6b5344;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.3s;
    box-shadow: 
        0 4px 8px rgba(139, 115, 85, 0.2),
        0 8px 16px rgba(139, 115, 85, 0.15),
        0 12px 24px rgba(139, 115, 85, 0.1),
        inset 0 -2px 6px rgba(139, 115, 85, 0.1),
        inset 0 2px 6px rgba(255, 255, 255, 0.8);
}

.plan-btn::before {
    content: '✨ ';
}

.plan-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 12px rgba(139, 115, 85, 0.3),
        0 12px 24px rgba(139, 115, 85, 0.2),
        0 18px 36px rgba(139, 115, 85, 0.15),
        inset 0 -2px 6px rgba(139, 115, 85, 0.15),
        inset 0 2px 6px rgba(255, 255, 255, 0.9);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #5a4a42;
    line-height: 1.4;
}

.plan-features li svg {
    width: 16px;
    height: 16px;
    color: #8b6914;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon {
    color: #ffb347;
}

.return-link {
    margin-top: 40px;
    color: #8b7355;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.return-link:hover {
    color: #6b5344;
}

/* ==========================================
   Payment Page
   ========================================== */
.payment-page {
    display: none;
    min-height: 100vh;
    padding: 60px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.payment-page.active {
    display: flex;
}

.payment-container {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 50%, #f5f0ea 100%);
    border: none;
    border-radius: 40px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 
        0 8px 16px rgba(139, 115, 85, 0.15),
        0 16px 32px rgba(139, 115, 85, 0.1),
        0 24px 48px rgba(139, 115, 85, 0.05),
        inset 0 -3px 8px rgba(139, 115, 85, 0.08),
        inset 0 3px 8px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.payment-header {
    text-align: center;
    margin-bottom: 32px;
}

.payment-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #6b5344;
}

.payment-title::before {
    content: '';
}

.payment-plan {
    color: #8b6914;
    font-size: 16px;
    font-weight: 500;
}

.payment-amount {
    font-size: 36px;
    font-weight: 700;
    margin-top: 12px;
    color: #6b5344;
}

.payment-amount span {
    font-size: 16px;
    color: #a08060;
    font-weight: 400;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #8b7355;
    font-weight: 500;
}

.form-group input {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    border: none;
    border-radius: 25px;
    padding: 14px 20px;
    font-size: 16px;
    color: #5a4a42;
    outline: none;
    transition: all 0.3s;
    box-shadow: 
        0 2px 4px rgba(139, 115, 85, 0.1),
        0 4px 8px rgba(139, 115, 85, 0.05),
        inset 0 -1px 3px rgba(139, 115, 85, 0.08),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    box-shadow: 
        0 3px 6px rgba(139, 115, 85, 0.15),
        0 6px 12px rgba(139, 115, 85, 0.1),
        inset 0 -1px 3px rgba(139, 115, 85, 0.1),
        inset 0 1px 3px rgba(255, 255, 255, 1);
}

.form-group input::placeholder {
    color: #b0a090;
}

/* Promo Code Styles */
.promo-group {
    margin-top: 8px;
}

.promo-input-wrapper {
    display: flex;
    gap: 10px;
}

.promo-input-wrapper input {
    flex: 1;
}

.promo-apply-btn {
    background: linear-gradient(180deg, #ffffff 0%, #faf6f2 50%, #f0e9e0 100%);
    border: none;
    border-radius: 25px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b5344;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 
        0 2px 4px rgba(139, 115, 85, 0.15),
        0 4px 8px rgba(139, 115, 85, 0.1),
        inset 0 -1px 3px rgba(139, 115, 85, 0.08),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

.promo-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 3px 6px rgba(139, 115, 85, 0.2),
        0 6px 12px rgba(139, 115, 85, 0.15),
        inset 0 -1px 3px rgba(139, 115, 85, 0.1),
        inset 0 1px 3px rgba(255, 255, 255, 1);
}

.promo-message {
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

.promo-message.success {
    color: #27ae60;
}

.promo-message.error {
    color: #e74c3c;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card-icons {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.card-icon {
    width: 40px;
    height: 26px;
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #333;
}

.card-icon.visa {
    background: linear-gradient(135deg, #1a1f71, #0066b2);
    color: #fff;
}

.card-icon.mastercard {
    background: linear-gradient(135deg, #eb001b, #f79e1b);
    color: #fff;
}

.card-icon.amex {
    background: #006fcf;
    color: #fff;
}

.card-icon.mir {
    background: linear-gradient(135deg, #4db45e, #0f754e);
    color: #fff;
}

.card-icon.sbp {
    background: linear-gradient(135deg, #5c2d91, #1e3a8a);
    color: #fff;
    font-size: 9px;
}

.pay-btn {
    background: linear-gradient(180deg, #ffffff 0%, #faf6f2 50%, #f0e9e0 100%);
    color: #6b5344;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s;
    box-shadow: 
        0 4px 8px rgba(139, 115, 85, 0.2),
        0 8px 16px rgba(139, 115, 85, 0.15),
        0 12px 24px rgba(139, 115, 85, 0.1),
        inset 0 -2px 6px rgba(139, 115, 85, 0.1),
        inset 0 2px 6px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pay-btn::before {
    content: '✨';
    margin-right: 4px;
}

.pay-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 12px rgba(139, 115, 85, 0.3),
        0 12px 24px rgba(139, 115, 85, 0.2),
        0 18px 36px rgba(139, 115, 85, 0.15),
        inset 0 -2px 6px rgba(139, 115, 85, 0.15),
        inset 0 2px 6px rgba(255, 255, 255, 0.9);
}

.pay-btn svg {
    width: 20px;
    height: 20px;
    color: #6b5344;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: #8b7355;
    font-size: 13px;
}

.secure-note svg {
    width: 16px;
    height: 16px;
    color: #8b6914;
}

.payment-back {
    margin-top: 24px;
    color: #8b7355;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    text-align: center;
    display: block;
}

.payment-back:hover {
    color: #6b5344;
}

/* Payment Success */
.payment-success {
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

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

.payment-success h2 {
    font-size: 28px;
    color: #6b5344;
    margin-bottom: 12px;
}

.success-message {
    font-size: 16px;
    color: #8b7355;
    margin-bottom: 24px;
}

.receipt-details {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
    font-size: 14px;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-row span:first-child {
    color: #8b7355;
}

.receipt-row span:last-child {
    color: #5a4a42;
    font-weight: 500;
}

/* ==========================================
   Chat Messages
   ========================================== */
.chat-messages {
    display: none;
    flex-direction: column;
    gap: 24px;
    max-width: 680px;
    width: 100%;
    padding: 80px 20px 220px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.chat-messages.active {
    display: flex;
}

.main-content.hidden {
    display: none;
}

.suggestions.hidden {
    display: none;
}

.message {
    display: flex;
    gap: 16px;
    animation: fadeIn 0.3s ease;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 50%, #f5f0ea 100%);
    padding: 20px;
    border-radius: 30px;
    box-shadow: 
        0 4px 8px rgba(139, 115, 85, 0.12),
        0 8px 16px rgba(139, 115, 85, 0.08),
        inset 0 -2px 6px rgba(139, 115, 85, 0.06),
        inset 0 2px 6px rgba(255, 255, 255, 0.9);
}

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

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #a08060, #8b7355);
    color: #fff;
}

.message.assistant .message-avatar {
    background: linear-gradient(135deg, #e8ddd0, #d4c4b0);
    color: #6b5344;
}

.message-content {
    flex: 1;
    padding-top: 6px;
}

.message-role {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #6b5344;
}

.message-text {
    font-size: 15px;
    line-height: 1.6;
    color: #5a4a42;
}

.message-text p {
    margin-bottom: 12px;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text pre {
    background: #f5f0ea;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
}

.message-text code {
    background: #f5f0ea;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.message-text pre code {
    background: none;
    padding: 0;
}

.message-text a {
    color: #8b6914;
    text-decoration: underline;
}

.message-text strong {
    color: #6b5344;
}

/* Voice Message Styles */
.voice-message {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.voice-message-player {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    padding: 12px 16px;
    border-radius: 20px;
    box-shadow: 
        0 2px 4px rgba(139, 115, 85, 0.1),
        inset 0 -1px 3px rgba(139, 115, 85, 0.05),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

.voice-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(180deg, #8b7355 0%, #6b5344 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.voice-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.voice-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
    flex: 1;
}

.voice-waveform span {
    width: 3px;
    background: linear-gradient(180deg, #8b7355 0%, #a08060 100%);
    border-radius: 3px;
    height: 8px;
    transition: height 0.1s ease;
}

.voice-waveform span:nth-child(1) { height: 8px; }
.voice-waveform span:nth-child(2) { height: 14px; }
.voice-waveform span:nth-child(3) { height: 20px; }
.voice-waveform span:nth-child(4) { height: 12px; }
.voice-waveform span:nth-child(5) { height: 24px; }
.voice-waveform span:nth-child(6) { height: 16px; }
.voice-waveform span:nth-child(7) { height: 28px; }
.voice-waveform span:nth-child(8) { height: 18px; }
.voice-waveform span:nth-child(9) { height: 22px; }
.voice-waveform span:nth-child(10) { height: 10px; }
.voice-waveform span:nth-child(11) { height: 26px; }
.voice-waveform span:nth-child(12) { height: 14px; }
.voice-waveform span:nth-child(13) { height: 20px; }
.voice-waveform span:nth-child(14) { height: 8px; }
.voice-waveform span:nth-child(15) { height: 18px; }
.voice-waveform span:nth-child(16) { height: 24px; }
.voice-waveform span:nth-child(17) { height: 12px; }
.voice-waveform span:nth-child(18) { height: 16px; }
.voice-waveform span:nth-child(19) { height: 22px; }
.voice-waveform span:nth-child(20) { height: 10px; }

.voice-waveform.playing span {
    animation: waveformBounce 0.5s ease-in-out infinite;
}

.voice-waveform.playing span:nth-child(odd) {
    animation-delay: 0.1s;
}

.voice-waveform.playing span:nth-child(3n) {
    animation-delay: 0.2s;
}

.voice-waveform.playing span:nth-child(5n) {
    animation-delay: 0.3s;
}

@keyframes waveformBounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

.voice-duration {
    font-size: 13px;
    color: #8b7355;
    font-weight: 500;
    min-width: 35px;
    text-align: right;
}

.voice-transcript {
    padding: 10px 14px;
    background: rgba(139, 115, 85, 0.05);
    border-radius: 12px;
    border-left: 3px solid #a08060;
}

.transcript-label {
    font-size: 11px;
    color: #a08060;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.voice-transcript p {
    font-size: 14px;
    color: #5a4a42;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   Typing Indicator
   ========================================== */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #a08060;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.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); }
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 600px) {
    .suggestions {
        grid-template-columns: 1fr;
    }

    .greeting h1,
    .greeting p {
        font-size: 22px;
    }
}

@media (max-width: 1000px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }
}

@media (max-width: 500px) {
    .payment-container {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Promo Popup
   ========================================== */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.promo-popup-overlay.active {
    display: flex;
}

.promo-popup {
    background: #ffffff;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.promo-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.promo-popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

.promo-popup-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    margin: -32px -32px 24px -32px;
    padding: 28px 32px;
    border-radius: 24px 24px 0 0;
}

.promo-popup-header h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.promo-popup-price {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-left: 8px;
}

.promo-price-main {
    font-size: 72px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
}

.promo-price-old {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.promo-price-crossed {
    font-size: 24px;
    color: #a0aec0;
    text-decoration: line-through;
}

.promo-price-savings {
    font-size: 18px;
    color: #1a202c;
    font-weight: 500;
}

.promo-popup-features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 16px;
    padding: 20px 16px;
    margin-bottom: 28px;
}

.promo-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.promo-feature svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
    opacity: 0.9;
}

.promo-feature span {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.3;
}

.promo-feature-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.promo-popup-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.promo-pay-btn {
    flex: 1;
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.promo-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
}

.promo-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 14px;
}

.promo-secure svg {
    color: #4a5568;
}

.promo-popup-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promo-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.promo-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.promo-checkbox-custom {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #ffffff;
}

.promo-checkbox input:checked + .promo-checkbox-custom {
    background: #38a169;
    border-color: #38a169;
}

.promo-checkbox input:checked + .promo-checkbox-custom::after {
    content: '✓';
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.promo-checkbox:hover .promo-checkbox-custom {
    border-color: #cbd5e0;
}

.promo-checkbox-text {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}

/* Promo popup responsive */
@media (max-width: 520px) {
    .promo-popup {
        padding: 20px;
        margin: 10px;
    }

    .promo-popup-header {
        margin: -20px -20px 20px -20px;
        padding: 20px;
    }

    .promo-popup-header h2 {
        font-size: 18px;
    }

    .promo-price-main {
        font-size: 56px;
    }

    .promo-popup-features {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .promo-feature-divider {
        width: 80%;
        height: 1px;
    }

    .promo-popup-actions {
        flex-direction: column;
        gap: 12px;
    }

    .promo-pay-btn {
        width: 100%;
    }
}

/* ==========================================
   Name Popup (Welcome)
   ========================================== */
.name-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.name-popup-overlay.hidden {
    display: none;
}

.name-popup {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(139, 115, 85, 0.1);
    animation: popupSlideIn 0.4s ease;
}

.name-popup-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.name-popup h2 {
    font-size: 28px;
    color: #6b5344;
    margin-bottom: 8px;
    font-weight: 600;
}

.name-popup p {
    font-size: 16px;
    color: #8b7355;
    margin-bottom: 24px;
}

.name-popup input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    color: #5a4a42;
    outline: none;
    margin-bottom: 20px;
    box-shadow: 
        0 2px 4px rgba(139, 115, 85, 0.1),
        0 4px 8px rgba(139, 115, 85, 0.05),
        inset 0 -1px 3px rgba(139, 115, 85, 0.08),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.name-popup input:focus {
    box-shadow: 
        0 3px 6px rgba(139, 115, 85, 0.15),
        0 6px 12px rgba(139, 115, 85, 0.1),
        inset 0 -1px 3px rgba(139, 115, 85, 0.1),
        inset 0 1px 3px rgba(255, 255, 255, 1);
}

.name-popup input::placeholder {
    color: #b0a090;
}

.name-popup-btn {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(180deg, #6b5344 0%, #5a4a42 100%);
    color: #ffffff;
    transition: all 0.3s;
    box-shadow: 
        0 4px 12px rgba(107, 83, 68, 0.3),
        0 8px 20px rgba(107, 83, 68, 0.2);
}

.name-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(107, 83, 68, 0.4),
        0 12px 28px rgba(107, 83, 68, 0.25);
}

@media (max-width: 440px) {
    .name-popup {
        padding: 30px 20px;
    }
    
    .name-popup h2 {
        font-size: 24px;
    }
}
