/* =========================================================
   DATANEX MODERN FRONTEND UI
   ========================================================= */

/* =========================
   1. DESIGN SYSTEM
   ========================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-soft: #dbeafe;

    --secondary: #7c3aed;

    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;

    --background: #f6f8fc;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --border: #e2e8f0;
    --border-light: #eef2f7;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --navbar-height: 72px;

    --mtn: #ffcc00;
    --telecel: #e60000;
    --at: #0057b8;

    --transition: 0.25s ease;
}


/* =========================
   2. RESET
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    padding-top: var(--navbar-height);

    font-family: "Inter", Arial, sans-serif;

    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.05),
            transparent 32%
        ),
        var(--background);

    color: var(--text);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    transition:
        background var(--transition),
        color var(--transition);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-main {
    flex: 1;
    width: 100%;
}


/* =========================
   3. NAVBAR
   ========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: var(--navbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5%;

    background: rgba(255, 255, 255, 0.88);

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(226, 232, 240, 0.8);

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 8px 30px rgba(15, 23, 42, 0.04);

    z-index: 1000;
}


/* =========================
   4. BRAND
   ========================= */

.nav-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--text);
    text-decoration: none;
}

.logo {
    width: 42px;
    height: 42px;

    object-fit: cover;

    border-radius: 13px;

    background: #ffffff;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.nav-left:hover .logo {
    transform: translateY(-2px) rotate(-2deg);
    box-shadow: var(--shadow-md);
}

.company-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}


/* =========================
   5. NAVBAR ACTIONS
   ========================= */

.nav-right {
    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    position: relative;
}

#themeToggle,
.nav-btn {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--surface-soft);

    border: 1px solid var(--border);

    border-radius: 13px;

    color: var(--text);

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

#themeToggle {
    font-size: 19px;
}

#themeToggle:hover,
.nav-btn:hover {
    transform: translateY(-2px);

    background: var(--surface);

    border-color: #cbd5e1;

    box-shadow: var(--shadow-sm);
}


/* =========================
   6. HAMBURGER
   ========================= */

.nav-btn {
    flex-direction: column;
    gap: 4px;
}

.nav-btn span {
    display: block;

    width: 18px;
    height: 2px;

    background: currentColor;

    border-radius: 999px;

    transition: var(--transition);
}


/* =========================
   7. NAVIGATION DROPDOWN
   ========================= */

.nav-dropdown {
    position: absolute;

    top: calc(100% + 14px);
    right: 0;

    width: 220px;

    padding: 8px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(-8px)
        scale(0.97);

    transform-origin: top right;

    transition:
        opacity var(--transition),
        transform var(--transition),
        visibility var(--transition);

    z-index: 1200;
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}

.nav-dropdown a {
    display: flex;
    align-items: center;

    min-height: 44px;

    padding: 0 14px;

    border-radius: 11px;

    color: var(--text-secondary);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background var(--transition),
        color var(--transition),
        padding var(--transition);
}

.nav-dropdown a:hover {
    padding-left: 18px;

    background: var(--primary-light);

    color: var(--primary);
}

.nav-divider {
    height: 1px;

    margin: 7px 6px;

    background: var(--border);
}


/* =========================
   8. TICKER
   ========================= */

.ticker {
    position: relative;

    overflow: hidden;

    width: 100%;

    padding: 10px 0;

    background:
        linear-gradient(
            90deg,
            #1d4ed8,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    white-space: nowrap;

    box-shadow: var(--shadow-xs);
}

.ticker-text {
    display: inline-block;

    padding-left: 100%;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1px;

    animation: datanexTicker 22s linear infinite;
}

@keyframes datanexTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}


/* =========================
   9. SECTION TITLES
   ========================= */

.section-title {
    max-width: 1100px;

    margin: 48px auto 10px;
    padding: 0 20px;

    text-align: center;

    color: var(--text);

    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}


/* =========================
   10. NETWORK GRID
   ========================= */

.network-container {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;

    padding: 26px 20px 15px;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 22px;
}


/* =========================
   11. NETWORK CARDS
   ========================= */

.network-card {
    position: relative;
    isolation: isolate;

    min-height: 220px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 32px 24px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 1),
            rgba(248, 250, 252, 0.96)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    color: var(--text);

    text-align: center;
    text-decoration: none;

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.network-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;

    z-index: 2;
}

.network-card.mtn::before {
    background: var(--mtn);
}

.network-card.telecel::before {
    background: var(--telecel);
}

.network-card.at::before {
    background: var(--at);
}

.network-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow-lg);
}

.network-card.mtn:hover {
    border-color: rgba(255, 204, 0, 0.55);
}

.network-card.telecel:hover {
    border-color: rgba(230, 0, 0, 0.35);
}

.network-card.at:hover {
    border-color: rgba(0, 87, 184, 0.4);
}

.network-card h2 {
    position: relative;
    z-index: 2;

    margin-bottom: 7px;

    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.network-card p {
    position: relative;
    z-index: 2;

    margin-bottom: 22px;

    color: var(--text-muted);

    font-size: 14px;
}

.card-btn {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 20px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.network-card:hover .card-btn {
    transform: translateY(-2px);
}

.network-card.mtn .card-btn {
    background: var(--mtn);
    color: #111827;

    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.2);
}

.network-card.telecel .card-btn {
    background: var(--telecel);
    color: #ffffff;

    box-shadow: 0 8px 20px rgba(230, 0, 0, 0.16);
}

.network-card.at .card-btn {
    background: var(--at);
    color: #ffffff;

    box-shadow: 0 8px 20px rgba(0, 87, 184, 0.16);
}


/* =========================
   12. CARD GLOW
   ========================= */

.card-glow {
    position: absolute;

    width: 200px;
    height: 200px;

    top: -100px;
    right: -100px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.10),
            transparent 70%
        );

    transition: transform 0.5s ease;

    pointer-events: none;
}

.network-card:hover .card-glow {
    transform: scale(1.7);
}


/* =========================
   13. ACTION CARDS
   ========================= */

.action-container {
    width: 100%;
    max-width: 1120px;

    margin: 26px auto 20px;

    padding: 0 20px 40px;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 16px;
}

.action-btn {
    position: relative;

    display: flex;
    align-items: center;

    gap: 15px;

    min-height: 90px;

    padding: 18px;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    color: var(--text);

    text-decoration: none;

    box-shadow: var(--shadow-xs);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.action-btn:hover {
    transform: translateY(-4px);

    border-color: var(--primary-soft);

    box-shadow: var(--shadow-md);
}

.action-btn.highlight {
    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #ffffff 75%
        );

    border-color: #bfdbfe;
}

.action-icon {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 22px;

    transition:
        transform var(--transition),
        background var(--transition);
}

.action-icon.blue {
    background: var(--primary);
    color: #ffffff;
}

.action-btn:hover .action-icon {
    transform: scale(1.06) rotate(-2deg);
}

.action-text {
    min-width: 0;
    flex: 1;
}

.action-btn h3 {
    margin: 0 0 3px;

    color: var(--text);

    font-size: 15px;
    font-weight: 700;
}

.action-btn p {
    margin: 0;

    color: var(--text-muted);

    font-size: 12.5px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;

    background: var(--primary);

    border-radius: 999px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
}


/* =========================
   14. GENERAL FORM ELEMENTS
   ========================= */

input,
select,
textarea {
    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text);

    border-radius: 12px;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);
}

::placeholder {
    color: #94a3b8;
}


/* =========================
   15. GENERAL BUTTONS
   ========================= */

button,
.btn {
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

button:active,
.btn:active {
    transform: scale(0.98);
}


/* =========================
   16. FOOTER
   ========================= */

.datanex-footer {
    position: relative;

    margin-top: 70px;

    padding: 60px 5% 24px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.20),
            transparent 35%
        ),
        #07111f;

    color: #cbd5e1;
}

.datanex-footer::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(96, 165, 250, 0.6),
            transparent
        );
}

.footer-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.5fr repeat(3, 1fr);

    gap: 45px;
}

.footer-logo {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 16px;

    color: #ffffff;

    font-size: 20px;
}

