/* ── Variables ────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
    --bg:           #080f0f;
    --bg-surface:   #0f1a1a;
    --bg-raised:    #162020;
    --bg-card:      #1a2626;
    --border:       #1e3030;
    --border-subtle:#122020;

    --text:         #e8f0f0;
    --text-secondary: #6b9090;
    --text-dim:     #2d4a4a;

    --accent:       #00c896;
    --accent-dim:   #00c89612;
    --accent-glow:  #00c89620;

    --gold:         #f0c040;
    --gold-dim:     #f0c04015;

    --buy:          #00c896;
    --sell:         #ff4d6a;
    --flat:         #4d9fb5;

    --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

    --radius:       8px;
    --radius-lg:    14px;
    --radius-xl:    20px;

    --transition:   all .18s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,15,15,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
}
.header-inner {
    max-width: 1440px;
    margin: auto;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.logo {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-dim { color: var(--text-secondary); font-weight: 500; }

.header-nav { display: flex; gap: 2px; margin-right: auto; }
.nav-link {
    padding: 6px 14px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover { color: var(--text); background: var(--bg-raised); }
.nav-link.active { color: var(--accent); background: var(--accent-dim); }

.header-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.market-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-raised);
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid var(--border);
}
.market-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--buy);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,200,150,.4); }
    50% { opacity: .7; box-shadow: 0 0 0 4px rgba(0,200,150,0); }
}

.header-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: .5px;
}

/* User menu */
.user-menu { position: relative; cursor: pointer; }
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #00957a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #080f0f;
    border: 2px solid var(--bg-raised);
    transition: var(--transition);
}
.user-menu:hover .user-avatar { border-color: var(--accent); }
.user-menu:hover .user-dropdown { display: flex; }
.user-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 180px;
    overflow: hidden;
    z-index: 200;
    box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.user-dropdown a {
    padding: 11px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-dropdown a:hover { background: var(--bg-raised); color: var(--text); }
.logout-link { color: var(--sell) !important; border-top: 1px solid var(--border); }

.dias-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    text-decoration: none;
    animation: pulse-dot 2s infinite;
}
.dias-badge--warn {
    background: var(--gold-dim);
    border: 1px solid #f0c04033;
    color: var(--gold);
}

/* ── Main ─────────────────────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 28px 100px;
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.page-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.page-title .dim { color: var(--text-secondary); font-weight: 500; }

.badge--live {
    font-size: 11px;
    font-weight: 700;
    color: var(--buy);
    background: var(--accent-dim);
    border: 1px solid #00c89633;
    padding: 4px 10px;
    border-radius: 99px;
    animation: pulse-dot 2s infinite;
    letter-spacing: .3px;
}

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-wrap: wrap; }

/* ── Search bar ───────────────────────────────────────────────────────────── */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 12px;
    width: 220px;
    transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--accent); width: 280px; }
.search-bar input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    font-family: var(--font-body);
    width: 100%;
}
.search-bar input::placeholder { color: var(--text-dim); }
.search-icon { color: var(--text-secondary); font-size: 14px; flex-shrink: 0; }

