/* analytics.theclassic.games — overlay sobre o tema Forge (app.css). */

.ax-hero h1 span { color: var(--accent, #d4894a); }

.ax-game-hero { margin: 20px 0 14px; }
.ax-game-hero-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.ax-game-hero-row h1 {
    margin: 0; font-family: var(--font-display); font-size: 2rem;
    letter-spacing: .04em; text-transform: uppercase; color: var(--text);
}
.ax-back {
    display: inline-block; margin-bottom: 10px; color: var(--text-dim);
    text-decoration: none; font-size: .9rem;
}
.ax-back:hover { color: var(--accent); }
.ax-sync { margin: 4px 0 0; font-size: .85rem; }

/* Toolbar: busca dinâmica + período */
.ax-toolbar {
    display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1fr);
    gap: 14px; margin-bottom: 16px; align-items: start;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px;
}
@media (max-width: 900px) {
    .ax-toolbar { grid-template-columns: 1fr; }
}
.ax-search-box { min-width: 0; }
.ax-search-field { position: relative; }
.ax-search-input { margin-bottom: 0; }
.ax-search-hint { margin: 8px 0 0; font-size: .78rem; }
.ax-search-dropdown {
    position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .5);
    max-height: 360px; overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a453c transparent;
}
.ax-search-dropdown::-webkit-scrollbar,
.ax-compare-results::-webkit-scrollbar,
.ax-feed::-webkit-scrollbar {
    width: 8px; height: 8px;
}
.ax-search-dropdown::-webkit-scrollbar-track,
.ax-compare-results::-webkit-scrollbar-track,
.ax-feed::-webkit-scrollbar-track {
    background: transparent;
}
.ax-search-dropdown::-webkit-scrollbar-thumb,
.ax-compare-results::-webkit-scrollbar-thumb,
.ax-feed::-webkit-scrollbar-thumb {
    background: #3a3630;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.ax-search-dropdown::-webkit-scrollbar-thumb:hover,
.ax-compare-results::-webkit-scrollbar-thumb:hover,
.ax-feed::-webkit-scrollbar-thumb:hover {
    background: #5a5348;
    background-clip: padding-box;
}
.ax-search-dropdown::-webkit-scrollbar-corner,
.ax-compare-results::-webkit-scrollbar-corner,
.ax-feed::-webkit-scrollbar-corner {
    background: transparent;
}
.ax-compare-results,
.ax-feed {
    scrollbar-width: thin;
    scrollbar-color: #4a453c transparent;
}
.ax-search-section { padding: 6px 0; }
.ax-search-section + .ax-search-section { border-top: 1px solid var(--border); }
.ax-search-section-title {
    padding: 6px 12px 4px; color: var(--text-dim);
    font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.ax-search-opt {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 12px; background: transparent; border: 0; cursor: pointer;
    color: var(--text); text-align: left; font-family: var(--font-body);
}
.ax-search-opt:hover, .ax-search-opt.active { background: var(--bg-soft); }
.ax-search-opt-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ax-search-opt-meta strong {
    font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ax-search-empty { padding: 14px 12px; margin: 0; }

.ax-period-box { min-width: 0; }
.ax-period-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ax-chip-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; padding: 5px 10px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-soft);
    color: var(--text-dim); text-decoration: none; font-size: .78rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
}
.ax-chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.ax-chip-btn.active {
    border-color: var(--accent); color: #1d150c;
    background: linear-gradient(180deg, #e09a54, #b8712f);
}

.ax-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px; margin-bottom: 12px;
}
.ax-stats-main { margin-bottom: 10px; }
.ax-stat {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
}
.ax-stat-label {
    display: block; color: var(--text-dim); font-size: .75rem;
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.ax-stat-value {
    font-family: var(--font-display); font-size: 1.6rem; color: var(--accent);
    letter-spacing: .03em;
}

.ax-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px;
}
.ax-card-focus {
    margin-bottom: 18px;
    border-color: rgba(232, 176, 67, .35);
    box-shadow: 0 0 0 1px rgba(232, 176, 67, .08);
}
.ax-card-secondary { opacity: .95; }
.ax-card-title {
    margin: 0 0 14px; font-family: var(--font-display); font-size: 1.35rem;
    letter-spacing: .05em; text-transform: uppercase; color: var(--text);
    border-left: 3px solid var(--accent); padding-left: 10px;
}
.ax-card h3.ax-card-title { font-size: 1.15rem; }
.ax-card-head-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 14px; flex-wrap: wrap;
}
.ax-card-head-row .ax-card-title { margin: 0; }
.ax-mt { margin-top: 16px; }
.muted { color: var(--text-dim); font-size: .85rem; }