.footer-logo img {
    width: 44px;
    height: 44px;

    object-fit: cover;

    padding: 3px;

    background: #ffffff;

    border-radius: 12px;
}

.footer-logo strong {
    font-weight: 800;
}

.footer-col h4 {
    margin-bottom: 16px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}

.footer-col > a {
    display: block;

    width: fit-content;

    margin: 9px 0;

    color: #94a3b8;

    text-decoration: none;

    font-size: 13.5px;

    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-col > a:hover {
    color: #60a5fa;

    transform: translateX(3px);
}

.footer-col p {
    margin: 7px 0;

    color: #94a3b8;

    font-size: 13.5px;
    line-height: 1.7;
}

.footer-about > p {
    max-width: 330px;
}

.footer-contact-icon {
    display: inline-flex;

    width: 22px;

    color: #60a5fa;
}

.payment-note {
    display: flex;
    flex-direction: column;

    gap: 3px;

    margin-top: 16px;

    padding: 13px 14px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 12px;
}

.payment-note span {
    color: #64748b;

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.payment-note strong {
    color: #e2e8f0;

    font-size: 12px;
    font-weight: 600;
}


/* =========================
   17. SOCIAL LINKS
   ========================= */

.socials {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 0 12px;

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 9px;

    color: #ffffff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.socials a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.socials a:nth-child(1) {
    background: #1877f2;
}

.socials a:nth-child(2) {
    background: #111111;
}

.socials a:nth-child(3) {
    background: #16a34a;
}


/* =========================
   18. FOOTER BOTTOM
   ========================= */

.footer-bottom {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1180px;

    margin: 42px auto 0;

    padding-top: 22px;

    display: flex;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid rgba(148, 163, 184, 0.14);

    color: #64748b;

    font-size: 12px;
}


/* =========================
   25. DARK MODE
   ========================= */

body.dark {
    --background: #070b14;
    --surface: #101722;
    --surface-soft: #151d2a;

    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --border: #243044;
    --border-light: #1e293b;

    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.10),
            transparent 30%
        ),
        var(--background);

    color: var(--text);
}

body.dark .navbar {
    background: rgba(7, 11, 20, 0.88);

    border-bottom-color: rgba(51, 65, 85, 0.55);
}

body.dark .nav-dropdown {
    background: rgba(16, 23, 34, 0.98);

    border-color: #243044;
}

body.dark .nav-dropdown a:hover {
    background: rgba(37, 99, 235, 0.15);
}

body.dark #themeToggle,
body.dark .nav-btn {
    background: #151d2a;

    border-color: #263449;
}

body.dark .network-card {
    background:
        linear-gradient(
            145deg,
            #101722,
            #0d141f
        );

    border-color: #243044;
}

body.dark .action-btn {
    background: #101722;

    border-color: #243044;
}

body.dark .action-btn.highlight {
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.12),
            #101722
        );

    border-color: rgba(37, 99, 235, 0.35);
}

body.dark input,
body.dark select,
body.dark textarea {
    background: #101722;

    border-color: #334155;

    color: #f8fafc;
}








/* =========================
   26. TABLET
   ========================= */

@media (max-width: 900px) {

    .navbar {
        padding: 0 22px;
    }

    .footer-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 35px;
    }
}


/* =========================
   27. MOBILE
   ========================= */

@media (max-width: 650px) {

    :root {
        --navbar-height: 66px;
    }

    .navbar {
        padding: 0 16px;
    }

    .logo {
        width: 38px;
        height: 38px;

        border-radius: 11px;
    }

    .company-name {
        max-width: 145px;

        overflow: hidden;

        font-size: 17px;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #themeToggle,
    .nav-btn {
        width: 40px;
        height: 40px;

        border-radius: 11px;
    }

    .nav-right {
        gap: 7px;
    }

    .nav-dropdown {
        position: fixed;

        top: 74px;
        right: 14px;
        left: 14px;

        width: auto;

        border-radius: 16px;
    }

    .ticker {
        padding: 8px 0;
    }

    .ticker-text {
        font-size: 11.5px;
    }

    .section-title {
        margin-top: 34px;

        font-size: 27px;
    }

    .network-container {
        grid-template-columns: 1fr;

        gap: 15px;

        padding: 20px 15px 10px;
    }

    .network-card {
        min-height: 190px;

        padding: 26px 20px;

        border-radius: 18px;
    }

    .network-card:hover {
        transform: translateY(-3px);
    }

    .action-container {
        grid-template-columns: 1fr;

        padding: 0 15px 30px;
    }

    .action-btn {
        min-height: 82px;

        padding: 15px;

        border-radius: 14px;
    }

    .action-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;

        border-radius: 12px;
    }

    .datanex-footer {
        margin-top: 45px;

        padding:
            45px
            20px
            22px;
    }

    .footer-container {
        grid-template-columns: 1fr;

        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 5px;

        margin-top: 32px;

        text-align: center;
    }


}


/* =========================
   28. VERY SMALL PHONES
   ========================= */

@media (max-width: 380px) {

    .company-name {
        max-width: 105px;

        font-size: 15px;
    }

    .network-card {
        min-height: 175px;
    }

    .footer-logo {
        font-size: 18px;
    }
}


/* =========================
   29. ACCESSIBILITY
   ========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}
/* =========================================================
   DATANEX PREMIUM NAV DROPDOWN
   ========================================================= */

.nav-dropdown {
    width: 245px;
    padding: 8px;

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.16),
        0 8px 20px rgba(15, 23, 42, 0.08);

    transform:
        translateY(-10px)
        scale(0.96);

    overflow: hidden;
}

.nav-dropdown.show {
    transform:
        translateY(0)
        scale(1);
}

.nav-dropdown a {
    position: relative;

    min-height: 46px;

    display: flex;
    align-items: center;

    padding: 0 14px;

    border-radius: 12px;

    color: #475569;

    font-size: 13px;
    font-weight: 650;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-dropdown a:hover {
    padding-left: 14px;

    background: rgba(37, 99, 235, 0.08);

    color: #2563eb;

    transform: translateX(3px);
}

.nav-dropdown a:active {
    transform: scale(0.98);
}

.nav-divider {
    margin: 6px 8px;

    background: rgba(148, 163, 184, 0.20);
}


/* ================= MENU BUTTON ================= */

.nav-btn {
    position: relative;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-btn:hover {
    transform: translateY(-1px);

    border-color: rgba(37, 99, 235, 0.30);

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.08);
}

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

.nav-btn span {
    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}


/* ================= DARK MODE ================= */

body.dark .nav-dropdown {
    background: rgba(15, 23, 42, 0.97);

    border-color: rgba(71, 85, 105, 0.45);

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.38);
}

body.dark .nav-dropdown a {
    color: #cbd5e1;
}

body.dark .nav-dropdown a:hover {
    background: rgba(59, 130, 246, 0.13);

    color: #60a5fa;
}

body.dark .nav-divider {
    background: rgba(71, 85, 105, 0.45);
}


/* ================= MOBILE MENU ================= */

@media (max-width: 650px) {

    .nav-dropdown {
        position: fixed;

        top: 70px;
        left: 12px;
        right: 12px;

        width: auto;

        padding: 7px;

        border-radius: 18px;

        max-height: calc(100vh - 90px);
        overflow-y: auto;

        box-shadow:
            0 20px 50px rgba(15, 23, 42, 0.18),
            0 5px 15px rgba(15, 23, 42, 0.06);
    }

    .nav-dropdown a {
        min-height: 45px;

        padding: 0 13px;

        border-radius: 11px;

        font-size: 13px;
    }

    .nav-dropdown a:hover {
        padding-left: 13px;
        transform: none;
    }

    .nav-divider {
        margin: 5px 7px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;

        border-radius: 12px;
    }
}

/* =========================================================
   DATANEX MODERN COMPACT DROPDOWN
   ========================================================= */

.nav-dropdown {
    width: 230px;

    padding: 7px;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border: 1px solid rgba(148, 163, 184, 0.20);

    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.14),
        0 4px 14px rgba(15, 23, 42, 0.06);

    overflow: hidden;
}


/* MENU ITEMS */

