/* ZeoTeam Partner premium blue glassmorphism theme */
* {
    box-sizing: border-box;
}

:root {
    --primary: #3B82F6;
    --secondary: #60A5FA;
    --accent: #93C5FD;
    --bg: #F8FBFF;
    --glass: rgba(255, 255, 255, .22);
    --glass-strong: rgba(255, 255, 255, .58);
    --border: rgba(255, 255, 255, .34);
    --ink: #0F2A4A;
    --ink-soft: #3E5C7A;
    --muted: #6B85A3;
    --success: #22C55E;
    --warn: #F59E0B;
    --danger: #EF4444;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-glass: 0 8px 32px rgba(59, 130, 246, .15);
    --shadow-pop: 0 18px 44px rgba(59, 130, 246, .22);
    --ff-display: 'Poppins', sans-serif;
    --ff-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--ff-body);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-4,
.section-title,
.stat-value {
    color: var(--ink);
    font-family: var(--ff-display);
    letter-spacing: 0;
}

a {
    text-decoration: none;
}

::selection {
    background: var(--accent);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 8px;
}

.bg-animated,
.zt-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 900px 600px at 12% 8%, rgba(147, 197, 253, .55), transparent 60%),
        radial-gradient(ellipse 800px 700px at 88% 18%, rgba(96, 165, 250, .40), transparent 60%),
        radial-gradient(ellipse 1000px 800px at 50% 100%, rgba(59, 130, 246, .18), transparent 60%),
        var(--bg);
    background-size: 200% 200%;
    animation: bgDrift 22s ease-in-out infinite alternate;
}

@keyframes bgDrift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 60%; }
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(255, 255, 255, .7);
    backdrop-filter: blur(2px);
    animation: floatY linear infinite;
}

@keyframes floatY {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: .7; }
    50% { transform: translateY(-60vh) translateX(20px) rotate(180deg); }
    90% { opacity: .5; }
    100% { transform: translateY(-120vh) translateX(-10px) rotate(360deg); opacity: 0; }
}

.container {
    max-width: 1240px;
}

.zt-nav {
    position: fixed !important;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 0 16px;
    background: transparent;
    transition: padding .25s ease;
}

.zt-nav .container {
    max-width: 1240px;
    padding: 12px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .25);
    border: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(59, 130, 246, .10);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.zt-nav.scrolled .container {
    background: rgba(255, 255, 255, .62);
}

main {
    padding-top: 104px;
}

.navbar-brand {
    color: var(--ink);
    font-family: var(--ff-display);
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #fff;
    font-family: var(--ff-display);
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 20px rgba(59, 130, 246, .36);
}

.nav-link {
    color: var(--ink-soft);
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

.navbar-toggler {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .42);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

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

.btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 24px rgba(59, 130, 246, .35);
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: 0 14px 30px rgba(59, 130, 246, .45);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: rgba(59, 130, 246, .55);
    background: rgba(255, 255, 255, .20);
    backdrop-filter: blur(12px);
}

.btn-outline-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

.btn-success {
    border: 0;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 10px 24px rgba(34, 197, 94, .28);
}

.flash-wrap {
    padding-top: 1rem;
}

.hero {
    position: relative;
    padding: 64px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: 50px;
    align-items: center;
}

.hero-title {
    max-width: 800px;
    margin-bottom: 18px;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.1;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy {
    max-width: 560px;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 34px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

.hero-trust b {
    display: block;
    color: var(--ink);
    font-family: var(--ff-display);
    font-size: 23px;
}

.hero-trust span {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.dash-preview {
    position: relative;
}

.preview-card,
.glass-card,
.dashboard-shell,
.auth-card {
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.glass-card,
.preview-card {
    transition: transform .35s ease, box-shadow .35s ease;
}

.glass-card:hover,
.preview-card:hover {
    box-shadow: var(--shadow-pop);
}

.preview-card {
    padding: 24px;
    overflow: hidden;
}

.preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.preview-dots {
    display: flex;
    gap: 7px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, .30);
}

.preview-revenue {
    margin: 8px 0 0;
    font-family: var(--ff-display);
    font-size: 32px;
    font-weight: 800;
}

.preview-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 13px;
    font-weight: 800;
}

.mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 76px;
    margin: 22px 0;
}

.mini-bars i {
    flex: 1;
    height: 0;
    border-radius: 10px 10px 0 0;
    opacity: .88;
    background: linear-gradient(180deg, var(--secondary), var(--primary));
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.preview-tile {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .44);
    border: 1px solid var(--border);
}

.preview-tile b {
    display: block;
    font-family: var(--ff-display);
    font-size: 18px;
}

.preview-tile span {
    color: var(--muted);
    font-size: 11.5px;
}

.floating-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .45);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(18px);
    animation: chipFloat 5s ease-in-out infinite;
}