.ax-section { margin: 22px 0; }
.ax-section-head { margin-bottom: 12px; }
.ax-section-title {
    margin: 0 0 4px; font-family: var(--font-display); font-size: 1.5rem;
    letter-spacing: .05em; text-transform: uppercase; color: var(--text);
}
.ax-section-head .muted { margin: 0; }

.ax-label {
    display: block; margin-bottom: 6px; color: var(--text-dim);
    font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
}
.ax-input {
    width: 100%; box-sizing: border-box;
    background: var(--bg-soft); border: 1px solid var(--border);
    color: var(--text); border-radius: var(--radius);
    padding: 10px 12px; font-size: .9rem; margin-bottom: 12px;
    font-family: var(--font-body);
}
.ax-input:focus { outline: none; border-color: var(--accent); }

.ax-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px; border: 0; border-radius: var(--radius); cursor: pointer;
    font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em;
    text-transform: uppercase; text-decoration: none;
    background: linear-gradient(180deg, #e09a54, #b8712f); color: #1d150c; font-weight: 600;
}
.ax-btn:hover { filter: brightness(1.08); }
.ax-btn-block { width: 100%; }
.ax-link { color: var(--accent); text-decoration: none; font-size: .85rem; }
.ax-link:hover { text-decoration: underline; }

.ax-item-list { display: flex; flex-direction: column; gap: 8px; }
.ax-item-list-3 {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px;
}
.ax-item-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
    text-decoration: none; color: var(--text); background: var(--bg-soft);
    transition: border-color .15s, background .15s;
}
.ax-item-row:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.ax-item-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ax-item-meta strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-item-name-link { color: inherit; text-decoration: none; }
.ax-item-name-link:hover { color: var(--accent); text-decoration: underline; }

.ax-period-fields {
    display: grid; grid-template-columns: 1fr 1fr auto;
    gap: 10px; align-items: end;
}
@media (max-width: 700px) {
    .ax-period-fields { grid-template-columns: 1fr; }
}
.ax-period-actions { padding-bottom: 0; }
.ax-period-box .ax-input { margin-bottom: 0; }

.ax-item-focus {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
    position: relative; padding: 10px 38px 10px 10px;
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.ax-chart {
    height: 320px; width: 100%;
    overflow: hidden; position: relative;
    min-width: 0;
}
.ax-chart .apexcharts-canvas { max-width: 100% !important; }

.ax-how-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px; margin: 24px 0;
}
.ax-how-card {
    position: relative; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 20px 20px 64px; color: var(--text-dim);
}
.ax-how-card h3 {
    margin: 0 0 8px; font-family: var(--font-display); font-size: 1.35rem;
    letter-spacing: .04em; text-transform: uppercase; color: var(--text);
}
.ax-how-card p { margin: 0; line-height: 1.5; }
.ax-how-num {
    position: absolute; left: 18px; top: 18px; width: 32px; height: 32px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #1d150c;
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
}
.ax-how-cta { text-align: center; margin: 28px 0 40px; }

