/* =====================================================================
   CALLS PAGE ? Global overrides (Matrix dark theme)
   ===================================================================== */

/* ?? Body ?? */
body {
    background: #060f09 !important;
    color: #d4f0e0 !important;
    /* subtle Matrix grid */
    background-image:
        linear-gradient(rgba(0,255,136,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,136,0.028) 1px, transparent 1px) !important;
    background-size: 44px 44px !important;
}
/* disable old animated radial glow from style.css */
body::before { display: none !important; }

/* ?? Container ?? */
.container {
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 1500px !important;
}

/* ?? #mainHeader override ?? */
#mainHeader {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: rgba(4, 10, 7, 0.97) !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 255, 136, 0.18) !important;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(0, 255, 136, 0.1) !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 200;
    backdrop-filter: blur(10px);
    overflow: visible !important;
}

/* Desktop: header sticky + single-line layout */
@media (min-width: 1400px) {
    #mainHeader {
        position: sticky !important;
        top: 0 !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        padding: 0 20px !important;
        min-height: 54px !important;
        gap: 0 !important;
    }

    /* "dissolve" row1 so its children (brand-title + headerAuthBox) join the header flex row */
    .header-row1 {
        display: contents !important;
    }

    /* brand-title: leftmost – flex:1 pushes everything else to the right */
    .brand-title {
        order: 0 !important;
        flex: 1 !important;
        padding: 0 !important;
        min-height: unset !important;
    }

    /* wallet + balance: nebeneinander, kompakt, auf der rechten Seite */
    #headerMembersRow {
        order: 1 !important;
        flex: 0 !important;
        flex-shrink: 0 !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 16px !important;
        border-top: none !important;
        padding: 0 !important;
        margin-right: 16px !important;
    }

    /* Wallet-Adresse auf Desktop kürzen damit sie nicht umbricht */
    #headerMembersRow .header-wallet-box {
        max-width: 220px !important;
    }
    #headerMembersRow .wallet-address {
        max-width: 130px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Balance-Wert immer einzeilig halten */
    #headerMembersRow .header-balance-box {
        white-space: nowrap !important;
    }

    /* auth box (settings + logout): rightmost */
    #headerAuthBox {
        order: 2 !important;
        flex-shrink: 0 !important;
        border-left: 1px solid rgba(0,255,136,0.15) !important;
        padding-left: 16px !important;
        margin-left: 0 !important;
    }
}

/* Mobile (< 1400px): header scrolls away, tabs are sticky */
@media (max-width: 1399px) {
    #mainHeader {
        position: relative !important;
        top: auto !important;
    }
}
/* top glow line */
#mainHeader::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0; left: 0; right: 0;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, rgba(0,255,136,0.55), transparent) !important;
    animation: headerGlow 4s ease-in-out infinite !important;
}
@keyframes headerGlow {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

/* ?? Header Row 1: Logo + Buttons ?? */
.header-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 12px;
    min-height: 52px;
}

/* ?? Header Row 2: Wallet + Balance ?? */
.header-row2 {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 20px 10px;
    border-top: 1px solid rgba(0, 255, 136, 0.07);
    flex-wrap: wrap;
}

/* ?? Protected content padding ?? */
#protectedContent {
    padding: 20px;
}

/* ?? Mobile tabs padding ?? */
.mobile-calls-tabs {
    position: sticky;
    top: 0;
    z-index: 190;
}

/* =====================================================================
   BRAND TITLE
   ===================================================================== */

/* override style.css h1 global rule */
#mainHeader h1,
#mainHeader .brand-title {
    font-size: 1.25rem !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    color: #fff !important;
}

.brand-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    margin: 0;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #fff;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(34, 197, 94, 0.18);
    font-size: 0.95rem;
}

.brand-icon svg {
    fill: #21d070;
}

.brand-logo-wrap {
    position: relative;
    padding: 2px;
}
.brand-logo {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}
.brand-logo-wrap::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 44px;
    height: 12px;
    background: radial-gradient(ellipse 70% 50%, rgba(34, 197, 94, 0.55) 0%, rgba(34, 197, 94, 0.15) 50%, transparent 75%);
    pointer-events: none;
}

/* ---------- Landing Nav (shown when not logged in) ---------- */
.landing-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-left: auto;
    position: relative;
}

.landing-nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #9ee0bc;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

.landing-nav-link:hover {
    color: #00ff88;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

.landing-nav-cta {
    padding: 8px 18px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.5);
    border-radius: 10px;
    color: #00ff88 !important;
    font-weight: 600;
}

.landing-nav-cta:hover {
    background: rgba(0, 255, 136, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.landing-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 10px;
    cursor: pointer;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ---------- Landing One-Pager (Matrix Style) ---------- */
.prelogin-landing {
    margin-top: 0;
    position: relative;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.landing-matrix-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 8, 6, 0.98) 0%, rgba(0, 18, 12, 0.97) 30%, rgba(0, 12, 8, 0.98) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 136, 0.03) 2px,
            rgba(0, 255, 136, 0.03) 4px
        );
    animation: matrixGridPulse 8s ease-in-out infinite;
}

.landing-matrix-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    animation: matrixFade 6s ease-in-out infinite;
}

@keyframes matrixFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes matrixGridPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.92; }
}

.landing-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
    animation: scanlineMove 18s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Section blocks ? open, no boxes */
.landing-block {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.landing-block + .landing-block {
    margin-top: 8px;
}

.landing-block-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 36px 56px;
}

/* Hero */
.landing-hero {
    text-align: center;
}

.landing-hero .landing-block-inner {
    padding: 52px 36px 60px;
}

.landing-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.landing-hero-logo {
    width: 340px;
    height: auto;
    max-width: 90%;
    display: block;
    margin: 0 auto 28px;
    filter: drop-shadow(0 0 40px rgba(0, 255, 136, 0.4)) drop-shadow(0 0 80px rgba(0, 255, 136, 0.2));
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(0, 255, 136, 0.4)) drop-shadow(0 0 80px rgba(0, 255, 136, 0.2)); }
    50% { filter: drop-shadow(0 0 55px rgba(0, 255, 136, 0.55)) drop-shadow(0 0 100px rgba(0, 255, 136, 0.25)); }
}

.landing-title {
    margin: 0 0 12px;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    text-shadow:
        0 0 30px rgba(0, 255, 136, 0.5),
        0 0 60px rgba(0, 255, 136, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.landing-tagline {
    margin: 0 0 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    letter-spacing: 0.02em;
}

.landing-hero-text {
    margin: 0 0 12px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #b8f0d0;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}

.landing-hero-text strong {
    color: #00ff88;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.35);
}

.landing-hero-plus {
    margin: 0;
    font-size: 0.95rem;
    color: #7cc9a0;
}

/* Section titles (inside blocks) */
.landing-section {
    position: relative;
    z-index: 1;
}

.landing-section-title {
    margin: 0 0 28px;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(0, 255, 136, 0.9);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-section-num {
    font-family: 'Consolas', 'Monaco', monospace;
    color: rgba(0, 255, 136, 0.5);
    font-size: 0.95rem;
}

/* Emotionless Trading Bot ? 3 strategy rows (no box-in-box) */
.landing-bot-intro {
    margin: 0 0 40px;
    font-size: 1.1rem;
    line-height: 1.65;
    color: #b8f0d0;
}

.landing-strategy-rows {
    margin-bottom: 40px;
}

.landing-strategy-row {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
}

.landing-strategy-row:last-child {
    margin-bottom: 0;
}

.landing-strategy-row--reverse {
    flex-direction: row-reverse;
}

/* Images ? full visible, not cropped */
.landing-strategy-row-img-wrap {
    flex: 0 0 42%;
    max-width: 420px;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-strategy-row-img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.landing-strategy-row-content {
    flex: 1;
    min-width: 0;
}

.landing-strategy-row-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #00ff88;
    letter-spacing: 0.04em;
    text-shadow: 0 0 16px rgba(0, 255, 136, 0.35);
}

.landing-strategy-row-desc {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #9ee0bc;
}

.landing-bot-stats {
    padding: 20px 0 0;
}

.landing-bot-stat {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #9ee0bc;
}

.landing-bot-stat:last-child {
    margin-bottom: 0;
}

.landing-bot-stat strong {
    color: #00ff88;
}

/* EMOLESS COIN block */
.landing-coin .landing-block-inner {
    max-width: 900px;
}

.landing-coin-box {
    padding: 0;
    text-align: center;
}

.landing-coin-text {
    margin: 0 0 16px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #b8f0d0;
}

.landing-coin-text strong {
    color: #00ff88;
}

.landing-coin-text + .landing-coin-text {
    margin-top: 14px;
}

.landing-coin-soon {
    margin: 20px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(0, 255, 136, 0.8);
    letter-spacing: 0.08em;
}

/* Roadmap ? open, matrix accents only */
.landing-roadmap {
    position: relative;
    margin-top: 48px;
    padding: 0;
    overflow: hidden;
}

.landing-roadmap-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    animation: roadmapGridPulse 4s ease-in-out infinite;
}

@keyframes roadmapGridPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.landing-roadmap-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 136, 0.03) 50%, transparent 100%);
    background-size: 100% 8px;
    animation: roadmapScan 6s linear infinite;
    pointer-events: none;
}

@keyframes roadmapScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.landing-roadmap-title {
    position: relative;
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #00ff88;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.landing-roadmap-intro {
    position: relative;
    margin: 0 0 28px;
    font-size: 0.98rem;
    color: #9ee0bc;
}

.landing-roadmap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.landing-roadmap-item {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.12);
    transition: opacity 0.2s;
    animation: roadmapItemIn 0.5s ease-out backwards;
}

.landing-roadmap-item:nth-child(1) { animation-delay: 0.05s; }
.landing-roadmap-item:nth-child(2) { animation-delay: 0.15s; }
.landing-roadmap-item:nth-child(3) { animation-delay: 0.25s; }
.landing-roadmap-item:nth-child(4) { animation-delay: 0.35s; }
.landing-roadmap-item:nth-child(5) { animation-delay: 0.45s; }

@keyframes roadmapItemIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.landing-roadmap-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* Timeline node (vertical line connector) */
.landing-roadmap-node {
    position: absolute;
    left: 13px;
    top: 42px;
    bottom: -12px;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.5), rgba(0, 255, 136, 0.1));
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}

.landing-roadmap-item:last-child .landing-roadmap-node {
    display: none;
}

.landing-roadmap-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.landing-roadmap-item.is-done .landing-roadmap-check {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.6);
    box-shadow:
        0 0 16px rgba(0, 255, 136, 0.4),
        inset 0 0 12px rgba(0, 255, 136, 0.15);
    animation: roadmapCheckGlow 2.5s ease-in-out infinite;
}

@keyframes roadmapCheckGlow {
    0%, 100% { box-shadow: 0 0 16px rgba(0, 255, 136, 0.4), inset 0 0 12px rgba(0, 255, 136, 0.15); }
    50% { box-shadow: 0 0 24px rgba(0, 255, 136, 0.6), inset 0 0 14px rgba(0, 255, 136, 0.2); }
}

.landing-roadmap-item.is-next .landing-roadmap-check {
    color: rgba(0, 255, 136, 0.7);
    background: transparent;
    border: 1px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}

.landing-roadmap-item-content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b8f0d0;
}

.landing-roadmap-item strong {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.landing-roadmap-sub {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #9ee0bc;
}

.landing-roadmap-legend {
    position: relative;
    margin: 24px 0 0;
    font-size: 0.88rem;
    color: #7cc9a0;
}

.landing-roadmap-legend-done {
    color: #00ff88;
    margin-right: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.landing-roadmap-legend-next {
    color: rgba(0, 255, 136, 0.75);
}

/* Login section */
.landing-login {
    text-align: center;
    padding-bottom: 64px;
}

.landing-login-text {
    margin: 0 0 20px;
    font-size: 1rem;
    color: #9ee0bc;
}

.landing-login-cta {
    margin-bottom: 12px;
}

.landing-login-cta #openTelegramBotLoginBtn {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25) 0%, rgba(0, 200, 110, 0.3) 100%);
    border: 1px solid rgba(0, 255, 136, 0.6);
    color: #00ff88;
    cursor: pointer;
    transition: all 0.25s ease;
    text-shadow: 0 0 16px rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 28px rgba(0, 255, 136, 0.25);
    animation: ctaPulse 2.5s ease-in-out infinite;
}

.landing-login-cta #openTelegramBotLoginBtn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.35) 0%, rgba(0, 200, 110, 0.45) 100%);
    border-color: rgba(0, 255, 136, 0.85);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
    transform: translateY(-3px) scale(1.02);
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 28px rgba(0, 255, 136, 0.25); }
    50% { box-shadow: 0 0 36px rgba(0, 255, 136, 0.35); }
}

.landing-auth-state {
    color: #8dd4ad;
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 1.2em;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.15);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px 16px;
    margin-top: 0;
}

