/* =========================================================
   ENERGES
   CLEAN DARK MARKETPLACE STYLE
   css/style.css
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #080b10;
    color: #f4f7fb;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --bg: #090b0d;
    --bg-soft: #11151a;
    --surface: #171d22;
    --surface-2: #1d242b;
    --surface-3: #242d36;

    --border: rgba(212, 175, 55, .18);
    --border-light: rgba(212, 175, 55, .35);

    --text: #f5f3ee;
    --text-soft: #d7d0c4;
    --text-muted: #a7a39b;

    --primary: #d4af37;
    --primary-hover: #e7c76a;
    --primary-soft: rgba(212, 175, 55, .12);

    --success: #3ec98a;
    --danger: #ef5d5d;

    --radius: 10px;
    --radius-small: 7px;

    --container: 1180px;

    --shadow:
        0 14px 34px rgba(0, 0, 0, .28);
}


/* =========================================================
   CONTAINER
========================================================= */

.container,
.header-container,
.navigation-container,
.hero-container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(8, 11, 16, .96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.header-container {
    min-height: 66px;

    display: flex;
    align-items: center;
    gap: 16px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.brand img {
    width: 38px;
    height: 38px;

    object-fit: cover;

    border-radius: 50%;

    border: 1px solid var(--border);
}


/* =========================================================
   SEARCH
========================================================= */

.search-wrapper {
    flex: 1;

    max-width: 500px;
    height: 40px;

    display: flex;
    align-items: center;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 8px;

    overflow: hidden;

    margin-right: auto;
}

.search-wrapper > i {
    margin-left: 13px;
    color: var(--text-muted);
    font-size: 13px;
}

.search-wrapper input {
    flex: 1;

    min-width: 0;

    height: 100%;

    padding: 0 10px;

    color: var(--text);

    background: transparent;

    border: 0;
    outline: 0;

    font-size: 13px;
}

.search-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-wrapper:focus-within {
    border-color: var(--primary);
}

.search-wrapper button {
    height: 100%;

    padding: 0 15px;

    color: #fff;

    background: var(--primary);

    border: 0;

    font-size: 12px;
    font-weight: 700;
}

.search-wrapper button:hover {
    background: var(--primary-hover);
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}


/* =========================================================
   LANGUAGE
========================================================= */

.language-selector {
    position: relative;
}

.language-selector > button {
    height: 38px;

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 0 9px;

    color: var(--text-soft);

    background: transparent;

    border: 1px solid transparent;

    border-radius: 7px;

    font-size: 11px;
}

.language-selector > button:hover {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.language-selector > button .fa-globe {
    color: var(--primary);
}

.language-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: 145px;

    padding: 6px;

    display: none;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 9px;

    box-shadow: var(--shadow);
}

.language-menu.show {
    display: block;
}

.language-menu button {
    width: 100%;

    padding: 8px 10px;

    color: var(--text-soft);

    background: transparent;

    border: 0;

    border-radius: 6px;

    text-align: left;

    font-size: 12px;
}

.language-menu button:hover {
    color: var(--text);
    background: var(--surface-2);
}


/* =========================================================
   ACCOUNT
========================================================= */

.account-button,
.cart-button {
    height: 38px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 9px;

    color: var(--text-soft);

    border: 1px solid transparent;

    border-radius: 7px;

    background: transparent;

    font-size: 12px;
}

.account-button:hover,
.cart-button:hover {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}


/* PROFILE CIRCLE */

.profile-picture-wrapper {
    width: 29px;
    height: 29px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: var(--surface-3);

    border: 1px solid var(--border);
}

.profile-picture-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    display: none;
}

.profile-picture-wrapper i {
    color: var(--text-soft);
    font-size: 12px;
}


/* CART COUNT */

.cart-button {
    position: relative;
}

.cart-button > i {
    font-size: 14px;
}

.cart-button b {
    min-width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 4px;

    color: #fff;

    background: var(--primary);

    border-radius: 20px;

    font-size: 9px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-navigation {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.navigation-container {
    min-height: 43px;

    display: flex;
    align-items: center;

    gap: 26px;
}

.navigation-container a {
    position: relative;

    padding: 13px 0;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 600;
}

.navigation-container a:hover,
.navigation-container a.active {
    color: var(--text);
}

.navigation-container a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: var(--primary);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    padding: 58px 0;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(255, 107, 44, .08),
            transparent 35%
        );
}

.hero-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(340px, .85fr);

    align-items: center;

    gap: 55px;
}

