:root {
    --bg: #07060b;
    --bg-soft: #0d0b14;
    --card: #11101a;
    --card-hover: #16131f;
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: #9994a8;
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-dark: #6d28d9;
    --green: #22c55e;
    --red: #ef4444;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(124, 58, 237, 0.20),
            transparent 40%
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


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

.bot-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 6, 11, 0.90);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.bot-header-inner {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    min-height: 74px;

    margin-inline: auto;

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

    gap: 30px;
}

.bot-logo {
    display: flex;
    align-items: center;
    gap: 10px;

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

.bot-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 10px;
}

.bot-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.bot-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.bot-nav a[href="/bot/manual/"] {
    color: #ffffff !important;
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.bot-nav a[href="/bot/manual/"]:hover {
    color: #ffffff !important;
    background: #9333ea;
}
.bot-nav a[href="/auto/"] {
    color: #ffffff !important;
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.bot-nav a[href="/auto/"]:hover {
    color: #ffffff !important;
    background: #9333ea;
}

.connect-wallet-btn {
    border: 1px solid rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.12);
    color: #ffffff;

    padding: 11px 16px;
    border-radius: 12px;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-weight: 700;
}

.connect-wallet-btn:hover {
    background: rgba(139, 92, 246, 0.22);
}

.wallet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple-light);
    box-shadow:
        0 0 12px
        rgba(167, 139, 250, 0.8);
}


/* =========================================================
   MAIN
========================================================= */

.bot-main {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}


/* =========================================================
   HERO
========================================================= */

.bot-hero {
    position: relative;
    min-height: 470px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

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

    max-width: 760px;
    padding: 80px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.10);

    border-radius: 999px;

    color: var(--purple-light);

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

.hero-badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.hero-content h1 {
    margin: 24px 0 16px;

    font-size: clamp(
        46px,
        7vw,
        82px
    );

    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-content h1 strong {
    display: block;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            var(--purple-light),
            var(--purple)
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    max-width: 620px;

    margin: 0;

    color: var(--muted);

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

.hero-actions {
    display: flex;
    gap: 12px;

    margin-top: 32px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 12px;

    font-weight: 800;

    transition: 0.2s ease;
}

.primary-btn {
    background: var(--purple);
    color: #ffffff;
}

.primary-btn:hover {
    background: var(--purple-light);
    transform: translateY(-1px);
}

.secondary-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.07);
}

.hero-glow {
    position: absolute;

    right: 5%;
    top: 20%;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.25),
            transparent 68%
        );

    filter: blur(10px);

    pointer-events: none;
}


/* =========================================================
   WALLET PANEL
========================================================= */

.wallet-panel {
    padding: 28px;

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

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.08),
            rgba(255, 255, 255, 0.02)
        );
}

.wallet-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.section-label {
    color: var(--purple-light);

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

    letter-spacing: 0.14em;
}

.wallet-panel h2,
.section-heading h2,
.safety-content h2 {
    margin: 7px 0 0;

    font-size: 28px;
    letter-spacing: -0.03em;
}

.wallet-status {
    color: var(--red);

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

.wallet-grid {
    display: grid;

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

    gap: 12px;
}

.wallet-card {
    min-width: 0;

    padding: 18px;

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

    background: rgba(0, 0, 0, 0.20);
}

.card-label {
    display: block;

    margin-bottom: 9px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.wallet-card strong {
    display: block;

    overflow: hidden;

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

    font-size: 15px;
}


/* =========================================================
   MODES
========================================================= */

.mode-section {
    padding: 100px 0 60px;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading p {
    max-width: 600px;

    margin-top: 12px;

    color: var(--muted);
    line-height: 1.6;
}

.mode-grid {
    display: grid;

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

    gap: 18px;
}

.mode-card {
    padding: 30px;

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

    background: var(--card);

    transition: 0.2s ease;
}

.mode-card:hover {
    background: var(--card-hover);
    border-color: rgba(139, 92, 246, 0.25);
}

.auto-card {
    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.10),
            var(--card)
        );
}

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

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 13px;

    background: rgba(139, 92, 246, 0.15);

    color: var(--purple-light);

    font-size: 18px;
    font-weight: 900;
}

.mode-tag {
    color: var(--purple-light);

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

    letter-spacing: 0.14em;
}

.mode-card h3 {
    margin: 9px 0;

    font-size: 26px;
}

.mode-card p {
    min-height: 76px;

    color: var(--muted);

    line-height: 1.65;
}

.mode-card ul {
    margin: 20px 0;
    padding: 0;

    list-style: none;
}

.mode-card li {
    padding: 9px 0;

    color: #d8d4df;

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

    font-size: 14px;
}