.nav-dropdown a {
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 0 13px;

    border-radius: 11px;

    text-align: right;

    color: #475569;

    font-size: 12.5px;
    font-weight: 650;

    letter-spacing: 0.1px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.nav-dropdown a:hover {
    padding-left: 13px;

    background: rgba(37, 99, 235, 0.08);

    color: #2563eb;

    transform: translateX(-3px);
}


.nav-dropdown a:active {
    transform: scale(0.97);
}


/* DIVIDER */

.nav-divider {
    height: 1px;

    margin: 5px 8px;

    background: rgba(148, 163, 184, 0.20);
}


/* DARK MODE */

body.dark .nav-dropdown {
    background: rgba(15, 23, 42, 0.97);

    border-color: rgba(71, 85, 105, 0.45);

    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.40);
}


body.dark .nav-dropdown a {
    color: #cbd5e1;
}


body.dark .nav-dropdown a:hover {
    background: rgba(59, 130, 246, 0.13);

    color: #60a5fa;
}


/* =========================================================
   MOBILE - COMPACT RIGHT FLOATING MENU
   ========================================================= */

@media (max-width: 650px) {

    .nav-dropdown {
        position: fixed;

        top: 66px;

        right: 12px;
        left: auto;

        width: 210px;
        max-width: calc(100vw - 24px);

        padding: 6px;

        border-radius: 17px;

        max-height: calc(100vh - 85px);
        overflow-y: auto;

        transform:
            translateY(-8px)
            scale(0.96);

        transform-origin: top right;
    }


    .nav-dropdown.show {
        transform:
            translateY(0)
            scale(1);
    }


    .nav-dropdown a {
        min-height: 42px;

        justify-content: flex-end;

        padding: 0 12px;

        border-radius: 10px;

        text-align: right;

        font-size: 12px;
    }


    .nav-dropdown a:hover {
        padding-left: 12px;

        transform: none;
    }


    .nav-divider {
        margin: 4px 7px;
    }
}

/* =========================================================
   DATANEX MODERN ICON MENU
   ========================================================= */

.nav-dropdown a {
    justify-content: flex-start !important;
    gap: 11px;

    text-align: left !important;

    padding: 5px 8px !important;

    min-height: 46px;

    font-size: 13px;
    font-weight: 700;

    color: #334155;

    border-radius: 12px;
}


/* ICON BOX */

.nav-menu-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f1f5f9;

    color: #64748b;

    font-size: 13px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* HOVER */

.nav-dropdown a:hover {
    justify-content: flex-start;

    padding: 5px 8px !important;

    background: rgba(37, 99, 235, 0.07);

    color: #2563eb;

    transform: translateX(2px);
}


.nav-dropdown a:hover .nav-menu-icon {
    background: #2563eb;

    color: #ffffff;

    transform: scale(1.04);
}


/* DARK MODE */

body.dark .nav-dropdown a {
    color: #e2e8f0;
}


body.dark .nav-menu-icon {
    background: #1e293b;

    color: #94a3b8;
}


body.dark .nav-dropdown a:hover {
    background: rgba(59, 130, 246, 0.12);

    color: #60a5fa;
}


body.dark .nav-dropdown a:hover .nav-menu-icon {
    background: #2563eb;

    color: #ffffff;
}


/* MOBILE */

@media (max-width: 650px) {

    .nav-dropdown {
        width: 215px;
    }

    .nav-dropdown a {
        justify-content: flex-start !important;

        text-align: left !important;

        min-height: 44px;

        padding: 5px 7px !important;

        gap: 10px;

        font-size: 12.5px;
        font-weight: 700;
    }

    .nav-menu-icon {
        width: 32px;
        height: 32px;

        flex-basis: 32px;

        border-radius: 9px;

        font-size: 12px;
    }

    .nav-dropdown a:hover {
        padding: 5px 7px !important;

        transform: none;
    }
}

/* =========================================================
   DATANEX SVG DROPDOWN ICONS
   Same visual language as Admin Dashboard
   ========================================================= */

.nav-dropdown a {
    justify-content: flex-start !important;

    gap: 12px;

    min-height: 45px;

    padding: 5px 9px !important;

    text-align: left !important;

    font-size: 13px;
    font-weight: 700;

    color: #334155;
}


/* THIN SVG ICON */

.nav-svg-icon {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;

    color: #64748b;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


/* HOVER */

.nav-dropdown a:hover {
    padding: 5px 9px !important;

    background: rgba(37, 99, 235, 0.08);

    color: #2563eb;

    transform: translateX(2px);
}


.nav-dropdown a:hover .nav-svg-icon {
    color: #2563eb;

    transform: scale(1.08);
}


/* DARK MODE */

body.dark .nav-dropdown a {
    color: #e2e8f0;
}


body.dark .nav-svg-icon {
    color: #94a3b8;
}


body.dark .nav-dropdown a:hover {
    color: #60a5fa;

    background: rgba(59, 130, 246, 0.12);
}


body.dark .nav-dropdown a:hover .nav-svg-icon {
    color: #60a5fa;
}


/* MOBILE */

@media (max-width: 650px) {

    .nav-dropdown {
        width: 215px;

        right: 12px;
        left: auto;
    }

    .nav-dropdown a {
        justify-content: flex-start !important;

        min-height: 43px;

        padding: 5px 8px !important;

        gap: 11px;

        text-align: left !important;

        font-size: 12.5px;
        font-weight: 700;
    }

    .nav-svg-icon {
        width: 19px;
        height: 19px;

        flex-basis: 19px;
    }

    .nav-dropdown a:hover {
        padding: 5px 8px !important;
        transform: none;
    }
}

/* =========================================================
   DATANEX UNIVERSAL FRONTEND ICON SYSTEM
   Matches Admin Dashboard
   ========================================================= */

.dn-icon {
    width: 22px;
    height: 22px;

    display: inline-block;
    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;

    vertical-align: middle;
}

.dn-icon-sm {
    width: 18px;
    height: 18px;
}

.dn-icon-lg {
    width: 26px;
    height: 26px;
}

.dn-icon-xl {
    width: 32px;
    height: 32px;
}

.dn-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 12px;

    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

body.dark .dn-icon-box {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

/* =========================================================
   DATANEX MODERN CHATBOT BUTTON
   ========================================================= */

#dn-chat-btn {
    position: fixed !important;

    right: 22px !important;
    bottom: 22px !important;

    width: 58px !important;
    height: 58px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 18px !important;

    background: linear-gradient(
        135deg,
        #2563eb 0%,
        #4f46e5 100%
    ) !important;

    border: 1px solid rgba(255,255,255,.28) !important;

    color: #ffffff !important;

    box-shadow:
        0 12px 28px rgba(37,99,235,.32),
        0 4px 10px rgba(15,23,42,.12),
        inset 0 1px 0 rgba(255,255,255,.25) !important;

    cursor: pointer !important;

    transition:
        transform .25s ease,
        box-shadow .25s ease !important;

    z-index: 9999 !important;
}


/* subtle outer ring */

#dn-chat-btn::before {
    content: "";

    position: absolute;

    inset: -5px;

    border-radius: 22px;

    border: 1px solid rgba(37,99,235,.15);

    pointer-events: none;
}


/* hover */

#dn-chat-btn:hover {
    transform: translateY(-4px) scale(1.05) !important;

    box-shadow:
        0 18px 38px rgba(37,99,235,.40),
        0 5px 12px rgba(15,23,42,.14) !important;
}


/* click */

#dn-chat-btn:active {
    transform: scale(.94) !important;
}


/* icon containers */

#dn-open,
#dn-close {
    align-items: center;
    justify-content: center;
}


/* thin SVG icon */

.dn-chat-icon {
    width: 27px;
    height: 27px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.dn-close-icon {
    width: 23px;
    height: 23px;
}


/* online indicator */

.dn-chat-online {
    position: absolute;

    top: -1px;
    right: -1px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #22c55e;

    border: 3px solid #ffffff;

    box-shadow:
        0 2px 7px rgba(34,197,94,.40);
}


/* subtle attention animation */

@keyframes dnChatPulse {

    0%, 100% {
        box-shadow:
            0 12px 28px rgba(37,99,235,.32),
            0 0 0 0 rgba(37,99,235,.18);
    }

    50% {
        box-shadow:
            0 12px 28px rgba(37,99,235,.32),
            0 0 0 8px rgba(37,99,235,0);
    }
}

#dn-chat-btn {
    animation: dnChatPulse 3s ease-in-out infinite;
}