.hero-content {
    max-width: 620px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.eyebrow i {
    font-size: 11px;
}

.hero-content h1 {
    margin: 13px 0 17px;

    max-width: 600px;

    color: var(--text);

    font-size: clamp(38px, 5vw, 62px);

    line-height: .99;

    letter-spacing: -2.8px;
}

.hero-content p {
    max-width: 520px;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.7;
}

.hero-actions {
    margin-top: 25px;

    display: flex;
    gap: 9px;

    flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    min-height: 39px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 15px;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 700;

    transition: .2s ease;
}

.button-primary {
    color: #fff;
    background: var(--primary);
}

.button-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.button-secondary {
    color: var(--text);

    background: var(--surface);

    border: 1px solid var(--border);
}

.button-secondary:hover {
    background: var(--surface-2);
    border-color: var(--border-light);
}


/* =========================================================
   MARKETPLACE HERO CARD
========================================================= */

.hero-marketplace {
    width: 100%;
}

.marketplace-card {
    padding: 17px;

    background:
        linear-gradient(
            145deg,
            #141a23,
            #0d1118
        );

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow: var(--shadow);
}

.marketplace-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 13px;

    color: var(--text-soft);

    font-size: 10px;
    font-weight: 700;
}

.marketplace-top i {
    color: var(--primary);
}

.marketplace-top .online {
    color: var(--success);
}

.marketplace-top .online i {
    color: var(--success);
    font-size: 6px;
}

.marketplace-search {
    height: 37px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 11px;

    background: var(--bg);

    border: 1px solid var(--border);

    border-radius: 7px;

    color: var(--text-muted);

    font-size: 11px;
}

.marketplace-items {
    margin-top: 11px;

    display: grid;

    gap: 7px;
}

.mini-product {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 8px;
}

.mini-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    background: rgba(255, 107, 44, .08);

    border-radius: 7px;
}

.mini-product strong {
    display: block;

    color: var(--text);

    font-size: 11px;
}

.mini-product small {
    display: block;

    margin-top: 2px;

    color: var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   QUICK FEATURES
========================================================= */

.quick-features {
    padding: 13px 0;

    background: var(--surface);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quick-features .container {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 8px;
}

.feature-item {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px 10px;
}

.feature-item > i {
    color: var(--primary);
    font-size: 17px;
}

.feature-item strong {
    display: block;

    color: var(--text);

    font-size: 11px;
}

.feature-item span {
    display: block;

    margin-top: 1px;

    color: var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 58px 0;
}

.products-section {
    background: var(--bg-soft);
}

.section-heading {
    margin-bottom: 23px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.section-label {
    display: block;

    margin-bottom: 5px;

    color: var(--primary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.1px;
}

.section-heading h2 {
    color: var(--text);

    font-size: 26px;

    line-height: 1.15;

    letter-spacing: -.7px;
}

.section-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 700;
}

.section-heading > a:hover {
    color: var(--primary);
}


/* =========================================================
   CATEGORY GRID
========================================================= */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 9px;
}

.category-card {
    min-height: 132px;

    padding: 15px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 9px;

    transition: .2s ease;
}

.category-card:hover {
    transform: translateY(-3px);

    border-color: rgba(255, 107, 44, .45);

    background: var(--surface-2);
}

.category-icon {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    color: var(--primary);

    background: rgba(255, 107, 44, .08);

    border-radius: 8px;
}

.category-icon i {
    font-size: 15px;
}

.category-card h3 {
    margin-bottom: 3px;

    color: var(--text);

    font-size: 12px;

    line-height: 1.25;
}

.category-card span {
    color: var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   PRODUCTS
========================================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}

.product-card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 9px;

    transition: .2s ease;
}

.product-card:hover {
    transform: translateY(-3px);

    border-color: var(--border-light);

    box-shadow: var(--shadow);
}

.product-image {
    position: relative;

    height: 175px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle,
            rgba(255, 107, 44, .09),
            transparent 60%
        );

    border-bottom: 1px solid var(--border);
}

.product-icon {
    color: var(--primary);

    font-size: 48px;
}

.product-badge {
    position: absolute;

    top: 9px;
    left: 9px;

    padding: 4px 7px;

    color: #fff;

    background: var(--primary);

    border-radius: 4px;

    font-size: 8px;
    font-weight: 800;
}

.product-badge.new {
    background: var(--success);
}