.main-footer .footer-tagline {
    margin: 0;
    font-size: 0.9rem;
    color: #6b8f7a;
}

/* Landing responsive */
@media (max-width: 900px) {
    .landing-strategy-row,
    .landing-strategy-row--reverse {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }
    .landing-strategy-row-img-wrap {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .landing-nav {
        gap: 14px;
    }
    .landing-nav-link {
        font-size: 0.82rem;
    }
    .landing-nav-cta {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .landing-block-inner {
        padding: 36px 20px 44px;
    }
    .landing-hero .landing-block-inner {
        padding: 40px 20px 48px;
    }
    .landing-hero-logo {
        width: 200px;
        margin-bottom: 20px;
    }
    .landing-title {
        font-size: 1.85rem;
    }
    .landing-tagline {
        font-size: 1.05rem;
    }
    .landing-hero-text,
    .landing-hero-plus {
        font-size: 0.95rem;
    }
    .landing-section-title {
        font-size: 0.95rem;
        letter-spacing: 0.08em;
    }
    .landing-bot-intro {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    .landing-strategy-rows {
        margin-bottom: 32px;
    }
    .landing-strategy-row {
        margin-bottom: 36px;
    }
    .landing-strategy-row-img-wrap {
        min-height: 180px;
    }
    .landing-strategy-row-img {
        max-height: 280px;
    }
    .landing-strategy-row-title {
        font-size: 1.1rem;
    }
    .landing-strategy-row-desc {
        font-size: 0.9rem;
    }
    .landing-roadmap {
        padding: 28px 20px 32px;
    }
    .landing-roadmap-item {
        padding: 14px 16px;
    }
    .landing-roadmap-node {
        left: 11px;
        top: 36px;
    }
    .landing-roadmap-check {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    .landing-roadmap-item-content {
        font-size: 0.9rem;
    }
    .landing-roadmap-sub {
        font-size: 0.85rem;
    }
    .landing-coin-box {
        padding: 28px 20px;
    }
    .landing-roadmap {
        margin-top: 36px;
    }
    .landing-login .landing-block-inner {
        padding-bottom: 56px;
    }
}

@media (max-width: 640px) {
    .landing-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
    }
    .landing-nav-toggle {
        display: flex;
        margin-left: auto;
    }
    .landing-nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 12px;
        right: 12px;
        padding: 16px;
        background: rgba(10, 22, 16, 0.98);
        border: 1px solid rgba(0, 255, 136, 0.35);
        border-radius: 12px;
        flex-direction: column;
        gap: 12px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 136, 0.1);
        z-index: 1000;
    }
    .landing-nav.is-open .landing-nav-links {
        display: flex;
    }
    .landing-nav.is-open .landing-nav-toggle {
        background: rgba(0, 255, 136, 0.2);
    }
    .landing-nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    }
    .landing-nav-link:last-child {
        border-bottom: none;
    }
    .landing-nav-cta {
        justify-content: center;
        margin-top: 4px;
    }
}

/* ?? Auth box (wrapper, always flex on login) ?? */
.header-auth-box {
    display: flex;
    align-items: center;
}

/* ?? Buttons row (row 1 right side) ?? */
.header-top-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ?? Settings + Logout buttons ?? */
.header-settings-btn,
.header-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.header-settings-btn {
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.3);
    color: rgba(0,255,136,0.85);
}
.header-settings-btn:hover {
    background: rgba(0,255,136,0.16);
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 14px rgba(0,255,136,0.25);
}

.header-logout-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.4);
}
.header-logout-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
}

/* ?? Wallet row (row 2) ?? */
.header-wallet-row,
.header-balance-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(0,255,136,0.5);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.header-wallet-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 8px;
    padding: 5px 10px;
    min-height: 30px;
    transition: border-color 0.2s;
}
.header-wallet-box:hover {
    border-color: rgba(0,255,136,0.4);
}

.wallet-address {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.7rem;
    color: #b8f5d4;
    word-break: break-all;
    max-width: 100%;
    user-select: none;
    line-height: 1.3;
}
.wallet-address[data-address] { cursor: pointer; }
.wallet-address[data-address]:hover {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0,255,136,0.35);
}

.wallet-copy-btn {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.3);
    color: rgba(0,255,136,0.8);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.wallet-copy-btn:hover {
    background: rgba(0,255,136,0.2);
    color: #00ff88;
}
.wallet-copy-btn.copied {
    background: rgba(0,255,136,0.25);
    border-color: rgba(0,255,136,0.6);
    color: #fff;
}

.header-balance-box {
    font-family: 'Consolas', 'Monaco', monospace;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(0,255,136,0.25);
    border-radius: 8px;
    padding: 6px 12px;
    min-height: 30px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-width: 80px;
}

.header-balance-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0,255,136,0.4);
}

.header-invested-sol {
    font-size: 0.7rem;
    color: rgba(0,255,136,0.8);
    font-weight: 600;
}

#walletSection {
    font-size: 0.75rem;
    color: #b8f5cf;
    overflow-wrap: anywhere;
}

/* ?? Legacy: header-actions (kept for compat) ?? */
.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* ?? Mobile header adjustments ?? */
@media (max-width: 640px) {
    .header-row1 {
        padding: 8px 14px;
        min-height: 46px;
    }
    .header-row2 {
        padding: 6px 14px 8px;
        gap: 12px;
    }
    .brand-title {
        font-size: 1.1rem !important;
    }
    .header-settings-btn,
    .header-logout-btn {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
    .header-wallet-box {
        min-height: 26px;
        padding: 3px 8px;
    }
    .wallet-address {
        font-size: 0.64rem;
    }
    .header-balance-box {
        font-size: 0.78rem;
        padding: 3px 10px;
        min-height: 26px;
    }
    .header-label {
        font-size: 0.62rem;
    }
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

#openTelegramBotLoginBtn {
    font-size: 0.78rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.add-coin-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coin-input {
    padding: 8px 12px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    font-size: 0.9em;
    min-width: 250px;
    transition: border-color 0.2s ease;
}

.coin-input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.6);
}

.coin-input::placeholder {
    color: #888;
}

.add-coin-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.3) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 6px;
    color: #22c55e;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-coin-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.4) 100%);
    border-color: rgba(34, 197, 94, 0.6);
    transform: translateY(-1px);
}

.add-coin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calls-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.calls-column {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 12px;
    min-height: 420px;
}

.calls-column h2 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #22c55e;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.3);
}

.calls-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar */
.calls-grid::-webkit-scrollbar {
    width: 8px;
}

.calls-grid::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 4px;
}

.calls-grid::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.5);
    border-radius: 4px;
}

.calls-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.7);
}

/* Coin Box - Neues Design */
.coin-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    padding: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    color: #e0e0e0;
}

.coin-box:hover {
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}


/* Header: Zeit links, DEX Icons in der Mitte, Buttons rechts */
.coin-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.coin-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.coin-time-left {
    font-size: 0.75em;
    color: #888;
    white-space: nowrap;
}

.coin-dex-icons-inline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.coin-dex-icons-inline .coin-badge {
    font-size: 0.65em;
    padding: 2px 6px;
    margin: 0;
}

/* Contract Address - ausgeschrieben, kopierbar */
.coin-address {
    font-size: 0.66rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.coin-address:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.coin-address::after {
    content: ' \2398';
    font-size: 0.7em;
    opacity: 0.5;
    margin-left: 4px;
}

.coin-address:hover::after {
    opacity: 1;
}

/* Coin Info Section: 3 Spalten (Image | Name/Symbol | Entry/MC/Profit) */
.coin-info-section {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

.coin-image-container {
    flex-shrink: 0;
}

.coin-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(34, 197, 94, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.coin-image-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-weight: 700;
    font-size: 1.3em;
}

.coin-name-symbol {
    min-width: 0;
    overflow: hidden;
}

.coin-name {
    font-size: 0.72em;
    color: #aaa;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.coin-symbol {
    font-size: 0.92em;
    font-weight: 700;
    color: #22c55e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 4px;
}

.coin-social-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
}

.coin-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #888;
    transition: color 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.coin-social-icon:hover {
    color: #22c55e;
}

.coin-social-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Rechts: Entry, MC, Profit */
.coin-metrics-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
}

.coin-entry-small {
    font-size: 0.7em;
    color: #888;
    white-space: nowrap;
}

.coin-mc-box {
    font-size: 0.85em;
    color: #e0e0e0;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    white-space: nowrap;
}

.coin-mc-box strong {
    font-weight: 600;
    color: #fff;
}

.coin-profit-box {
    font-size: 0.85em;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    min-width: 60px;
}

.coin-profit-box.coin-profit-positive {
    background: rgba(34, 197, 94, 0.25);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.coin-profit-box.coin-profit-negative {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.coin-profit-box.coin-profit-neutral {
    background: rgba(128, 128, 128, 0.15);
    color: #888;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

/* Header Buttons (oben rechts) */
.coin-header-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Alte Entry/MC/Profit Styles entfernt - jetzt in coin-metrics-right integriert */

/* Badges: DEX und Boost */
.coin-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.coin-badge {
    display: inline-block;
    font-size: 0.7em;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.4;
}

.coin-badge-dex-paid {
    background: rgba(34, 197, 94, 0.25);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.coin-badge-dex-processing {
    background: rgba(245, 158, 11, 0.25);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.coin-badge-dex-none {
    background: rgba(128, 128, 128, 0.15);
    color: #888;
    border: 1px solid rgba(128, 128, 128, 0.3);
    opacity: 0.6;
}

.coin-badge-boost {
    background: rgba(139, 92, 246, 0.25);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.coin-badge-boost-none {
    background: rgba(128, 128, 128, 0.15);
    color: #888;
    border: 1px solid rgba(128, 128, 128, 0.3);
    opacity: 0.6;
}

/* Call MC + ATH MC Row */
.coin-mc-row {
    display: flex;
    gap: 6px;
    padding: 4px 0 2px;
}
.coin-mc-pill {
    font-size: 0.68em;
    color: #9ca3af;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 5px;
    padding: 2px 8px;
    white-space: nowrap;
}
.coin-mc-pill strong {
    color: #d1d5db;
    font-weight: 600;
}
.coin-mc-pill-ath {
    border-color: rgba(250, 204, 21, 0.25);
    background: rgba(250, 204, 21, 0.06);
}
.coin-mc-pill-ath strong {
    color: #facc15;
}

/* Footer: DEV Stats + Buy presets (see full styles below) */
.coin-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(34, 197, 94, 0.15);
}

/* DEV Stats */
.coin-dev-stats {
    font-size: 0.8em;
    color: #aaa;
    line-height: 1.6;
    min-height: 20px;
    display: block;
    font-weight: 500;
    flex: 1;
}

.coin-dev-stats strong {
    color: #22c55e;
    font-weight: 600;
}

.coin-dev-stats-empty {
    color: #666;
    font-style: italic;
    font-size: 0.75em;
}

/* Dev Section in Call Box */
.dev-section {
    width: 100%;
    margin-bottom: 4px;
}

.dev-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
}

.dev-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.78em;
    min-width: 0;
}

.dev-label {
    color: #9ca3af;
    font-weight: 500;
}

.dev-twitter-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.dev-twitter-link:hover {
    color: #93bbfc;
    text-decoration: underline;
}

.dev-twitter-na {
    color: #6b7280;
    font-style: italic;
}

.dev-stats-inline {
    font-size: 0.9em;
    color: #9ca3af;
    margin-left: 4px;
    white-space: nowrap;
}
.dev-stat-bonded {
    color: #22c55e;
    font-weight: 700;
}
.dev-stat-notbonded {
    color: #ef4444;
    font-weight: 700;
}
.dev-fresh-wallet {
    font-size: 0.9em;
    color: #00ff88;
    font-weight: 600;
    font-style: italic;
}

.dev-comments {
    font-size: 0.72em;
    color: #9ca3af;
    padding: 3px 0 4px;
    line-height: 1.4;
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 2px;
}

/* Dev Header Right (Scoring + Toggle) */
.dev-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Dev Scoring Star */
.dev-scoring {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px 1px 4px;
    border-radius: 10px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.3);
}
.dev-scoring-star {
    color: #facc15;
    flex-shrink: 0;
}
.dev-scoring-value {
    font-size: 0.75em;
    font-weight: 700;
    color: #facc15;
    line-height: 1;
}

/* Accordion Toggle */
.dev-accordion-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 2px 5px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.dev-accordion-toggle:hover {
    background: rgba(255,255,255,0.06);
    color: #d1d5db;
}

.dev-accordion-arrow {
    transition: transform 0.25s ease;
}
.dev-accordion-toggle.open .dev-accordion-arrow {
    transform: rotate(180deg);
}

/* Accordion Body */
.dev-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 0;
}
.dev-accordion-body.open {
    max-height: 300px;
    opacity: 1;
    padding-top: 6px;
}

.dev-no-data {
    color: #6b7280;
    font-style: italic;
    font-size: 0.75em;
    padding: 4px 0;
}
.dev-no-launches {
    color: #6b7280;
    font-style: italic;
    font-size: 0.72em;
    padding: 2px 0;
}

.dev-wallet-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7em;
    color: #9ca3af;
    padding: 2px 0 5px;
    cursor: pointer;
    transition: color 0.15s;
}
.dev-wallet-row:hover {
    color: #d1d5db;
}
.dev-wallet-label {
    color: #6b7280;
    font-weight: 500;
}
.dev-wallet-addr {
    font-family: monospace;
    color: #a5b4c4;
}

