/* ============================================
   dota.eblan.fun — Premium Dota 2 Analytics
   Полный редизайн: Киберспорт + Glassmorphism
   ============================================ */

/* === CSS Variables === */
:root {
    /* Основные цвета Dota 2 */
    --bg-void: #060a13;
    --bg-primary: #0a0e1a;
    --bg-secondary: rgba(16, 22, 36, 0.85);
    --bg-tertiary: rgba(25, 34, 56, 0.7);
    --bg-card: rgba(14, 19, 32, 0.92);
    --bg-glass: rgba(16, 22, 38, 0.65);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(207, 168, 86, 0.4);
    --border-glow: rgba(207, 168, 86, 0.25);

    /* Текст */
    --text-primary: #eef2f7;
    --text-secondary: #8a95a9;
    --text-muted: #505d72;

    /* Dota 2 фирменные акценты */
    --gold: #cfa856;
    --gold-bright: #f1d592;
    --gold-dark: #a67c2e;
    --radiant: #92e54e;
    --radiant-glow: rgba(146, 229, 78, 0.2);
    --dire: #e44444;
    --dire-glow: rgba(228, 68, 68, 0.2);
    --mana: #73b8f4;
    --mana-glow: rgba(115, 184, 244, 0.15);
    --arcana: #bc6eff;
    --arcana-glow: rgba(188, 110, 255, 0.15);
    --xp: #f5a623;

    /* Утилитарные */
    --accent-blue: #73b8f4;
    --accent-green: #92e54e;
    --accent-red: #e44444;
    --accent-orange: #f5a623;
    --accent-purple: #bc6eff;

    /* Шрифты */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Inter', sans-serif;

    /* Радиусы */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    /* Тени */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65);
    --shadow-gold: 0 0 30px rgba(207, 168, 86, 0.12);
    --shadow-glow: 0 0 40px rgba(207, 168, 86, 0.08);

    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s ease;
}

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Фоновые градиенты в стиле Dota 2 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(207, 168, 86, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(228, 68, 68, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 50% 100%, rgba(146, 229, 78, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(115, 184, 244, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Тонкий grid-паттерн на фоне */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(207, 168, 86, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(207, 168, 86, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: all var(--transition);
}

a:hover {
    color: var(--gold-bright);
}

/* === Layout === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* =================================================
   HEADER — Sticky навбар с золотой линией
   ================================================= */
.header {
    background: rgba(8, 12, 22, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Золотая линия-акцент вверху хедера */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold-dark) 20%,
        var(--gold) 50%,
        var(--gold-dark) 80%,
        transparent 100%
    );
    opacity: 0.7;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

/* Логотип */
.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.header__logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header__logo-icon img,
.header__logo-icon svg {
    width: 100%;
    height: 100%;
}

/* Если используется emoji вместо SVG */
.header__logo-icon:not(:has(svg)):not(:has(img)) {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(207, 168, 86, 0.5));
}

.header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header__logo-brand {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__logo-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Навигация */
.header__nav {
    display: flex;
    gap: 2px;
    background: rgba(14, 19, 32, 0.6);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.header__nav a {
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.header__nav a:hover {
    color: var(--text-primary);
    background: rgba(207, 168, 86, 0.06);
}

.header__nav a.active {
    color: var(--gold-bright);
    background: rgba(207, 168, 86, 0.1);
    border-color: rgba(207, 168, 86, 0.25);
    text-shadow: 0 0 12px rgba(207, 168, 86, 0.3);
}

/* =================================================
   HERO SECTION — Главный экран лендинга
   ================================================= */
.hero {
    text-align: center;
    padding: 80px 0 50px;
    position: relative;
}

/* Декоративный glow за заголовком */
.hero::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(207, 168, 86, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(207, 168, 86, 0.08);
    border: 1px solid rgba(207, 168, 86, 0.2);
    border-radius: 24px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--gold);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero__title {
    font-size: 60px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 16px;
    line-height: 1.05;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        var(--gold-bright) 35%,
        var(--gold) 60%,
        var(--gold-dark) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 40px rgba(207, 168, 86, 0.15));
}

.hero__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    font-weight: 400;
    line-height: 1.7;
}

/* Статистические бейджи под subtitle */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 24px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero__stat-value {
    font-size: 26px;
    font-weight: 900;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: -1px;
}

.hero__stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* =================================================
   TOOL CARDS — Сетка инструментов
   ================================================= */
.tools-grid,
.dota-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 20px;
    padding-bottom: 80px;
}

.tool-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

/* Тонкая верхняя линия-свечение */
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(207, 168, 86, 0.15), transparent);
    transition: all var(--transition);
}

/* Фоновый glow при наведении */
.tool-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(207, 168, 86, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tool-card:hover {
    border-color: rgba(207, 168, 86, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.tool-card:hover::before {
    left: 10%;
    right: 10%;
    background: linear-gradient(90deg, transparent, rgba(207, 168, 86, 0.35), transparent);
}

.tool-card:hover::after {
    opacity: 1;
}

/* Цветные акценты при наведении */
.dota-card { border-left: 3px solid transparent; }
.dota-card.match:hover { border-left-color: var(--mana); }
.dota-card.player:hover { border-left-color: var(--gold); }
.dota-card.smurf:hover { border-left-color: var(--dire); }
.dota-card.pro:hover { border-left-color: var(--arcana); }
.dota-card.live:hover { border-left-color: var(--radiant); }

.tool-card__icon {
    font-size: 40px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform var(--transition);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(207, 168, 86, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(207, 168, 86, 0.08);
}

.tool-card:hover .tool-card__icon {
    transform: scale(1.05);
    background: rgba(207, 168, 86, 0.08);
    border-color: rgba(207, 168, 86, 0.15);
}

.tool-card__title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.tool-card__description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.tool-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(207, 168, 86, 0.08);
    color: var(--gold);
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =================================================
   TOOL PAGE — Общий макет страниц инструментов
   ================================================= */
.tool-page {
    padding: 30px 0 60px;
}

.dota-title-wrap {
    margin-bottom: 28px;
}

.tool-page__title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, var(--gold-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.tool-page__description {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 700px;
}

/* =================================================
   CARDS / PANELS — Карточки контента
   ================================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.card__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

/* =================================================
   BUTTONS
   ================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    user-select: none;
}

.btn:hover {
    background: rgba(40, 50, 75, 0.85);
    border-color: rgba(207, 168, 86, 0.25);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-color: rgba(207, 168, 86, 0.5);
    color: #0a0e1a;
    font-weight: 700;
    text-shadow: none;
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    border-color: rgba(207, 168, 86, 0.9);
    box-shadow: 0 0 24px rgba(207, 168, 86, 0.3);
    color: #0a0e1a;
}

.btn--success {
    background: linear-gradient(135deg, #2d7a1e, #3ea52d);
    border-color: rgba(146, 229, 78, 0.4);
    color: #ffffff;
}

.btn--success:hover {
    background: linear-gradient(135deg, #3ea52d, var(--radiant));
    border-color: rgba(146, 229, 78, 0.8);
    box-shadow: 0 0 20px rgba(146, 229, 78, 0.25);
}

.btn--danger {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    border-color: rgba(228, 68, 68, 0.4);
    color: #ffffff;
}

.btn--danger:hover {
    background: linear-gradient(135deg, #dc2626, var(--dire));
    border-color: rgba(228, 68, 68, 0.8);
    box-shadow: 0 0 20px rgba(228, 68, 68, 0.25);
}

.btn--lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn--sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* =================================================
   INPUTS
   ================================================= */
.input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(8, 12, 22, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all var(--transition);
    outline: none;
}

.input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(207, 168, 86, 0.1);
}

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

.input--lg {
    padding: 14px 18px;
    font-size: 17px;
    border-radius: var(--radius-md);
}

textarea.input {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-mono);
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-group .input {
    flex: 1;
}

.dota-search-card {
    border-color: rgba(207, 168, 86, 0.12);
    background: rgba(14, 19, 32, 0.95);
}

/* =================================================
   SELECT
   ================================================= */
.select {
    padding: 10px 14px;
    background: rgba(8, 12, 22, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}

.select:focus {
    border-color: var(--gold);
}

/* =================================================
   TABS — Навигация по секциям
   ================================================= */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab {
    padding: 10px 18px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-sans);
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Стиль вкладок как кнопки */
.section-tab {
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    background: rgba(14, 19, 32, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    font-family: var(--font-sans);
}

.section-tab:hover {
    color: var(--text-primary);
    background: rgba(207, 168, 86, 0.06);
}

.section-tab.active {
    color: var(--gold-bright);
    background: rgba(207, 168, 86, 0.1);
    border-color: rgba(207, 168, 86, 0.3);
}

/* =================================================
   TABLES
   ================================================= */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th {
    background: rgba(14, 19, 32, 0.9);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid rgba(207, 168, 86, 0.1);
}

table td {
    padding: 10px 14px;
    border-top: 1px solid var(--border-color);
    white-space: nowrap;
}

table tr:hover td {
    background: rgba(207, 168, 86, 0.03);
}

/* =================================================
   BADGES / LABELS
   ================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge--green { background: rgba(146, 229, 78, 0.12); color: var(--radiant); }
.badge--red { background: rgba(228, 68, 68, 0.12); color: var(--dire); }
.badge--blue { background: rgba(115, 184, 244, 0.12); color: var(--mana); }
.badge--orange { background: rgba(245, 166, 35, 0.12); color: var(--xp); }

/* =================================================
   INFO GRID
   ================================================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.info-item {
    background: rgba(8, 12, 22, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: border-color var(--transition);
}

.info-item:hover {
    border-color: rgba(207, 168, 86, 0.15);
}

.info-item__label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-item__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.info-item__value--sm {
    font-size: 14px;
}

/* =================================================
   LOADING / SPINNER
   ================================================= */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner--lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* =================================================
   TOAST / ALERTS
   ================================================= */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(14, 19, 32, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    backdrop-filter: blur(16px);
}

.toast--success { border-color: var(--radiant); }
.toast--error { border-color: var(--dire); }
.toast--info { border-color: var(--mana); }

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

/* =================================================
   AI ANALYSIS BLOCK
   ================================================= */
.ai-analysis {
    background: rgba(8, 12, 22, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    line-height: 1.8;
    font-size: 15px;
    white-space: pre-wrap;
}

.ai-analysis h1, .ai-analysis h2, .ai-analysis h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.ai-analysis strong {
    color: var(--gold);
}

/* =================================================
   VALVE RANK MEDALS & STARS
   ================================================= */
.valve-rank-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.valve-rank-layers {
    position: relative;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valve-rank-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

.valve-rank-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.valve-leaderboard-rank {
    position: absolute;
    bottom: -2px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0e1a;
    font-size: 11px;
    font-weight: 900;
    font-family: var(--font-mono);
    padding: 1px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.valve-rank-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 12px rgba(207, 168, 86, 0.3);
    letter-spacing: -0.2px;
}

/* =================================================
   PLAYER PROFILE HEADER
   ================================================= */
.player-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.player-main-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(207, 168, 86, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.player-nickname {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.player-account-id {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =================================================
   SCORE CIRCLE (Smurf Detector)
   ================================================= */
.score-meter-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 0;
}

.score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border-color);
    background: rgba(8, 12, 22, 0.8);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.score-circle.clean {
    border-color: var(--radiant);
    box-shadow: 0 0 30px rgba(146, 229, 78, 0.15);
}

.score-circle.suspicious {
    border-color: var(--xp);
    box-shadow: 0 0 30px rgba(245, 166, 35, 0.15);
}

.score-circle.smurf {
    border-color: var(--dire);
    box-shadow: 0 0 30px rgba(228, 68, 68, 0.2);
}

.score-val {
    font-size: 34px;
    font-weight: 900;
    font-family: var(--font-mono);
}

.score-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verdict-headline {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.verdict-headline.clean { color: var(--radiant); }
.verdict-headline.suspicious { color: var(--xp); }
.verdict-headline.smurf { color: var(--dire); }

/* =================================================
   FLAGS LIST (Smurf Detector)
   ================================================= */
.flags-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 14px;
    background: rgba(8, 12, 22, 0.5);
}

.flag-item.high {
    border-color: rgba(228, 68, 68, 0.25);
    background: rgba(228, 68, 68, 0.04);
}

.flag-item.medium, .flag-item.low {
    border-color: rgba(245, 166, 35, 0.2);
    background: rgba(245, 166, 35, 0.03);
}

.flag-item.warning {
    border-color: rgba(188, 110, 255, 0.2);
    background: rgba(188, 110, 255, 0.03);
}

/* =================================================
   WARD MAP & DEATH MAP
   ================================================= */
.ward-map-container {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.ward-map-container canvas {
    border-radius: var(--radius-md);
    border: 1px solid rgba(207, 168, 86, 0.1);
    max-width: 100%;
    height: auto;
}

.ward-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0 4px;
    font-size: 13px;
}

/* =================================================
   MATCH RESULT BADGES
   ================================================= */
.match-result-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.match-result-badge.win {
    background: rgba(146, 229, 78, 0.12);
    color: var(--radiant);
}

.match-result-badge.loss {
    background: rgba(228, 68, 68, 0.12);
    color: var(--dire);
}

/* =================================================
   ERROR BOX
   ================================================= */
.error-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
}

.error-box__icon {
    font-size: 48px;
}

.error-box__text {
    font-size: 16px;
    color: var(--text-secondary);
}

/* =================================================
   FOOTER
   ================================================= */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(207, 168, 86, 0.15), transparent);
}

/* =================================================
   RESPONSIVE
   ================================================= */
@media (max-width: 768px) {
    .hero__title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero__subtitle {
        font-size: 15px;
    }

    .hero__stats {
        gap: 20px;
    }

    .hero__stat-value {
        font-size: 20px;
    }

    .tools-grid,
    .dota-tools-grid {
        grid-template-columns: 1fr;
    }

    .header__nav {
        display: none;
    }

    .header .container {
        height: 52px;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .input-group {
        flex-direction: column;
    }

    .tool-page__title {
        font-size: 24px;
    }

    .btn-group {
        flex-direction: column;
    }

    .table-wrapper {
        font-size: 12px;
    }

    .player-profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-circle {
        width: 110px;
        height: 110px;
    }

    .score-val {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 14px;
    }

    .hero {
        padding: 50px 0 30px;
    }

    .hero__stats {
        flex-direction: column;
        gap: 12px;
    }
}
