:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(20, 26, 41, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --primary: #00ff88;
    --primary-hover: #00cc6a;
    --win: #00e676;
    --loss: #ff4757;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 15% 50%, rgba(0, 255, 136, 0.05), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(0, 150, 255, 0.05), transparent 25%);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    background: rgba(14, 20, 33, 0.95);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.main-content {
    padding: 2rem 3rem;
    overflow-y: auto;
    height: 100vh;
}

header {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(#fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.top-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.top-toolbar-spacer {
    flex: 1;
}

.social-toolbar-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 420px);
    min-width: 240px;
    padding: 0 16px;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
}

.social-toolbar-search.is-open {
    border-color: rgba(79, 140, 255, 0.28);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.08);
}

.social-toolbar-search-icon {
    color: var(--text-muted);
    font-size: 1rem;
    flex: 0 0 auto;
}

.social-toolbar-search-input {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    font-size: 0.92rem;
}

.social-toolbar-search-input::placeholder {
    color: var(--text-muted);
}

.social-toolbar-results {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: min(100vw - 40px, 520px);
    max-height: 70vh;
    overflow-y: auto;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.98) 0%, rgba(12, 17, 28, 0.99) 100%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-header {
    margin-bottom: 1rem;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary);
}

.login-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.logged-out-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.login-btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 600;
}

.steam-login-top {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 700;
}

.steam-login-top:hover {
    transform: translateY(-2px);
    border-color: #66c0f4;
    box-shadow: 0 10px 24px rgba(102, 192, 244, 0.16);
}

.btn-signup {
    background: var(--primary);
    color: #000;
}

.login-btn-small:hover {
    transform: translateY(-2px);
    /* --- SIDEBAR NAV --- */
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tab-btn {
    text-align: left;
    padding: 12px 16px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transform: translateX(4px);
}

.tab-btn.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 4px 8px 8px 4px;
}

/* --- HISTÓRICO DE BUSCA --- */
.history-section h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 300px;
    overflow-y: auto;
}

/* Custom Scrollbar for history */
.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    transform: translateY(-2px);
}

.history-item img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.history-item .hist-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 255, 136, 0.15);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.user-badge-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary);
}

.profile-shortcut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-shortcut-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 22px rgba(0, 255, 136, 0.12);
}

.profile-shortcut-btn--accent {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.22), rgba(0, 255, 136, 0.12));
    color: #dfffee;
    border-color: rgba(0, 255, 136, 0.28);
}

.logout-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    background: var(--loss);
    color: #fff;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    margin: 15px 0;
    font-size: 1rem;
}

input {
    width: 400px;
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
    background: rgba(0,0,0,0.6);
}