.coin-ath-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
}

.coin-ath-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 6px;
    padding: 3px 6px;
    min-width: 0;
    width: 100%;
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.coin-ath-box:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.55);
    background: rgba(148, 163, 184, 0.18);
}

.coin-ath-label {
    font-size: 0.62em;
    color: #9ca3af;
    line-height: 1.1;
}

.coin-ath-value {
    font-size: 0.7em;
    color: #e5e7eb;
    font-weight: 700;
    line-height: 1.15;
}

.coin-ath-box.coin-ath-high {
    border-color: rgba(245, 158, 11, 0.65);
    background: rgba(245, 158, 11, 0.2);
}

.coin-ath-box.coin-ath-complete-true {
    border-color: rgba(34, 197, 94, 0.75);
    background: rgba(34, 197, 94, 0.2);
}

.coin-ath-box.coin-ath-complete-false {
    border-color: rgba(239, 68, 68, 0.75);
    background: rgba(239, 68, 68, 0.2);
}

.coin-ath-box.coin-ath-complete-true:hover {
    border-color: rgba(74, 222, 128, 0.85);
    background: rgba(34, 197, 94, 0.28);
}

.coin-ath-box.coin-ath-complete-false:hover {
    border-color: rgba(248, 113, 113, 0.85);
    background: rgba(239, 68, 68, 0.28);
}

/* DEV Stat Items */
.coin-dev-stat-item {
    display: inline;
}

.coin-dev-stat-high {
    color: #22c55e !important;
    font-weight: 700 !important;
}

.coin-dev-separator {
    color: #555;
    margin: 0 4px;
    font-weight: 300;
}

/* BullX Link */
.coin-bullx-link {
    font-size: 0.75em;
    color: #22c55e;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.coin-bullx-link:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #10b981;
    transform: translateY(-1px);
}

/* Error */
.coin-error {
    color: #ef4444;
    font-size: 0.85em;
    padding: 10px;
    text-align: center;
}

/* No Data */
.calls-grid .no-data {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 1.1em;
}

.active-position-card {
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(6, 14, 10, 0.95);
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Active trades: green glow border */
.active-position-card.is-active {
    border: 1px solid rgba(0, 255, 136, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.15), 0 0 14px rgba(0, 255, 136, 0.08) !important;
}
.active-position-card.is-active:hover {
    border-color: rgba(0, 255, 136, 0.75) !important;
    box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.25), 0 0 20px rgba(0, 255, 136, 0.12) !important;
}

/* Closed trades: gray, muted */
.active-position-card.is-closed {
    border: 1px solid rgba(120, 130, 125, 0.25) !important;
    background: rgba(22, 26, 24, 0.9) !important;
    box-shadow: none !important;
    opacity: 0.8;
}
.active-position-card.is-closed .active-position-title,
.active-position-card.is-closed .active-position-token {
    color: rgba(180, 190, 185, 0.7) !important;
}

.active-position-card.is-pending {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.12);
}

.active-position-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.active-position-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.active-position-title {
    color: #b8f5d4;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.active-position-state {
    font-size: 0.7rem;
    font-weight: 600;
    color: #8dd4ad;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.active-position-chart-link {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 255, 136, 0.12);
    color: #7ee8b4;
    border: 1px solid rgba(0, 255, 136, 0.3);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.active-position-chart-link:hover {
    background: rgba(0, 255, 136, 0.22);
    border-color: rgba(0, 255, 136, 0.55);
    color: #a8ffe0;
}

.active-position-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.active-position-badges .coin-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
}

.active-position-wait-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffd08a;
    background: rgba(255, 166, 0, 0.14);
    border: 1px solid rgba(255, 166, 0, 0.45);
    border-radius: 8px;
    padding: 3px 9px;
    box-shadow: 0 0 14px rgba(255, 166, 0, 0.15);
}
.active-position-wait-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ffb74a;
    box-shadow: 0 0 8px rgba(255, 183, 74, 0.7);
}

.active-position-token {
    font-family: monospace;
    font-size: 0.66rem;
    color: #6ba88a;
    margin-bottom: 10px;
    word-break: break-all;
    cursor: pointer;
}

.active-position-token:hover {
    color: #8dd4ad;
}

.active-position-primary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 8px;
    margin-bottom: 8px;
}

.active-position-primary-item {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 7px;
    padding: 6px;
}

.active-position-primary-item span {
    display: block;
    font-size: 0.65rem;
    color: #85ae99;
    margin-bottom: 2px;
}

.active-position-primary-item strong {
    font-size: 0.78rem;
    color: #d6ffee;
}

.active-position-current-mc.is-above-buy-mc {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.45);
}

.active-position-current-mc.is-below-buy-mc {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
}

/* Zweite Zeile: Active Position | Already Sold | Stop MC */
.active-position-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 8px;
    margin-bottom: 6px;
}

.active-position-secondary-item {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 7px;
    padding: 6px;
}

.active-position-secondary-item span {
    display: block;
    font-size: 0.65rem;
    color: #85ae99;
    margin-bottom: 2px;
}

.active-position-secondary-item strong {
    font-size: 0.78rem;
    color: #d6ffee;
}

/* Accordion: Details ausklappbar */
.active-position-accordion {
    margin-bottom: 6px;
}

.active-position-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 6px 10px;
    font-size: 0.75rem;
    color: #85ae99;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.active-position-accordion-toggle:hover {
    background: rgba(0, 255, 136, 0.08);
    color: #a7f3d0;
}

.active-position-accordion-chevron {
    transition: transform 0.2s ease;
}

.active-position-accordion:has(.active-position-accordion-content.is-open) .active-position-accordion-chevron {
    transform: rotate(180deg);
}

.active-position-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.active-position-accordion-content.is-open {
    max-height: 160px;
}

.active-position-accordion-grid {
    margin-top: 6px;
}

.active-position-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
}

.active-position-grid div {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 7px;
    padding: 6px;
}

.active-position-grid span {
    display: block;
    font-size: 0.65rem;
    color: #85ae99;
    margin-bottom: 2px;
}

.active-position-grid strong {
    font-size: 0.75rem;
    color: #d6ffee;
}

/* PNL Hero ? Hauptfokus der Karte */
.active-position-pnl-hero {
    margin-top: 12px;
    margin-bottom: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    font-weight: 700;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.25);
}

.active-position-pnl-hero.coin-profit-positive {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.active-position-pnl-hero.coin-profit-positive .active-position-pnl-value,
.active-position-pnl-hero.coin-profit-positive .active-position-pnl-percent {
    color: #86efac;
}

.active-position-pnl-hero.coin-profit-negative {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.active-position-pnl-hero.coin-profit-negative .active-position-pnl-value,
.active-position-pnl-hero.coin-profit-negative .active-position-pnl-percent {
    color: #f87171;
}

.active-position-pnl-hero.coin-profit-neutral {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

.active-position-pnl-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.active-position-pnl-value {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.active-position-pnl-percent {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Legacy-Klasse falls noch irgendwo genutzt */
.active-position-pnl {
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 700;
}

.active-position-actions {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.active-position-actions-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.active-position-sellall-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.15);
    color: #ff8f8f;
    cursor: pointer;
}

.active-position-sellall-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.7);
}

.active-position-delete-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid rgba(154, 185, 165, 0.45);
    background: rgba(154, 185, 165, 0.12);
    color: #b9cdc2;
    cursor: pointer;
}

.active-position-delete-btn:hover {
    background: rgba(154, 185, 165, 0.2);
    border-color: rgba(154, 185, 165, 0.75);
}

.active-position-cancel-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.14);
    color: #ffd08a;
    cursor: pointer;
}

.active-position-cancel-btn:hover {
    background: rgba(245, 158, 11, 0.24);
    border-color: rgba(245, 158, 11, 0.8);
}

.active-position-skipdip-btn {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid rgba(34, 197, 94, 0.65);
    background: rgba(34, 197, 94, 0.18);
    color: #b8ffd8;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}

.active-position-skipdip-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.9);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.25);
}

/* Coin Box - Watchlist Stil */
.coin-box.watchlist-item {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1f0a 100%);
}

.coin-box.watchlist-item:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

/* Coin Box - Early Verified (goldener Rahmen) */
.coin-box.coin-box-verified {
    border: 1.5px solid rgba(212, 175, 55, 0.7) !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #28230e 100%) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15), inset 0 0 12px rgba(212, 175, 55, 0.03);
    position: relative;
}

.coin-box.coin-box-verified:hover {
    border-color: rgba(212, 175, 55, 0.9) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 4px 15px rgba(212, 175, 55, 0.15);
}

/* Verified Badge - kleines Tag am linken Rand */
.coin-verified-ribbon {
    position: absolute;
    top: 50%;
    left: -1px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #d4af37 0%, #b8860b 100%);
    color: #1a1a1a;
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 6px 4px;
    border-radius: 0 4px 4px 0;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    box-shadow: 2px 0 8px rgba(212, 175, 55, 0.35);
    z-index: 2;
    line-height: 1;
}

/* Entfernen Button */
.coin-remove-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.coin-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1800px) {
    .calls-layout {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 1400px) {
    .calls-layout {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .calls-column:first-child {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .calls-layout {
        grid-template-columns: 1fr;
    }
}

/* FINAL mobile overrides (must stay at file end due duplicate legacy blocks) */
@media (max-width: 900px) {
    .coin-bullx-header-mobile {
        display: inline-flex !important;
    }

    .coin-bullx-footer {
        display: none !important;
    }

    .coin-footer {
        display: block !important;
    }

    .coin-dev-stats,
    .coin-ath-list {
        width: 100% !important;
    }

    /* Always 5 launches per row on mobile */
    .coin-ath-list {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
        align-items: stretch !important;
    }

    .coin-ath-box {
        width: 100% !important;
        min-width: 0 !important;
        padding: 4px 5px !important;
    }
}

/* Mobile-only layout adjustments for calls cards */
.coin-bullx-header-mobile {
    display: none;
}

@media (max-width: 900px) {
    .landing-points {
        grid-template-columns: 1fr;
    }

    .header-auth-box {
        min-width: 0;
        width: 100%;
    }

    .coin-bullx-header-mobile {
        display: inline-flex;
    }

    .coin-bullx-footer {
        display: none;
    }

    .coin-header-buttons {
        margin-left: auto;
    }

    .coin-footer {
        display: block;
    }

    .coin-ath-list {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        align-items: stretch;
    }

    .coin-ath-box {
        min-width: 0;
        width: 100%;
        padding: 4px 5px;
    }

    .coin-ath-label {
        font-size: 0.58em;
    }

    .coin-ath-value {
        font-size: 0.62em;
    }
}

.add-coin-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coin-input {
    padding: 8px 12px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    font-size: 0.9em;
    min-width: 250px;
    transition: border-color 0.2s ease;
}

.coin-input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.6);
}

.coin-input::placeholder {
    color: #888;
}

.add-coin-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.3) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 6px;
    color: #22c55e;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-coin-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.4) 100%);
    border-color: rgba(34, 197, 94, 0.6);
    transform: translateY(-1px);
}

.add-coin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calls-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.calls-column {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 20px;
    min-height: 600px;
}

.calls-column h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #22c55e;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(34, 197, 94, 0.3);
}

.calls-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar */
.calls-grid::-webkit-scrollbar {
    width: 8px;
}

.calls-grid::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 4px;
}

.calls-grid::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.5);
    border-radius: 4px;
}

.calls-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.7);
}

/* Coin Box - Neues Design */
.coin-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    color: #e0e0e0;
}

.coin-box:hover {
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}


/* Header: Zeit links, DEX Icons in der Mitte, Buttons rechts */
.coin-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.coin-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.coin-time-left {
    font-size: 0.75em;
    color: #888;
    white-space: nowrap;
}

.coin-dex-icons-inline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.coin-dex-icons-inline .coin-badge {
    font-size: 0.65em;
    padding: 2px 6px;
    margin: 0;
}