/* MOBILE */

@media (max-width: 650px) {

    #dn-chat-btn {
        right: 14px !important;
        bottom: 16px !important;

        width: 52px !important;
        height: 52px !important;

        border-radius: 16px !important;
    }

    #dn-chat-btn::before {
        inset: -4px;
        border-radius: 20px;
    }

    .dn-chat-icon {
        width: 24px;
        height: 24px;
    }

    .dn-close-icon {
        width: 21px;
        height: 21px;
    }

    .dn-chat-online {
        width: 11px;
        height: 11px;

        border-width: 2px;
    }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    #dn-chat-btn {
        animation: none !important;
    }
}

/* =========================================================
   DATANEX MODERN CHAT WINDOW
   ========================================================= */

#dn-chat-window {
    position: fixed !important;

    right: 22px !important;
    bottom: 96px !important;

    width: 370px !important;
    height: 560px !important;
    max-height: calc(100vh - 125px) !important;

    display: none;

    flex-direction: column !important;

    overflow: hidden !important;

    background: #ffffff !important;

    border:
        1px solid rgba(148,163,184,.22) !important;

    border-radius: 24px !important;

    box-shadow:
        0 30px 70px rgba(15,23,42,.18),
        0 8px 25px rgba(15,23,42,.08) !important;

    z-index: 9998 !important;
}


/* =========================
   HEADER
   ========================= */

#dn-chat-window .dn-header {
    position: relative;

    min-height: 82px;

    padding: 16px 16px 16px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        linear-gradient(
            135deg,
            #172554 0%,
            #1e40af 55%,
            #4f46e5 100%
        );

    color: #ffffff;

    border: none;
}


#dn-chat-window .dn-header::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background:
        rgba(255,255,255,.12);
}


.dn-header-left {
    display: flex;
    align-items: center;

    gap: 12px;
}


.dn-avatar {
    position: relative;

    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        rgba(255,255,255,.14);

    border:
        1px solid rgba(255,255,255,.20);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16);
}


.dn-avatar svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: #ffffff;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.dn-avatar-status {
    position: absolute;

    right: -2px;
    bottom: -2px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #22c55e;

    border: 3px solid #1e40af;
}


.dn-header-info {
    min-width: 0;
}


.dn-title {
    margin-bottom: 4px;

    font-size: 14px;
    font-weight: 750;

    line-height: 1.2;

    color: #ffffff;
}


.dn-subtitle {
    display: flex;
    align-items: center;

    gap: 5px;

    color: rgba(255,255,255,.72);

    font-size: 9px;
    font-weight: 500;

    white-space: nowrap;
}


.dn-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #4ade80;

    box-shadow:
        0 0 0 3px rgba(74,222,128,.12);
}


.dn-subtitle-divider {
    width: 3px;
    height: 3px;

    margin: 0 2px;

    border-radius: 50%;

    background: rgba(255,255,255,.35);
}


/* HEADER CLOSE */

.dn-close-btn {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 11px;

    background:
        rgba(255,255,255,.10);

    color: #ffffff;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.dn-close-btn:hover {
    background:
        rgba(255,255,255,.18);

    transform: rotate(4deg);
}


.dn-close-btn svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
}


/* =========================
   CHAT BODY
   ========================= */

#dn-chat-window .dn-body {
    flex: 1;

    padding: 18px;

    overflow-y: auto;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 38%
        );

    scrollbar-width: thin;

    scrollbar-color:
        #cbd5e1 transparent;
}


#dn-chat-window .dn-body::-webkit-scrollbar {
    width: 5px;
}


#dn-chat-window .dn-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;

    border-radius: 10px;
}


/* SUPPORT LABEL */

.dn-chat-intro {
    display: flex;
    justify-content: center;

    margin-bottom: 18px;
}


.dn-chat-intro span {
    padding: 5px 9px;

    border-radius: 20px;

    background: #eef2ff;

    color: #6366f1;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.1px;
}


/* =========================
   BOT MESSAGE
   ========================= */

.dn-message-row {
    display: flex;

    gap: 9px;
}


.dn-message-avatar {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    box-shadow:
        0 5px 12px rgba(37,99,235,.18);
}


.dn-message-content {
    max-width: 82%;
}


.dn-message-name {
    margin:
        0 0 5px 2px;

    color: #64748b;

    font-size: 8px;
    font-weight: 700;
}


#dn-chat-window .dn-msg.dn-bot {
    padding: 12px 14px;

    border-radius:
        5px 16px 16px 16px;

    background: #ffffff;

    border:
        1px solid #e5e7eb;

    color: #334155;

    font-size: 11px;
    line-height: 1.6;

    box-shadow:
        0 5px 15px rgba(15,23,42,.04);
}


.dn-message-time {
    margin:
        5px 0 0 3px;

    color: #94a3b8;

    font-size: 7px;
}


/* =========================
   QUICK ACTIONS
   ========================= */

.dn-quick-title {
    margin:
        22px 0 8px 39px;

    color: #94a3b8;

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .8px;
}


#dn-chat-window .dn-quick {
    display: grid;

    gap: 7px;

    margin-left: 39px;
}


#dn-chat-window .dn-quick button {
    width: 100%;

    min-height: 52px;

    display: grid;

    grid-template-columns:
        34px 1fr 16px;

    align-items: center;

    gap: 9px;

    padding: 8px 10px;

    text-align: left;

    border:
        1px solid #e5e7eb;

    border-radius: 13px;

    background: #ffffff;

    color: #334155;

    cursor: pointer;

    box-shadow:
        0 3px 10px rgba(15,23,42,.025);

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


#dn-chat-window .dn-quick button:hover {
    border-color: #bfdbfe;

    background: #f8faff;

    transform:
        translateX(2px);

    box-shadow:
        0 5px 15px rgba(37,99,235,.07);
}


.dn-quick-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eff6ff;

    color: #2563eb;
}


.dn-quick-icon svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


#dn-chat-window .dn-quick strong {
    display: block;

    margin-bottom: 2px;

    color: #1e293b;

    font-size: 10px;
    font-weight: 750;
}


#dn-chat-window .dn-quick small {
    display: block;

    color: #94a3b8;

    font-size: 8px;
}


.dn-quick-arrow {
    width: 14px;
    height: 14px;

    fill: none;

    stroke: #94a3b8;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================
   FOOTER / MESSAGE INPUT
   ========================= */

#dn-chat-window .dn-footer {
    padding:
        12px 14px 10px;

    background:
        rgba(255,255,255,.96);

    border-top:
        1px solid #eef2f7;
}


.dn-input-wrap {
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding:
        5px 5px 5px 14px;

    border:
        1px solid #e2e8f0;

    border-radius: 15px;

    background: #f8fafc;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.dn-input-wrap:focus-within {
    background: #ffffff;

    border-color: #93c5fd;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.08);
}


#dn-chat-window .dn-input {
    flex: 1;

    min-width: 0;

    height: 38px;

    padding: 0;

    border: none;

    outline: none;

    background: transparent;

    color: #1e293b;

    font-family: inherit;

    font-size: 11px;
}


#dn-chat-window .dn-input::placeholder {
    color: #94a3b8;
}


/* SEND BUTTON */

#dn-chat-window .dn-send {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(37,99,235,.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


#dn-chat-window .dn-send:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 8px 16px rgba(37,99,235,.28);
}


#dn-chat-window .dn-send:active {
    transform: scale(.94);
}


#dn-chat-window .dn-send svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* DATANEX SUPPORT */

.dn-powered {
    margin-top: 7px;

    text-align: center;

    color: #94a3b8;

    font-size: 7px;

    letter-spacing: .3px;
}


/* =========================
   MOBILE CHAT WINDOW
   ========================= */