button {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #000;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

button:disabled {
    background: #555;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.hidden { display: none !important; }

.error {
    color: var(--loss);
    margin-top: 1.5rem;
    font-weight: 600;
}
/* O layout do dashboard agora é controlado 100% pelo Tailwind CSS no próprio index.html */

.stat-group span { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase;}

.result { font-weight: 800; font-size: 1.1rem; padding: 2px 8px; border-radius: 6px; }
.result.win { color: var(--win); background: rgba(0, 230, 118, 0.1); }
.result.loss { color: var(--loss); background: rgba(255, 71, 87, 0.1); }

/* Activity Heatmap */
.profile-activity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1rem;
}

.profile-activity-subtitle {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.activity-open-btn {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.28);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.activity-open-btn:hover {
    background: rgba(0, 255, 136, 0.18);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.14);
}

.profile-month-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-month-summary-card {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-month-summary-card strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}

.profile-month-summary-card span {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.activity-page-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.activity-player-badge {
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: #fff;
    min-width: 220px;
}

.activity-player-badge strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.activity-player-badge span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.activity-month-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.activity-month-card {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.activity-month-card.featured {
    border-color: rgba(0, 255, 136, 0.2);
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
}

.activity-month-card h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.activity-month-card p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.activity-month-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 1rem;
}

.activity-month-stat {
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-month-stat strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.activity-month-stat span {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.activity-card {
    overflow: hidden;
}

.activity-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1rem;
}

.activity-card-subtitle {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.activity-heatmap-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-summary-inline {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.activity-summary-pill {
    min-width: 110px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-summary-pill strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.activity-summary-pill span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.activity-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 0 2px;
}

.activity-weekdays span {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    font-weight: 700;
}

.activity-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.activity-day-cell {
    position: relative;
    min-height: 76px;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.activity-day-cell:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 136, 0.35);
}

.activity-day-cell.out-of-range {
    opacity: 0.28;
}

.activity-day-cell.has-matches {
    border-color: rgba(0, 255, 136, 0.16);
}

.activity-day-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.activity-day-number {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.activity-month-label {
    color: var(--text-muted);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.activity-day-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-day-record {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.activity-day-total {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.activity-day-bar {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.activity-day-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.45) 0%, rgba(0, 255, 136, 0.95) 100%);
}

.activity-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.activity-legend-scale {
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-legend-boxes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.activity-legend-box {
    width: 18px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.activity-legend-box.level-1 { background: rgba(0, 255, 136, 0.22); }
.activity-legend-box.level-2 { background: rgba(0, 255, 136, 0.38); }
.activity-legend-box.level-3 { background: rgba(0, 255, 136, 0.58); }
.activity-legend-box.level-4 { background: rgba(0, 255, 136, 0.82); }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .top-toolbar { gap: 12px; flex-wrap: wrap; }
    .logged-out-actions,
    .user-badge { width: 100%; justify-content: flex-end; }
    .profile-activity-header,
    .activity-page-hero { flex-direction: column; }
    .profile-month-summary,
    .activity-month-cards { grid-template-columns: 1fr; }
    .activity-player-badge { min-width: 0; width: 100%; }
    .activity-card-header { flex-direction: column; }
    .activity-summary-inline { justify-content: flex-start; width: 100%; }
    .activity-summary-pill { min-width: calc(50% - 5px); }
    .counts-sections-grid { grid-template-columns: 1fr; }
    .counts-section-card { padding: 14px; }
    .counts-section-head,
    .counts-row { grid-template-columns: minmax(0, 1.2fr) minmax(74px, 0.72fr) minmax(92px, 0.88fr); gap: 10px; }
    .counts-row-label { font-size: 0.78rem; }
    .activity-calendar-grid,
    .activity-weekdays { gap: 6px; }
    .activity-day-cell { min-height: 66px; padding: 8px 7px; }
    .activity-day-record { font-size: 0.76rem; }
    .activity-day-total { font-size: 0.64rem; }
    .stats-overview { flex-direction: column; width: 100%; }
    .search-box { flex-direction: column; }
    input { width: 100%; }
    .profile-card { flex-direction: column; text-align: center; }
    .match-item { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .match-stats { width: 100%; justify-content: flex-start; gap: 2rem; flex-wrap: wrap;}
}

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn { padding: 12px 24px; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: var(--text-muted); border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.tab-btn.active, .tab-btn:hover { background: rgba(0, 255, 136, 0.15); color: var(--primary); border-color: rgba(0, 255, 136, 0.4); }

/* Views */
.view-section { width: 100%; animation: fadeInUp 0.5s ease; }
.subtitle { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.loading { color: var(--primary); font-weight: 600; text-align: center; margin: 2rem 0; font-size: 1.2rem; }

/* Tables (Meta) */
.table-responsive { width: 100%; overflow-x: auto; background: rgba(0,0,0,0.2); border-radius: 12px; }
.meta-table { width: 100%; border-collapse: collapse; min-width: 600px; text-align: left; }
.meta-table th { padding: 15px 20px; border-bottom: 1px solid var(--glass-border); color: var(--text-muted); text-transform: uppercase; font-size: 0.85rem; }
.meta-table td { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle;}
.meta-table tr:hover td { background: rgba(0,0,0,0.4); }
.hero-cell { display: flex; align-items: center; gap: 15px; font-weight: 600; font-size: 1.1rem; }
.hero-icon { width: 55px; height: 30px; border-radius: 4px; object-fit: cover; }

/* Pro Grid */
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.pro-card { background: rgba(0,0,0,0.25); border: 1px solid var(--glass-border); border-radius: 12px; padding: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.2s; }
.pro-card:hover { transform: translateY(-5px); background: rgba(0,0,0,0.5); border-color: rgba(0, 255, 136, 0.3); }
.pro-avatar { width: 90px; height: 90px; border-radius: 50%; margin-bottom: 1rem; border: 2px solid var(--primary); box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.pro-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.3rem; }
.pro-team { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.pro-link { background: var(--primary); color: #000; text-decoration: none; padding: 8px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: 800; transition: background 0.2s; cursor: pointer;}
.pro-link:hover { background: var(--primary-hover); transform: scale(1.05); }

/* Select Dropdown */
.rank-select { background: rgba(0,0,0,0.6); color: var(--primary); border: 1px solid rgba(0, 255, 136, 0.4); padding: 10px 20px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; outline: none; font-family: 'Inter', sans-serif; transition: all 0.3s; }
.rank-select:hover, .rank-select:focus { border-color: var(--primary); background: rgba(0, 255, 136, 0.1); }
.rank-select option { background: var(--bg-color); color: #fff; }

/* Guides View */
.build-phase { margin-bottom: 2rem; background: rgba(0,0,0,0.15); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--glass-border); }
.build-phase h3 { border-left: 4px solid var(--primary); padding-left: 10px; margin-bottom: 1.5rem; font-size: 1.3rem; }
.items-row { display: flex; flex-wrap: wrap; gap: 15px; }
.item-card { background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); padding: 15px 10px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; width: 130px; text-align: center; transition: all 0.2s; }
.item-card:hover { transform: scale(1.05); background: rgba(0,0,0,0.6); border-color: var(--primary); }
.item-icon { width: 85px; height: 60px; object-fit: cover; border-radius: 6px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.item-name { font-size: 0.85rem; color: #fff; font-weight: 800; line-height: 1.3; }
.item-count { font-size: 0.75rem; color: var(--primary); margin-top: 8px; font-weight: 600; }

/* Leaderboard */
.rank-number { font-size: 1.2rem; font-weight: 800; color: #ffb800; }
.rank-number.top1 { font-size: 1.8rem; color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.rank-number.top2 { color: #c0c0c0; text-shadow: 0 0 10px rgba(192, 192, 192, 0.5); font-size: 1.6rem; }
.rank-number.top3 { color: #cd7f32; text-shadow: 0 0 10px rgba(205, 127, 50, 0.5); font-size: 1.4rem; }
.lb-name { font-size: 1.1rem; font-weight: 800; color: #fff; }
.lb-sponsor { color: var(--text-muted); font-size: 0.9rem; margin-right: 5px;}

/* Bookmarks */
.bookmarks-container { margin-bottom: 2rem; padding: 1.5rem; border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(0,0,0,0.2); }
.bookmarks-container h3 { font-size: 1rem; color: var(--text-muted); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.bookmarks-list { display: flex; flex-wrap: wrap; gap: 10px; }
.bookmark-tag { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--glass-border); cursor: pointer; transition: all 0.2s; }
.bookmark-tag:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); }
.bookmark-tag img { width: 24px; height: 24px; border-radius: 4px; }
.remove-bookmark { font-size: 0.8rem; color: var(--loss); border: none; background: transparent; padding: 2px; margin-left: 5px; opacity: 0.5; }
.remove-bookmark:hover { opacity: 1; transform: scale(1.2); }

/* Match Breakdown */
.counts-card-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.counts-card-caption {
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.counts-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-breakdown-panel {
    overflow: hidden;
}

.counts-empty-state {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.counts-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.counts-section-card {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.counts-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.counts-section-head,
.counts-row {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(88px, 0.72fr) minmax(104px, 0.88fr);
    gap: 12px;
    align-items: center;
}

.counts-section-head {
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.counts-section-head span:nth-child(2),
.counts-section-head span:nth-child(3) {
    color: var(--text-muted);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.counts-row-label {
    color: #dfe8f7;
    font-size: 0.82rem;
    line-height: 1.35;
    padding-right: 4px;
}

.counts-row-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.counts-row-metric strong {
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.counts-row-metric strong.is-winrate {
    color: #dfffb3;
}

.counts-bar {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.counts-bar-fill {
    height: 100%;
    border-radius: inherit;
}

.counts-bar-fill.games {
    background: linear-gradient(90deg, #ff3366 0%, #ff1744 100%);
}

.counts-bar-fill.winrate {
    background: linear-gradient(90deg, #7ad61d 0%, #b4ec51 100%);
}

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { max-width: 450px; width: 90%; text-align: center; }
.modal-content h2 { margin-bottom: 1rem; color: var(--primary); }
.modal-content p { margin-bottom: 1.5rem; color: var(--text-muted); }
.modal-content input { width: 100%; margin-bottom: 2rem; text-align: center; font-size: 1.2rem; }
.modal-footer { display: flex; gap: 15px; justify-content: center; margin-bottom: 1.5rem; }
.btn-alt { background: rgba(255,255,255,0.1); color: #fff; }
.btn-alt:hover { background: rgba(255,255,255,0.2); }

.modal-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}
.modal-divider span {
    background: #141a29;
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}
.modal-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
}

.steam-auth-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s;
}
.steam-auth-btn:hover { transform: scale(1.05); }
.steam-auth-btn img { display: block; margin: 0 auto; }

/* Save Build Btn */
.save-build-btn { padding: 8px 15px; font-size: 0.8rem; background: rgba(0, 150, 255, 0.2); color: #0096ff; border: 1px solid #0096ff; border-radius: 6px; }
.save-build-btn:hover { background: #0096ff; color: #000; }
.save-build-btn.saved { background: var(--win); color: #000; border-color: var(--win); }

/* Meu Herois */
.my-heroes-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.my-heroes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.my-heroes-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.my-heroes-search {
    min-width: 260px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
}

.my-heroes-search:focus {
    border-color: rgba(0, 255, 136, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.my-heroes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.my-heroes-panel,
.my-hero-detail-panel {
    background: rgba(10, 14, 24, 0.72);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.my-heroes-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.my-heroes-panel-head h3 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
}

.my-heroes-panel-head p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.my-heroes-caption {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.hero-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.hero-card-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.hero-mini-card {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 98px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(28, 35, 56, 0.88) 0%, rgba(16, 21, 36, 0.94) 100%);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

.hero-mini-card.is-selected {
    border-color: rgba(0, 255, 136, 0.55);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.25), 0 18px 35px rgba(0, 0, 0, 0.22);
}

.hero-mini-card-media {
    position: relative;
    flex-shrink: 0;
}

.hero-mini-card-media img {
    width: 72px;
    height: 42px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-fav-toggle {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(8, 11, 19, 0.92);
    color: #facc15;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-fav-toggle:hover {
    transform: scale(1.06);
    border-color: rgba(250, 204, 21, 0.45);
}

.hero-fav-toggle.is-active {
    background: rgba(250, 204, 21, 0.14);
    border-color: rgba(250, 204, 21, 0.45);
}

.hero-mini-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-mini-card-body h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
}

.hero-mini-card-subtitle,
.hero-mini-card-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.hero-mini-card-tags,
.my-hero-chip-row,
.my-hero-stats-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-mini-card-tag,
.my-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d9e4ff;
    font-size: 0.72rem;
    font-weight: 600;
}

.my-hero-detail-empty,
.my-hero-detail-loading {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-hero-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.my-hero-identity {
    display: flex;
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.my-hero-identity img {
    width: 124px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.my-hero-title h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.8rem;
}

.my-hero-title p {
    margin: 0 0 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.my-hero-action {
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.my-hero-action:hover {
    background: rgba(250, 204, 21, 0.18);
    border-color: rgba(250, 204, 21, 0.4);
}

.my-hero-action.is-active {
    background: rgba(0, 255, 136, 0.12);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--primary);
}

.my-hero-summary-grid,
.my-hero-player-grid,
.my-hero-build-grid {
    display: grid;
    gap: 16px;
}

.my-hero-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.my-hero-player-grid,
.my-hero-build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.my-hero-summary-card,
.my-hero-mini-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
}

.my-hero-summary-card span,
.my-hero-mini-panel h4 {
    display: block;
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.my-hero-summary-card strong {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.my-hero-mini-panel h4 {
    color: #fff;
    font-size: 1rem;
    letter-spacing: normal;
    text-transform: none;
}

.my-hero-note {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.my-hero-mini-panel .items-row {
    gap: 12px;
}

.my-hero-mini-panel .item-card {
    width: 120px;
    min-height: 136px;
}

/* Social */
.social-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: calc(100vh - 180px);
    padding: 10px 0 24px;
    background:
        radial-gradient(circle at top left, rgba(79, 140, 255, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(0, 255, 136, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(11, 15, 25, 0.55) 0%, rgba(11, 15, 25, 0.1) 100%);
}

.social-page-header,
.social-page-actions,
.social-panel-head,
.social-feed-card-footer,
.social-comment-form,
.social-friend-actions,
.social-composer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.social-page-header {
    align-items: center;
}

.social-page-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(79, 140, 255, 0.12);
    border: 1px solid rgba(79, 140, 255, 0.28);
    color: #8cb4ff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.social-page-header h2 {
    margin: 0;
}

.social-page-actions {
    align-items: center;
}

.social-page-status {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dce8ff;
    font-size: 0.85rem;
    font-weight: 600;
}

.social-login-notice,
.social-panel,
.social-composer-card {
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.96) 0%, rgba(14, 19, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.2);
}

.social-login-notice {
    padding: 16px 18px;
    border-color: rgba(79, 140, 255, 0.22);
    background: linear-gradient(180deg, rgba(38, 63, 115, 0.22) 0%, rgba(16, 22, 37, 0.94) 100%);
}

.social-login-notice p,
.social-panel-head p,
.social-feed-caption,
.social-comment-time,
.social-comment-empty,
.social-side-note span,
.social-composer-copy p,
.social-friend-main p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.social-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    gap: 18px;
    align-items: start;
}

.social-rail,
.social-main-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.social-rail {
    position: sticky;
    top: 20px;
}

.social-panel,
.social-composer-card {
    padding: 18px;
}

.social-panel-head h3,
.social-composer-copy h3 {
    margin: 0;
    color: #fff;
}

.social-panel-head--feed {
    margin-bottom: 8px;
}

.social-composer-card {
    position: relative;
    overflow: hidden;
}

.social-composer-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.14), transparent 35%, rgba(0, 255, 136, 0.08) 100%);
    pointer-events: none;
}

.social-composer-header,
.social-add-form,
.social-composer-actions {
    position: relative;
    z-index: 1;
}

.social-composer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f8cff 0%, #2d5fff 100%);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 24px rgba(45, 95, 255, 0.24);
    flex-shrink: 0;
}

.social-composer-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.social-composer-copy {
    min-width: 0;
    flex: 1;
}

.social-composer-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.social-composer-tab {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #dce8ff;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-composer-tab.active,
.social-composer-tab:hover {
    background: rgba(79, 140, 255, 0.14);
    border-color: rgba(79, 140, 255, 0.28);
    color: #8cb4ff;
}

.social-composer-pane {
    position: relative;
    z-index: 1;
    margin-top: 16px;
}

.social-composer-textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    background: rgba(8, 12, 20, 0.92);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 16px 18px;
    outline: none;
    line-height: 1.6;
}

.social-composer-textarea:focus {
    border-color: rgba(79, 140, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.08);
}

.social-add-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 16px;
}

.social-add-form--facebook .my-heroes-search {
    flex: 1;
    min-width: 220px;
    background: rgba(8, 12, 20, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 14px 18px;
}

.social-inline-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.social-post-media-row {
    margin-top: 14px;
}

.social-file-input {
    display: none;
}

.social-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px dashed rgba(0, 255, 136, 0.32);
    background: rgba(0, 255, 136, 0.07);
    color: #eafff4;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-upload-label:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 255, 136, 0.55);
    background: rgba(0, 255, 136, 0.11);
}

.social-upload-preview {
    margin-top: 14px;
}

.social-upload-preview-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.045);
}

.social-upload-preview-image {
    width: 112px;
    height: 84px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.social-upload-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.social-upload-preview-copy strong {
    color: #fff;
}

.social-upload-preview-copy span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-poll-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.social-primary-btn {
    min-height: 48px;
    border: none;
    border-radius: 14px;
    padding: 0 18px;
    background: linear-gradient(135deg, #4f8cff 0%, #2d5fff 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(45, 95, 255, 0.22);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-primary-btn:hover {
    transform: translateY(-1px);
}

.social-primary-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.social-primary-btn--green {
    background: linear-gradient(135deg, #00ff88 0%, #00d971 100%);
    color: #04130c;
    box-shadow: 0 16px 28px rgba(0, 255, 136, 0.18);
}

.social-composer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.social-composer-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dce8ff;
    font-size: 0.8rem;
    font-weight: 700;
}

.social-hub-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-hub-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-hub-tab {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #dce8ff;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-hub-tab.active,
.social-hub-tab:hover {
    background: rgba(0, 255, 136, 0.12);
    border-color: rgba(0, 255, 136, 0.24);
    color: #8ff0bf;
}

.social-hub-pane {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-user-searchbar {
    display: flex;
}

.social-user-search-input,
.social-chat-input {
    width: 100%;
    min-width: 0;
    padding: 15px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(236, 240, 255, 0.06);
    color: #fff;
    outline: none;
}

.social-user-search-input:focus,
.social-chat-input:focus {
    border-color: rgba(79, 140, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.08);
}

.social-directory-list,
.social-chat-list,
.social-clan-list,
.social-clan-picker-list,
.social-clan-messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-directory-card,
.social-chat-list-item,
.social-clan-card,
.social-clan-picker-card,
.social-chat-thread,
.social-chat-sidebar,
.social-clan-sidebar,
.social-clan-detail,
.social-clan-builder {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
}

.social-directory-card,
.social-chat-list-item,
.social-clan-card,
.social-clan-picker-card {
    padding: 14px;
}

.social-directory-card,
.social-clan-picker-card {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.social-directory-meta,
.social-directory-main,
.social-chat-list-copy,
.social-clan-card-copy {
    min-width: 0;
    flex: 1;
}

.social-directory-avatar,
.social-chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.94), rgba(45, 95, 255, 0.88));
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.social-avatar-photo {
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.08);
    background: #111827;
}

.social-directory-main h4,
.social-chat-list-copy strong,
.social-chat-sidebar-head h4,
.social-clan-builder-head h4,
.social-clan-picker-head h4,
.social-clan-card-copy strong,
.social-clan-header h4 {
    margin: 0;
    color: #fff;
}

.social-directory-main p,
.social-chat-list-copy span,
.social-chat-sidebar-head p,
.social-clan-builder-head p,
.social-clan-picker-head span,
.social-clan-card-copy span,
.social-clan-header p,
.social-clan-meta span {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.social-directory-actions,
.social-directory-meta,
.social-clan-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.social-pill-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.24);
    color: #8ff0bf;
    font-weight: 800;
}

.social-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #dce8ff;
    font-size: 0.78rem;
    font-weight: 700;
}

.social-chat-layout,
.social-clan-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 16px;
}

.social-chat-sidebar,
.social-chat-thread,
.social-clan-sidebar,
.social-clan-detail,
.social-clan-builder {
    padding: 16px;
}

.social-chat-page,
.social-clan-page {
    padding: 18px;
}

.social-chat-sidebar-head,
.social-clan-picker-head,
.social-clan-header,
.social-clan-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.social-chat-list-item,
.social-clan-card {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-chat-list-item:hover,
.social-chat-list-item.active,
.social-clan-card:hover,
.social-clan-card.active {
    transform: translateY(-1px);
    border-color: rgba(0, 255, 136, 0.22);
    background: rgba(0, 255, 136, 0.06);
}

.social-chat-list-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-chat-list-copy strong,
.social-chat-list-copy span,
.social-directory-main h4,
.social-directory-main p,
.social-clan-card-copy strong,
.social-clan-card-copy span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 420px;
}

.social-chat-thread-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.social-chat-thread-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-chat-thread-header h4,
.social-chat-thread-header p {
    margin: 0;
}

.social-chat-messages,
.social-clan-messages {
    flex: 1;
    min-height: 220px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
}

.social-chat-message,
.social-clan-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.social-chat-message--me {
    align-items: flex-end;
}

.social-chat-message--friend,
.social-clan-message {
    align-items: flex-start;
}

.social-chat-bubble,
.social-clan-bubble {
    max-width: min(100%, 420px);
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.045);
    color: #f4f7ff;
    line-height: 1.5;
}

.social-chat-message--me .social-chat-bubble {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.14), rgba(0, 255, 136, 0.08));
    border-color: rgba(0, 255, 136, 0.24);
}

.social-chat-meta,
.social-clan-message-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.social-chat-form,
.social-clan-message-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.social-clan-builder {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-clan-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.social-clan-textarea {
    min-height: 96px;
}

.social-clan-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-clan-picker-card {
    justify-content: flex-start;
}

.social-clan-picker-card label {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.social-clan-picker-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.social-clan-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 360px;
}

.social-clan-members {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-clan-member-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #dce8ff;
    font-size: 0.82rem;
    font-weight: 700;
}

.social-chip-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.social-clan-empty-state {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.social-clan-empty-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-clan-empty-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 136, 0.22);
    background: rgba(0, 255, 136, 0.05);
}

.social-clan-empty-card strong {
    font-size: 1rem;
}

.social-clan-empty-card span {
    color: var(--text-muted);
    line-height: 1.5;
}

.social-clan-discover-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-messenger-shell {
    position: fixed;
    right: 22px;
    bottom: 18px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    z-index: 60;
}

.social-messenger-toggle {
    min-width: 88px;
    height: 48px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f8cff 0%, #2d5fff 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 32px rgba(45, 95, 255, 0.28);
}

.social-messenger-drawer {
    width: 300px;
    max-height: 420px;
    overflow-y: auto;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.98) 0%, rgba(14, 19, 30, 0.99) 100%);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.social-chat-windows {
    display: flex;
    gap: 14px;
    align-items: flex-end;
}

.social-chat-window {
    width: 320px;
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.99) 0%, rgba(14, 19, 30, 1) 100%);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.social-chat-window-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.social-chat-window-title {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.social-chat-window-title strong {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-chat-window-body {
    max-height: 280px;
    overflow-y: auto;
    padding: 12px;
}

.social-chat-window-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.social-summary-grid,
.social-comments-list,
.social-side-notes {
    display: grid;
    gap: 14px;
}

.social-summary-grid--stack {
    grid-template-columns: 1fr;
}

.social-summary-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(79, 140, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-summary-card span {
    display: block;
    color: #93a7cb;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    margin-bottom: 10px;
}

.social-summary-card strong {
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.social-side-note {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-side-note strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 0.95rem;
}

.social-friends-list,
.social-feed-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-feed-list {
    min-height: 260px;
}

.social-friend-card,
.social-feed-card,
.social-comment {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.social-friend-card {
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-friend-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 140, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
}

.social-friend-avatar,
.social-feed-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.08);
}

.social-friend-main,
.social-feed-main {
    min-width: 0;
    flex: 1;
}

.social-friend-main h4,
.social-feed-main h4,
.social-comment-author {
    margin: 0;
    color: #fff;
}

.social-mini-btn,
.social-danger-btn,
.social-submit-btn {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 9px 13px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-mini-btn {
    background: rgba(255,255,255,0.06);
    color: #edf4ff;
}

.social-mini-btn:hover {
    border-color: rgba(79, 140, 255, 0.35);
    color: #8cb4ff;
}

.social-danger-btn {
    background: rgba(255, 51, 102, 0.08);
    color: #ff7a97;
}

.social-danger-btn:hover {
    border-color: rgba(255, 51, 102, 0.3);
    background: rgba(255, 51, 102, 0.12);
}

.social-feed-card {
    padding: 18px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
}

.social-feed-card--community {
    border-color: rgba(79, 140, 255, 0.18);
}

.social-feed-card--event {
    border-color: rgba(79, 140, 255, 0.2);
    background: linear-gradient(180deg, rgba(79, 140, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.social-feed-card-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.social-feed-topline {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.social-feed-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f8cff 0%, #2d5fff 100%);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.social-feed-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d9e4ff;
    font-size: 0.74rem;
    font-weight: 700;
}

.social-feed-pill.win {
    color: #b6ff73;
    border-color: rgba(122, 214, 29, 0.28);
}

.social-feed-pill.loss {
    color: #ff7a97;
    border-color: rgba(255, 51, 102, 0.26);
}

.social-feed-pill.success,
.social-feed-pill.up {
    color: #b6ff73;
    border-color: rgba(122, 214, 29, 0.28);
    background: rgba(122, 214, 29, 0.08);
}

.social-feed-pill.danger,
.social-feed-pill.down {
    color: #ff7a97;
    border-color: rgba(255, 51, 102, 0.26);
    background: rgba(255, 51, 102, 0.08);
}

.social-feed-pill.accent {
    color: #7ad7ff;
    border-color: rgba(0, 150, 255, 0.25);
    background: rgba(0, 150, 255, 0.08);
}

.social-feed-caption {
    font-size: 0.96rem;
    line-height: 1.55;
}

.social-community-body {
    margin-top: 8px;
}

.social-community-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.15rem;
}

.social-community-text {
    margin: 0;
    color: #edf4ff;
    line-height: 1.65;
    white-space: pre-wrap;
}

.social-community-meta {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin: 12px 0 0;
}

.social-feed-meta,
.social-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.social-feed-meta--alerts {
    margin-top: 12px;
}

.social-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}

.social-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #dce8ff;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-react-btn.active,
.social-react-btn:hover {
    background: rgba(79, 140, 255, 0.14);
    border-color: rgba(79, 140, 255, 0.28);
    color: #8cb4ff;
}

.social-post-comments-count {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.social-poll-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.social-poll-option {
    width: 100%;
    text-align: left;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-poll-option:hover,
.social-poll-option.active {
    border-color: rgba(79, 140, 255, 0.28);
    background: rgba(79, 140, 255, 0.08);
}

.social-poll-option-label {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.social-poll-option-meta {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.social-poll-option-bar {
    display: block;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-top: 10px;
}

.social-poll-option-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4f8cff 0%, #00ff88 100%);
}

.social-feed-card-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.social-comment-form {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.social-comment-fields {
    display: grid;
    grid-template-columns: 1.6fr 1fr auto;
    gap: 10px;
    width: 100%;
}

.social-comment-fields input {
    background: rgba(8, 12, 20, 0.92);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 12px 14px;
    outline: none;
}

.social-comment-fields input:focus {
    border-color: rgba(79, 140, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.08);
}

.social-submit-btn {
    background: linear-gradient(135deg, #4f8cff 0%, #2d5fff 100%);
    border-color: rgba(79, 140, 255, 0.3);
    color: #fff;
    box-shadow: 0 14px 24px rgba(45, 95, 255, 0.22);
}

.social-submit-btn:hover {
    transform: translateY(-1px);
}

.social-comment {
    padding: 12px 14px;
    background: rgba(255,255,255,0.045);
}

.social-comment-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 8px;
}

.social-comment p {
    margin: 0;
    color: #f4f7ff;
    line-height: 1.55;
}

.social-gif-preview {
    margin-top: 10px;
    max-width: 240px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.social-media-preview {
    margin-top: 14px;
    width: min(100%, 480px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1100px) {
    .my-heroes-grid,
    .my-hero-summary-grid,
    .my-hero-player-grid,
    .my-hero-build-grid,
    .social-layout,
    .social-chat-layout,
    .social-clan-layout {
        grid-template-columns: 1fr;
    }

    .social-rail {
        position: static;
    }

    .social-rail-left { order: 2; }
    .social-main-column { order: 1; }
    .social-rail-right { order: 3; }

    .social-summary-grid--stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .social-toolbar-search {
        width: 100%;
        min-width: 0;
        order: 2;
    }

    .social-toolbar-results {
        width: 100%;
        left: 0;
        right: 0;
    }

    .top-toolbar-spacer {
        display: none;
    }

    .my-heroes-search {
        width: 100%;
        min-width: 0;
    }

    .my-hero-identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .my-hero-identity img {
        width: 100%;
        max-width: 260px;
        height: auto;
    }

    .hero-card-grid,
    .hero-card-grid--compact {
        grid-template-columns: 1fr;
    }

    .social-page-actions,
    .social-page-header {
        align-items: flex-start;
    }

    .top-toolbar,
    .login-area,
    .logged-out-actions {
        flex-wrap: wrap;
    }

    .social-summary-grid--stack {
        grid-template-columns: 1fr;
    }

    .social-inline-fields,
    .social-poll-grid,
    .social-clan-form-grid,
    .social-chat-form,
    .social-clan-message-form {
        grid-template-columns: 1fr;
    }

    .social-comment-fields {
        grid-template-columns: 1fr;
    }

    .social-upload-preview-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-upload-preview-image,
    .social-media-preview {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .social-clan-empty-state,
    .social-directory-card,
    .social-clan-picker-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-clan-empty-state {
        grid-template-columns: 1fr;
    }

    .social-add-form--facebook .my-heroes-search,
    .social-add-form--facebook button,
    .social-inline-fields .my-heroes-search,
    .social-inline-fields .social-primary-btn,
    .social-page-actions .activity-open-btn,
    .social-chat-form .social-primary-btn,
    .social-clan-message-form .social-primary-btn,
    .social-chat-window-form .social-primary-btn {
        width: 100%;
    }

    .social-messenger-shell {
        right: 12px;
        left: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .social-messenger-drawer,
    .social-chat-window {
        width: 100%;
    }

    .social-chat-windows {
        flex-direction: column;
    }

    .social-chat-window-form {
        grid-template-columns: 1fr;
    }
}