.floating-chip .ic {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.floating-chip b {
    display: block;
    font-family: var(--ff-display);
    font-size: 14px;
}

.floating-chip span {
    color: var(--muted);
    font-size: 11px;
}

.chip-1 {
    top: -22px;
    right: -16px;
}

.chip-2 {
    bottom: 30px;
    left: -26px;
    animation-delay: 1.2s;
}

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

.section-pad {
    padding: 72px 0;
}

.features-grid,
.pm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-card {
    padding: 30px 26px;
}

.feature-card .ic,
.pm-card .ic,
.net-stat .ic,
.alert-card .ic {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 14px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(147, 197, 253, .25));
    font-size: 20px;
}

.feature-card h3 {
    margin: 18px 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.feature-card p,
.pm-card .lbl,
.net-stat .lbl {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 25px 18px;
    text-align: center;
}

.service-card .ic {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(59, 130, 246, .12);
    font-size: 18px;
}

.service-card h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
}

.network-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .85fr);
    gap: 36px;
    align-items: start;
}

.tree {
    min-height: 360px;
    padding: 36px 18px;
    overflow-x: auto;
}

.tree-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 86px;
}

.tree-node .avatar {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, .58);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 20px rgba(59, 130, 246, .20);
}

.tree-node.admin .avatar {
    width: 66px;
    height: 66px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.tree-node b {
    font-size: 12.5px;
}

.tree-node span {
    color: var(--muted);
    font-size: 11px;
}

.tree-children {
    position: relative;
    display: flex;
    gap: 26px;
    padding-top: 44px;
}

.tree-children::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: 1px;
    height: 26px;
    background: rgba(59, 130, 246, .42);
}

.tree-children .tree-node::before {
    content: "";
    position: absolute;
    top: -26px;
    left: 50%;
    width: 1px;
    height: 26px;
    background: rgba(59, 130, 246, .42);
}

.net-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.net-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
}

.net-stat .val,
.pm-card .val,
.stat-box .val {
    font-family: var(--ff-display);
    font-size: 26px;
    font-weight: 800;
}

.pm-card {
    padding: 24px;
}

.pm-card .top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.trend.up {
    color: var(--success);
}

.bar-track {
    height: 7px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(59, 130, 246, .12);
}

.bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.agreement-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 40px;
    align-items: center;
    padding: 46px;
    border-radius: 28px;
}

.agreement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
}

.agreement-list li {
    display: flex;
    gap: 10px;
    color: var(--ink-soft);
}

.agreement-list i {
    color: var(--primary);
}

.agreement-side {
    padding: 28px;
    text-align: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, .40);
    border: 1px solid var(--border);
}

.agreement-side .seal {
    display: grid;
    width: 86px;
    height: 86px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(59, 130, 246, .35);
    font-size: 34px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-box {
    padding: 24px;
    text-align: center;
}

.stat-box .lbl {
    color: var(--muted);
    font-size: 13px;
}

.alert-card {
    display: flex;
    gap: 26px;
    align-items: flex-start;
    padding: 40px;
}

.pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .48);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 13px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    font-weight: 800;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 16px;
    border-radius: 30px;
    color: var(--primary);
    background: rgba(59, 130, 246, .08);
    border: 1px solid rgba(59, 130, 246, .18);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.service-icon,
.stat-icon,
.dash-icon {
    display: inline-grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 14px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(147, 197, 253, .25));
    font-size: 20px;
}

.safety-box {
    border-left: 0;
    background: rgba(255, 255, 255, .36);
}

.referral-level {
    position: relative;
    padding-left: 1.75rem;
}

.referral-level::before {
    content: "";
    position: absolute;
    left: .55rem;
    top: .3rem;
    bottom: -.95rem;
    width: 2px;
    background: rgba(59, 130, 246, .32);
}

.referral-level:last-child::before {
    display: none;
}