@media (max-width: 650px) {

    #dn-chat-window {
        right: 10px !important;
        bottom: 78px !important;

        width:
            calc(100vw - 20px) !important;

        height:
            min(570px, calc(100vh - 100px)) !important;

        max-height:
            calc(100vh - 100px) !important;

        border-radius:
            22px !important;
    }


    #dn-chat-window .dn-header {
        min-height: 76px;

        padding:
            14px 14px 14px 16px;
    }


    .dn-avatar {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        border-radius: 13px;
    }


    .dn-title {
        font-size: 13px;
    }


    .dn-subtitle {
        font-size: 8px;
    }


    #dn-chat-window .dn-body {
        padding: 16px 14px;
    }


    #dn-chat-window .dn-quick {
        margin-left: 36px;
    }


    .dn-quick-title {
        margin-left: 36px;
    }


    #dn-chat-window .dn-footer {
        padding:
            10px 11px 8px;
    }

}


/* =========================
   DARK MODE
   ========================= */

body.dark #dn-chat-window {
    background: #0f172a !important;

    border-color:
        rgba(148,163,184,.15) !important;
}


body.dark #dn-chat-window .dn-body {
    background:
        linear-gradient(
            180deg,
            #111827,
            #0f172a
        );
}


body.dark #dn-chat-window .dn-msg.dn-bot,
body.dark #dn-chat-window .dn-quick button {
    background: #1e293b;

    border-color: #334155;

    color: #cbd5e1;
}


body.dark #dn-chat-window .dn-quick strong {
    color: #f1f5f9;
}


body.dark #dn-chat-window .dn-footer {
    background: #0f172a;

    border-color: #1e293b;
}


body.dark .dn-input-wrap {
    background: #111827;

    border-color: #334155;
}


body.dark #dn-chat-window .dn-input {
    color: #f1f5f9;
}

/* =========================================================
   DATANEX CHATBOT - DYNAMIC MESSAGE SUPPORT
   ========================================================= */

#dn-chat-window .dn-msg {
    max-width: 82%;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 11px;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* Dynamically generated bot messages */
#dn-chat-window .dn-body > .dn-bot {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 5px 16px 16px 16px;
    color: #334155;
    box-shadow: 0 5px 15px rgba(15,23,42,.04);
}

/* User messages */
#dn-chat-window .dn-user {
    align-self: flex-end;
    margin-left: auto;
    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );
    border: none;
    border-radius: 16px 16px 5px 16px;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37,99,235,.18);
}

/* Typing indicator */
#dn-chat-window .dn-typing {
    align-self: flex-start;

    display: flex;
    align-items: center;

    gap: 4px;

    width: fit-content;

    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 5px 16px 16px 16px;

    box-shadow: 0 5px 15px rgba(15,23,42,.04);
}

#dn-chat-window .dn-typing span {
    width: 6px;
    height: 6px;

    display: block;

    border-radius: 50%;

    background: #60a5fa;

    animation: dnTypingScale 1.4s infinite ease-in-out;
}

#dn-chat-window .dn-typing span:nth-child(2) {
    animation-delay: .2s;
}

#dn-chat-window .dn-typing span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes dnTypingScale {
    0%,
    80%,
    100% {
        transform: scale(.55);
        opacity: .45;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dark mode dynamic messages */

body.dark #dn-chat-window .dn-body > .dn-bot,
body.dark #dn-chat-window .dn-typing {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark #dn-chat-window .dn-user {
    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );

    color: #ffffff;
}

/* Pause floating-button pulse while hovering */
#dn-chat-btn:hover {
    animation-play-state: paused;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

    #dn-chat-btn,
    #dn-chat-window .dn-typing span {
        animation: none !important;
    }
}


/* =========================================================
   DATANEX CHATBOT - CLEAN MODERN UI
   ========================================================= */

/* Floating launcher */
#dn-chat-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow:
        0 14px 35px rgba(37, 99, 235, 0.28),
        0 4px 12px rgba(15, 23, 42, 0.12);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

#dn-chat-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 42px rgba(37, 99, 235, 0.34),
        0 6px 16px rgba(15, 23, 42, 0.14);
}

#dn-chat-btn:active {
    transform: scale(.96);
}

#dn-chat-btn svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#dn-close {
    display: none;
}

.dn-chat-online {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 3px solid #ffffff;
}


/* Main window */
#dn-chat-window {
    position: fixed;
    right: 22px;
    bottom: 94px;

    width: 370px;
    height: 560px;
    max-height: calc(100vh - 120px);

    display: none;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 24px;

    box-shadow:
        0 30px 70px rgba(15, 23, 42, .18),
        0 8px 24px rgba(15, 23, 42, .08);

    z-index: 9997;

    animation: dnWindowOpen .25s ease;
}

@keyframes dnWindowOpen {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Header */
#dn-chat-window .dn-header {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 17px 18px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(255,255,255,.18),
            transparent 35%
        ),
        linear-gradient(135deg, #1d4ed8, #4f46e5);

    flex-shrink: 0;
}

#dn-chat-window .dn-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.20);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#dn-chat-window .dn-avatar svg {
    width: 23px;
    height: 23px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#dn-chat-window .dn-title {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
}

#dn-chat-window .dn-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: 4px;

    color: rgba(255,255,255,.78);
    font-size: 11px;
    line-height: 1.3;
}

#dn-chat-window .dn-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,.15);
}

#dn-chat-window .dn-close-btn {
    margin-left: auto;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 10px;

    color: #ffffff;
    background: rgba(255,255,255,.12);

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

#dn-chat-window .dn-close-btn:hover {
    background: rgba(255,255,255,.22);
    transform: rotate(4deg);
}

#dn-chat-window .dn-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}


/* Messages area */
#dn-chat-window .dn-body {
    flex: 1;

    padding: 18px 15px;

    overflow-y: auto;
    overscroll-behavior: contain;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 55%
        );

    scroll-behavior: smooth;
}

#dn-chat-window .dn-body::-webkit-scrollbar {
    width: 5px;
}

#dn-chat-window .dn-body::-webkit-scrollbar-track {
    background: transparent;
}

#dn-chat-window .dn-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}


/* Messages */
#dn-chat-window .dn-msg {
    width: fit-content;
    max-width: 84%;

    margin-bottom: 11px;
    padding: 10px 13px;

    border-radius: 15px;

    font-size: 13px;
    line-height: 1.55;

    word-wrap: break-word;
    overflow-wrap: anywhere;

    animation: dnMessageIn .2s ease;
}

@keyframes dnMessageIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Bot message */
#dn-chat-window .dn-bot {
    margin-right: auto;

    color: #334155;
    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 5px;

    box-shadow: 0 3px 10px rgba(15,23,42,.04);
}


/* User message */
#dn-chat-window .dn-user {
    margin-left: auto;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );

    border-bottom-right-radius: 5px;

    box-shadow: 0 5px 14px rgba(37,99,235,.16);
}


/* Support / helper label */
#dn-chat-window .dn-support-label {
    margin: 3px 0 14px;

    color: #94a3b8;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .8px;
}


/* Quick actions */
#dn-chat-window .dn-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 10px;
}

#dn-chat-window .dn-quick button {
    border: 1px solid #dbeafe;
    border-radius: 999px;

    padding: 7px 11px;

    color: #2563eb;
    background: #eff6ff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

#dn-chat-window .dn-quick button:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}


/* Typing animation */
#dn-chat-window .dn-typing {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 4px;

    margin-bottom: 10px;
    padding: 11px 14px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 15px;
    border-bottom-left-radius: 5px;

    box-shadow: 0 3px 10px rgba(15,23,42,.04);
}

#dn-chat-window .dn-typing span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #94a3b8;

    animation: dnBounce 1.2s infinite ease-in-out;
}

#dn-chat-window .dn-typing span:nth-child(2) {
    animation-delay: .15s;
}

#dn-chat-window .dn-typing span:nth-child(3) {
    animation-delay: .30s;
}

@keyframes dnBounce {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .45;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}


/* Input footer */
#dn-chat-window .dn-footer {
    padding: 12px 13px 10px;

    background: rgba(255,255,255,.96);

    border-top: 1px solid #e2e8f0;

    flex-shrink: 0;
}

#dn-chat-window .dn-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 5px 5px 5px 13px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 15px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