/* Contract Address - ausgeschrieben, kopierbar */
.coin-address {
    font-size: 0.66rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.coin-address:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.coin-address::after {
    content: ' \2398';
    font-size: 0.7em;
    opacity: 0.5;
    margin-left: 4px;
}

.coin-address:hover::after {
    opacity: 1;
}

/* Coin Info Section: 3 Spalten (Image | Name/Symbol | Entry/MC/Profit) */
.coin-info-section {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

.coin-image-container {
    flex-shrink: 0;
}

.coin-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(34, 197, 94, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.coin-image-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-weight: 700;
    font-size: 1.3em;
}

.coin-name-symbol {
    min-width: 0;
    overflow: hidden;
}

.coin-name {
    font-size: 0.72em;
    color: #aaa;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.coin-symbol {
    font-size: 0.92em;
    font-weight: 700;
    color: #22c55e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 4px;
}

.coin-social-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
}

.coin-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #888;
    transition: color 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.coin-social-icon:hover {
    color: #22c55e;
}

.coin-social-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Rechts: Entry, MC, Profit */
.coin-metrics-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
}

.coin-entry-small {
    font-size: 0.7em;
    color: #888;
    white-space: nowrap;
}

.coin-mc-box {
    font-size: 0.85em;
    color: #e0e0e0;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    white-space: nowrap;
}

.coin-mc-box strong {
    font-weight: 600;
    color: #fff;
}

.coin-profit-box {
    font-size: 0.85em;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    min-width: 60px;
}

.coin-profit-box.coin-profit-positive {
    background: rgba(34, 197, 94, 0.25);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.coin-profit-box.coin-profit-negative {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.coin-profit-box.coin-profit-neutral {
    background: rgba(128, 128, 128, 0.15);
    color: #888;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

/* Header Buttons (oben rechts) */
.coin-header-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Alte Entry/MC/Profit Styles entfernt - jetzt in coin-metrics-right integriert */

/* Badges: DEX und Boost */
.coin-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.coin-badge {
    display: inline-block;
    font-size: 0.7em;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.4;
}

.coin-badge-dex-paid {
    background: rgba(34, 197, 94, 0.25);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.coin-badge-dex-processing {
    background: rgba(245, 158, 11, 0.25);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.coin-badge-dex-none {
    background: rgba(128, 128, 128, 0.15);
    color: #888;
    border: 1px solid rgba(128, 128, 128, 0.3);
    opacity: 0.6;
}

.coin-badge-boost {
    background: rgba(139, 92, 246, 0.25);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.coin-badge-boost-none {
    background: rgba(128, 128, 128, 0.15);
    color: #888;
    border: 1px solid rgba(128, 128, 128, 0.3);
    opacity: 0.6;
}

/* Footer: DEV Stats + Buy presets */
.coin-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(34, 197, 94, 0.15);
}

/* ── Buy Section (Options Panel + Presets) ── */
.coin-buy-section {
    margin-top: 10px;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    background: rgba(0, 0, 0, 0.18);
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: -12px;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

/* Options Panel (above buy buttons) */
.buy-options-panel {
    padding: 10px 12px 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.08);
    animation: buyOptSlideDown 0.2s ease;
}

@keyframes buyOptSlideDown {
    from { opacity: 0; max-height: 0; padding-top: 0; }
    to   { opacity: 1; max-height: 200px; padding-top: 10px; }
}

.buy-options-group {
    margin-bottom: 8px;
}

.buy-options-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b9a80;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 5px;
}

.buy-options-dip-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

.buy-opt-dip-btn {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 170, 0, 0.25);
    background: rgba(255, 170, 0, 0.06);
    color: #cc9940;
    cursor: pointer;
    transition: all 0.15s ease;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.buy-opt-dip-btn:hover {
    border-color: rgba(255, 170, 0, 0.5);
    background: rgba(255, 170, 0, 0.12);
    color: #ffaa00;
}

.buy-opt-dip-btn.active {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.22);
    color: #ffcc44;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.25), inset 0 0 6px rgba(255, 170, 0, 0.1);
}

.buy-opt-dip-custom {
    width: 48px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 5px;
    border-radius: 5px;
    border: 1px solid rgba(255, 170, 0, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #ffaa00;
    text-align: center;
    outline: none;
    flex-shrink: 0;
}

.buy-opt-dip-custom:focus {
    border-color: rgba(255, 170, 0, 0.6);
    box-shadow: 0 0 6px rgba(255, 170, 0, 0.15);
}

.buy-opt-dip-custom::placeholder {
    color: rgba(255, 170, 0, 0.35);
}

.buy-options-mc-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.buy-opt-mc-prefix {
    font-size: 0.75rem;
    font-weight: 700;
    color: #5599ff;
    flex-shrink: 0;
}

.buy-opt-mc-input {
    width: 100%;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid rgba(85, 153, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #5599ff;
    outline: none;
    transition: all 0.15s ease;
}

.buy-opt-mc-input:focus {
    border-color: rgba(85, 153, 255, 0.6);
    box-shadow: 0 0 6px rgba(85, 153, 255, 0.15);
}

.buy-opt-mc-input.active {
    border-color: #5599ff;
    background: rgba(85, 153, 255, 0.1);
    box-shadow: 0 0 8px rgba(85, 153, 255, 0.2);
}

.buy-opt-mc-input::placeholder {
    color: rgba(85, 153, 255, 0.35);
    font-weight: 400;
}

/* Buy Presets Row */
.coin-buy-presets {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
}

.coin-buy-presets.has-active-option .coin-buy-preset-btn {
    border-color: rgba(255, 170, 0, 0.35);
    box-shadow: 0 0 6px rgba(255, 170, 0, 0.08);
}

.coin-buy-presets-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8dd4ad;
    flex-shrink: 0;
    min-width: 24px;
}

.coin-buy-presets-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.coin-buy-preset-btn {
    min-width: 0;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 6px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 136, 0.28);
    background: #050e08;
    color: #00e87a;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    box-shadow: inset 0 1px 0 rgba(0, 255, 136, 0.06);
}

.coin-buy-preset-btn:hover {
    background: #091a0f;
    border-color: rgba(0, 255, 136, 0.55);
    color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.18), inset 0 1px 0 rgba(0, 255, 136, 0.08);
    transform: translateY(-1px);
}

.coin-buy-preset-btn:active {
    transform: translateY(0px);
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.12);
}

/* Options Toggle Button */
.buy-options-toggle {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: transparent;
    color: #6b9a80;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.buy-options-toggle svg {
    transition: transform 0.2s ease;
}

.buy-options-toggle.open svg {
    transform: rotate(180deg);
}

.buy-options-toggle:hover {
    border-color: rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

.buy-options-toggle.has-option {
    border-color: rgba(255, 170, 0, 0.5);
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.08);
}

/* Active Option Indicator */
.buy-active-indicator {
    font-size: 0.68rem;
    font-weight: 600;
    color: #ffaa00;
    text-align: center;
    padding: 3px 12px 8px;
    letter-spacing: 0.03em;
    opacity: 0.85;
}

/* DEV Stats */
.coin-dev-stats {
    font-size: 0.8em;
    color: #aaa;
    line-height: 1.6;
    min-height: 20px;
    display: block;
    font-weight: 500;
    flex: 1;
}

.coin-dev-stats strong {
    color: #22c55e;
    font-weight: 600;
}

.coin-dev-stats-empty {
    color: #666;
    font-style: italic;
    font-size: 0.75em;
}

.coin-ath-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.coin-ath-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 6px;
    padding: 3px 6px;
    min-width: 56px;
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.coin-ath-box:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.55);
    background: rgba(148, 163, 184, 0.18);
}

.coin-ath-label {
    font-size: 0.62em;
    color: #9ca3af;
    line-height: 1.1;
}

.coin-ath-value {
    font-size: 0.7em;
    color: #e5e7eb;
    font-weight: 700;
    line-height: 1.15;
}

.coin-ath-box.coin-ath-high {
    border-color: rgba(245, 158, 11, 0.65);
    background: rgba(245, 158, 11, 0.2);
}

.coin-ath-box.coin-ath-complete-true {
    border-color: rgba(34, 197, 94, 0.75);
    background: rgba(34, 197, 94, 0.2);
}

.coin-ath-box.coin-ath-complete-false {
    border-color: rgba(239, 68, 68, 0.75);
    background: rgba(239, 68, 68, 0.2);
}

.coin-ath-box.coin-ath-complete-true:hover {
    border-color: rgba(74, 222, 128, 0.85);
    background: rgba(34, 197, 94, 0.28);
}

.coin-ath-box.coin-ath-complete-false:hover {
    border-color: rgba(248, 113, 113, 0.85);
    background: rgba(239, 68, 68, 0.28);
}

/* DEV Stat Items */
.coin-dev-stat-item {
    display: inline;
}

.coin-dev-stat-high {
    color: #22c55e !important;
    font-weight: 700 !important;
}

.coin-dev-separator {
    color: #555;
    margin: 0 4px;
    font-weight: 300;
}

/* BullX Link */
.coin-bullx-link {
    font-size: 0.75em;
    color: #22c55e;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.coin-bullx-link:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #10b981;
    transform: translateY(-1px);
}

/* Error */
.coin-error {
    color: #ef4444;
    font-size: 0.85em;
    padding: 10px;
    text-align: center;
}

/* No Data */
.calls-grid .no-data {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 1.1em;
}

/* Coin Box - Watchlist Stil */
.coin-box.watchlist-item {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1f0a 100%);
}

.coin-box.watchlist-item:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

/* Entfernen Button */
.coin-remove-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.coin-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1800px) {
    .calls-layout {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 1400px) {
    .calls-layout {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .calls-column:first-child {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .calls-layout {
        grid-template-columns: 1fr;
    }
}

/* ABSOLUTE FINAL MOBILE OVERRIDES */
@media (max-width: 900px) {
  .coin-bullx-header-mobile { display: inline-flex !important; }
  .coin-bullx-footer { display: none !important; }
  .coin-footer { display: block !important; }
  .coin-dev-stats, .coin-ath-list { width: 100% !important; }
  .coin-ath-list {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-items: stretch !important;
  }
  .coin-ath-box {
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px 5px !important;
  }
}

/* ===== FINAL LAYOUT OVERRIDES: 4 columns + mobile tabs ===== */
.mobile-calls-tabs {
    display: none;
}

/* Settings modal */
.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.settings-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(2px);
}

.settings-modal-card {
    position: relative;
    width: min(900px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    background: linear-gradient(180deg, rgba(14, 20, 18, 0.98), rgba(11, 16, 14, 0.98));
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.14);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.settings-modal-header,
.settings-modal-footer {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-modal-footer {
    border-top: 1px solid rgba(0, 255, 136, 0.18);
    border-bottom: none;
    gap: 8px;
    justify-content: flex-end;
}

.settings-save-status {
    margin-right: auto;
    color: #00ff88;
    font-size: 0.76rem;
    font-weight: 600;
    min-height: 1em;
}

.settings-save-status.is-error {
    color: #ff8484;
}

.settings-modal-header h3 {
    margin: 0;
    color: #b8f5d4;
    font-size: 1rem;
}

.settings-close-btn {
    border: 1px solid rgba(154, 185, 165, 0.4);
    background: transparent;
    color: #9ab9a5;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
}

.settings-modal-body {
    overflow: auto;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.settings-group {
    border: 1px solid rgba(0, 255, 136, 0.18);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 255, 136, 0.03);
}

.settings-wallet-group .settings-group-title {
    margin-bottom: 10px;
}

.settings-mode-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.settings-mode-label {
    font-size: 0.78rem;
    color: #9fe7bf;
    font-weight: 700;
}

.settings-mode-switch {
    display: inline-flex;
    border: 1px solid rgba(0, 255, 136, 0.28);
    border-radius: 8px;
    overflow: hidden;
}

.settings-mode-btn {
    border: none;
    background: rgba(0, 255, 136, 0.08);
    color: #87cfa7;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px 10px;
    cursor: pointer;
}

.settings-mode-btn + .settings-mode-btn {
    border-left: 1px solid rgba(0, 255, 136, 0.2);
}

.settings-mode-btn.is-active {
    background: rgba(0, 255, 136, 0.22);
    color: #00ff88;
}

.settings-mode-status {
    margin: 0 0 10px;
    font-size: 0.76rem;
    color: #8dd4ad;
}

.settings-wallet-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.settings-wallet-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.settings-wallet-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.6);
}

.settings-private-key-warning {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.08);
}

.settings-warning-text {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    color: #e5e7eb;
    line-height: 1.4;
}

.settings-warning-actions {
    display: flex;
    gap: 8px;
}

.settings-private-key-display {
    margin-top: 12px;
}

.settings-private-key-display label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 4px;
}

.settings-private-key-value {
    font-family: monospace;
    font-size: 0.72rem;
    word-break: break-all;
    padding: 10px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #00ff88;
    cursor: pointer;
    user-select: all;
}

.settings-private-key-value:hover {
    border-color: rgba(0, 255, 136, 0.5);
}

.settings-withdraw-form {
    margin-top: 12px;
}

.settings-withdraw-form label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 4px;
}

.settings-withdraw-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    color: #e5e7eb;
    margin-bottom: 8px;
}

