:root {
    --bg-color: #0f1118;
    --panel-bg: rgba(18, 20, 28, 0.92);
    --accent: #7fc8ff;
    --accent-soft: rgba(127, 200, 255, 0.18);
    --text-primary: #f5f6fa;
    --text-muted: #95a5b7;
    --border-color: rgba(255, 255, 255, 0.08);
    --brand-font: 'Heebo', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-color) url('../background_product_pro.jpg') top center / cover fixed;
    color: var(--text-primary);
    font-family: var(--brand-font);
}

.page {
    backdrop-filter: blur(20px);
    background: linear-gradient(145deg, rgba(10, 10, 15, 0.7), rgba(20, 21, 30, 0.8));
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 2.5rem 4rem;
}
.header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    flex: 4;
}

.animation {
    flex: 3;
}

.header h1 {
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0;
}

.header h1 span {
    color: var(--accent);
}

.brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.brand-gif {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    object-fit: cover;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.header-actions {
    flex: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.header-user {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.header-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.header-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.header-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.steam-login,
.steam-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    background: var(--accent-soft);
    color: var(--text-primary);
    border-radius: 999px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-user .steam-logout {
    padding: 0.4rem 0.9rem;
}

.steam-login:hover,
.steam-logout:hover {
    background: rgba(127, 200, 255, 0.35);
    transform: translateY(-1px);
}

.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-bar input[type="text"] {
    flex: 1;
    min-width: 240px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(27, 31, 43, 0.8);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-bar button {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: #04142a;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-bar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(127, 200, 255, 0.32);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--panel-bg);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
}

.stat-card-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.stat-card-badge {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(127, 200, 255, 0.18);
    border-radius: 999px;
    border: 1px solid rgba(127, 200, 255, 0.35);
    padding: 0.2rem 0.7rem;
}

.stat-card--weekly .stat-card-trend {
    margin-top: 0.4rem;
}

.stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.stat-card-trend--up {
    color: #6ee7b7;
}

.stat-card-trend--down {
    color: #ff8a9c;
}

.stat-card-trend--flat {
    color: var(--text-muted);
}

.stat-card-empty {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stat-card--gamemodes {
    display: flex;
    flex-direction: column;
}

.stat-card--drops .stat-card-metric-pair {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.8rem;
}

.stat-card-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-card-metric-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-card-metric-value {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.1;
}

.gamemode-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gamemode-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-weight: 500;
}

.gamemode-rank {
    color: var(--text-muted);
    font-weight: 600;
}

.gamemode-name {
    flex: 1;
}

.gamemode-share {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stat-card-player {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.stat-compare {
    position: relative;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    cursor: help;
}

.stat-compare--better {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(127, 200, 255, 0.6);
}

.stat-compare--worse {
    color: #ff8a9c;
    text-shadow: 0 0 10px rgba(255, 138, 156, 0.55);
}

.stat-compare--neutral {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.18);
}

.stat-kd {
    transition: color 0.25s ease, text-shadow 0.25s ease;
    cursor: help;
}

.stat-kd--better {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(127, 200, 255, 0.6);
}

.stat-kd--worse {
    color: #ff8a9c;
    text-shadow: 0 0 10px rgba(255, 138, 156, 0.55);
}

.stat-kd--neutral {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.18);
}

.stat-card-player img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.stat-card-value {
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
    word-break: break-word;
}

.stat-card-player-name {
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: normal;
    overflow-wrap: anywhere;
}

.stat-card h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.stat-card p {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Whales (players) card stacked layout */
.stat-card--whales .whales-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.whales-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.whales-label {
    min-width: 72px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: none;
}

.whales-value {
    font-weight: 600;
}

.whales-delta {
    margin-left: auto;
    font-size: 0.9rem;
}


.table-wrapper {
    background: var(--panel-bg);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

#tab-online .table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}

#stats-table-cumulative {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    table-layout: auto;
}

#stats-table-cumulative th,
#stats-table-cumulative td {
    padding: 0.65rem 0.7rem;
    font-size: 0.85rem;
}

#stats-table-cumulative th {
    white-space: normal;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-align: right;
}

#stats-table-cumulative td {
    white-space: nowrap;
    text-align: right;
}

#stats-table-cumulative th:first-child,
#stats-table-cumulative td:first-child {
    width: 100px;
    min-width: 200px;
    white-space: normal;
    text-align: left;
}

#stats-table-cumulative .stat-accuracy-cell {
    text-align: right;
    white-space: nowrap;
}