#dn-chat-window .dn-input-wrap:focus-within {
    background: #ffffff;
    border-color: #93c5fd;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.08);
}

#dn-chat-window .dn-input {
    flex: 1;
    min-width: 0;

    padding: 8px 0;

    border: 0;
    outline: 0;

    color: #0f172a;
    background: transparent;

    font-family: inherit;
    font-size: 13px;
}

#dn-chat-window .dn-input::placeholder {
    color: #94a3b8;
}

#dn-chat-window .dn-input:disabled {
    opacity: .6;
    cursor: not-allowed;
}


/* Send button */
#dn-chat-window .dn-send {
    width: 38px;
    height: 38px;
    min-width: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 11px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );

    cursor: pointer;

    box-shadow: 0 5px 12px rgba(37,99,235,.18);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

#dn-chat-window .dn-send:hover {
    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(37,99,235,.24);
}

#dn-chat-window .dn-send:active {
    transform: scale(.94);
}

#dn-chat-window .dn-send svg {
    width: 17px;
    height: 17px;

    stroke: currentColor;
    fill: none;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Small footer branding */
#dn-chat-window .dn-powered,
#dn-chat-window .dn-footer-note {
    margin-top: 7px;

    color: #94a3b8;

    text-align: center;
    font-size: 9px;
    font-weight: 500;
}


/* =========================================================
   CHATBOT DARK MODE
   ========================================================= */

body.dark #dn-chat-window {
    background: #0f172a;
    border-color: rgba(148,163,184,.16);

    box-shadow:
        0 30px 70px rgba(0,0,0,.40),
        0 8px 24px rgba(0,0,0,.20);
}

body.dark #dn-chat-window .dn-body {
    background: linear-gradient(
        180deg,
        #0f172a,
        #111827
    );
}

body.dark #dn-chat-window .dn-bot,
body.dark #dn-chat-window .dn-typing {
    color: #e2e8f0;
    background: #1e293b;
    border-color: #334155;
}

body.dark #dn-chat-window .dn-footer {
    background: #0f172a;
    border-color: #1e293b;
}

body.dark #dn-chat-window .dn-input-wrap {
    background: #1e293b;
    border-color: #334155;
}

body.dark #dn-chat-window .dn-input-wrap:focus-within {
    background: #1e293b;
    border-color: #3b82f6;
}

body.dark #dn-chat-window .dn-input {
    color: #f8fafc;
}

body.dark #dn-chat-window .dn-input::placeholder {
    color: #64748b;
}

body.dark #dn-chat-window .dn-quick button {
    color: #93c5fd;
    background: rgba(37,99,235,.12);
    border-color: rgba(59,130,246,.22);
}


/* =========================================================
   CHATBOT MOBILE
   ========================================================= */

@media (max-width: 650px) {

    #dn-chat-btn {
        right: 15px;
        bottom: 15px;

        width: 54px;
        height: 54px;

        border-radius: 17px;
    }

    #dn-chat-window {
        left: 10px;
        right: 10px;
        bottom: 80px;

        width: auto;
        height: min(560px, calc(100dvh - 105px));
        max-height: none;

        border-radius: 22px;
    }

    #dn-chat-window .dn-header {
        padding: 14px 15px;
    }

    #dn-chat-window .dn-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;

        border-radius: 12px;
    }

    #dn-chat-window .dn-body {
        padding: 15px 12px;
    }

    #dn-chat-window .dn-msg {
        max-width: 88%;

        padding: 9px 12px;

        font-size: 12.5px;
    }

    #dn-chat-window .dn-footer {
        padding: 10px;
    }

    #dn-chat-window .dn-input-wrap {
        border-radius: 14px;
    }

    #dn-chat-window .dn-send {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
}


/* Very small phones */
@media (max-width: 380px) {

    #dn-chat-window {
        left: 7px;
        right: 7px;
        bottom: 75px;

        height: calc(100dvh - 92px);

        border-radius: 19px;
    }

    #dn-chat-window .dn-title {
        font-size: 14px;
    }

    #dn-chat-window .dn-subtitle {
        font-size: 10px;
    }

    #dn-chat-window .dn-msg {
        max-width: 91%;
        font-size: 12px;
    }
}


/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    #dn-chat-window,
    #dn-chat-window .dn-msg,
    #dn-chat-window .dn-typing span {
        animation: none !important;
    }

    #dn-chat-btn,
    #dn-chat-window button {
        transition: none !important;
    }
}

/* =========================================================
   FOOTER WHATSAPP BUTTON
   ========================================================= */

.footer-whatsapp {
    background: #25D366 !important;
    color: #ffffff !important;
    border-color: #25D366 !important;
}

.footer-whatsapp:hover {
    background: #1ebe5d !important;
    color: #ffffff !important;
    border-color: #1ebe5d !important;
}


/* =========================================================
   DATANEX - UNIFIED PREMIUM DARK MODE
   ========================================================= */

body.dark {
    --background: #080c14;
    --surface: #111722;
    --surface-soft: #161e2b;

    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #8b9bb0;

    --border: rgba(148, 163, 184, 0.16);
    --border-light: rgba(148, 163, 184, 0.10);

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(37, 99, 235, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 25%,
            rgba(124, 58, 237, 0.06),
            transparent 28%
        ),
        #080c14;

    color: var(--text);
}


/* NAVBAR */

body.dark .navbar {
    background: rgba(8, 12, 20, 0.88);
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}


/* THEME + MENU BUTTON */

body.dark #themeToggle,
body.dark .nav-btn {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 4px 14px rgba(0,0,0,.12);
}

body.dark #themeToggle:hover,
body.dark .nav-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.30);
    color: #60a5fa;
}


/* DROPDOWN */

body.dark .nav-dropdown {
    background: rgba(15, 22, 33, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.14);

    box-shadow:
        0 25px 60px rgba(0,0,0,.42),
        inset 0 1px 0 rgba(255,255,255,.025);

    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

body.dark .nav-dropdown a {
    color: #d5deea;
}

body.dark .nav-dropdown a:hover {
    background: rgba(59, 130, 246, 0.10);
    color: #60a5fa;
}

body.dark .nav-svg-icon,
body.dark .nav-menu-icon {
    color: #8fa1b8;
}

body.dark .nav-dropdown a:hover .nav-svg-icon,
body.dark .nav-dropdown a:hover .nav-menu-icon {
    color: #60a5fa;
}


/* GENERAL CARDS */

body.dark .network-card,
body.dark .action-btn,
body.dark .order-card,
body.dark .track-search,
body.dark .no-orders {
    background:
        linear-gradient(
            145deg,
            rgba(18, 25, 37, 0.98),
            rgba(13, 19, 29, 0.98)
        ) !important;

    border-color: rgba(148, 163, 184, 0.13) !important;

    box-shadow:
        0 12px 35px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.025);
}


/* CARD HOVER */

body.dark .network-card:hover,
body.dark .action-btn:hover {
    border-color: rgba(96, 165, 250, 0.30) !important;

    box-shadow:
        0 18px 45px rgba(0,0,0,.28),
        0 0 0 1px rgba(59,130,246,.05);
}


/* HEADINGS */

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark .section-title,
body.dark .track-header h1,
body.dark .results-heading,
body.dark .detail-value,
body.dark .no-orders h3 {
    color: #f8fafc !important;
}


/* SECONDARY TEXT */

body.dark p,
body.dark .track-header p,
body.dark .detail-label,
body.dark .order-id-label {
    color: #94a3b8;
}


/* INPUTS */

body.dark input,
body.dark select,
body.dark textarea {
    background: rgba(15, 23, 35, 0.95) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: #f8fafc !important;

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,.20);
}

body.dark input::placeholder,
body.dark textarea::placeholder {
    color: #64748b;
}

body.dark input:focus,
body.dark select:focus,
body.dark textarea:focus {
    border-color: #3b82f6 !important;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.13) !important;

    outline: none;
}


/* TRACK ORDER */

body.dark .order-top {
    border-bottom-color: rgba(148, 163, 184, 0.10);
}

body.dark .order-id {
    color: #60a5fa;
}