.referral-dot {
    position: absolute;
    left: 0;
    top: .2rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 3px solid #fff;
    background: var(--primary);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, .28);
}

.auth-page {
    min-height: 100vh;
}

.auth-card {
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 28px;
}

.auth-side {
    min-height: 100%;
    color: #fff;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .28), transparent 18rem),
        linear-gradient(160deg, rgba(59, 130, 246, .94), rgba(96, 165, 250, .86));
}

.auth-side h1,
.auth-side h2,
.auth-side h3,
.auth-side p {
    color: #fff;
}

.auth-card .nav-pills {
    gap: 6px;
    padding: 5px;
    border-radius: 14px;
    background: rgba(59, 130, 246, .08);
}

.auth-card .nav-pills .nav-link {
    border-radius: 10px;
}

.auth-card .nav-pills .nav-link.active {
    color: var(--primary);
    background: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, .18);
}

.form-control,
.form-select {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, .16);
    background-color: rgba(255, 255, 255, .58);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(59, 130, 246, .55);
    box-shadow: 0 0 0 .25rem rgba(59, 130, 246, .12);
}

.glass-card .bg-white,
.auth-card .bg-white,
.dashboard-shell .bg-white {
    background: rgba(255, 255, 255, .48) !important;
    border-color: var(--border) !important;
    border-radius: 16px !important;
}

.alert {
    border-radius: 16px;
}

.list-group-item,
.accordion-item {
    background: rgba(255, 255, 255, .48);
    border-color: rgba(59, 130, 246, .14);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

.accordion-button {
    color: var(--ink);
    background: rgba(255, 255, 255, .42);
    font-weight: 700;
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 -1px 0 rgba(59, 130, 246, .12);
}

.dashboard-shell {
    overflow: hidden;
    min-height: calc(100vh - 6rem);
    border-radius: 24px;
}

.dash-sidebar {
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, .34);
}

.dash-sidebar .nav-link {
    margin-bottom: 4px;
    padding: 12px 13px;
    border-radius: 14px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
}

.dash-sidebar .nav-link.active,
.dash-sidebar .nav-link:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 8px 20px rgba(59, 130, 246, .10);
}

.stat-card {
    min-height: 132px;
}

.stat-value {
    font-size: 1.45rem;
    font-weight: 800;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(59, 130, 246, .12);
}

.table th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.badge-soft {
    color: var(--primary);
    background: rgba(59, 130, 246, .10);
    border: 1px solid rgba(59, 130, 246, .16);
}

.payment-warning {
    color: #842029;
    background: rgba(255, 245, 245, .78);
    border: 1px solid rgba(245, 194, 199, .75);
    border-radius: 16px;
}

.chat-window {
    height: 380px;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .42);
    border: 1px solid var(--border);
}

.chat-message {
    max-width: min(75%, 620px);
    padding: .72rem .9rem;
    margin-bottom: .75rem;
    border-radius: 16px;
    font-size: 14px;
}

.chat-in {
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--border);
}

.chat-out {
    margin-left: auto;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.verified-badge {
    display: inline-block;
    width: 26px;
    height: 26px;
    vertical-align: middle;
    filter: drop-shadow(0 5px 12px rgba(59, 130, 246, .35));
}

.zt-footer {
    position: relative;
    padding: 60px 0 26px;
}

.zt-footer .container {
    padding-top: 34px;
    border-top: 1px solid var(--border);
}

.zt-footer a {
    display: block;
    margin-bottom: .55rem;
    color: var(--ink-soft);
    font-size: 13.5px;
}

.zt-footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12.5px;
}

@media (max-width: 991.98px) {
    .zt-nav {
        top: 0;
        padding: 0;
    }

    .zt-nav .container {
        border-radius: 0;
    }

    .hero {
        padding: 40px 0 46px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    main {
        padding-top: 86px;
    }

    .features-grid,
    .pm-grid,
    .network-wrap,
    .agreement-card {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .dash-sidebar .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 34px;
    }

    .section-pad {
        padding: 46px 0;
    }

    .hero-actions .btn,
    .auth-card .btn {
        width: 100%;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .floating-chip {
        position: static;
        margin-top: 12px;
    }

    .dash-sidebar .nav {
        grid-template-columns: 1fr;
    }

    .chat-message {
        max-width: 92%;
    }
}