.settings-withdraw-status {
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: #00ff88;
}

.settings-withdraw-status.is-error {
    color: #ff8484;
}

.settings-withdraw-status a {
    color: #00ff88;
}

.settings-withdraw-actions {
    display: flex;
    gap: 8px;
}

.settings-group-title,
.settings-group-title-row {
    color: #9fe7bf;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.settings-group-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.settings-grid-4,
.settings-grid-2 {
    display: grid;
    gap: 8px;
}

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

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

.settings-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 7px;
    color: #d5ffe9;
    padding: 7px 8px;
    font-size: 0.82rem;
}

.settings-grid-2 label {
    color: #87cfa7;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-dynamic-list {
    display: grid;
    gap: 8px;
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: end;
}

.settings-row label {
    color: #87cfa7;
    font-size: 0.76rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-mini-btn,
.settings-row-remove-btn,
.settings-primary-btn,
.settings-secondary-btn {
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 0.76rem;
    cursor: pointer;
}

.settings-mini-btn,
.settings-primary-btn {
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.45);
    background: rgba(0, 255, 136, 0.12);
}

.settings-secondary-btn,
.settings-row-remove-btn {
    color: #9ab9a5;
    border: 1px solid rgba(154, 185, 165, 0.35);
    background: transparent;
}

body.settings-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .settings-modal-card {
        width: calc(100vw - 10px);
        max-height: calc(100vh - 10px);
        margin: 5px auto;
    }

    .settings-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-row {
        grid-template-columns: 1fr 1fr;
    }

    .settings-row-remove-btn {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1400px) {
    .calls-layout {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .calls-column:first-child {
        grid-column: auto !important;
        max-width: none !important;
    }

    /* Hide mobile tabs on desktop */
    .mobile-calls-tabs {
        display: none !important;
    }
}

@media (max-width: 1399px) {
    .mobile-calls-tabs {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        margin: 0;
        position: sticky;
        top: 0;
        z-index: 210;
        padding: 8px 14px;
        background: rgba(4, 10, 7, 0.97);
        border-bottom: 1px solid rgba(0, 255, 136, 0.18);
        backdrop-filter: blur(10px);
    }

    .mobile-calls-tab {
        background: transparent;
        border: none;
        border-bottom: 2px solid transparent;
        color: rgba(255, 255, 255, 0.45);
        font-size: 0.72rem;
        font-weight: 700;
        padding: 8px 4px;
        line-height: 1.15;
        cursor: pointer;
        transition: color 0.2s, border-color 0.2s;
        text-align: center;
        letter-spacing: 0.03em;
        border-radius: 0;
    }

    .mobile-calls-tab.is-active {
        color: #00ff88;
        border-color: rgba(0, 255, 136, 0.55);
        background: rgba(0, 255, 136, 0.17);
        box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
    }

    .calls-layout {
        grid-template-columns: 1fr !important;
    }

    .calls-layout .calls-column {
        display: none !important;
    }

    .calls-layout .calls-column.is-active-tab {
        display: block !important;
    }

    .calls-layout .calls-column:first-child {
        grid-column: auto !important;
    }

    /* Mobile UX: page scroll only, no inner card-list scroll areas */
    .calls-layout .calls-column {
        min-height: auto !important;
    }

    .calls-layout .calls-column .calls-grid {
        max-height: none !important;
        overflow-y: visible !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }
}

/* Hard override: always show ATH items 5 per row */
.coin-ath-list {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-items: stretch !important;
}

.coin-ath-box {
    min-width: 0 !important;
    width: 100% !important;
}

.active-positions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.active-positions-header h2 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    text-align: left;
}

/* ?? Buy Coin inline bar ?? */
.bc-bar {
    margin: 14px 0 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 12px 16px;
    transition: border-color 0.2s;
    position: relative;
}
.bc-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,136,0.4), transparent);
}
.bc-bar:focus-within {
    border-color: rgba(0, 255, 136, 0.38);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.06);
}

.bc-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bc-bar-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(0, 255, 136, 0.7);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.bc-bar-field {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.bc-bar-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 255, 136, 0.22);
    border-radius: 8px;
    color: #d5ffe9;
    padding: 9px 36px 9px 13px;
    font-size: 0.85rem;
    font-family: 'Consolas', 'Monaco', monospace;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bc-bar-input::placeholder { color: rgba(255,255,255,0.25); }
.bc-bar-input:focus {
    border-color: rgba(0, 255, 136, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.bc-bar-clear {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    transition: color 0.15s;
    padding: 0;
}
.bc-bar-clear:hover { color: rgba(255, 100, 100, 0.8); }

.bc-bar-status {
    margin-top: 6px;
    font-size: 0.74rem;
    color: rgba(0, 255, 136, 0.65);
    min-height: 1em;
    padding: 0 2px;
}
.bc-bar-status.is-error { color: #ff8484; }

/* Preview panel (expanded below input) */
.bc-bar-preview {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.18);
    background: rgba(0, 255, 136, 0.04);
}

/* "Chart"-Button im Buy-Bar-Preview (sichtbar auf beiden Größen, Funktion variiert) */
.bc-chart-open-btn {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(91,200,245,0.08);
    border: 1px solid rgba(91,200,245,0.28);
    color: #5bc8f5;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.bc-chart-open-btn:hover {
    background: rgba(91,200,245,0.18);
    border-color: rgba(91,200,245,0.5);
    color: #93ddfc;
}

/* Inline-Chart (Desktop: sichtbar, Mobile: versteckt — öffnet stattdessen Modal) */
.bc-inline-chart {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,255,136,0.15);
    background: #000;
}
.bc-inline-chart-iframe {
    width: 100%;
    height: 640px;
    display: block;
    border: none;
}

@media (max-width: 600px) {
    /* Auf Mobile: Inline-Chart verstecken, stattdessen Modal-Button prominent */
    .bc-inline-chart { display: none; }
    .bc-chart-open-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
        background: rgba(91,200,245,0.12);
        border-color: rgba(91,200,245,0.4);
    }
}

.bc-bar-presets {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 136, 0.12);
}

.bc-bar-presets-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Bar Options (Dip + MC) - always visible */
.bc-bar-options {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.bc-bar-opt-group {
    flex: 1;
    min-width: 140px;
}

.bc-bar-opt-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b9a80;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 5px;
}

.bc-bar-dip-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

.bc-bar-dip-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 170, 0, 0.25);
    background: rgba(255, 170, 0, 0.06);
    color: #cc9940;
    cursor: pointer;
    transition: all 0.15s ease;
    flex: 1;
    text-align: center;
}

.bc-bar-dip-btn:hover {
    border-color: rgba(255, 170, 0, 0.5);
    background: rgba(255, 170, 0, 0.12);
    color: #ffaa00;
}

.bc-bar-dip-btn.active {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.22);
    color: #ffcc44;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.25), inset 0 0 6px rgba(255, 170, 0, 0.1);
}

.bc-bar-dip-custom {
    width: 52px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 6px;
    border-radius: 5px;
    border: 1px solid rgba(255, 170, 0, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #ffaa00;
    text-align: center;
    outline: none;
    flex-shrink: 0;
}

.bc-bar-dip-custom:focus {
    border-color: rgba(255, 170, 0, 0.6);
    box-shadow: 0 0 6px rgba(255, 170, 0, 0.15);
}

.bc-bar-dip-custom::placeholder {
    color: rgba(255, 170, 0, 0.35);
}

.bc-bar-mc-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bc-bar-mc-prefix {
    font-size: 0.78rem;
    font-weight: 700;
    color: #5599ff;
    flex-shrink: 0;
}

.bc-bar-mc-input {
    width: 100%;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid rgba(85, 153, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #5599ff;
    outline: none;
    transition: all 0.15s ease;
}

.bc-bar-mc-input:focus {
    border-color: rgba(85, 153, 255, 0.6);
    box-shadow: 0 0 6px rgba(85, 153, 255, 0.15);
}

.bc-bar-mc-input.active {
    border-color: #5599ff;
    background: rgba(85, 153, 255, 0.1);
    box-shadow: 0 0 8px rgba(85, 153, 255, 0.2);
}

.bc-bar-mc-input::placeholder {
    color: rgba(85, 153, 255, 0.35);
    font-weight: 400;
}

.bc-bar-active-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffaa00;
    width: 100%;
    text-align: center;
    padding-top: 4px;
}

/* Re-use existing preview sub-elements */
.buy-coin-preview-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Subrow: Symbol · MC $Wert */
.buy-coin-preview-subrow {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    margin-top: 2px;
    min-width: 0;
}
.buy-coin-mc-sep {
    color: rgba(0, 255, 136, 0.3);
    font-size: 0.7rem;
    flex-shrink: 0;
}
.buy-coin-mc-label {
    font-size: 0.62rem;
    color: rgba(0, 255, 136, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    flex-shrink: 0;
}
.buy-coin-mc-value {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    flex-shrink: 0;
}
.buy-coin-mc-waiting {
    font-size: 0.68rem;
    color: rgba(0, 255, 136, 0.4);
    font-style: italic;
    animation: mcWaitingPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes mcWaitingPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.9; }
}
@keyframes mcFlash {
    0%   { color: #00ff88; text-shadow: 0 0 14px rgba(0,255,136,0.9); }
    100% { color: #00ff88; text-shadow: 0 0 8px rgba(0,255,136,0.5); }
}
.buy-coin-mc-flash {
    animation: mcFlash 0.5s ease-out forwards;
}
.buy-coin-preview-image {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 255, 136, 0.4);
    background: rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}
.buy-coin-preview-meta { min-width: 0; }
.buy-coin-preview-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.buy-coin-preview-name-row .coin-social-icons {
    flex-shrink: 0;
}
.buy-coin-preview-name {
    color: #cffff0;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.buy-coin-preview-symbol {
    color: #8dd4ad;
    font-size: 0.76rem;
}
.buy-coin-preview-mint {
    margin-top: 5px;
    font-size: 0.65rem;
    color: #5a9a7a;
    word-break: break-all;
    font-family: monospace;
}
.buy-coin-preview-badges {
    margin-top: 7px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.buy-coin-preset-label {
    font-size: 0.76rem;
    color: #8dd4ad;
    font-weight: 700;
    min-width: 28px;
    flex-shrink: 0;
}
.buy-coin-preset-buttons {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    flex: 1;
}
.buy-coin-preset-buttons .buy-coin-preset-btn,
.buy-coin-preset-buttons .coin-buy-preset-btn {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.18s;
    min-width: 52px;
    text-align: center;
}
.buy-coin-preset-buttons .buy-coin-preset-btn:hover,
.buy-coin-preset-buttons .coin-buy-preset-btn:hover {
    background: rgba(0, 255, 136, 0.22);
    border-color: #00ff88;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.25);
}
.buy-coin-preset-buttons .buy-coin-preset-btn:disabled,
.buy-coin-preset-buttons .coin-buy-preset-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Mobile: bar stacks vertically */
@media (max-width: 1399px) {
    .bc-bar {
        margin: 10px 0 8px;
        padding: 10px 12px 12px;
    }
    .bc-bar-inner {
        gap: 8px;
    }
    .bc-bar-label {
        font-size: 0.7rem;
    }
    .bc-bar-input {
        font-size: 0.78rem;
        padding: 8px 32px 8px 10px;
    }
}

.active-position-pnl-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid rgba(0, 255, 136, 0.45);
    background: rgba(0, 255, 136, 0.15);
    color: #7effc1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.active-position-pnl-btn:hover {
    background: rgba(0, 255, 136, 0.25);
    border-color: rgba(0, 255, 136, 0.7);
}

/* ═══ COIN CHART MODAL ═══════════════════════════════════════════════════════ */
.coin-chart-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.coin-chart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.coin-chart-dialog {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(6,16,10,0.99), rgba(4,11,7,0.99));
    border: 1px solid rgba(0,255,136,0.3);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 60px rgba(0,255,136,0.12), 0 2px 20px rgba(0,0,0,0.8);
    animation: chartModalIn 0.18s ease-out;
}
@keyframes chartModalIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);   }
}
.coin-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,255,136,0.15);
    flex-shrink: 0;
}
.coin-chart-header-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}
.coin-chart-title {
    font-size: 1rem;
    font-weight: 700;
    color: #cffff0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.coin-chart-subtitle {
    font-size: 0.78rem;
    color: rgba(0,255,136,0.55);
    flex-shrink: 0;
}
.coin-chart-close-btn {
    background: none;
    border: none;
    color: rgba(0,255,136,0.5);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.coin-chart-close-btn:hover { color: #00ff88; }
.coin-chart-frame-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
    background: #000;
}
.coin-chart-iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: block;
    border: none;
}
.coin-chart-buy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid rgba(0,255,136,0.15);
    flex-shrink: 0;
    flex-wrap: wrap;
}
.coin-chart-buy-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0,255,136,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}
.coin-chart-buy-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Chart-Button im Coin-Header */
.coin-chart-btn {
    font-size: 0.72rem;
    color: #5bc8f5;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(91,200,245,0.08);
    border: 1px solid rgba(91,200,245,0.28);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.coin-chart-btn:hover {
    background: rgba(91,200,245,0.18);
    border-color: rgba(91,200,245,0.5);
    color: #93ddfc;
    transform: translateY(-1px);
}

/* Mobile: modal nimmt volle Breite + Höhe */
@media (max-width: 600px) {
    .coin-chart-modal { padding: 0; align-items: flex-end; }
    .coin-chart-dialog {
        width: 100%;
        height: 96dvh;
        max-height: 96dvh;
        border-radius: 16px 16px 0 0;
        animation: chartModalInMobile 0.2s ease-out;
    }
    @keyframes chartModalInMobile {
        from { opacity: 0; transform: translateY(30px); }
        to   { opacity: 1; transform: translateY(0);    }
    }
    .coin-chart-frame-wrap { flex: 1; min-height: 0; }
    .coin-chart-iframe { height: 100%; min-height: 0; }
}
/* ═══════════════════════════════════════════════════════════════════════════ */

.pnl-card-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
}