/* ---------- KPIs dinâmicos (pulse) ---------- */
.ax-stats-pulse .ax-stat-value { font-size: 1.35rem; }
.ax-skel {
    display: inline-block; min-width: 60px; border-radius: 4px;
    background: linear-gradient(90deg, var(--bg-soft) 25%, var(--border) 50%, var(--bg-soft) 75%);
    background-size: 200% 100%;
    animation: ax-shimmer 1.2s infinite linear;
    color: transparent !important;
}
@keyframes ax-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- Market movers ---------- */
.ax-movers-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 820px) {
    .ax-movers-grid { grid-template-columns: 1fr; }
}
.ax-title-up { border-left-color: #6bbf6b; }
.ax-title-down { border-left-color: #d64545; }
.ax-pct {
    margin-left: auto; flex-shrink: 0;
    font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .03em;
    padding: 3px 9px; border-radius: 999px;
}
.ax-pct-up { color: #6bbf6b; background: rgba(107, 191, 107, .12); }
.ax-pct-down { color: #d64545; background: rgba(214, 69, 69, .12); }
.ax-hint { margin: 8px 2px 0; }

/* ---------- Estrela / watchlist ---------- */
.ax-item-row-star { position: relative; padding-right: 38px; }
.ax-star {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; cursor: pointer; user-select: none;
    color: var(--text-dim); opacity: .45; font-size: 1rem;
    transition: opacity .15s, color .15s, background .15s;
}
.ax-item-row:hover .ax-star { opacity: 1; }
.ax-star:hover { background: rgba(232, 176, 67, .15); color: #e8b043; opacity: 1; }
.ax-star.active { color: #e8b043; opacity: 1; }

/* ---------- Heatmap ---------- */
.ax-chart-heatmap { height: 300px; overflow: hidden; }
.ax-chart-tall { height: 380px; }
.ax-loading { padding: 20px 0; text-align: center; }

/* ---------- Grid duplo (traders + feed) ---------- */
.ax-duo-grid {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start;
}
@media (max-width: 900px) {
    .ax-duo-grid { grid-template-columns: 1fr; }
}

/* ---------- Tabela de traders ---------- */
.ax-table {
    width: 100%; border-collapse: collapse; font-size: .88rem;
}
.ax-table th {
    text-align: left; color: var(--text-dim); font-size: .72rem;
    text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
    padding: 6px 8px; border-bottom: 1px solid var(--border);
}
.ax-table td { padding: 8px; border-bottom: 1px solid var(--border); }
.ax-table tbody tr:last-child td { border-bottom: 0; }
.ax-table tbody tr:hover { background: var(--bg-soft); }
.ax-td-num, .ax-table th.ax-td-num { text-align: right; white-space: nowrap; }
.ax-td-name { font-weight: 600; }
.ax-td-gold { color: #e8b043; font-weight: 600; }
.ax-th-rank { width: 34px; text-align: center; }
.ax-rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%; font-size: .78rem; font-weight: 700;
    background: var(--bg-soft); color: var(--text-dim);
}
.ax-rank-1 { background: linear-gradient(180deg, #e8b043, #b8712f); color: #1d150c; }
.ax-rank-2 { background: linear-gradient(180deg, #c9ccd4, #8f939d); color: #1a1b1e; }
.ax-rank-3 { background: linear-gradient(180deg, #cd8b52, #9c5f2f); color: #1d150c; }
.ax-buy { color: #6bbf6b; }
.ax-sell { color: #4fa8ff; }
@media (max-width: 560px) {
    .ax-hide-sm { display: none; }
}

/* ---------- Feed de negociações ---------- */
.ax-live-dot {
    display: inline-flex; align-items: center; gap: 6px;
    color: #d64545; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
}
.ax-live-dot span {
    width: 8px; height: 8px; border-radius: 50%; background: #d64545;
    animation: ax-pulse-dot 1.6s infinite ease-in-out;
}
@keyframes ax-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.75); }
}
.ax-feed { display: flex; flex-direction: column; max-height: 520px; overflow-y: auto; }
.ax-feed-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 6px; border-bottom: 1px solid var(--border);
    text-decoration: none; color: var(--text);
    transition: background .15s;
}
.ax-feed-row:hover { background: var(--bg-soft); }
.ax-feed-row:last-child { border-bottom: 0; }
.ax-feed-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ax-feed-line { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-feed-sub { font-size: .76rem; }
.ax-feed-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.ax-feed-gold { color: #e8b043; font-size: .82rem; font-weight: 600; }
.ax-badge {
    font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 999px;
}
.ax-badge-buy { color: #6bbf6b; background: rgba(107, 191, 107, .12); }
.ax-badge-sell { color: #4fa8ff; background: rgba(79, 168, 255, .12); }

/* ---------- Comparador ---------- */
.ax-compare-box { position: relative; max-width: 420px; }
.ax-compare-input { margin-bottom: 0; }
.ax-compare-results {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
    max-height: 280px; overflow-y: auto;
}
.ax-compare-opt {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 9px 12px; background: transparent; border: 0; cursor: pointer;
    color: var(--text); font-size: .86rem; text-align: left;
    font-family: var(--font-body);
}
.ax-compare-opt:hover { background: var(--bg-soft); }
.ax-compare-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ax-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 8px 5px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600;
    background: var(--bg-soft); border: 1px solid var(--chip, var(--border));
    color: var(--text);
}
.ax-chip-x {
    background: transparent; border: 0; cursor: pointer;
    color: var(--text-dim); font-size: 1rem; line-height: 1; padding: 0 2px;
}
.ax-chip-x:hover { color: #d64545; }

/* ---------- Home: mini stats + sparkline ---------- */
.ax-home-stats {
    display: flex; gap: 14px; justify-content: center; margin: 10px 0 4px;
}
.ax-home-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ax-home-stat-value {
    font-family: var(--font-display); font-size: 1.25rem; color: var(--gc, var(--accent));
    letter-spacing: .03em;
}
.ax-home-stat-label {
    color: var(--text-dim); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em;
}
.ax-home-spark { height: 28px; margin: 6px 12px 2px; }
.ax-home-spark svg { width: 100%; height: 100%; display: block; }

/* ---------- Minhas vendas ---------- */
.ax-mysales-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-soft);
    color: var(--text-dim); text-decoration: none;
    font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    max-width: 190px; white-space: nowrap;
}
.ax-mysales-btn:hover { border-color: var(--accent); color: var(--accent); }
.ax-mysales-btn.active,
.ax-mysales-btn.logged { border-color: var(--accent); color: var(--accent); }
.ax-mysales-label { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
    .ax-mysales-btn .ax-mysales-label { display: none; }
}

.ax-ms-gate { max-width: 640px; margin: 0 auto 24px; text-align: center; }
.ax-ms-gate .ax-card-title { font-size: 1.5rem; }
.ax-ms-features {
    list-style: none; margin: 16px auto; padding: 0; max-width: 460px;
    text-align: left; display: flex; flex-direction: column; gap: 8px;
}
.ax-ms-features li {
    padding-left: 22px; position: relative; color: var(--text-dim); font-size: .92rem;
}
.ax-ms-features li::before {
    content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.ax-ms-gate-actions { margin: 18px 0 10px; }
.ax-btn-lg { padding: 13px 30px; font-size: 1.15rem; }
.ax-ms-hint { font-size: .8rem; margin: 6px 0 0; }
.ax-ms-error {
    background: rgba(214, 69, 69, .12); border: 1px solid rgba(214, 69, 69, .45);
    color: #e88a8a; border-radius: var(--radius); padding: 10px 14px;
    font-size: .88rem; margin: 0 0 14px;
}

.ax-ms-toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    gap: 12px; align-items: center;
}
.ax-ms-games { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-ms-game-chip { gap: 7px; padding: 7px 12px; }
.ax-ms-game-chip img { display: block; }
.ax-ms-game-chip.active {
    background: var(--bg-soft); color: var(--game-color, var(--accent));
    border-color: var(--game-color, var(--accent));
}

.ax-ms-accounts { margin-bottom: 12px; }
.ax-ms-account-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ax-ms-account {
    display: inline-flex; align-items: baseline; gap: 8px;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 7px 12px; font-size: .85rem;
}
.ax-ms-login { color: var(--accent); font-weight: 700; }
.ax-ms-chars { color: var(--text-dim); }

.ax-ms-sources { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ax-ms-substat { display: block; font-size: .78rem; margin-top: 2px; }

.ax-ms-filters {
    display: grid; grid-template-columns: auto minmax(160px, 240px) minmax(200px, 1fr);
    gap: 10px; align-items: center; margin-bottom: 12px;
}
.ax-ms-filters .ax-label { margin: 0; }
.ax-ms-filters .ax-input { margin-bottom: 0; }
@media (max-width: 700px) {
    .ax-ms-filters { grid-template-columns: 1fr; }
}

.ax-ms-table-wrap { overflow-x: auto; }
.ax-ms-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ax-ms-table th, .ax-ms-table td {
    padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left;
    vertical-align: middle;
}
.ax-ms-table th {
    color: var(--text-dim); font-size: .72rem; text-transform: uppercase;
    letter-spacing: .06em; white-space: nowrap;
}
.ax-ms-table th.num, .ax-ms-table td.num { text-align: right; white-space: nowrap; }
.ax-ms-table tbody tr:hover { background: var(--bg-card-hover); }
.ax-ms-gold { color: var(--accent); font-weight: 700; }
.ax-ms-nowrap { white-space: nowrap; }
.ax-ms-item {
    display: inline-flex; align-items: center; gap: 8px;
    color: inherit; text-decoration: none; min-width: 0;
}
.ax-ms-item img { flex: 0 0 auto; }
.ax-ms-item:hover span { color: var(--accent); text-decoration: underline; }
.ax-ms-badge {
    display: inline-block; padding: 2px 9px; border-radius: 999px;
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.ax-ms-badge-shop { background: rgba(107, 191, 107, .14); color: #6bbf6b; border: 1px solid rgba(107, 191, 107, .4); }
.ax-ms-badge-consignment { background: rgba(79, 168, 255, .14); color: #4fa8ff; border: 1px solid rgba(79, 168, 255, .4); }
.ax-ms-empty-filter { margin-top: 12px; }
.ax-ms-who { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.ax-ms-who-login { font-size: .76rem; }