.product-badge.sale {
    background: var(--danger);
}

.wishlist {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-muted);

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 50%;
}

.wishlist:hover {
    color: var(--danger);
}

.product-details {
    padding: 13px;
}

.product-category {
    margin-bottom: 4px;

    color: var(--primary);

    font-size: 9px;
    font-weight: 700;
}

.product-details h3 {
    margin-bottom: 5px;

    color: var(--text);

    font-size: 13px;

    line-height: 1.3;
}

.product-description {
    min-height: 34px;

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.5;
}

.rating {
    margin-top: 8px;

    color: #ffb52e;

    font-size: 10px;
}

.rating span {
    color: var(--text-muted);
    margin-left: 3px;
}

.product-bottom {
    margin-top: 11px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-bottom strong {
    color: var(--text);

    font-size: 13px;
}

.add-cart {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;

    background: var(--primary);

    border: 0;

    border-radius: 6px;

    font-size: 11px;
}

.add-cart:hover {
    background: var(--primary-hover);
}


/* =========================================================
   AI SECTION
========================================================= */

.ai-section {
    padding: 30px 0;

    background: var(--bg);
}

.ai-card {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 18px;

    background:
        linear-gradient(
            120deg,
            #151b25,
            #10151d
        );

    border: 1px solid var(--border);

    border-radius: 11px;
}

.ai-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    background: rgba(255, 107, 44, .09);

    border-radius: 8px;

    font-size: 17px;
}

.ai-content {
    flex: 1;
}

.ai-content > span {
    color: var(--primary);

    font-size: 9px;
    font-weight: 800;
}

.ai-content h2 {
    margin: 2px 0;

    font-size: 16px;
}

.ai-content p {
    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    background: var(--bg-soft);
}

.about-grid {
    display: grid;

    grid-template-columns: 280px 1fr;

    align-items: center;

    gap: 60px;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 220px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 11px;
}

.about-image img {
    width: 150px;
    height: 150px;

    object-fit: contain;

    border-radius: 50%;
}

.about-content {
    max-width: 620px;
}

.about-content h2 {
    margin: 7px 0 13px;

    font-size: 30px;

    line-height: 1.15;
}

.about-content p {
    margin-bottom: 12px;

    color: var(--text-soft);

    font-size: 13px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding-top: 42px;

    background: #06080c;

    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.2fr;

    gap: 35px;

    padding-bottom: 35px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 10px;

    font-size: 16px;
}

.footer-brand img {
    width: 32px;
    height: 32px;

    object-fit: cover;

    border-radius: 50%;
}

.footer p {
    color: var(--text-muted);

    font-size: 11px;
}

.footer h3 {
    margin-bottom: 12px;

    font-size: 12px;
}

.footer a:not(.footer-brand) {
    display: block;

    margin-bottom: 7px;

    color: var(--text-muted);

    font-size: 11px;
}

.footer a:hover {
    color: var(--primary);
}

.footer p + p {
    margin-top: 7px;
}

.footer-bottom {
    padding: 15px;

    text-align: center;

    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 10px;
}