.pnl-card-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(2px);
}

.pnl-card-modal-card {
    position: relative;
    width: min(540px, calc(100vw - 16px));
    margin: 10px auto;
    background: linear-gradient(180deg, rgba(14, 20, 18, 0.98), rgba(11, 16, 14, 0.98));
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.14);
    overflow: hidden;
}

.pnl-card-modal-header,
.pnl-card-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.18);
}

.pnl-card-modal-footer {
    border-top: 1px solid rgba(0, 255, 136, 0.18);
    border-bottom: none;
    justify-content: flex-end;
    gap: 8px;
}

.pnl-card-modal-header h3 {
    margin: 0;
    color: #b8f5d4;
    font-size: 1rem;
}

.pnl-card-close-btn {
    border: 1px solid rgba(154, 185, 165, 0.4);
    background: transparent;
    color: #9ab9a5;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
}

.pnl-card-modal-body {
    padding: 10px;
}

.pnl-card-status {
    min-height: 1.2em;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: #8dd4ad;
}

.pnl-card-status.is-error {
    color: #ff8484;
}

.pnl-card-preview-image {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.25);
    background: rgba(0, 0, 0, 0.3);
}

/* =====================================================================
   SETTINGS PAGE (.sp) ? standalone full-screen settings
   Dark / Matrix / Green ? matches landing page aesthetic
   ===================================================================== */

/* ?? Root vars (local) ?? */
.sp {
    --sp-g:        #00ff88;
    --sp-g-dim:    rgba(0,255,136,0.65);
    --sp-g-faint:  rgba(0,255,136,0.08);
    --sp-g-border: rgba(0,255,136,0.18);
    --sp-bg:       #060f09;
    --sp-bg2:      #0b1a10;
    --sp-bg3:      #0e2016;
    --sp-text:     rgba(255,255,255,0.9);
    --sp-text-dim: rgba(255,255,255,0.45);
    --sp-radius:   12px;
    --sp-input-h:  42px;

    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    background: var(--sp-bg);
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--sp-text);

    /* subtle Matrix grid background */
    background-image:
        linear-gradient(rgba(0,255,136,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,136,0.025) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* ??? PAGE HEADER ??????????????????????????????????????????????????? */
.sp-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    height: 64px;
    background: rgba(4,10,7,0.96);
    border-bottom: 1px solid rgba(0,255,136,0.15);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(0,255,136,0.28);
    color: var(--sp-g-dim);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.sp-back-btn:hover {
    background: rgba(0,255,136,0.1);
    border-color: var(--sp-g);
    color: var(--sp-g);
    box-shadow: 0 0 18px rgba(0,255,136,0.2);
}

.sp-title {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sp-save-top-btn {
    background: var(--sp-g);
    border: none;
    color: #000;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.04em;
    box-shadow: 0 0 20px rgba(0,255,136,0.35);
}
.sp-save-top-btn:hover {
    box-shadow: 0 0 32px rgba(0,255,136,0.6);
    transform: translateY(-1px);
}
.sp-save-top-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

/* ??? SCROLLABLE BODY ???????????????????????????????????????????????? */
/* ── SETTINGS TABS ─────────────────────────────────────── */
.sp-tabs {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: rgba(4,10,7,0.9);
    border-bottom: 1px solid rgba(0,255,136,0.12);
    padding: 0 20px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.sp-tabs::-webkit-scrollbar { display: none; }

.sp-tab {
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 16px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .sp-tabs {
        padding: 0 8px;
        gap: 0;
    }
    .sp-tab {
        font-size: 0.68rem;
        padding: 10px 10px;
        letter-spacing: 0.02em;
    }
}
.sp-tab:hover {
    color: #aaa;
}
.sp-tab.is-active {
    color: #00ff88;
    border-bottom-color: #00ff88;
}

/* ── SETTINGS TAB PANELS ─────────────────────────────── */
.sp-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sp-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,136,0.25) transparent;
}
.sp-body::-webkit-scrollbar { width: 5px; }
.sp-body::-webkit-scrollbar-track { background: transparent; }
.sp-body::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.22); border-radius: 3px; }

.sp-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 28px 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ??? SECTION CARDS ?????????????????????????????????????????????????? */
.sp-card {
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-g-border);
    background: var(--sp-bg2);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative;
}
/* top accent line */
.sp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,136,0.5), transparent);
}
.sp-card:hover {
    border-color: rgba(0,255,136,0.32);
    box-shadow: 0 0 32px rgba(0,255,136,0.07);
}

.sp-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 22px;
    background: rgba(0,255,136,0.04);
    border-bottom: 1px solid rgba(0,255,136,0.1);
}
.sp-card-icon {
    font-size: 1.15rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(0,255,136,0.5));
}
.sp-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sp-card-sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--sp-g-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.2);
}
.sp-card-body { padding: 22px; }

/* ??? GLOBAL INPUT STYLES (inside .sp) ?????????????????????????????? */
.sp input[type="number"],
.sp input[type="text"],
.sp .settings-private-key-value,
.sp .settings-withdraw-form input {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    height: var(--sp-input-h);
    padding: 0 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    width: 100%;
    appearance: textfield;
    -moz-appearance: textfield;
}
.sp input[type="number"]::-webkit-outer-spin-button,
.sp input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp input[type="number"]:focus,
.sp input[type="text"]:focus {
    border-color: var(--sp-g);
    box-shadow: 0 0 0 3px rgba(0,255,136,0.12), 0 0 16px rgba(0,255,136,0.15);
}
.sp input::placeholder { color: rgba(255,255,255,0.25); }

/* ??? BUTTONS (global inside .sp) ??????????????????????????????????? */

/* Primary ? green solid */
.sp .settings-primary-btn {
    background: var(--sp-g);
    border: none;
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 18px rgba(0,255,136,0.3);
    letter-spacing: 0.03em;
}
.sp .settings-primary-btn:hover {
    box-shadow: 0 0 30px rgba(0,255,136,0.55);
    transform: translateY(-1px);
}
.sp .settings-primary-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