/* Filter chips */
.filter-chips { display: flex; gap: 6px; }
.chip {
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
}
.chip:hover { color: var(--text); border-color: var(--text-secondary); }
.chip.active-all { background: var(--bg-raised); color: var(--text); border-color: var(--border); }
.chip.active-up { background: #00c89615; color: var(--buy); border-color: #00c89633; }
.chip.active-down { background: #ff4d6a15; color: var(--sell); border-color: #ff4d6a33; }
.chip.active-vol { background: var(--accent-dim); color: var(--accent); border-color: #00c89633; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    line-height: 1;
    font-family: var(--font-body);
}
.btn--primary { background: var(--accent); color: #080f0f; }
.btn--primary:hover { background: #00e0aa; transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg-raised); border-color: var(--text-secondary); }
.btn--danger { background: #ff4d6a15; color: var(--sell); border-color: #ff4d6a33; }
.btn--danger:hover { background: #ff4d6a25; }
.btn--sm { padding: 4px 10px; font-size: 12px; }
.btn:active { transform: scale(.97); }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.inline-form { display: flex; align-items: center; gap: 8px; }
.form-label { font-size: 12px; color: var(--text-secondary); white-space: nowrap; font-weight: 500; }
.input-sm {
    width: 120px;
    padding: 6px 10px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-family: var(--font-mono);
    transition: var(--transition);
}
.input-sm:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* ── Stats grid ───────────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--border);
    transition: var(--transition);
}
.stat-card:hover::before { background: var(--accent); }
.stat-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.stat-card--up::before { background: var(--buy); }
.stat-card--down::before { background: var(--sell); }
.stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.stat-value { font-size: 20px; font-weight: 700; font-family: var(--font-mono); letter-spacing: -0.5px; }

/* ── Table ────────────────────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-surface);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 11px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    cursor: default;
}
.data-table th.sortable { cursor: pointer; }
.data-table th.sortable:hover { color: var(--text); }
.data-table th.active-sort { color: var(--accent); }
.data-table th.asc::after  { content: ' ↑'; }
.data-table th.desc::after { content: ' ↓'; }

.data-table td {
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
    transition: background .1s;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-raised); }

.col-simb { text-align: left !important; }
.simb-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}
.simb-link:hover { color: var(--accent); }
.logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 5px;
    background: var(--bg-raised);
}

/* Sparkline */
.sparkline-cell { width: 60px; }
.sparkline { display: block; }

.mono { font-family: var(--font-mono); }
.buy  { color: var(--buy) !important; }
.sell { color: var(--sell) !important; }
.var-up   { color: var(--buy); }
.var-down { color: var(--sell); }
.var-flat { color: var(--flat); }
.dim { color: var(--text-secondary); }

.actions-cell { display: flex; gap: 6px; justify-content: center; }

/* ── Charts ───────────────────────────────────────────────────────────────── */
.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.chart-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

/* ── Detalle ──────────────────────────────────────────────────────────────── */
.detalle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.back-link {
    font-size: 12px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    transition: var(--transition);
    font-weight: 500;
}
.back-link:hover { color: var(--accent); }
.simb-tag {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid #00c89633;
    padding: 3px 10px;
    border-radius: var(--radius);
    margin-left: 10px;
    font-weight: 600;
}
.precio-hero { text-align: right; }
.precio-valor { font-size: 36px; font-weight: 700; display: block; font-family: var(--font-mono); letter-spacing: -1px; }
.precio-var   { font-size: 18px; font-weight: 600; display: block; margin-top: 2px; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}
.info-card:hover { border-color: var(--accent-dim); }
.info-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.info-value { font-size: 15px; font-weight: 600; font-family: var(--font-mono); }

.chart-section, .depth-section {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-title { font-size: 15px; font-weight: 700; }
.temporalidad-btns { display: flex; gap: 4px; }
.t-btn {
    padding: 5px 13px;
    border-radius: var(--radius);
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
}
.t-btn:hover { color: var(--text); background: var(--bg-raised); }
.t-btn.active { background: var(--accent-dim); color: var(--accent); border-color: #00c89633; }
.chart-stats { display: flex; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.chart-stat { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.empty-chart { text-align: center; color: var(--text-secondary); padding: 60px; font-size: 14px; }

.depth-table { background: transparent; }
.depth-table th, .depth-table td { background: transparent !important; }

/* ── Modals ───────────────────────────────────────────────────────────────── */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    position: relative;
    animation: modal-in .2s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-in {
    from { opacity: 0; transform: scale(.92) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal--sm { max-width: 340px; }
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { color: var(--text); background: var(--bg-surface); }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.modal-text  { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }

.modal-form { display: flex; flex-direction: column; gap: 8px; }
.modal-form label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-top: 6px; }
.modal-form input {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-family: var(--font-mono);
    transition: var(--transition);
}
.modal-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 15px;
}
.empty-icon { font-size: 48px; opacity: .3; }

/* ── Skeleton loader ──────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-raised) 25%, var(--bg-card) 50%, var(--bg-raised) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-row td { padding: 12px 16px; }
.skeleton-cell { height: 14px; border-radius: 4px; }

/* ── Number counter animation ─────────────────────────────────────────────── */
.count-up { transition: all .8s cubic-bezier(.4,0,.2,1); }

/* ── Ticker ───────────────────────────────────────────────────────────────── */
.ticker-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(8,15,15,.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    height: 36px;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 50;
}
.ticker-inner {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: scroll-left 80s linear infinite;
    will-change: transform;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes scroll-left {
    from { transform: translateX(100vw); }
    to   { transform: translateX(-100%); }
}
.tick-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 28px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-subtle);
}
.tick-item b { color: var(--text); font-weight: 600; }
.tick-up  span { color: var(--buy); }
.tick-down span { color: var(--sell); }

/* ── User menu subs ───────────────────────────────────────────────────────── */
.sus-estado { margin-bottom: 32px; }
.sus-badge { display: inline-block; padding: 6px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sus-badge--activa { background: #00c89615; border: 1px solid #00c89633; color: var(--buy); }
.sus-badge--vencida { background: #ff4d6a15; border: 1px solid #ff4d6a33; color: var(--sell); }
.sus-vence { color: var(--text-secondary); font-size: 14px; }

/* ── Planes ───────────────────────────────────────────────────────────────── */
.planes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
@media (max-width: 640px) { .planes-grid { grid-template-columns: 1fr; } }
.plan-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 30px; position: relative; display: flex; flex-direction: column; gap: 22px; transition: var(--transition); }
.plan-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.plan-card--destacado { border-color: var(--accent); background: var(--accent-dim); }
.plan-card--destacado:hover { box-shadow: 0 20px 60px var(--accent-glow); }
.plan-badge-top { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #080f0f; font-size: 11px; font-weight: 700; padding: 4px 16px; border-radius: 99px; white-space: nowrap; letter-spacing: .5px; }
.plan-nombre { font-size: 19px; font-weight: 700; }
.plan-precio { display: flex; align-items: baseline; gap: 6px; }
.plan-monto { font-family: var(--font-mono); font-size: 40px; font-weight: 700; color: var(--accent); letter-spacing: -2px; }
.plan-moneda { font-size: 13px; color: var(--text-secondary); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13px; flex: 1; line-height: 1.5; }
.plan-features li { color: var(--text); }
.plan-features li.dim { color: var(--text-dim); }

/* ── Pago modal ───────────────────────────────────────────────────────────── */
.pago-modal { background: var(--bg-surface); border: 1px solid var(--accent); border-radius: var(--radius-xl); padding: 28px; margin-top: 8px; }
.pago-titulo { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.pago-instruccion { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.pago-address { display: flex; align-items: center; gap: 12px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.pago-address code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); flex: 1; word-break: break-all; }
.pago-expira { font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }
.pago-status { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.spinner { width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .main-content { padding: 20px 16px 90px; }
    .chart-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-title { font-size: 20px; }
    .search-bar { width: 100%; }
    .search-bar:focus-within { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-inner, .badge--live, .market-dot, .dias-badge--warn { animation: none; }
}

/* ── Market status cerrado ────────────────────────────────────────────────── */
.market-status--cerrado {
    border-color: #ff4d6a33;
}
.market-dot--off {
    background: var(--sell) !important;
    animation: none !important;
}

/* ── Vela en vivo badge ───────────────────────────────────────────────────── */
.vela-vivo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-dim);
    border: 1px solid #f0c04033;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: .3px;
}
.vela-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse-dot 1.5s infinite;
}

/* ── Fix dropdown gap ─────────────────────────────────────────────────────── */
.user-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 12px; /* puente invisible entre avatar y dropdown */
}
.user-dropdown {
    top: calc(100% + 2px); /* reducir gap */
}

/* ── Perfil ───────────────────────────────────────────────────────────────── */
.perfil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}
.perfil-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.perfil-card--danger { border-color: #ff4d6a33; }
.perfil-section-title {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.perfil-avatar-section {
    display: flex;
    align-items: center;
    gap: 18px;
}
.perfil-avatar-grande {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #00957a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #080f0f;
    flex-shrink: 0;
    border: 3px solid var(--bg-raised);
}
.perfil-nombre { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.perfil-email  { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.perfil-plan {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: .3px;
}
.plan-pro   { background: var(--gold-dim); border: 1px solid #f0c04033; color: var(--gold); }
.plan-basico { background: var(--accent-dim); border: 1px solid #00c89633; color: var(--accent); }
.plan-trial  { background: var(--bg-raised); border: 1px solid var(--border); color: var(--text-secondary); }

.perfil-msg {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
}
.perfil-msg--ok  { background: #00c89615; border: 1px solid #00c89633; color: var(--buy); }
.perfil-msg--err { background: #ff4d6a15; border: 1px solid #ff4d6a33; color: var(--sell); }

.coming-soon-badge {
    font-size: 10px;
    font-weight: 600;
    background: var(--gold-dim);
    border: 1px solid #f0c04033;
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: .3px;
}

.telegram-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    opacity: .6;
}
.telegram-icon {
    width: 40px;
    height: 40px;
    background: #2AABEE22;
    border: 1px solid #2AABEE44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sus-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
}
.sus-info-row:last-of-type { border-bottom: none; }
.sus-info-label { color: var(--text-secondary); }
.sus-info-val   { font-weight: 600; }

/* ── Alertas ──────────────────────────────────────────────────────────────── */
.alerta-aviso {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #2AABEE10;
    border: 1px solid #2AABEE33;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
}
.alerta-aviso-icon { font-size: 24px; flex-shrink: 0; }

/* ── Telegram pasos ───────────────────────────────────────────────────────── */
.telegram-paso {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.6;
}
.paso-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #080f0f;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.telegram-codigo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin-top: 6px;
}
.telegram-codigo-box code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    flex: 1;
}

/* ── Importador ───────────────────────────────────────────────────────────── */
.importar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) { .importar-grid { grid-template-columns: 1fr; } }

.importar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.import-paso {
    display: flex;
    gap: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.import-cols {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.import-col {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
}

.broker-badge {
    font-size: 11px;
    font-weight: 600;
    background: var(--accent-dim);
    border: 1px solid #00c89633;
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 99px;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent);
    background: var(--accent-dim);
}
.upload-icon { font-size: 40px; margin-bottom: 10px; opacity: .6; }
.upload-text { font-size: 14px; color: var(--text-secondary); }

/* ── Watchlist star button ────────────────────────────────────────────────── */
.wl-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-dim);
    transition: var(--transition);
    padding: 2px 6px;
    border-radius: var(--radius);
}
.wl-btn:hover { color: var(--gold); transform: scale(1.2); }
.wl-btn.active { color: var(--gold); }