.mode-card li::before {
    content: "✓";

    margin-right: 9px;

    color: var(--purple-light);
}

.mode-btn {
    width: 100%;

    min-height: 46px;

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

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

    color: var(--muted);

    cursor: not-allowed;
}


/* =========================================================
   STATS
========================================================= */

.stats-section {
    display: grid;

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

    gap: 12px;

    padding: 30px 0 80px;
}

.stat-card {
    padding: 22px;

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

    background: var(--card);
}

.stat-card span {
    display: block;

    margin-bottom: 10px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.stat-card strong {
    font-size: 22px;
}

.status-off {
    color: var(--muted);
}


/* =========================================================
   SAFETY
========================================================= */

.safety-section {
    margin-bottom: 80px;

    padding: 32px;

    border: 1px solid rgba(34, 197, 94, 0.14);
    border-radius: 20px;

    background: rgba(34, 197, 94, 0.035);
}

.safety-content p {
    max-width: 700px;

    margin-bottom: 0;

    color: var(--muted);

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.bot-footer {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;

    padding: 30px 0;

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

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

    gap: 20px;
}

.bot-footer div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bot-footer strong {
    font-size: 15px;
}

.bot-footer span,
.bot-footer a {
    color: var(--muted);

    font-size: 12px;
}

.bot-footer a:hover {
    color: #ffffff;
}


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

@media (max-width: 850px) {

    .bot-nav {
        display: flex;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .bot-nav::-webkit-scrollbar {
        display: none;
    }

    .bot-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .wallet-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .stats-section {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .bot-header-inner {
        width: min(
            calc(100% - 24px),
            var(--container)
        );

        min-height: 66px;
    }

    .bot-logo span {
        display: none;
    }

    .connect-wallet-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .bot-main {
        width: min(
            calc(100% - 24px),
            var(--container)
        );
    }

    .bot-hero {
        min-height: 430px;
    }

    .hero-content {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .wallet-panel {
        padding: 18px;
    }

    .wallet-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .mode-section {
        padding-top: 70px;
    }

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

    .mode-card {
        padding: 22px;
    }

    .mode-card p {
        min-height: auto;
    }

    .stats-section {
        grid-template-columns: 1fr;
        padding-bottom: 60px;
    }

    .safety-section {
        padding: 22px;
        margin-bottom: 60px;
    }

    .bot-footer {
        width: min(
            calc(100% - 24px),
            var(--container)
        );

        flex-direction: column;
        align-items: flex-start;
    }

}
/* =========================================================
   WALLET SELECTOR
========================================================= */

#pumpvote-bot-wallet-selector {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.wallet-selector-backdrop {
    position: absolute;
    inset: 0;

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

    padding: 20px;

    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
}

.wallet-selector-modal {
    width: min(100%, 420px);

    padding: 24px;

    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #15121f,
            #0c0a12
        );

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.55),
        0 0 50px rgba(139, 92, 246, 0.12);

    color: #ffffff;
}

.wallet-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.wallet-selector-header h3 {
    margin: 0;

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

.wallet-selector-close {
    width: 36px;
    height: 36px;

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

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

    color: #ffffff;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

.wallet-selector-close:hover {
    background: rgba(255, 255, 255, 0.09);
}

.wallet-selector-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-option {
    width: 100%;

    min-height: 64px;

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

    padding: 12px 14px;

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

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

    color: #ffffff;

    text-align: left;

    cursor: pointer;

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

.wallet-option:hover {
    background: rgba(139, 92, 246, 0.12);

    border-color:
        rgba(139, 92, 246, 0.45);

    transform: translateY(-1px);
}

.wallet-option-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

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

    overflow: hidden;

    border-radius: 10px;

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

    font-size: 20px;
}

.wallet-option-icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.wallet-option-name {
    font-size: 15px;
    font-weight: 700;
}

.wallet-selector-cancel {
    width: 100%;

    min-height: 46px;

    margin-top: 14px;

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

    background: transparent;

    color: #9994a8;

    font-weight: 700;

    cursor: pointer;
}

.wallet-selector-cancel:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.04);
}


/* Mobile */

@media (max-width: 600px) {

    .wallet-selector-backdrop {
        padding: 14px;
    }

    .wallet-selector-modal {
        padding: 18px;

        border-radius: 18px;
    }

}
.mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
/* =====================================================
   PUMPVOTE BOT WALLET SELECTOR - TOP LAYER
===================================================== */

#pumpvote-manual-wallet-selector {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
}

#pumpvote-manual-wallet-selector .wallet-selector-backdrop {
    position: fixed !important;
    inset: 0 !important;

    z-index: 999999 !important;

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

    padding: 20px !important;

    background: rgba(0, 0, 0, 0.72) !important;

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

#pumpvote-manual-wallet-selector .wallet-selector-modal {
    position: relative !important;
    z-index: 1000000 !important;

    width: min(420px, 100%) !important;

    padding: 20px !important;

    border: 1px solid rgba(139, 92, 246, 0.45) !important;
    border-radius: 20px !important;

    background:
        linear-gradient(
            145deg,
            rgba(30, 25, 45, 0.98),
            rgba(12, 10, 20, 0.98)
        ) !important;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.75) !important;

    color: #ffffff !important;
}

