/* ===========================
   GLOBAL RESET & BASE
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    color: #f5f5ff;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #7b5cff 0%, #0b0b16 45%, #05050a 100%);
}

/* ===========================
   BUTTONS (UPDATED)
=========================== */
.btn,
button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.12s ease, opacity 0.2s ease;
}

/* Press animation */
.btn:active,
button:active {
    transform: scale(0.96);
    opacity: 0.85;
}

/* Loading state */
.btn.loading,
button.loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.btn.loading::after,
button.loading::after {
    content: "...";
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* Button styles */
.btn.primary {
    background: linear-gradient(135deg, #7b5cff, #c86bff);
    color: #fff;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #f5f5ff;
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f5f5ff;
}

.btn.outline {
    background: transparent;
    border: 1px solid #7b5cff;
    color: #f5f5ff;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
    padding: 60px 20px 40px;
    text-align: center;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.hero p {
    font-size: 1.05rem;
    color: #d6d6ff;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===========================
   SECTIONS
=========================== */
.section {
    padding: 40px 20px;
    text-align: center;
    background: rgba(10, 10, 20, 0.9);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.section p {
    max-width: 640px;
    margin: 0 auto 20px;
    color: #d0d0f5;
}

/* ===========================
   CARDS
=========================== */
.cards,
.billing-plans,
.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.card {
    background: rgba(20, 20, 35, 0.95);
    border-radius: 12px;
    padding: 18px 16px;
    width: 260px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.card p {
    font-size: 0.95rem;
    color: #d0d0f5;
}

.price {
    margin-top: 8px;
    font-weight: 600;
}

.note {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #b8b8ff;
}

/* ===========================
   TABLES (COMPARISON)
=========================== */
.table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: rgba(10, 10, 20, 0.95);
}

.compare-table th,
.compare-table td {
    border: 1px solid #2f2f4a;
    padding: 8px 10px;
    text-align: left;
}

.compare-table th {
    background: #18182c;
    color: #f5f5ff;
}

/* ===========================
   CTA ROW
=========================== */
.cta-row {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* ===========================
   SIMPLE HEADER
=========================== */
.simple-header {
    padding: 14px 18px;
    background: #05050a;
}

.logo-link {
    color: #c3c3ff;
    text-decoration: none;
    font-size: 0.9rem;
}

/* ===========================
   FORM CONTAINERS
=========================== */
.auth-container,
.contact-container,
.dashboard-container,
.billing-container {
    max-width: 480px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(10, 10, 20, 0.95);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.auth-container h1,
.contact-container h1,
.dashboard-container h1,
.billing-container h1 {
    margin-bottom: 10px;
}

.auth-container p,
.contact-container p,
.billing-container p,
.billing-note {
    color: #d0d0f5;
    margin-bottom: 16px;
}

/* ===========================
   FORMS
=========================== */
.auth-form,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form label,
.contact-form label {
    font-size: 0.9rem;
}

.auth-form input,
.contact-form input,
.contact-form textarea {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #3a3a5a;
    background: #05050a;
    color: #f5f5ff;
    font-size: 0.95rem;
}

.auth-alt {
    margin-top: 12px;
    font-size: 0.9rem;
}

.auth-alt a {
    color: #c3c3ff;
    text-decoration: none;
}

/* ===========================
   PARTNER LIST
=========================== */
.partner-list {
    list-style: disc;
    margin: 10px 0 0 18px;
    color: #d0d0f5;
    font-size: 0.9rem;
}

/* ===========================
   CHAT WIDGET
=========================== */
#evoxa-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #7b5cff, #c86bff);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 9000;
}

#evoxa-chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    max-height: 420px;
    background: #0b0b16;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9001;
}

.evoxa-chat-header {
    padding: 10px 12px;
    background: linear-gradient(135deg, #7b5cff, #c86bff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 0.95rem;
}

.chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.evoxa-chat-messages {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    font-size: 0.9rem;
}

.message {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    max-width: 85%;
}

.message.user {
    background: #26264a;
    margin-left: auto;
}

.message.ai {
    background: #14142a;
    margin-right: auto;
}

#evoxa-chat-typing {
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #b0b0ff;
    display: none;
}

.evoxa-chat-input-row {
    display: flex;
    padding: 8px;
    gap: 6px;
    border-top: 1px solid #26264a;
}

.evoxa-chat-input-row input {
    flex: 1;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid #3a3a5a;
    background: #05050a;
    color: #f5f5ff;
    font-size: 0.9rem;
}

.evoxa-chat-input-row button {
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    background: #7b5cff;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
}

/* ===========================
   POPUP (UPDATED)
=========================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 30, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.popup-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    animation: popupFade 0.25s ease-out;
}

.popup-box h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #4b2ff5;
}

.popup-box p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
}

.popup-buttons {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.popup-buttons button {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s ease;
}

#resendEmailBtn {
    background: linear-gradient(135deg, #7b5cff, #c86bff);
    color: #fff;
}

#closePopupBtn {
    background: #e0e0e8;
    color: #333;
}

#resendEmailBtn:hover {
    opacity: 0.9;
}

#closePopupBtn:hover {
    background: #d0d0dd;
}

@keyframes popupFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   ANIMATIONS
=========================== */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-play-state: paused;
}

.slide-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-play-state: paused;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    #evoxa-chat-window {
        right: 10px;
        width: 90%;
    }

    .auth-container,
    .contact-container,
    .dashboard-container,
    .billing-container {
        margin: 20px 10px;
    }
}