#stats-table-cumulative .stat-accuracy-value {
    font-weight: 600;
}

#stats-table-cumulative .stat-accuracy-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-left: 0.35rem;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
}

.table-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin: 0.35rem 0;
}

.table-pagination--bottom {
    margin-top: 0.85rem;
}

.table-pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.table-pagination-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.table-pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(27, 31, 43, 0.85);
    color: var(--text-primary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.table-pagination-button:hover {
    background: rgba(127, 200, 255, 0.2);
    transform: translateY(-1px);
}

.table-pagination-button.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

/* Toolbar combining search + pagination */
.table-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.toolbar-search {
    flex: 0 0 70%;
}

.toolbar-spacer {
    flex: 0 0 10%;
}

.toolbar-pagination {
    flex: 0 0 20%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Ensure the search form inside toolbar doesn't add extra bottom space */
.table-toolbar .search-bar {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .table-toolbar {
        flex-wrap: wrap;
    }
    .toolbar-search {
        flex: 1 1 100%;
        width: 100%;
    }
    .toolbar-spacer {
        display: none;
    }
    .toolbar-pagination {
        flex: 1 1 100%;
        justify-content: flex-start;
    }
}

#stats-table-cumulative .player-cell {
    min-width: 0;
    gap: 0.8rem;
}

#stats-table-cumulative .player-cell img {
    width: 48px;
    height: 48px;
}