#pumpvote-manual-wallet-selector .wallet-selector-header {
    position: relative;
    z-index: 1000001;
}

#pumpvote-manual-wallet-selector .wallet-option,
#pumpvote-manual-wallet-selector .wallet-selector-close,
#pumpvote-manual-wallet-selector .wallet-selector-cancel {
    position: relative;
    z-index: 1000001;
}
/* =====================================================
   MOBILE BOT HEADER
===================================================== */

@media (max-width: 768px) {

    .bot-header {
        width: 100%;
        overflow: visible;
    }

    .bot-header-inner {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .bot-logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .bot-logo span {
        white-space: nowrap;
    }

    .connect-wallet-btn {
        display: inline-flex !important;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .bot-nav {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;

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

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

        padding: 4px 0 6px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bot-nav::-webkit-scrollbar {
        display: none;
    }

    .bot-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    body {
        overflow-x: hidden;
    }
}
/* =====================================================
   TOKEN MOVEMENT
===================================================== */

.token-movement {
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.02);
}

.token-movement-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.token-movement-label {
    color: #777181;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.token-movement-status {
    font-size: 11px;
    font-weight: 900;
}

.token-movement-status.up {
    color: #22c55e;
}

.token-movement-status.down {
    color: #ef4444;
}

.token-movement-status.flat {
    color: #8e8998;
}

.token-movement-chart {
    width: 100%;
    height: 54px;
    display: block;
}

.token-movement-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.token-movement-dot {
    fill: currentColor;
}

.token-movement.up {
    color: #22c55e;
}

.token-movement.down {
    color: #ef4444;
}

.token-movement.flat {
    color: #777181;
}

/* =========================================================
   HOMEPAGE LAYOUT POLISH
   ========================================================= */

/* Keep page sizing predictable */
html {
    overflow-x: clip;
}

body {
    min-width: 0;
    overflow-x: clip;
}

.bot-main {
    min-width: 0;
}

/* Navigation links */
.bot-nav {
    flex-wrap: nowrap;
}

.bot-nav a {
    flex-shrink: 0;
    white-space: nowrap;
}

.bot-nav a[href="/auto/"] {
    color: #ffffff;
    background: #8b5cf6;
    border: 1px solid #8b5cf6;
    border-radius: 10px;
    padding: 10px 14px;
}

.bot-nav a[href="/auto/"]:hover {
    background: #9333ea;
}

/* Hero buttons can wrap instead of overflowing */
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions a {
    max-width: 100%;
}

/* Cards remain aligned without forcing overflowing content */
.mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.mode-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mode-card p {
    min-height: 0;
    overflow-wrap: anywhere;
}

.mode-card li {
    overflow-wrap: anywhere;
}

.mode-card > .primary-btn,
.mode-card > .mode-btn {
    margin-top: auto;
}

/* Footer: brand on the left, links laid out horizontally */
.bot-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bot-footer > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bot-footer > div:last-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.bot-footer a {
    white-space: nowrap;
}

/* Tablet and mobile navigation */
@media (max-width: 850px) {
    .bot-header-inner {
        width: min(calc(100% - 24px), var(--container));
        padding: 10px 0;
        gap: 10px;
        flex-wrap: wrap;
    }

    .bot-nav {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        padding: 4px 0 6px;
    }

    .connect-wallet-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .bot-main {
        width: min(calc(100% - 24px), var(--container));
    }

    .bot-footer {
        width: min(calc(100% - 24px), var(--container));
        flex-direction: column;
        align-items: flex-start;
    }

    .bot-footer > div:last-child {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .bot-logo span {
        display: inline;
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-actions a {
        text-align: center;
    }

    .mode-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mode-card {
        padding: 22px;
    }

    .mode-card > .primary-btn,
    .mode-card > .mode-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .bot-nav {
        gap: 8px;
    }

    .bot-nav a {
        font-size: 12px;
    }

    .hero-actions a {
        width: 100%;
    }
}