/* Secondary ? ghost green */
.sp .settings-secondary-btn {
    background: transparent;
    border: 1px solid rgba(0,255,136,0.25);
    color: var(--sp-g-dim);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.sp .settings-secondary-btn:hover {
    background: rgba(0,255,136,0.08);
    border-color: var(--sp-g);
    color: var(--sp-g);
}

/* Wallet action buttons */
.sp .settings-wallet-btn {
    background: transparent;
    border: 1px solid rgba(0,255,136,0.22);
    color: rgba(0,255,136,0.8);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.sp .settings-wallet-btn:hover {
    background: rgba(0,255,136,0.1);
    border-color: var(--sp-g);
    color: var(--sp-g);
    box-shadow: 0 0 14px rgba(0,255,136,0.2);
}

/* Mini add-button */
.sp .settings-mini-btn {
    background: transparent;
    border: 1px dashed rgba(0,255,136,0.3);
    color: var(--sp-g-dim);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.sp .settings-mini-btn:hover {
    background: rgba(0,255,136,0.08);
    border-color: var(--sp-g);
    color: var(--sp-g);
}

/* Remove row button */
.sp .settings-row-remove-btn {
    background: transparent;
    border: 1px solid rgba(255,80,80,0.25);
    color: rgba(255,100,100,0.6);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    height: 36px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sp .settings-row-remove-btn:hover {
    background: rgba(255,80,80,0.12);
    border-color: rgba(255,100,100,0.6);
    color: rgba(255,130,130,0.9);
}

/* ??? MODE SWITCH ???????????????????????????????????????????????????? */
.sp .settings-mode-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.sp .settings-mode-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sp-text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.sp .settings-mode-switch {
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.4);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,136,0.12);
}
.sp .settings-mode-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--sp-text-dim);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.06em;
}
.sp .settings-mode-btn:hover { color: var(--sp-g); }
.sp .settings-mode-btn.is-active {
    background: rgba(0,255,136,0.18);
    border-color: rgba(0,255,136,0.45);
    color: var(--sp-g);
    box-shadow: 0 0 14px rgba(0,255,136,0.2);
}
.sp .settings-mode-status {
    font-size: 0.8rem;
    color: var(--sp-g-dim);
    margin: 4px 0 14px;
    padding: 8px 14px;
    background: rgba(0,255,136,0.06);
    border-left: 3px solid rgba(0,255,136,0.4);
    border-radius: 0 6px 6px 0;
}
.sp .settings-wallet-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* ── Settings Wallet Info (Wallet Tab) ────────────────────────────── */
.sp .settings-wallet-info {
    background: rgba(0,255,136,0.04);
    border: 1px solid rgba(0,255,136,0.12);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.sp .settings-wallet-hint {
    font-size: 0.82rem;
    color: var(--sp-text-dim);
    margin: 0 0 12px;
    line-height: 1.5;
}
.sp .settings-wallet-address-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.sp .settings-wallet-address {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    color: var(--sp-g);
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,255,136,0.15);
    border-radius: 6px;
    padding: 8px 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
    cursor: pointer;
    transition: border-color 0.2s;
}
.sp .settings-wallet-address:hover {
    border-color: var(--sp-g);
}
.sp .settings-wallet-copy-btn {
    background: transparent;
    border: 1px solid rgba(0,255,136,0.22);
    color: rgba(0,255,136,0.8);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.sp .settings-wallet-copy-btn:hover {
    background: rgba(0,255,136,0.1);
    border-color: var(--sp-g);
    color: var(--sp-g);
}
.sp .settings-wallet-copy-btn.copied {
    border-color: var(--sp-g);
    color: var(--sp-g);
}
.sp .settings-wallet-balance-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sp .settings-wallet-balance-label {
    font-size: 0.82rem;
    color: var(--sp-text-dim);
    font-weight: 600;
}
.sp .settings-wallet-balance-value {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.92rem;
    color: #fff;
    font-weight: 700;
    flex: 1;
}
.sp .settings-wallet-refresh-btn {
    background: transparent;
    border: 1px solid rgba(0,255,136,0.22);
    color: rgba(0,255,136,0.8);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.sp .settings-wallet-refresh-btn:hover {
    background: rgba(0,255,136,0.1);
    border-color: var(--sp-g);
    color: var(--sp-g);
}
.sp .settings-wallet-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
@media (max-width: 600px) {
    .sp .settings-wallet-address-row {
        flex-direction: column;
        align-items: stretch;
    }
    .sp .settings-wallet-address {
        font-size: 0.72rem;
    }
}

/* ── Settings Trading History tab ────────────────────────────────── */
.sp .settings-history-hint {
    margin-bottom: 14px;
}
.sp .settings-history-list {
    min-height: 80px;
}
.sp .settings-history-loading,
.sp .settings-history-empty {
    color: var(--sp-text-dim);
    font-size: 0.88rem;
    padding: 20px 0;
    text-align: center;
}
/* ── History Dashboard ── */
.sp .sh-dashboard {
    margin-bottom: 20px;
}
.sp .sh-hero-pnl {
    text-align: center;
    padding: 22px 20px 18px;
    border-radius: 14px;
    border: 1px solid rgba(0,255,136,0.15);
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(10,30,15,0.4) 100%);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.sp .sh-hero-pnl::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.4s;
}
.sp .sh-hero-pnl.settings-history-pnl-pos {
    border-color: rgba(34,197,94,0.3);
    box-shadow: 0 0 40px rgba(34,197,94,0.12), inset 0 0 60px rgba(34,197,94,0.04);
}
.sp .sh-hero-pnl.settings-history-pnl-pos::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(34,197,94,0.1) 0%, transparent 70%);
    opacity: 1;
}
.sp .sh-hero-pnl.settings-history-pnl-neg {
    border-color: rgba(239,68,68,0.25);
    box-shadow: 0 0 40px rgba(239,68,68,0.08), inset 0 0 60px rgba(239,68,68,0.03);
}
.sp .sh-hero-pnl.settings-history-pnl-neg::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(239,68,68,0.08) 0%, transparent 70%);
    opacity: 1;
}
.sp .sh-hero-pnl-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 4px;
}
.sp .sh-hero-pnl-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}
.sp .sh-hero-pnl.settings-history-pnl-pos .sh-hero-pnl-value {
    color: #22c55e;
    text-shadow: 0 0 20px rgba(34,197,94,0.5);
}
.sp .sh-hero-pnl.settings-history-pnl-neg .sh-hero-pnl-value {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239,68,68,0.35);
}
.sp .sh-hero-pnl-pct {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}
.sp .sh-hero-pnl.settings-history-pnl-pos .sh-hero-pnl-pct { color: rgba(34,197,94,0.8); }
.sp .sh-hero-pnl.settings-history-pnl-neg .sh-hero-pnl-pct { color: rgba(239,68,68,0.7); }
.sp .sh-hero-pnl-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}
/* Stats cards */
.sp .sh-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.sp .sh-stat-card {
    text-align: center;
    padding: 14px 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.sp .sh-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.sp .sh-stat-num {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.sp .sh-stat-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}
.sp .sh-stat-trades .sh-stat-num { color: #e0e0e0; }
.sp .sh-stat-wins .sh-stat-num { color: #22c55e; text-shadow: 0 0 10px rgba(34,197,94,0.3); }
.sp .sh-stat-wins { border-color: rgba(34,197,94,0.12); }
.sp .sh-stat-losses .sh-stat-num { color: #ef4444; text-shadow: 0 0 10px rgba(239,68,68,0.2); }
.sp .sh-stat-losses { border-color: rgba(239,68,68,0.1); }
.sp .sh-stat-winrate .sh-stat-num { color: #facc15; text-shadow: 0 0 10px rgba(250,204,21,0.25); }
.sp .sh-stat-winrate { border-color: rgba(250,204,21,0.12); }
/* Win/Loss bar */
.sp .sh-winbar-wrap {
    margin-bottom: 14px;
}
.sp .sh-winbar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    gap: 2px;
}
.sp .sh-winbar-fill {
    border-radius: 3px;
    transition: width 0.6s ease;
}
.sp .sh-winbar-win {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    box-shadow: 0 0 8px rgba(34,197,94,0.3);
}
.sp .sh-winbar-lose {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    box-shadow: 0 0 8px rgba(239,68,68,0.2);
}
.sp .sh-winbar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.sp .sh-winbar-lbl-win { color: rgba(34,197,94,0.7); }
.sp .sh-winbar-lbl-lose { color: rgba(239,68,68,0.6); }
/* Detail grid */
.sp .sh-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 4px;
}
.sp .sh-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px 8px;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.04);
}
.sp .sh-detail-label {
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 3px;
}
.sp .sh-detail-value {
    font-size: 0.88rem;
    font-weight: 700;
}
/* Table */
.sp .settings-history-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(0,255,136,0.12);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    margin-top: 16px;
}
.sp .settings-history-head,
.sp .settings-history-row {
    display: grid;
    grid-template-columns: minmax(0,1.3fr) minmax(0,1.3fr) minmax(0,0.7fr) minmax(0,0.7fr) minmax(0,0.7fr) minmax(0,0.5fr);
    gap: 8px;
    padding: 10px 14px;
    align-items: center;
}
.sp .settings-history-head {
    background: rgba(0,255,136,0.06);
    color: var(--sp-g-dim);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sp .settings-history-row {
    font-size: 0.8rem;
    border-top: 1px solid rgba(0,255,136,0.06);
    color: #e0e0e0;
    transition: background 0.12s;
}
.sp .settings-history-row:hover {
    background: rgba(0,255,136,0.04);
}
.sp .settings-history-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sp .settings-history-symbol {
    font-weight: 600;
    color: var(--sp-g);
}
.sp .settings-history-date {
    font-size: 0.75rem;
    color: var(--sp-text-dim);
}
.sp .settings-history-buy,
.sp .settings-history-sell {
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}
.sp .settings-history-pnl-pos {
    color: #22c55e;
    font-weight: 700;
}
.sp .settings-history-pnl-neg {
    color: #ef4444;
    font-weight: 700;
}
.sp .settings-history-actions {
    text-align: center;
}
.sp .sh-pnl-btn {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: #22c55e;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.sp .sh-pnl-btn:hover {
    background: rgba(34,197,94,0.2);
    border-color: rgba(34,197,94,0.5);
    box-shadow: 0 0 12px rgba(34,197,94,0.15);
}
@media (max-width: 480px) {
    .sp .sp-tabs {
        gap: 2px;
    }
    .sp .sp-tab {
        font-size: 0.62rem;
        padding: 8px 6px;
    }
    .sp .sh-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sp .sh-detail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .sp .sh-hero-pnl-value {
        font-size: 1.3rem;
    }
    .sp .settings-history-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sp .settings-history-table {
        min-width: 440px;
    }
    .sp .settings-history-head,
    .sp .settings-history-row {
        grid-template-columns: 70px 90px 55px 55px 60px 45px;
        gap: 6px;
        padding: 10px 10px;
        font-size: 0.72rem;
    }
}
@media (max-width: 380px) {
    .sp .sp-tab {
        font-size: 0.58rem;
        padding: 8px 4px;
    }
}

/* ??? HINTS & LABELS ????????????????????????????????????????????????? */
.sp-hint {
    font-size: 0.78rem;
    color: var(--sp-text-dim);
    margin: 0 0 18px;
    line-height: 1.5;
}
/* ═══ Preset Loader (inside Risk Management card) ══════════════════ */
.sp-preset-loader {
    background: rgba(0,255,136,0.04);
    border: 1px solid rgba(0,255,136,0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 22px;
}

.sp-preset-loader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(0,255,136,0.06);
    border-bottom: 1px solid rgba(0,255,136,0.1);
}

.sp-preset-loader-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sp-g);
}

.sp-preset-refresh-btn {
    background: transparent;
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 6px;
    color: var(--sp-g-dim);
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.sp-preset-refresh-btn:hover {
    color: var(--sp-g);
    border-color: rgba(0,255,136,0.5);
    background: rgba(0,255,136,0.08);
}

.sp-preset-loader-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-preset-select-wrap {
    position: relative;
}

.sp-preset-select {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0,255,136,0.22);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    height: var(--sp-input-h);
    padding: 0 36px 0 14px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300ff88' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.sp-preset-select:focus {
    border-color: var(--sp-g);
    box-shadow: 0 0 0 3px rgba(0,255,136,0.12);
}
.sp-preset-select option {
    background: #0a1a10;
    color: #fff;
}

.sp-preset-desc {
    font-size: 0.82rem;
    color: var(--sp-g-dim);
    line-height: 1.5;
    min-height: 1.2em;
    padding: 2px 0;
    font-style: italic;
}
.sp-preset-desc:empty { display: none; }

.sp-preset-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-preset-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,136,0.15), transparent);
    margin: 0 0 22px;
}
/* ══════════════════════════════════════════════════════════════════ */

.sp-field { margin-bottom: 18px; }
.sp-field:last-child { margin-bottom: 0; }
.sp-field--mt { margin-top: 24px; }

.sp-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}
.sp-field-unit {
    font-size: 0.7rem;
    color: var(--sp-g-dim);
    font-weight: 400;
    padding: 1px 7px;
    background: rgba(0,255,136,0.08);
    border-radius: 4px;
}
.sp-field-desc {
    font-size: 0.75rem;
    color: var(--sp-text-dim);
    margin-left: auto;
}
.sp-input-wide { width: 200px !important; }

/* ??? BUY PRESETS GRID ??????????????????????????????????????????????? */
.sp-presets-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.sp-preset-item label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sp-g-dim);
    margin-bottom: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.sp-preset-item input {
    text-align: center !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--sp-g) !important;
    background: rgba(0,255,136,0.04) !important;
    border-color: rgba(0,255,136,0.22) !important;
    padding: 0 8px !important;
}
.sp-preset-item input:focus {
    background: rgba(0,255,136,0.08) !important;
}

/* ??? COLUMN HEADERS ????????????????????????????????????????????????? */
.sp-field-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.sp-col-headers {
    display: grid;
    grid-template-columns: 1fr 1fr 52px;
    gap: 10px;
    padding: 6px 14px;
    margin-bottom: 6px;
    background: rgba(0,255,136,0.04);
    border-radius: 6px;
}
.sp-col-headers span {
    font-size: 0.68rem;
    color: var(--sp-g-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* Dynamic rows */
.sp .settings-dynamic-list { display: flex; flex-direction: column; gap: 8px; }
.sp .settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr 68px;
    gap: 10px;
    align-items: end;
}
.sp .settings-row label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sp-g-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.sp .settings-row input {
    margin: 0;
}
.sp .settings-row .settings-row-remove-btn {
    margin-bottom: 0;
    align-self: end;
}

/* ??? EXECUTION GRID ????????????????????????????????????????????????? */
.sp-execution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* ??? WARNING & KEY DISPLAY ?????????????????????????????????????????? */
.sp .settings-private-key-warning {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(255,180,0,0.06);
    border: 1px solid rgba(255,180,0,0.2);
    border-radius: 8px;
}
.sp .settings-warning-text {
    font-size: 0.82rem;
    color: rgba(255,200,80,0.9);
    margin: 0 0 12px;
    line-height: 1.5;
}
.sp .settings-warning-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.sp .settings-private-key-display {
    margin-top: 14px;
}
.sp .settings-private-key-display label {
    display: block;
    font-size: 0.75rem;
    color: var(--sp-text-dim);
    margin-bottom: 6px;
}
.sp .settings-private-key-value {
    display: block;
    padding: 12px 16px !important;
    height: auto !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.8rem !important;
    word-break: break-all;
    cursor: pointer;
    line-height: 1.5 !important;
    border-color: rgba(255,180,0,0.3) !important;
    background: rgba(255,180,0,0.04) !important;
}
.sp .settings-private-key-value:hover {
    border-color: rgba(255,180,0,0.6) !important;
}
.sp .settings-withdraw-form {
    margin-top: 14px;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid rgba(0,255,136,0.12);
}
.sp .settings-withdraw-form label {
    display: block;
    font-size: 0.78rem;
    color: var(--sp-text-dim);
    margin-bottom: 8px;
}
.sp .settings-withdraw-status {
    font-size: 0.8rem;
    margin: 8px 0;
    min-height: 18px;
    color: var(--sp-g-dim);
}
.sp .settings-withdraw-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ??? PAGE FOOTER ???????????????????????????????????????????????????? */
.sp-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(4,10,7,0.96);
    border-top: 1px solid rgba(0,255,136,0.12);
    flex-wrap: wrap;
}
.sp-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.sp .settings-save-status {
    font-size: 0.82rem;
    color: var(--sp-g);
    padding: 6px 14px;
    border-radius: 6px;
    transition: opacity 0.3s;
}
.sp .settings-save-status.is-error {
    color: #ff8080;
}

/* ??? MOBILE ???????????????????????????????????????????????????????? */
@media (max-width: 640px) {
    .sp-header         { padding: 0 16px; height: 56px; }
    .sp-back-btn       { padding: 6px 10px; font-size: 0.76rem; }
    .sp-title          { font-size: 0.78rem; }
    .sp-inner          { padding: 18px 14px 40px; gap: 14px; }
    .sp-presets-row    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sp-execution-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .sp-footer         { padding: 12px 16px; }
    .sp-col-headers    { display: none; }
    .sp .settings-row  { grid-template-columns: 1fr 1fr 44px; gap: 8px; }
    .sp-card-body      { padding: 16px; }
    .sp-card-header    { padding: 13px 16px; }
    .sp .settings-mode-row { gap: 10px; }
}

/* =====================================================================
   DASHBOARD ? Matrix Dark Theme for Coin Cards & Layout
   ===================================================================== */