/* =========================================================
   RTL / ARABIC
========================================================= */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .language-menu button {
    text-align: right;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .header-container {
        gap: 10px;
    }

    .account-button span:last-child,
    .cart-button span {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-container {
        gap: 30px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .container,
    .header-container,
    .navigation-container,
    .hero-container {
        width: min(100% - 22px, var(--container));
    }


    /* HEADER */

    .header-container {
        min-height: auto;

        padding-top: 9px;
        padding-bottom: 9px;

        flex-wrap: wrap;
    }

    .brand span {
        display: none;
    }

    .search-wrapper {
        order: 3;

        flex-basis: 100%;

        max-width: none;

        margin-top: 2px;
    }


    /* NAV */

    .navigation-container {
        overflow-x: auto;

        gap: 20px;

        scrollbar-width: none;
    }

    .navigation-container::-webkit-scrollbar {
        display: none;
    }

    .navigation-container a {
        flex-shrink: 0;
    }


    /* HERO */

    .hero {
        padding: 42px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 40px;
        letter-spacing: -1.8px;
    }

    .hero-marketplace {
        max-width: 100%;
    }


    /* FEATURES */

    .quick-features .container {
        grid-template-columns: repeat(2, 1fr);
    }


    /* CATEGORIES */

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* PRODUCTS */

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        height: 145px;
    }

    .product-icon {
        font-size: 38px;
    }


    /* ABOUT */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    /* AI */

    .ai-card {
        align-items: flex-start;

        flex-wrap: wrap;
    }

    .ai-card .button {
        width: 100%;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .quick-features .container {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 180px;
    }

    .section {
        padding: 42px 0;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   ENERGES AI ASSISTANT
========================================================= */

.ai-floating-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2000;

    height: 48px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 17px;

    color: #fff;
    background: var(--primary);

    border: 0;
    border-radius: 24px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .35);

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}

.ai-floating-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.ai-floating-button i {
    font-size: 15px;
}


/* =========================================================
   CHAT WINDOW
========================================================= */

.ai-chat {
    position: fixed;

    right: 22px;
    bottom: 82px;

    z-index: 1999;

    width: 360px;
    max-width: calc(100vw - 30px);
    height: 500px;

    display: none;
    flex-direction: column;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 13px;

    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

.ai-chat.open {
    display: flex;
}


/* =========================================================
   CHAT HEADER
========================================================= */

.ai-chat-header {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 13px;

    background:
        linear-gradient(
            135deg,
            #171d27,
            #10151d
        );

    border-bottom: 1px solid var(--border);
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-logo {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    background: rgba(255, 107, 44, .10);

    border-radius: 8px;
}

.ai-chat-title strong {
    display: block;

    color: var(--text);

    font-size: 12px;
}

.ai-chat-title small {
    display: block;

    margin-top: 1px;

    color: var(--text-muted);

    font-size: 9px;
}

.ai-close {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-muted);

    background: transparent;

    border: 1px solid transparent;
    border-radius: 6px;

    cursor: pointer;
}

.ai-close:hover {
    color: var(--text);

    background: var(--surface-2);

    border-color: var(--border);
}


/* =========================================================
   MESSAGES
========================================================= */

.ai-messages {
    flex: 1;

    overflow-y: auto;

    padding: 15px;

    background: var(--bg);
}

.ai-message {
    display: flex;
    gap: 8px;

    margin-bottom: 13px;
}

.ai-message-user {
    justify-content: flex-end;
}

.ai-message-icon {
    width: 27px;
    height: 27px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    background: rgba(255, 107, 44, .09);

    border-radius: 50%;

    font-size: 10px;
}

.ai-bubble {
    max-width: 78%;

    padding: 9px 11px;

    color: var(--text-soft);

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 9px;

    font-size: 11px;
    line-height: 1.5;
}

.ai-message-user .ai-bubble {
    color: #fff;

    background: var(--primary);

    border-color: var(--primary);
}


/* =========================================================
   QUICK QUESTIONS
========================================================= */

.ai-suggestions {
    display: flex;
    gap: 6px;

    overflow-x: auto;

    padding: 8px 10px;

    background: var(--surface);

    border-top: 1px solid var(--border);

    scrollbar-width: none;
}

.ai-suggestions::-webkit-scrollbar {
    display: none;
}

.ai-suggestions button {
    flex-shrink: 0;

    padding: 6px 9px;

    color: var(--text-soft);

    background: var(--surface-2);

    border: 1px solid var(--border);

    border-radius: 15px;

    font-size: 9px;

    cursor: pointer;
}

.ai-suggestions button:hover {
    color: var(--text);

    border-color: var(--primary);
}


/* =========================================================
   INPUT
========================================================= */

.ai-input-area {
    height: 53px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 8px 10px;

    background: var(--surface);

    border-top: 1px solid var(--border);
}

.ai-input-area input {
    flex: 1;

    min-width: 0;

    height: 36px;

    padding: 0 11px;

    color: var(--text);

    background: var(--bg);

    border: 1px solid var(--border);

    border-radius: 7px;

    outline: none;

    font-size: 11px;
}

.ai-input-area input:focus {
    border-color: var(--primary);
}

.ai-input-area input::placeholder {
    color: var(--text-muted);
}

.ai-input-area button {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;

    background: var(--primary);

    border: 0;
    border-radius: 7px;

    cursor: pointer;
}

.ai-input-area button:hover {
    background: var(--primary-hover);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .ai-floating-button {
        right: 14px;
        bottom: 14px;

        width: 48px;
        height: 48px;

        justify-content: center;

        padding: 0;

        border-radius: 50%;
    }

    .ai-floating-button span {
        display: none;
    }

    .ai-chat {
        right: 10px;
        bottom: 72px;

        width: calc(100vw - 20px);

        height: 70vh;
    }
}
/* =========================================================
   ENERGES AI CHAT
========================================================= */

.energes-ai {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2000;
}


/* AI FLOATING BUTTON */

.ai-floating-button {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #fff;
    background: var(--primary);

    border: 0;
    border-radius: 50%;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .35);

    transition: .2s ease;
}

.ai-floating-button:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

.ai-floating-button i {
    font-size: 18px;
}

.ai-floating-button span {
    font-size: 9px;
    font-weight: 800;
}


/* CHAT WINDOW */

.ai-chat {
    position: absolute;

    right: 0;
    bottom: 70px;

    width: 350px;
    height: 500px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 13px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .45);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(10px)
        scale(.97);

    transform-origin: bottom right;

    transition: .2s ease;
}

.ai-chat.show {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* CHAT HEADER */

.ai-chat-header {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 13px;

    background: var(--surface-2);

    border-bottom: 1px solid var(--border);
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ai-chat-logo {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: var(--primary);

    border-radius: 9px;
}

.ai-chat-title strong {
    display: block;

    color: var(--text);

    font-size: 12px;
}

.ai-chat-title small {
    display: block;

    margin-top: 2px;

    color: var(--success);

    font-size: 9px;
}

.ai-chat-header > button {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-muted);

    background: transparent;

    border: 0;
    border-radius: 6px;
}

.ai-chat-header > button:hover {
    color: var(--text);
    background: var(--surface-3);
}


/* MESSAGES */

.ai-messages {
    flex: 1;

    overflow-y: auto;

    padding: 14px;

    display: flex;
    flex-direction: column;
    gap: 11px;

    scrollbar-width: thin;
}

.ai-message {
    display: flex;
    gap: 8px;

    max-width: 92%;
}

.ai-message-bot {
    align-self: flex-start;
}

.ai-message-user {
    align-self: flex-end;
}

.ai-message-icon {
    width: 26px;
    height: 26px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    background: rgba(255, 107, 44, .1);

    border-radius: 50%;

    font-size: 10px;
}

.ai-message-text {
    padding: 9px 11px;

    color: var(--text-soft);

    background: var(--surface-2);

    border: 1px solid var(--border);

    border-radius: 9px;

    font-size: 11px;
    line-height: 1.55;
}

.ai-message-user .ai-message-text {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.ai-message-text a {
    color: var(--primary);
    font-weight: 700;
}

.ai-message-user .ai-message-text a {
    color: #fff;
}


/* TYPING */

.ai-typing {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-typing span {
    width: 5px;
    height: 5px;

    display: block;

    background: var(--text-muted);

    border-radius: 50%;

    animation: aiTyping 1s infinite;
}

.ai-typing span:nth-child(2) {
    animation-delay: .15s;
}

.ai-typing span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes aiTyping {

    0%,
    60%,
    100% {
        opacity: .3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}


/* QUICK QUESTIONS */

.ai-quick-actions {
    display: flex;
    gap: 5px;

    padding: 8px 10px;

    overflow-x: auto;

    border-top: 1px solid var(--border);
}

.ai-quick-actions button {
    flex-shrink: 0;

    padding: 6px 9px;

    color: var(--text-soft);

    background: var(--surface-2);

    border: 1px solid var(--border);

    border-radius: 6px;

    font-size: 9px;
}

.ai-quick-actions button:hover {
    color: var(--primary);
    border-color: var(--primary);
}


/* INPUT */

.ai-input-area {
    display: flex;

    padding: 9px;

    background: var(--surface-2);

    border-top: 1px solid var(--border);
}

.ai-input-area input {
    flex: 1;

    min-width: 0;

    height: 38px;

    padding: 0 10px;

    color: var(--text);

    background: var(--bg);

    border: 1px solid var(--border);

    border-right: 0;

    border-radius: 7px 0 0 7px;

    outline: 0;

    font-size: 11px;
}

.ai-input-area input:focus {
    border-color: var(--primary);
}

.ai-input-area button {
    width: 40px;

    color: #fff;

    background: var(--primary);

    border: 0;

    border-radius: 0 7px 7px 0;
}

.ai-input-area button:hover {
    background: var(--primary-hover);
}


/* MOBILE AI */

@media (max-width: 480px) {

    .energes-ai {
        right: 12px;
        bottom: 12px;
    }

    .ai-chat {
        position: fixed;

        right: 10px;
        bottom: 80px;

        width: calc(100vw - 20px);
        height: min(500px, 70vh);
    }

}