body.dark .copy-all-icon {
    background: rgba(255,255,255,.045);
    border-color: rgba(148,163,184,.16);
    color: #94a3b8;
}

body.dark .copy-all-icon:hover {
    background: rgba(59,130,246,.12);
    border-color: rgba(96,165,250,.30);
    color: #60a5fa;
}

body.dark .copy-all-icon.copied {
    background: rgba(34,197,94,.14);
    border-color: rgba(34,197,94,.30);
    color: #4ade80;
}


/* CHATBOT */

body.dark #dn-chat-window {
    background: #0d141f !important;

    border-color: rgba(148,163,184,.14) !important;

    box-shadow:
        0 30px 80px rgba(0,0,0,.50),
        0 8px 24px rgba(0,0,0,.25) !important;
}

body.dark #dn-chat-window .dn-body {
    background:
        radial-gradient(
            circle at top,
            rgba(37,99,235,.07),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            #101722,
            #0c121c
        ) !important;
}

body.dark #dn-chat-window .dn-bot,
body.dark #dn-chat-window .dn-typing {
    background: #182131 !important;
    border-color: rgba(148,163,184,.14) !important;
    color: #dbe4ef !important;
}

body.dark #dn-chat-window .dn-user {
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        ) !important;

    color: #ffffff !important;
}

body.dark #dn-chat-window .dn-footer {
    background: #0d141f !important;
    border-color: rgba(148,163,184,.11) !important;
}

body.dark #dn-chat-window .dn-input-wrap {
    background: #141d2a !important;
    border-color: rgba(148,163,184,.17) !important;
}

body.dark #dn-chat-window .dn-input-wrap:focus-within {
    background: #162131 !important;
    border-color: #3b82f6 !important;

    box-shadow:
        0 0 0 3px rgba(59,130,246,.10);
}

body.dark #dn-chat-window .dn-input {
    color: #f8fafc !important;
}

body.dark #dn-chat-window .dn-input::placeholder {
    color: #64748b !important;
}


/* FOOTER */

body.dark footer,
body.dark .footer {
    background: #090e17;
    border-color: rgba(148,163,184,.10);
}

body.dark footer p,
body.dark footer a,
body.dark .footer p,
body.dark .footer a {
    color: #94a3b8;
}

body.dark footer a:hover,
body.dark .footer a:hover {
    color: #60a5fa;
}


/* SCROLLBAR */

body.dark {
    scrollbar-color: #334155 #0b111b;
}

body.dark::-webkit-scrollbar {
    width: 10px;
}

body.dark::-webkit-scrollbar-track {
    background: #0b111b;
}

body.dark::-webkit-scrollbar-thumb {
    background: #334155;
    border: 2px solid #0b111b;
    border-radius: 20px;
}

body.dark::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* =========================================================
   DATANEX CHATBOT - DRAG SUPPORT
   ========================================================= */

#dn-chat-btn {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

#dn-chat-btn.dn-dragging {
    cursor: grabbing;
    transition: none !important;
    transform: none !important;
}

#dn-chat-btn.dn-dragging:hover {
    transform: none !important;
}


/* =========================================================
   DATANEX RESELLER - FINTECH COMING SOON
   ========================================================= */

.reseller-coming-soon {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 90px 24px 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(37, 99, 235, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(79, 70, 229, 0.16),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #020617 0%,
            #071126 45%,
            #0f172a 100%
        );
}


/* Background grid */

.reseller-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 20%,
            black 80%,
            transparent
        );

    pointer-events: none;
}


/* Decorative glowing circles */

.reseller-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.reseller-glow-one {
    width: 350px;
    height: 350px;
    background: rgba(37, 99, 235, .20);
    top: -120px;
    left: -100px;
}

.reseller-glow-two {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, .16);
    bottom: -180px;
    right: -120px;
}


/* Main content */

.reseller-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 920px;

    text-align: center;
    color: #ffffff;
}


/* Small top badge */

.reseller-badge {
    width: fit-content;
    margin: 0 auto 28px;

    padding: 9px 16px;

    display: flex;
    align-items: center;
    gap: 9px;

    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 999px;

    background: rgba(37, 99, 235, .08);
    backdrop-filter: blur(12px);

    color: #93c5fd;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.reseller-badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #60a5fa;

    box-shadow:
        0 0 0 5px rgba(96,165,250,.10),
        0 0 18px rgba(96,165,250,.8);
}


/* Main icon */

.reseller-icon {
    width: 76px;
    height: 76px;

    margin: 0 auto 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 24px;

    border: 1px solid rgba(255,255,255,.10);

    background:
        linear-gradient(
            135deg,
            rgba(37,99,235,.35),
            rgba(79,70,229,.22)
        );

    box-shadow:
        0 20px 50px rgba(37,99,235,.20),
        inset 0 1px 0 rgba(255,255,255,.12);
}

.reseller-icon svg {
    width: 35px;
    height: 35px;

    fill: none;
    stroke: #bfdbfe;

    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Eyebrow */

.reseller-eyebrow {
    margin: 0 0 14px;

    color: #60a5fa;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
}


/* Heading */

.reseller-title {
    margin: 0;

    font-size: clamp(42px, 7vw, 76px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -3px;

    color: #ffffff;
}

.reseller-title span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #60a5fa,
            #818cf8,
            #c4b5fd
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* Description */

.reseller-description {
    max-width: 650px;

    margin: 25px auto 30px;

    color: #94a3b8;

    font-size: 17px;
    line-height: 1.8;
}


/* Coming soon badge */

.reseller-coming-badge {
    display: inline-flex;

    margin-bottom: 42px;

    padding: 3px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #6366f1
        );

    box-shadow:
        0 12px 35px rgba(37,99,235,.25);
}

.reseller-coming-badge span {
    display: block;

    padding: 13px 27px;

    border-radius: 13px;

    background: #071126;

    color: #dbeafe;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2.2px;
}


/* Feature cards */

.reseller-features {
    max-width: 820px;

    margin: 0 auto 34px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.reseller-feature {
    padding: 20px;

    display: flex;
    align-items: center;

    gap: 14px;

    text-align: left;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 18px;

    background: rgba(255,255,255,.035);

    backdrop-filter: blur(12px);

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.reseller-feature:hover {
    transform: translateY(-4px);

    border-color: rgba(96,165,250,.25);

    background: rgba(37,99,235,.08);
}

.reseller-feature-icon {
    flex: 0 0 43px;

    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(37,99,235,.13);

    color: #93c5fd;

    font-size: 19px;
    font-weight: 800;
}

.reseller-feature-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reseller-feature strong {
    display: block;

    margin-bottom: 4px;

    color: #f8fafc;

    font-size: 14px;
}

.reseller-feature span {
    color: #64748b;

    font-size: 12px;
    line-height: 1.4;
}


/* Development status */

.reseller-status {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    color: #64748b;

    font-size: 12px;
    font-weight: 600;
}

.reseller-status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 12px rgba(34,197,94,.8);

    animation:
        resellerPulse 2s infinite;
}

@keyframes resellerPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}


/* =========================================================
   RESELLER RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {

    .reseller-coming-soon {
        min-height: calc(100vh - 65px);

        padding:
            65px 18px
            45px;
    }

    .reseller-title {
        font-size:
            clamp(38px, 12vw, 58px);

        letter-spacing: -2px;
    }

    .reseller-description {
        font-size: 15px;

        line-height: 1.7;
    }

    .reseller-features {
        grid-template-columns: 1fr;

        max-width: 420px;
    }

    .reseller-feature {
        padding: 17px;
    }

}


@media (max-width: 420px) {

    .reseller-coming-soon {
        padding-left: 15px;
        padding-right: 15px;
    }

    .reseller-icon {
        width: 65px;
        height: 65px;

        border-radius: 20px;
    }

    .reseller-icon svg {
        width: 30px;
        height: 30px;
    }

    .reseller-title {
        font-size: 39px;
    }

    .reseller-description {
        margin-top: 20px;
    }

    .reseller-coming-badge {
        margin-bottom: 32px;
    }

}


/* =========================================================
   DATANEX CHATBOT - EDGE SNAP
   ========================================================= */

#dn-chat-btn.dn-snapping {
    transition:
        left 0.22s ease,
        top 0.22s ease !important;
}