.logs-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.logs-toggle-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.logs-refresh-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.logs-refresh-gif {
    width: 72px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.logs-refresh {
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(27, 31, 43, 0.8);
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.logs-refresh:hover {
    background: var(--accent);
    color: #04142a;
    transform: translateY(-1px);
}

.logs-container {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.log-entry {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(27, 31, 43, 0.82);
    overflow: hidden;
}

.log-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.log-summary::-webkit-details-marker {
    display: none;
}

.log-summary:hover {
    background: rgba(127, 200, 255, 0.12);
}

.gamemode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(127, 200, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.log-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.log-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.log-body {
    padding: 0.6rem 1rem 1rem;
    background: rgba(16, 18, 28, 0.65);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.log-weapon-breakdown {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.log-weapon-breakdown-title {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.log-weapon-card {
    background: rgba(14, 18, 32, 0.82);
    border: 1px solid rgba(127, 200, 255, 0.18);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.log-weapon-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
}

.log-weapon-card summary::-webkit-details-marker {
    display: none;
}

.log-weapon-card summary::after {
    content: '▾';
    font-size: 0.85rem;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.log-weapon-card[open] summary::after {
    transform: rotate(180deg);
}

.log-weapon-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.log-weapon-card-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.log-weapon-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0 1rem 0.75rem;
}

.log-weapon-item {
    font-size: 0.92rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.log-weapon-item::before {
    content: '•';
    color: var(--accent);
    font-size: 0.8rem;
}

.log-weapon-empty {
    padding: 0 1rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
}

.log-weapon-airshots {
    font-size: 0.86rem;
    color: var(--accent);
    margin-top: 0.25rem;
    padding: 0 1rem 0.85rem;
}

@media (max-width: 768px) {
    .log-weapon-card {
        padding: 0;
    }
}

.log-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.log-table th,
.log-table td {
    padding: 0.4rem 0.5rem;
}

/* Compact avatar for logs */
.log-table .player-cell img {
    width: 24px;
    height: 24px;
}

.log-player-info {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.log-player-info a {
    color: var(--text-primary);
    text-decoration: none;
}

.log-player-info a:hover {
    text-decoration: underline;
}

.tabs {
    margin-top: 2rem;
}

.tab-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(27, 31, 43, 0.8);
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.tab-button-label--mobile {
    display: none;
}

.tab-button-label--desktop {
    display: inline;
}

.tab-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(127, 200, 255, 0.25);
}

.tab-button.active {
    background: var(--accent);
    color: #04142a;
    box-shadow: 0 10px 24px rgba(127, 200, 255, 0.35);
}

.tab-button-count {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(127, 200, 255, 0.14);
    color: var(--text-primary);
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tab-button.tab-button-glow {
    box-shadow: 0 0 18px rgba(127, 200, 255, 0.45), 0 0 6px rgba(127, 200, 255, 0.35);
}

.tab-button-label {
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.empty-state {
    padding: 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(255, 255, 255, 0.03);
}

th {
    text-align: left;
    padding: 1rem 1.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    cursor: pointer;
}

th.sorted-asc::after,
th.sorted-desc::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    border: 6px solid transparent;
}

th.sorted-asc::after {
    border-bottom-color: var(--accent);
}

th.sorted-desc::after {
    border-top-color: var(--accent);
}

tbody tr {
    border-top: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(127, 200, 255, 0.12);
}

tbody tr.player-team-red {
    background: rgba(208, 76, 76, 0.18);
}

tbody tr.player-team-red:hover {
    background: rgba(208, 76, 76, 0.26);
}

tbody tr.player-team-blue {
    background: rgba(70, 110, 215, 0.18);
}

tbody tr.player-team-blue:hover {
    background: rgba(70, 110, 215, 0.26);
}

tbody tr.player-team-neutral {
    background: rgba(180, 180, 190, 0.14);
}

tbody tr.player-team-neutral:hover {
    background: rgba(180, 180, 190, 0.2);
}

tbody tr.player-faded {
    opacity: 0.8;
}

tbody tr.player-faded:hover {
    opacity: 0.9;
}

td {
    padding: 1rem 1.2rem;
    vertical-align: middle;
}

#stats-table-online th,
#stats-table-online td {
    padding: 0.75rem 0.85rem;
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

#stats-table-online .player-cell {
    gap: 0.7rem;
}

#stats-table-online .player-avatar {
    width: 48px;
    height: 48px;
}

.log-table .player-avatar {
    width: 36px;
    height: 36px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.player-cell a {
    color: inherit;
    text-decoration: none;
}

.admin-name {
    color: #f7d774;
    text-shadow: 0 0 6px rgba(247, 215, 116, 0.6);
}

.online-name {
    color: var(--text-primary);
    text-shadow: none;
}

.alive-name {
    color: #90f7b2;
}

.dead-name {
    color: #ff9a9a;
}

.spectator-name {
    color: #d0d3db;
}

.admin-name.online-name {
    color: #f7d774;
    text-shadow: 0 0 10px rgba(247, 215, 116, 0.5), 0 0 18px rgba(247, 215, 116, 0.35);
}


.player-highlight {
    background: rgba(127, 200, 255, 0.14);
}

.player-highlight:hover {
    background: rgba(127, 200, 255, 0.18);
}

.class-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.class-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.class-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-panel {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.detail-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.detail-profile img {
    width: 128px;
    height: 128px;
    border-radius: 16px;
    border: 2px solid var(--accent);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 720px) {
    .page {
        padding: 1.75rem 1rem 2.5rem;
    }

    .header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.25rem;
        text-align: center;
    }

    .brand,
    .header-actions {
        display: none;
    }

    .animation {
        flex: none;
    }

    .animation img {
        width: 220px;
    }

    .tab-controls {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .tab-button {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        text-align: center;
    }

    .tab-button-label--desktop {
        display: none;
    }

    .tab-button-label--mobile {
        display: inline;
    }

    .tab-button-count {
        display: none;
    }

    .table-toolbar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .toolbar-search {
        width: 100%;
    }

    .search-bar {
        flex-wrap: nowrap;
        gap: 0.5rem;
        width: 100%;
    }

    .search-bar input[type="text"] {
        flex: 1 1 auto;
        min-width: 0;
    }

    .search-bar button {
        flex: 0 0 auto;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .table-wrapper {
        margin: 0 -1rem;
        border-radius: 14px;
    }

    .stats-table,
    #stats-table-cumulative,
    #stats-table-online {
        min-width: 640px;
    }
}

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

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.detail-grid h3 {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.detail-grid p {
    font-size: clamp(1rem, 1.9vw, 1.4rem);
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
    word-break: break-word;
}

.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tagline {
    margin-top: 0.4rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .page {
        padding: 2rem 1.5rem 3rem;
    }

    .detail-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .detail-profile {
        flex-direction: row;
        justify-content: center;
    }
}

.online-class-icon {
    margin-left: 0.2rem;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.class-icon-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.3rem;
}

.class-icon-strip .online-class-icon:first-child {
    margin-left: 0;
}