/* -- Column headers (calls, dev-launches etc.) -- */
.col-header {
    background: rgba(0,0,0,0.45) !important;
    border: 1px solid rgba(0,255,136,0.14) !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 10px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: rgba(0,255,136,0.8) !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

/* -- Coin cards -- */
.coin-card {
    background: rgba(6,15,9,0.85) !important;
    border: 1px solid rgba(0,255,136,0.13) !important;
    border-radius: 10px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.coin-card:hover {
    border-color: rgba(0,255,136,0.28) !important;
    box-shadow: 0 0 18px rgba(0,255,136,0.07) !important;
}

/* -- Active Position cards -- */
/* active-position-card styles consolidated above */

/* -- Mobile tabs (shown < 1400px, sticky so they stay visible while scrolling) -- */
@media (max-width: 1399px) {
    .mobile-calls-tabs {
        background: rgba(4,10,7,0.97) !important;
        border-bottom: 1px solid rgba(0,255,136,0.18) !important;
        backdrop-filter: blur(10px) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 210 !important;
    }
    .mobile-calls-tab {
        color: rgba(255,255,255,0.45) !important;
        border-bottom: 2px solid transparent !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        transition: color 0.2s, border-color 0.2s !important;
    }
    .mobile-calls-tab.is-active,
    .mobile-calls-tab:hover {
        color: #00ff88 !important;
        border-bottom-color: #00ff88 !important;
        background: transparent !important;
    }
}

/* -- Buy preset buttons on coin cards -- */
.coin-buy-btn {
    background: #050e08 !important;
    border: 1px solid rgba(0,255,136,0.28) !important;
    color: #00e87a !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    box-shadow: inset 0 1px 0 rgba(0,255,136,0.06) !important;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s !important;
}
.coin-buy-btn:hover {
    background: #091a0f !important;
    border-color: rgba(0,255,136,0.55) !important;
    color: #00ff88 !important;
    box-shadow: 0 0 10px rgba(0,255,136,0.18), inset 0 1px 0 rgba(0,255,136,0.08) !important;
}

/* -- Active Positions header -- */
.active-positions-header {
    background: rgba(0,0,0,0.35) !important;
    border-bottom: 1px solid rgba(0,255,136,0.1) !important;
}

/* -- Footer -- */
#mainFooter, .main-footer {
    background: rgba(4,10,7,0.95) !important;
    border-top: 1px solid rgba(0,255,136,0.1) !important;
    color: rgba(0,255,136,0.45) !important;
    padding: 14px 20px !important;
    font-size: 0.76rem !important;
    text-align: center !important;
}

/* =====================================================================
   MOBILE FIXES - prevent text overflow / vertical stacking (<= 1399px)
   ===================================================================== */

@media (max-width: 1399px) {
    .coin-image,
    .coin-image-placeholder {
        width: 46px !important;
        height: 46px !important;
        font-size: 1em !important;
    }
    .coin-info-section {
        gap: 8px !important;
    }
    .coin-mc-section {
        min-width: 0 !important;
        max-width: 100px !important;
    }
    .coin-name,
    .coin-symbol {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: normal !important;
    }
    .coin-ath-list {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }
    .coin-ath-box {
        padding: 3px 4px !important;
    }
    .coin-ath-label {
        font-size: 0.54em !important;
        line-height: 1 !important;
    }
    .coin-ath-value {
        font-size: 0.6em !important;
        line-height: 1.1 !important;
    }
    .coin-time-left {
        font-size: 0.68em !important;
    }
    .coin-badge {
        font-size: 0.6em !important;
        padding: 1px 5px !important;
    }
    .coin-buy-btn,
    .buy-btn {
        font-size: 0.72rem !important;
        padding: 4px 6px !important;
        min-width: 28px !important;
    }
    .coin-address {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: normal !important;
    }
    .coin-bullx-header-mobile { display: inline-flex !important; }
    .coin-bullx-footer { display: none !important; }
    .coin-footer { display: block !important; }
    .coin-header-buttons { margin-left: auto !important; }
}

@media (max-width: 640px) {
    .coin-image,
    .coin-image-placeholder {
        width: 40px !important;
        height: 40px !important;
    }
    .coin-box {
        padding: 6px !important;
    }
    .coin-mc-value,
    .coin-current-mc-value {
        font-size: 0.9em !important;
    }
    .coin-social-icon {
        width: 16px !important;
        height: 16px !important;
    }
    .coin-social-icon svg {
        width: 13px !important;
        height: 13px !important;
    }
    .header-row1 {
        padding: 7px 12px !important;
        min-height: 42px !important;
    }
    .header-row2 {
        padding: 5px 12px 7px !important;
        gap: 10px !important;
    }
}

/* =====================================================================
   UNIFIED COIN BOX + COLUMN STYLING (overrides all duplicates above)
   ===================================================================== */

.calls-column {
    background: rgba(8, 16, 12, 0.85) !important;
    border: 1px solid rgba(0, 255, 136, 0.14) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    min-height: auto !important;
}

.calls-column h2 {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 255, 136, 0.12) !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

.coin-box {
    background: rgba(10, 18, 14, 0.92) !important;
    border: 1px solid rgba(0, 255, 136, 0.14) !important;
    border-radius: 10px !important;
    padding: 8px !important;
    color: #e0e0e0 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    cursor: pointer !important;
    position: relative !important;
}
.coin-box:hover {
    border-color: rgba(0, 255, 136, 0.32) !important;
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.07) !important;
    transform: none !important;
}

/* Remove gold/amber from watchlist items */
.coin-box.watchlist-item {
    border-color: rgba(0, 255, 136, 0.2) !important;
    background: rgba(10, 18, 14, 0.92) !important;
}
.coin-box.watchlist-item:hover {
    border-color: rgba(0, 255, 136, 0.35) !important;
    box-shadow: none !important;
}

/* ── REFERRAL SECTION ── */
.referral-loading {
    color: #888;
    font-size: 0.875rem;
    margin: 0;
}

.referral-desc {
    font-size: 0.875rem;
    color: #aaa;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.referral-desc strong {
    color: #00ff88;
}

.referral-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.referral-link-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    color: #e0e0e0;
    font-size: 0.8rem;
    font-family: monospace;
    outline: none;
    min-width: 0;
}

.referral-copy-btn {
    flex-shrink: 0;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    color: #00ff88;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.referral-copy-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
}

.referral-stats-row {
    display: flex;
    gap: 16px;
}

.referral-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.referral-stat-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00ff88;
    line-height: 1;
}

.referral-stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.referral-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.referral-coming-soon-badge {
    display: inline-block;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 20px;
    color: #00ff88;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
}

.referral-coming-soon-text {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE — FULL GUIDE ACCORDION
   ═══════════════════════════════════════════════════════════════ */
.lp-guide-wrap {
    max-width: 900px;
    margin: -20px auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.lp-guide-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(35,199,96,0.05);
    border: 1.5px solid rgba(35,199,96,0.2);
    border-radius: 12px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.lp-guide-toggle:hover {
    background: rgba(35,199,96,0.1);
    border-color: rgba(35,199,96,0.4);
    box-shadow: 0 0 24px rgba(35,199,96,0.08);
}
.lp-guide-toggle.is-open {
    border-radius: 12px 12px 0 0;
    border-bottom-color: rgba(35,199,96,0.08);
}
.lp-guide-toggle-icon { font-size: 1.3rem; }
.lp-guide-toggle-text {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--g, #22c55e);
}
.lp-guide-toggle-arrow {
    font-size: 0.7rem;
    color: rgba(35,199,96,0.5);
    transition: transform 0.3s;
}
.lp-guide-toggle.is-open .lp-guide-toggle-arrow {
    transform: rotate(180deg);
}
.lp-guide-body {
    border: 1.5px solid rgba(35,199,96,0.2);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: #08100b;
    overflow: hidden;
    animation: lp-guide-slide 0.3s ease-out;
}
@keyframes lp-guide-slide {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 9999px; }
}
.lp-guide-inner {
    padding: 8px 28px 36px;
}
@media (max-width: 640px) {
    .lp-guide-inner { padding: 8px 16px 28px; }
}

/* ═══════════════════════════════════════════════════════════════
   HOW-TO MODAL
   ═══════════════════════════════════════════════════════════════ */

/* ? Button in header */
.header-howto-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(35,199,96,0.12);
    border: 1.5px solid rgba(35,199,96,0.45);
    color: #23c760;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}
.header-howto-btn:hover {
    background: rgba(35,199,96,0.25);
    border-color: #23c760;
    box-shadow: 0 0 12px rgba(35,199,96,0.2);
}

/* Modal overlay */
.ht-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.ht-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
}
.ht-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    background: #08100b;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid rgba(35,199,96,0.15);
    border-right: 1px solid rgba(35,199,96,0.15);
}

/* Header */
.ht-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(35,199,96,0.15);
    flex-shrink: 0;
}
.ht-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0;
    letter-spacing: 0.02em;
}
.ht-brand {
    color: #23c760;
}
.ht-close {
    background: none;
    border: 1px solid rgba(35,199,96,0.2);
    color: #23c760;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    line-height: 1;
}
.ht-close:hover {
    background: rgba(35,199,96,0.12);
    border-color: #23c760;
}

/* Navigation */
.ht-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(35,199,96,0.12);
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ht-nav::-webkit-scrollbar { display: none; }
.ht-nav-link {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    padding: 12px 18px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}
.ht-nav-link:hover {
    color: rgba(35,199,96,0.7);
}
.ht-nav-link.is-active {
    color: #23c760;
    border-bottom-color: #23c760;
}

/* Scrollable body */
.ht-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 28px 40px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(35,199,96,0.25) transparent;
}
.ht-body::-webkit-scrollbar { width: 6px; }
.ht-body::-webkit-scrollbar-track { background: transparent; }
.ht-body::-webkit-scrollbar-thumb { background: rgba(35,199,96,0.25); border-radius: 3px; }

/* Sections */
.ht-section {
    padding-top: 32px;
}
.ht-section + .ht-section {
    border-top: 1px solid rgba(35,199,96,0.08);
    margin-top: 12px;
}
.ht-section-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #23c760;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ht-icon {
    font-size: 1.2rem;
    display: inline-flex;
}
.ht-intro {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.65);
    margin: 0 0 20px;
}

/* Steps (quickstart) */
.ht-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}
.ht-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(35,199,96,0.04);
    border: 1px solid rgba(35,199,96,0.1);
    border-radius: 10px;
    padding: 16px 18px;
}
.ht-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(35,199,96,0.15);
    border: 1.5px solid rgba(35,199,96,0.4);
    color: #23c760;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ht-step-body h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 4px;
}
.ht-step-body p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* Tip box */
.ht-tip {
    background: rgba(35,199,96,0.06);
    border-left: 3px solid #23c760;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
}
.ht-tip strong {
    color: #23c760;
}
.ht-fees-note {
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    font-family: Arial, Helvetica, sans-serif;
}
.ht-fees-note strong {
    color: rgba(255,255,255,0.75);
}

/* Grid layouts */
.ht-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.ht-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.ht-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }

/* Feature cards */
.ht-feature-card, .ht-option-card, .ht-mode-card {
    background: rgba(35,199,96,0.04);
    border: 1px solid rgba(35,199,96,0.12);
    border-radius: 10px;
    padding: 16px;
}
.ht-feature-card h4, .ht-option-card h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #23c760;
    margin: 0 0 6px;
}
.ht-feature-card p, .ht-option-card p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.5);
    margin: 0;
}
.ht-feature-card-sm { padding: 12px; }
.ht-feature-card-sm h4 { font-size: 0.78rem; }
.ht-feature-card-sm p { font-size: 0.74rem; }

/* Mode cards */
.ht-mode-card h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.ht-mode-demo { border-color: rgba(35,199,96,0.25); }
.ht-mode-demo h3 { color: #23c760; }
.ht-mode-real { border-color: rgba(255,170,0,0.25); }
.ht-mode-real h3 { color: #ffaa00; }

/* Subsections */
.ht-subsection {
    margin-top: 20px;
    margin-bottom: 8px;
}
.ht-subsection h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 8px;
}
.ht-subsection p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* Lists */
.ht-ul, .ht-ol {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    padding-left: 20px;
    margin: 0 0 8px;
}
.ht-ul li, .ht-ol li { margin-bottom: 4px; }
.ht-ul strong, .ht-ol strong { color: #e0e0e0; }

/* Coin box image */
.ht-coinbox-img {
    margin-bottom: 22px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(35,199,96,0.15);
}
.ht-coinbox-img img {
    display: block;
    width: 100%;
    height: auto;
}

/* Definition grid */
.ht-def-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.ht-def-grid-glossary {
    grid-template-columns: 1fr;
}
.ht-def {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(35,199,96,0.08);
    border-radius: 8px;
    padding: 12px 14px;
}
.ht-def dt {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #23c760;
    margin-bottom: 3px;
}
.ht-def dd {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.76rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Settings tabs */
.ht-settings-tab {
    background: rgba(35,199,96,0.03);
    border: 1px solid rgba(35,199,96,0.1);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.ht-settings-tab h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #23c760;
    margin: 0 0 8px;
}
.ht-settings-tab p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ht-container { max-width: 100%; }
    .ht-header { padding: 14px 18px; }
    .ht-body { padding: 0 18px 32px; }
    .ht-nav-link { padding: 10px 14px; font-size: 0.68rem; }
    .ht-grid-2 { grid-template-columns: 1fr; }
    .ht-grid-3 { grid-template-columns: 1fr; }
    .ht-grid-4 { grid-template-columns: 1fr 1fr; }
    .ht-grid-4-sm { grid-template-columns: 1fr 1fr; }
    .ht-def-grid { grid-template-columns: 1fr; }
}
