* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0b1020;
    --card: rgba(20, 27, 50, 0.92);
    --card-soft: rgba(30, 39, 69, 0.85);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: #9aa4bf;
    --green: #19c37d;
    --red: #ff5d73;
    --blue: #4f7cff;
    --gold: #f5b942;
    --shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

body {
    background:
        radial-gradient(circle at top left, rgba(79, 124, 255, 0.22), transparent 30%),
        radial-gradient(circle at top right, rgba(25, 195, 125, 0.12), transparent 22%),
        linear-gradient(180deg, #0a0f1f 0%, #121a32 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

.mobile-app {
    max-width: 480px;
    margin: 0 auto;
    padding: 18px 16px 100px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #7a5cff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    box-shadow: var(--shadow);
}

.welcome {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
}

.topbar h1 {
    font-size: 20px;
    font-weight: 700;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border-radius: 14px;
    cursor: pointer;
    font-size: 18px;
}

.hero-card {
    background: linear-gradient(160deg, rgba(79,124,255,0.22), rgba(20,27,50,0.95));
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.hero-label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.hero-balance {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-stats div {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
}

.hero-stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.hero-stats strong {
    font-size: 15px;
}

.hero-actions {
    display: flex;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    border: none;
    border-radius: 16px;
    padding: 14px 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), #0fbf9f);
    color: #061016;
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text);
    border: 1px solid var(--border);
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.mini-card {
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.mini-card span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.mini-card strong {
    font-size: 20px;
    font-weight: 800;
}

.mini-card.profit {
    background: linear-gradient(160deg, rgba(25,195,125,0.16), rgba(20,27,50,0.95));
}

.mini-card.monthly {
    background: linear-gradient(160deg, rgba(245,185,66,0.16), rgba(20,27,50,0.95));
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: 18px;
    font-weight: 700;
}

.section-head a {
    font-size: 13px;
    color: var(--blue);
    text-decoration: none;
}

.signal-list,
.bot-list,
.market-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signal-card,
.bot-card,
.market-row {
    background: var(--card-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
}

.signal-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.signal-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #24345f, #364a84);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.signal-card h3,
.bot-card h3,
.market-row h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.signal-card p,
.bot-card p,
.market-row p {
    font-size: 12px;
    color: var(--muted);
}

.signal-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.badge.buy {
    background: rgba(25,195,125,0.16);
    color: var(--green);
}

.badge.sell {
    background: rgba(255,93,115,0.16);
    color: var(--red);
}

.bot-top,
.bot-bottom,
.market-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-bottom {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.status.activo {
    background: rgba(25,195,125,0.16);
    color: var(--green);
}

.status.pausado {
    background: rgba(245,185,66,0.16);
    color: var(--gold);
}

.positive {
    color: var(--green);
    font-weight: 700;
}

.negative {
    color: var(--red);
    font-weight: 700;
}

.market-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 450px;
    background: rgba(15, 22, 41, 0.95);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    justify-content: space-around;
    padding: 12px 8px 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
    backdrop-filter: blur(12px);
}

.bottom-nav a {
    text-decoration: none;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    min-width: 58px;
}

.bottom-nav a span {
    font-size: 18px;
}

.bottom-nav a.active {
    color: var(--text);
}

@media (max-width: 380px) {
    .hero-balance {
        font-size: 27px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .mini-grid {
        grid-template-columns: 1fr;
    }

    .signal-card,
    .market-row,
    .bot-top,
    .bot-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .signal-right,
    .market-right {
        text-align: left;
    }
}