/* =========================================================
   DATANEX CHATBOT - FINAL RESPONSIVE MOBILE OVERRIDE
   Keep this section at the bottom of the stylesheet.
   ========================================================= */

@media (max-width: 650px) {

    /* -----------------------------------------
       Chat window
       ----------------------------------------- */

    #dn-chat-window {
        position: fixed !important;

        left: 10px !important;
        right: 10px !important;

        top: 10px !important;
        bottom: 78px !important;

        width: auto !important;
        height: auto !important;

        max-width: none !important;
        max-height: none !important;

        margin: 0 !important;

        display: none;
        flex-direction: column !important;

        overflow: hidden !important;

        border-radius: 20px !important;

        z-index: 9997 !important;
    }


    /* -----------------------------------------
       Header
       ----------------------------------------- */

    #dn-chat-window .dn-header {
        min-height: 68px !important;

        padding:
            12px 12px 12px 14px !important;

        flex-shrink: 0 !important;

        gap: 10px !important;
    }

    #dn-chat-window .dn-header-left {
        min-width: 0 !important;

        flex: 1 !important;

        display: flex !important;
        align-items: center !important;

        gap: 10px !important;
    }

    #dn-chat-window .dn-avatar {
        width: 40px !important;
        height: 40px !important;

        min-width: 40px !important;
        flex: 0 0 40px !important;

        border-radius: 12px !important;
    }

    #dn-chat-window .dn-header-info {
        min-width: 0 !important;
        flex: 1 !important;
    }

    #dn-chat-window .dn-title {
        font-size: 14px !important;
        line-height: 1.2 !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #dn-chat-window .dn-subtitle {
        margin-top: 3px !important;

        font-size: 10px !important;
        line-height: 1.25 !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #dn-chat-window .dn-close-btn {
        width: 40px !important;
        height: 40px !important;

        min-width: 40px !important;

        margin-left: 6px !important;

        flex: 0 0 40px !important;

        border-radius: 11px !important;
    }


    /* -----------------------------------------
       Messages
       ----------------------------------------- */

    #dn-chat-window .dn-body {
        flex: 1 1 auto !important;

        min-height: 0 !important;

        padding:
            14px 12px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        overscroll-behavior: contain !important;

        -webkit-overflow-scrolling: touch;
    }

    #dn-chat-window .dn-msg {
        max-width: 88% !important;

        padding:
            10px 12px !important;

        font-size: 13px !important;
        line-height: 1.5 !important;

        overflow-wrap: anywhere !important;
        word-break: break-word;
    }

    #dn-chat-window .dn-message-row {
        max-width: 100% !important;
    }

    #dn-chat-window .dn-message-content {
        min-width: 0 !important;
        max-width: calc(100% - 42px) !important;
    }


    /* -----------------------------------------
       Input footer
       ----------------------------------------- */

    #dn-chat-window .dn-footer {
        flex: 0 0 auto !important;

        padding:
            9px 10px 10px !important;
    }

    #dn-chat-window .dn-input-wrap {
        width: 100% !important;

        min-height: 48px !important;

        padding:
            4px 4px 4px 12px !important;

        gap: 7px !important;

        border-radius: 14px !important;
    }

    #dn-chat-window .dn-input {
        width: 100% !important;

        min-width: 0 !important;

        height: 40px !important;

        padding: 0 !important;

        /*
         * 16px prevents automatic input zoom
         * on many mobile browsers.
         */
        font-size: 16px !important;
    }

    #dn-chat-window .dn-send {
        width: 40px !important;
        height: 40px !important;

        min-width: 40px !important;

        flex: 0 0 40px !important;

        border-radius: 11px !important;
    }


    /* -----------------------------------------
       Launcher remains above page content
       ----------------------------------------- */

    #dn-chat-btn {
        z-index: 9999 !important;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    #dn-chat-window {
        left: 6px !important;
        right: 6px !important;

        top: 6px !important;
        bottom: 70px !important;

        border-radius: 17px !important;
    }

    #dn-chat-window .dn-header {
        min-height: 64px !important;

        padding:
            10px 10px 10px 12px !important;
    }

    #dn-chat-window .dn-avatar {
        width: 36px !important;
        height: 36px !important;

        min-width: 36px !important;
        flex-basis: 36px !important;
    }

    #dn-chat-window .dn-title {
        font-size: 13px !important;
    }

    #dn-chat-window .dn-subtitle {
        font-size: 9px !important;
    }

    #dn-chat-window .dn-body {
        padding:
            12px 9px !important;
    }

    #dn-chat-window .dn-msg {
        max-width: 91% !important;

        padding:
            9px 11px !important;

        font-size: 12.5px !important;
    }

    #dn-chat-window .dn-footer {
        padding:
            8px !important;
    }
}

/* =========================================================
   DATANEX CHATBOT - MOBILE MODAL
   ========================================================= */

@media (max-width: 650px) {

    #dn-chat-window {
        position: fixed !important;

        /* Center modal */
        left: 50% !important;
        top: 50% !important;

        right: auto !important;
        bottom: auto !important;

        transform: translate(-50%, -50%) !important;

        /* Shorter modal */
        width: calc(100vw - 28px) !important;
        max-width: 390px !important;

        height: 68dvh !important;
        max-height: 540px !important;
        min-height: 400px !important;

        margin: 0 !important;

        border-radius: 22px !important;

        overflow: hidden !important;

        box-shadow:
            0 30px 80px rgba(15,23,42,.30),
            0 10px 30px rgba(15,23,42,.16) !important;

        z-index: 10001 !important;
    }


    /* Header */

    #dn-chat-window .dn-header {
        min-height: 64px !important;

        padding:
            11px 12px !important;

        flex-shrink: 0 !important;
    }


    #dn-chat-window .dn-avatar {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        flex-basis: 38px !important;
    }


    #dn-chat-window .dn-title {
        font-size: 13px !important;
    }


    #dn-chat-window .dn-subtitle {
        font-size: 9px !important;
    }


    /* Messages */

    #dn-chat-window .dn-body {
        flex: 1 1 auto !important;

        min-height: 0 !important;

        padding:
            13px 11px !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;
    }


    #dn-chat-window .dn-msg {
        max-width: 88% !important;

        font-size: 12.5px !important;

        padding:
            9px 11px !important;
    }


    /* Footer */

    #dn-chat-window .dn-footer {
        flex-shrink: 0 !important;

        padding:
            8px 9px !important;
    }


    #dn-chat-window .dn-input-wrap {
        min-height: 46px !important;

        padding:
            3px 4px 3px 11px !important;

        border-radius: 13px !important;
    }


    #dn-chat-window .dn-input {
        height: 38px !important;

        font-size: 16px !important;
    }


    #dn-chat-window .dn-send {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;

        flex-basis: 38px !important;
    }
}


/* Very small phones */

@media (max-width: 380px) {

    #dn-chat-window {
        width: calc(100vw - 18px) !important;

        height: 65dvh !important;

        min-height: 370px !important;
        max-height: 500px !important;

        border-radius: 19px !important;
    }
}

/* ==========================================
   DATANEX BOLD SVG THEME ICONS
========================================== */

#themeToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#themeToggle svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

#themeToggle:hover svg {
    transform: rotate(12deg) scale(1.08);
}


/* DATANEX FINAL MOBILE TICKER */
@media (max-width: 768px) {
    .ticker {
        display: block !important;
        position: relative;
        overflow: hidden !important;
        width: 100%;
        min-height: 42px;
        padding: 10px 0 !important;
        background: #2563eb;
    }

    .ticker-text {
        display: block !important;
        position: relative;
        width: max-content;
        min-width: 100%;
        padding: 0 !important;
        margin: 0;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 700;
        line-height: 22px;
        white-space: nowrap;
        opacity: 1 !important;
        visibility: visible !important;
        animation: dnTickerMobile 12s linear infinite !important;
        will-change: transform;
    }
}

@keyframes dnTickerMobile {
    from {
        transform: translateX(100vw);
    }
    to {
        transform: translateX(-100%);
    }
}
