:root {
    --bg: #000000;
    --bg-elevated: #0a0a0a;
    --bg-soft: #111111;
    --panel: rgba(10, 10, 10, 0.88);
    --panel-soft: rgba(17, 17, 17, 0.95);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f1f5f9;
    --text-soft: #c0c9d4;
    --text-faint: #94a3b8;
    --text-dim: rgba(241, 245, 249, 0.64);
    --silver: #c0c9d4;
    --silver-strong: #e2e8f0;
    --silver-soft: rgba(192, 201, 212, 0.16);
    --success: #86efac;
    --success-soft: rgba(34, 197, 94, 0.14);
    --warning: #fbbf24;
    --warning-soft: rgba(245, 158, 11, 0.14);
    --danger: #f87171;
    --danger-soft: rgba(239, 68, 68, 0.14);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --transition: 0.18s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #000000 0%, #050505 38%, #000000 100%);
    color: var(--text);
    font-family: "Plus Jakarta Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(148, 163, 184, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 30% at 80% 50%, rgba(59, 130, 246, 0.06), transparent 60%);
}

.site-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 80%);
}

#app {
    position: relative;
    z-index: 1;
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 24px;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dashboard screen overrides: no padding, full viewport coverage */
#screen-dashboard.screen.active {
    padding: 0;
    align-items: stretch;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    overflow-y: hidden;
}

.page-shell {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.page-stack {
    display: grid;
    gap: 20px;
}

.panel {
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.section-label {
    display: inline-block;
    margin-bottom: 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
}

.muted-text {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.65;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.brand-mark svg {
    color: var(--silver-strong);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--text);
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
}

h2 {
    font-size: clamp(24px, 3vw, 32px);
}

h3 {
    font-size: 22px;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.nav-left,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-user {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
    padding-inline: 2px;
}

.chip,
.badge,
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-chip.success {
    color: #d1fae5;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.22);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.btn-primary,
.btn-secondary,
.btn-nav,
.btn-icon,
.inventory-filter-chip {
    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    background: #f8fafc;
    color: #0a0a0f;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.12);
}

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

.btn-secondary,
.btn-nav,
.btn-icon {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    border: 1px solid var(--line);
}

.btn-secondary:hover,
.btn-nav:hover,
.btn-icon:hover,
.inventory-filter-chip:hover {
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-nav,
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-icon {
    width: 40px;
    padding: 0;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(10, 10, 15, 0.2);
    border-top-color: rgba(10, 10, 15, 0.8);
    animation: spin 0.7s linear infinite;
}

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

.auth-layout {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(320px, 440px);
    gap: 24px;
    align-items: center;
}

.auth-side,
.auth-card {
    padding: 28px;
}

.auth-side {
    display: grid;
    gap: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(0, 0, 0, 0.72);
}

.auth-side-copy {
    display: grid;
    gap: 12px;
}

.auth-side-copy h1 {
    background: linear-gradient(135deg, #ffffff 0%, #c0c9d4 50%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-list {
    display: grid;
    gap: 12px;
}

.feature-item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
}

.feature-item strong {
    font-size: 14px;
}

.feature-item span {
    font-size: 13px;
    color: var(--text-dim);
}

.auth-header {
    margin-bottom: 20px;
}

.auth-form {
    display: grid;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.auth-tabs.compact {
    margin-top: 12px;
}

.auth-tab {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--text-faint);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-faint);
}

.input-group input,
.text-area-input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    outline: none;
}

.input-group input::placeholder,
.text-area-input::placeholder {
    color: rgba(241, 245, 249, 0.38);
}

.input-group input:focus,
.text-area-input:focus,
textarea:focus {
    border-color: rgba(192, 201, 212, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(192, 201, 212, 0.08);
}

.text-area-input {
    resize: vertical;
    min-height: 88px;
}

.error-msg,
.success-msg {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
}

.error-msg {
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.18);
    background: var(--danger-soft);
}

.success-msg {
    color: var(--success);
    border: 1px solid rgba(134, 239, 172, 0.18);
    background: var(--success-soft);
}

.overview-grid,
.inventory-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.overview-card {
    padding: 18px 20px;
}

.overview-card strong {
    display: block;
    font-size: 20px;
    color: var(--silver-strong);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card-block {
    padding: 22px;
}

.card-head {
    margin-bottom: 12px;
}

.key-section,
.riot-method {
    margin-top: 16px;
}

.connected-row,
.button-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button-row {
    margin-top: 14px;
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.tool-item.secondary {
    margin-top: 12px;
}

.tool-item strong {
    display: block;
    margin-bottom: 4px;
}

.tool-item p {
    margin: 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
}

.tool-item .btn-primary,
.button-row .btn-primary,
.button-row .btn-secondary {
    width: auto;
}

.button-row .btn-primary,
.button-row .btn-secondary {
    flex: 1;
}

.tracker-stack,
.inventory-stack,
.inventory-layout {
    display: grid;
    gap: 18px;
}

.waiting-panel,
.empty-panel {
    padding: 28px;
    text-align: center;
}

.waiting-icon-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waiting-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--silver-strong);
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid rgba(192, 201, 212, 0.18);
    animation: pulse-ring 2.2s ease-out infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.7s;
}

.pulse-ring.delay-2 {
    animation-delay: 1.4s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.72);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.14);
        opacity: 0;
    }
}

.match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
}

.match-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.match-header-right,
.loading-pills,
.meta-row,
.match-subline,
.inventory-weapon-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.map-thumbnail {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.match-mode-name {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
}

.state-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.state-badge.ingame {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.14);
}

.state-badge.pregame {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.14);
}

.loading-pill,
.name-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.loading-pill.ready {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(74, 222, 128, 0.2);
}

.loading-pill.partial {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(251, 191, 36, 0.2);
}

.loading-pill.error {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(248, 113, 113, 0.2);
}

.name-pill.self {
    color: var(--silver-strong);
    background: rgba(192, 201, 212, 0.14);
}

.name-pill.hidden {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.14);
}

.teams-container {
    display: grid;
    gap: 16px;
}

.team-section {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.team-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.team-label.ally {
    color: #93c5fd;
}

.team-label.enemy {
    color: #fca5a5;
}

.team-label.neutral {
    color: #fde68a;
}

.team-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.players-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 120px 78px 86px 86px 44px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.player-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--card-accent, var(--line-strong));
}

.player-card.self {
    background: rgba(192, 201, 212, 0.08);
    border-color: rgba(192, 201, 212, 0.18);
}

.player-agent-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.player-info {
    min-width: 0;
}

.player-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 4px;
}

.player-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 700;
}

.player-agent-name {
    color: var(--text-faint);
    font-size: 12px;
}

.rank-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-badge,
.rank-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.rank-badge {
    width: 42px;
    height: 42px;
}

.rank-mini {
    width: 34px;
    height: 34px;
    margin: 0 auto 6px;
}

.rank-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.rank-icon-mini {
    width: 20px;
    height: 20px;
}

.rank-icon-fallback {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.rank-title,
.stat-value {
    font-size: 14px;
    font-weight: 700;
}

.rank-rr,
.stat-label {
    margin-top: 2px;
    color: var(--text-faint);
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.player-stat {
    text-align: center;
}

.player-stat-rank {
    min-width: 70px;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

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

.inventory-toolbar {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 20px;
}

.inventory-toolbar h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.inventory-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.inventory-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.inventory-filter-chip.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--silver-strong);
    border-color: var(--line-strong);
}

.inventory-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 11px;
}

.inventory-groups {
    display: grid;
    gap: 16px;
}

.inventory-group {
    position: relative;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.inventory-group::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--group-accent, #c0c9d4) 10%, transparent), transparent 24%);
    pointer-events: none;
}

.inventory-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.inventory-weapon {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.inventory-weapon-icon {
    width: 56px;
    height: 56px;
    padding: 12px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.inventory-weapon-name {
    margin: 0 0 6px;
    font-size: 20px;
}

.inventory-skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.inventory-skins-grid-flat {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.skin-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--skin-accent, #c0c9d4) 30%, var(--line));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--skin-accent, #c0c9d4) 10%, rgba(255, 255, 255, 0.03)), rgba(255, 255, 255, 0.015)),
        rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.skin-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, color-mix(in srgb, var(--skin-accent, #c0c9d4) 20%, transparent), transparent 40%);
    pointer-events: none;
}

.skin-card:hover {
    transform: translateY(-2px);
}

.skin-card-weapon {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 13px;
    line-height: 1.4;
}

.skin-card.equipped {
    box-shadow: 0 12px 28px color-mix(in srgb, var(--skin-accent, #c0c9d4) 18%, transparent);
}

.skin-card-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 10px 12px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--skin-accent, #c0c9d4) 8%, rgba(255, 255, 255, 0.02));
    border: 1px solid color-mix(in srgb, var(--skin-accent, #c0c9d4) 20%, var(--line));
}

.skin-card-art img {
    width: 100%;
    max-width: 100%;
    max-height: 96px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.skin-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.skin-rarity-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.skin-equip-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid color-mix(in srgb, var(--skin-accent, #c0c9d4) 25%, var(--line));
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.skin-card h4 {
    font-size: 15px;
    line-height: 1.4;
}

.skin-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.skin-tier-badge {
    background: rgba(255, 255, 255, 0.04);
}

.skin-tier {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.skin-tier-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.btn-icon.spinning svg {
    animation: spin 0.8s linear infinite;
}

@media (max-width: 1100px) {
    .auth-layout,
    .dashboard-grid,
    .inventory-info-grid,
    .inventory-toolbar {
        grid-template-columns: 1fr;
    }

    .overview-grid,
    .inventory-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-card {
        grid-template-columns: 46px minmax(0, 1fr) 120px 78px 44px;
    }

    .player-stat.hide-mobile {
        display: none;
    }
}

@media (max-width: 760px) {
    .screen {
        padding: 16px;
    }

    .top-nav,
    .page-shell {
        width: 100%;
    }

    .auth-layout,
    .overview-grid,
    .inventory-summary-grid,
    .inventory-info-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .auth-side,
    .auth-card,
    .card-block,
    .waiting-panel,
    .empty-panel,
    .team-section,
    .inventory-group,
    .inventory-toolbar,
    .overview-card {
        padding: 18px;
    }

    .auth-side {
        display: none;
    }

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

    .player-card {
        grid-template-columns: 44px minmax(0, 1fr) 42px;
        gap: 12px;
    }

    .rank-display {
        grid-column: 2 / -1;
    }

    .player-stat {
        display: none;
    }

    .player-agent-img,
    .level-badge {
        width: 40px;
        height: 40px;
    }

    .inventory-group-head,
    .button-row,
    .connected-row,
    .tool-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

body[data-theme="light"] {
    --bg: #eff3f8;
    --bg-elevated: #ffffff;
    --bg-soft: #f6f8fb;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-soft: rgba(255, 255, 255, 0.96);
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.16);
    --text: #0f172a;
    --text-soft: #334155;
    --text-faint: #64748b;
    --text-dim: rgba(15, 23, 42, 0.7);
    --silver: #64748b;
    --silver-strong: #0f172a;
    --silver-soft: rgba(100, 116, 139, 0.12);
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .site-bg {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(148, 163, 184, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 30% at 80% 50%, rgba(59, 130, 246, 0.1), transparent 60%);
}

.subtle {
    opacity: 0.88;
}

.compact-brand span {
    font-size: 14px;
}

.btn-small {
    width: auto;
    min-height: 38px;
    padding: 0 12px;
}

.auth-copy {
    display: grid;
    gap: 12px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
}

.hero-copy {
    display: grid;
    gap: 12px;
}

.hero-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    width: auto;
    min-width: 180px;
}

.hero-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-stat,
.diagnostic-item,
.insight-item {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.hero-stat strong {
    display: block;
    font-size: 18px;
}

.overview-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.span-2 {
    grid-column: span 2;
}

.card-head.split,
.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.diagnostic-list,
.activity-list,
.history-list,
.tool-list,
.insight-list {
    display: grid;
    gap: 12px;
}

.diagnostic-item,
.insight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.diagnostic-item.success strong {
    color: var(--success);
}

.diagnostic-item.warning strong {
    color: var(--warning);
}

.diagnostic-item.danger strong {
    color: var(--danger);
}

.activity-item,
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.activity-item.win {
    border-color: rgba(74, 222, 128, 0.2);
}

.activity-item.loss {
    border-color: rgba(248, 113, 113, 0.2);
}

.activity-item strong,
.history-item strong {
    display: block;
    margin-bottom: 4px;
}

.activity-item span,
.history-item span,
.activity-item small,
.history-item small {
    color: var(--text-dim);
}

.activity-meta {
    text-align: right;
}

.tool-row {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.tool-row span {
    font-weight: 700;
}

.tool-row small,
.empty-inline {
    color: var(--text-dim);
    line-height: 1.6;
}

.tracker-controls-panel,
.inventory-toolbar {
    padding: 18px 20px;
}

.tracker-controls-grid,
.toolbar-filters,
.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.control-block {
    display: grid;
    gap: 8px;
}

.control-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
}

.text-input,
.select-input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.segmented-control {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.segmented-control.wide {
    justify-content: flex-end;
}

.segment {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-faint);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.segment.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tracker-composition-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.chip-row.secondary {
    justify-content: flex-end;
}

.player-card {
    grid-template-columns: 52px minmax(0, 1.6fr) 160px 74px 84px 92px 52px auto;
    box-shadow: 0 0 0 1px transparent, 0 18px 30px rgba(0, 0, 0, 0.12);
}

.player-card.compact {
    grid-template-columns: 44px minmax(0, 1fr) 132px 48px auto;
}

.player-card.compact .player-stat,
.player-card.compact .level-badge {
    display: none;
}

.player-main {
    min-width: 0;
}

.player-subline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-faint);
    font-size: 12px;
}

.player-note-preview {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.player-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--line);
}

.player-tag.self {
    color: #e0f2fe;
    background: rgba(59, 130, 246, 0.16);
}

.player-tag.bypassed {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.16);
}

.player-tag.hidden {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.16);
}

.player-tag.blacklist {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.24);
}

.player-card.blacklisted {
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.22), 0 18px 30px rgba(0, 0, 0, 0.12);
}

.player-rank-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-copy strong,
.stat-value {
    display: block;
    font-size: 14px;
}

.rank-copy span {
    color: var(--text-faint);
    font-size: 11px;
}

.rank-badge,
.rank-mini,
.level-badge {
    box-shadow: 0 0 30px color-mix(in srgb, var(--rank-glow, #94a3b8) 14%, transparent);
}

.note-btn,
.favorite-btn {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.favorite-btn {
    min-width: 40px;
    padding: 0 10px;
}

.favorite-btn.active {
    color: #facc15;
}

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

.connected-block {
    display: grid;
    gap: 12px;
}

.compare-box,
.toolbar-main {
    display: grid;
    gap: 12px;
}

.compare-summary {
    line-height: 1.7;
}

.equipped-panel .equipped-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.equipped-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--skin-accent, #c0c9d4) 25%, var(--line));
    background: rgba(255, 255, 255, 0.025);
}

.equipped-card img {
    width: 96px;
    height: 54px;
    object-fit: contain;
}

.tracker-complete-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
        rgba(8, 8, 8, 0.92);
}

.tracker-complete-copy {
    display: grid;
    gap: 6px;
}

.tracker-ready-btn {
    width: auto;
    min-width: 160px;
    flex-shrink: 0;
}

.players-history-list {
    display: grid;
    gap: 18px;
}

.players-match-card {
    display: grid;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.players-match-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.players-match-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.players-history-grid {
    display: grid;
    gap: 10px;
}

.players-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.players-history-row.blacklisted {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.08);
}

.players-history-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.players-history-copy strong,
.players-history-copy span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.players-history-copy span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
}

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

.players-blacklist-btn {
    min-height: 36px;
    padding-inline: 14px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-card {
    width: min(760px, 100%);
    padding: 24px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.skeleton-list {
    display: grid;
    gap: 10px;
}

.skeleton-line {
    display: block;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

/* Abyss-inspired redesign */
:root {
    --abyss-bg: #05080f;
    --abyss-surface: rgba(8, 12, 20, 0.86);
    --abyss-surface-strong: rgba(10, 16, 28, 0.94);
    --abyss-line: rgba(255, 255, 255, 0.08);
    --abyss-line-strong: rgba(255, 255, 255, 0.14);
    --abyss-primary: #ff4252;
    --abyss-primary-strong: #ff5d6a;
    --abyss-secondary: #00d4ff;
    --abyss-accent: #ffb300;
    --abyss-white: rgba(255, 255, 255, 0.92);
    --abyss-text-dim: rgba(255, 255, 255, 0.62);
}

body {
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 66, 82, 0.14), transparent 28%),
        radial-gradient(circle at 85% 0%, rgba(0, 212, 255, 0.12), transparent 30%),
        linear-gradient(180deg, #04070d 0%, #05080f 38%, #03060c 100%);
    color: var(--abyss-white);
    font-family: "Outfit", sans-serif;
}

.site-bg {
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 66, 82, 0.16), transparent 24%),
        radial-gradient(circle at 12% 80%, rgba(0, 212, 255, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.site-bg::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 78%);
}

.panel,
.team-section,
.inventory-group,
.hero-panel,
.overview-card,
.tool-row,
.modal-card,
.waiting-panel,
.empty-panel {
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    background-color: var(--abyss-surface);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(22px);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.top-nav {
    background: rgba(10, 15, 24, 0.82);
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.brand-mark,
h1,
h2,
h3,
h4,
.nav-user,
.player-name,
.rank-copy strong,
.stat-value {
    font-family: "Outfit", sans-serif;
}

.brand-mark {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-mark svg,
.compact-brand svg {
    color: var(--abyss-primary);
    filter: drop-shadow(0 0 8px rgba(255, 66, 82, 0.28));
}

.section-label,
.chip,
.badge,
.status-chip,
.control-label,
.segment,
.inventory-filter-chip,
.loading-pill,
.state-badge,
.note-btn,
.favorite-btn {
    font-family: "Outfit", sans-serif;
    letter-spacing: 0.14em;
}

.section-label {
    color: rgba(255,255,255,0.45);
}

.hero-copy h1,
.auth-copy h1,
.auth-header h2,
.match-header h2 {
    color: transparent;
    background-image: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.94) 30%, var(--abyss-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.auth-layout {
    width: min(1180px, 100%);
    grid-template-columns: minmax(320px, 460px) minmax(360px, 430px);
    gap: 28px;
}

.auth-side {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(255, 66, 82, 0.14), transparent 36%),
        radial-gradient(circle at bottom left, rgba(0, 212, 255, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
}

.auth-card {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
        rgba(7, 11, 19, 0.92);
}

.feature-item,
.hero-stat,
.diagnostic-item,
.activity-item,
.history-item,
.insight-item,
.tool-row,
.equipped-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.feature-item:hover,
.tool-row:hover,
.activity-item:hover,
.history-item:hover {
    border-color: rgba(255, 66, 82, 0.2);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.chip,
.badge,
.status-chip,
.loading-pill {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
}

.status-chip.success {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(0, 212, 255, 0.08));
    border-color: rgba(0, 212, 255, 0.28);
}

.btn-primary {
    background: linear-gradient(135deg, var(--abyss-primary) 0%, #d93644 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(255, 66, 82, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 16px 34px rgba(255, 66, 82, 0.34);
}

.btn-secondary,
.btn-nav,
.btn-icon {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.88);
}

.btn-secondary:hover,
.btn-nav:hover,
.btn-icon:hover,
.inventory-filter-chip:hover,
.segment:hover {
    border-color: rgba(255, 66, 82, 0.2);
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.auth-tabs,
.segmented-control {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

.auth-tab.active,
.segment.active,
.inventory-filter-chip.active {
    background: linear-gradient(135deg, rgba(255, 66, 82, 0.18), rgba(255, 66, 82, 0.08));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.input-group input,
.text-input,
.select-input {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: #fff;
}

.input-group input:focus,
.text-input:focus,
.select-input:focus,
textarea:focus {
    border-color: rgba(255, 66, 82, 0.3) !important;
    box-shadow: 0 0 0 4px rgba(255, 66, 82, 0.12);
}

.tracker-controls-panel,
.inventory-toolbar,
.hero-panel,
.match-header,
.team-section,
.inventory-group {
    overflow: hidden;
    position: relative;
}

.tracker-controls-panel::before,
.inventory-toolbar::before,
.hero-panel::before,
.match-header::before,
.team-section::before,
.inventory-group::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 66, 82, 0.08), transparent 35%, rgba(0, 212, 255, 0.06));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    padding: 1px;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.waiting-panel {
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(255, 66, 82, 0.08), transparent 40%),
        linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.waiting-icon-wrap {
    width: 160px;
    height: 160px;
}

.pulse-ring {
    border-color: rgba(255, 66, 82, 0.12);
}

.pulse-ring.delay-1 {
    border-color: rgba(255, 66, 82, 0.18);
}

.pulse-ring.delay-2 {
    border-color: rgba(255, 66, 82, 0.28);
}

.waiting-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 66, 82, 0.12);
    border: 1px solid rgba(255, 66, 82, 0.36);
    color: var(--abyss-primary);
    box-shadow: 0 0 18px rgba(255, 66, 82, 0.18);
}

.waiting-icon svg {
    width: 18px;
    height: 18px;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.team-section {
    padding: 22px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
        rgba(7, 11, 18, 0.92);
}

.team-label {
    margin-bottom: 18px;
    padding-bottom: 14px;
    color: rgba(255,255,255,0.84);
}

.team-label small {
    margin-left: auto;
    color: var(--abyss-text-dim);
}

.player-card.player-card-vertical {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        rgba(9, 14, 24, 0.94);
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

.player-card.player-card-vertical::before {
    display: none;
}

.player-card-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--card-accent) 22%, transparent), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.03), transparent 34%);
}

.player-card.self {
    border-color: rgba(0, 212, 255, 0.24);
    box-shadow:
        0 18px 46px rgba(0,0,0,0.5),
        0 0 0 1px rgba(0, 212, 255, 0.08);
}

.player-card-topbar,
.player-card-footer,
.player-rank-showcase,
.player-card-badges {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.player-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.player-side-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.player-card-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.agent-portrait-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
}

.player-agent-img {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    border: 0;
}

.player-subline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.64);
    font-size: 12px;
}

.player-subline.secondary {
    color: rgba(255,255,255,0.46);
}

.player-note-preview {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.74);
}

.player-rank-showcase {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
}

.rank-badge.deluxe {
    width: 54px;
    height: 54px;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

.peak-rank-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.72);
    font-size: 11px;
}

.player-stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.player-stat-card {
    padding: 12px 10px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.level-badge {
    width: auto;
    min-width: 68px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.note-btn {
    min-height: 38px;
    background: rgba(255,255,255,0.04);
}

.blacklist-btn.active {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.24);
    color: #fecaca;
}

.player-tag.self {
    background: rgba(0, 212, 255, 0.16);
}

.player-tag.bypassed {
    background: rgba(16, 185, 129, 0.16);
}

.player-tag.hidden {
    background: rgba(255, 179, 0, 0.16);
}

.match-header,
.tracker-controls-panel,
.inventory-toolbar,
.equipped-panel,
.inventory-insights-grid .panel,
.card-block {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
        rgba(8, 12, 20, 0.92);
}

.map-thumbnail {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    border-color: rgba(255,255,255,0.08);
}

.state-badge.ingame {
    background: linear-gradient(135deg, rgba(255, 66, 82, 0.18), rgba(255, 66, 82, 0.08));
    color: #fff;
}

.state-badge.pregame {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.18), rgba(255, 179, 0, 0.08));
    color: #fff4d6;
}

.inventory-group::before {
    background: linear-gradient(90deg, color-mix(in srgb, var(--group-accent, #ff4252) 20%, transparent), transparent 30%);
}

.skin-card {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--skin-accent, #ff4252) 14%, rgba(255,255,255,0.03)), rgba(255,255,255,0.02)),
        rgba(9, 14, 24, 0.92);
    border-color: color-mix(in srgb, var(--skin-accent, #ff4252) 34%, rgba(255,255,255,0.08));
}

.skin-card-art,
.inventory-weapon-icon {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

.equipped-card {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--skin-accent, #ff4252) 18%, rgba(255,255,255,0.03)), rgba(255,255,255,0.02)),
        rgba(9, 14, 24, 0.92);
}

.modal-backdrop {
    background: rgba(1, 4, 10, 0.74);
}

.modal-card {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
        rgba(8, 12, 20, 0.96);
}

@media (max-width: 1100px) {
    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 760px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-side {
        display: grid;
    }

    .player-card.player-card-vertical {
        padding: 16px;
    }

    .player-card-body {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .agent-portrait-shell {
        width: 60px;
        height: 60px;
    }

    .player-agent-img {
        width: 48px;
        height: 48px;
    }

    .player-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Less-card-heavy layout */
.dashboard-simplified,
.inventory-simplified {
    gap: 16px;
}

.dashboard-header,
.inventory-header,
.section-panel,
.inventory-meta-simple,
.simplified-toolbar {
    padding: 24px 26px;
    border-radius: 24px;
}

.dashboard-header {
    display: grid;
    gap: 18px;
}

.dashboard-header-copy {
    max-width: 760px;
    display: grid;
    gap: 10px;
}

.dashboard-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-header-actions .btn-primary,
.dashboard-header-actions .btn-secondary {
    width: auto;
    min-width: 180px;
}

.dashboard-status-strip,
.inventory-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.status-inline-item {
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
}

.status-inline-item span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.48);
}

.status-inline-item strong {
    font-size: 16px;
    line-height: 1.3;
}

.dashboard-main-simple {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 16px;
}

.dashboard-main-column,
.dashboard-side-column {
    display: grid;
    gap: 16px;
}

.section-panel {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018)),
        rgba(8, 12, 20, 0.9);
}

.section-head,
.section-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.compact-section {
    gap: 0;
}

.divider-line {
    height: 1px;
    margin: 16px 0;
    background: rgba(255,255,255,0.07);
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.inline-form .input-group,
.stack-form .input-group {
    margin-bottom: 0;
}

.stack-form {
    display: grid;
    gap: 12px;
}

.compact-tools .tool-row {
    padding: 14px 16px;
}

.inventory-header {
    display: grid;
    gap: 16px;
}

.inventory-header-copy {
    display: grid;
    gap: 6px;
}

.inventory-availability-inline {
    max-width: 820px;
}

.inventory-meta-simple {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
}

.inventory-meta-column {
    display: grid;
    gap: 10px;
}

.compact-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-insights .insight-item {
    min-height: 76px;
    align-items: flex-start;
    flex-direction: column;
}

.simplified-toolbar {
    gap: 18px;
}

.simplified-toolbar .toolbar-main {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.tracker-controls-panel {
    padding: 16px 18px;
    border-radius: 20px;
}

.tracker-controls-grid {
    grid-template-columns: 1.4fr repeat(3, minmax(160px, 0.7fr));
}

.tool-list,
.diagnostic-list,
.history-list,
.activity-list {
    gap: 10px;
}

.diagnostic-item,
.activity-item,
.history-item,
.tool-row,
.insight-item {
    border-radius: 16px;
    box-shadow: none;
}

@media (max-width: 1100px) {
    .dashboard-main-simple,
    .inventory-meta-simple,
    .compact-insights {
        grid-template-columns: 1fr;
    }

    .dashboard-status-strip,
    .inventory-stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tracker-controls-grid {
        grid-template-columns: 1fr 1fr;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-header,
    .inventory-header,
    .section-panel,
    .inventory-meta-simple,
    .simplified-toolbar {
        padding: 18px;
    }

    .dashboard-status-strip,
    .inventory-stats-strip,
    .tracker-controls-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header-actions {
        flex-direction: column;
    }

    .dashboard-header-actions .btn-primary,
    .dashboard-header-actions .btn-secondary {
        width: 100%;
    }

    .simplified-toolbar .toolbar-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .hero-panel,
    .dashboard-main-grid,
    .tracker-controls-grid,
    .toolbar-filters,
    .inventory-insights-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .overview-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .span-2 {
        grid-column: auto;
    }

    .player-card {
        grid-template-columns: 46px minmax(0, 1fr) 140px 70px 84px auto;
    }

    .note-btn {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .hero-actions,
    .chip-row.secondary,
    .activity-item,
    .history-item,
    .equipped-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-status-grid,
    .overview-grid.four,
    .inventory-insights-grid {
        grid-template-columns: 1fr;
    }

    .player-card,
    .player-card.compact {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .player-rank-block,
    .player-stat,
    .level-badge,
    .note-btn {
        grid-column: 2;
    }
}

/* Flattened layout pass */
.top-nav {
    padding: 12px 0 18px;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: none;
}

.nav-actions {
    gap: 10px;
}

.chip,
.badge,
.status-chip {
    background: rgba(255, 255, 255, 0.025);
}

.dashboard-simplified,
.inventory-simplified {
    gap: 12px;
}

.dashboard-simplified .panel,
.inventory-simplified > .panel,
.inventory-simplified > .inventory-stack > .panel {
    box-shadow: none;
}

.dashboard-header,
.inventory-header {
    padding: 12px 0 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: transparent;
}

.dashboard-header {
    gap: 14px;
}

.dashboard-header-copy,
.inventory-header-copy {
    gap: 8px;
}

.dashboard-header-copy h1,
.inventory-header-copy h1 {
    font-size: clamp(28px, 3vw, 38px);
}

.dashboard-header-copy .muted-text,
.inventory-header-copy .muted-text {
    max-width: 760px;
}

.dashboard-header-actions {
    gap: 10px;
}

.dashboard-header-actions .btn-primary,
.dashboard-header-actions .btn-secondary {
    min-width: 0;
}

.dashboard-status-strip,
.inventory-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.status-inline-item {
    min-height: auto;
    padding: 0 18px 0 0;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: transparent;
}

.status-inline-item:last-child {
    border-right: 0;
    padding-right: 0;
}

.status-inline-item strong {
    font-size: 15px;
}

.dashboard-main-simple,
.inventory-meta-simple {
    gap: 22px;
}

.dashboard-main-simple {
    align-items: start;
}

.dashboard-main-column,
.dashboard-side-column,
.inventory-meta-column {
    gap: 18px;
}

.section-panel,
.inventory-meta-simple,
.simplified-toolbar,
.equipped-panel {
    padding: 18px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-meta-simple,
.simplified-toolbar,
.equipped-panel {
    margin-top: -1px;
}

.section-head,
.section-mini-head {
    margin-bottom: 10px;
}

.divider-line {
    margin: 14px 0;
}

.tool-list,
.diagnostic-list,
.history-list,
.activity-list,
.inventory-groups {
    gap: 8px;
}

.diagnostic-item,
.activity-item,
.history-item,
.tool-row,
.insight-item,
.compare-box,
.equipped-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.tool-row,
.activity-item,
.history-item,
.diagnostic-item {
    padding-inline: 14px;
}

.compact-tools .tool-row {
    padding: 13px 14px;
}

.inventory-availability-inline {
    max-width: none;
}

.inventory-meta-simple {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.compact-insights .insight-item {
    min-height: 68px;
}

.simplified-toolbar {
    gap: 14px;
}

.simplified-toolbar .toolbar-main {
    gap: 14px;
}

.inventory-toolbar h3 {
    font-size: 18px;
}

.equipped-panel .equipped-grid {
    gap: 10px;
}

.inventory-group {
    padding: 18px 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-group::before {
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--group-accent, #c0c9d4) 50%, transparent), transparent 44%);
}

.inventory-group-head {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 0;
}

.inventory-weapon-icon {
    width: 48px;
    height: 48px;
    padding: 10px;
}

.skin-grid {
    gap: 12px;
}

.skin-card {
    border-radius: 16px;
}

.tracker-controls-panel,
.waiting-panel,
.empty-panel,
.match-header,
#tracker-empty-filter {
    box-shadow: none;
}

.tracker-controls-panel,
.match-header {
    border-radius: 20px;
}

@media (max-width: 1100px) {
    .dashboard-status-strip,
    .inventory-stats-strip {
        gap: 14px 16px;
    }

    .status-inline-item {
        min-width: calc(50% - 8px);
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 760px) {
    .top-nav {
        padding-bottom: 14px;
    }

    .dashboard-header,
    .inventory-header,
    .section-panel,
    .inventory-meta-simple,
    .simplified-toolbar,
    .equipped-panel {
        padding: 14px 0;
    }

    .dashboard-status-strip,
    .inventory-stats-strip {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .status-inline-item {
        min-width: 0;
        padding: 0 0 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .status-inline-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .inventory-group-head {
        align-items: flex-start;
    }
}

/* Final silver/black auth + theme pass */
body {
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #020202 0%, #050505 38%, #020202 100%);
    color: #f5f7fa;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.site-bg {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

.site-bg::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 78%);
}

.brand-mark,
h1,
h2,
h3,
h4,
.nav-user,
.player-name,
.rank-copy strong,
.stat-value {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.section-label,
.chip,
.badge,
.status-chip,
.control-label,
.segment,
.inventory-filter-chip,
.loading-pill,
.state-badge,
.note-btn,
.favorite-btn,
.auth-tab,
.btn-primary,
.btn-secondary,
.btn-nav,
.btn-icon {
    font-family: "Space Grotesk", sans-serif;
}

.brand-mark svg,
.compact-brand svg {
    color: rgba(255, 255, 255, 0.9);
    filter: none;
}

.panel,
.team-section,
.inventory-group,
.modal-card,
.waiting-panel,
.empty-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
        rgba(8, 8, 8, 0.9);
    border-color: rgba(255,255,255,0.07);
    backdrop-filter: blur(18px);
}

.chip,
.badge,
.status-chip,
.loading-pill {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
}

.status-chip.success {
    color: #eafff1;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.22);
}

.btn-primary {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(226,232,240,0.92));
    color: #050505;
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 10px 28px rgba(255,255,255,0.08);
}

.btn-primary:hover {
    box-shadow: 0 14px 32px rgba(255,255,255,0.12);
}

.btn-secondary,
.btn-nav,
.btn-icon,
.inventory-filter-chip,
.segment {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.86);
}

.btn-secondary:hover,
.btn-nav:hover,
.btn-icon:hover,
.inventory-filter-chip:hover,
.segment:hover,
.tool-row:hover,
.activity-item:hover,
.history-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}

.auth-tab.active,
.segment.active,
.inventory-filter-chip.active {
    background: rgba(255,255,255,0.09);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.input-group input,
.text-input,
.select-input,
.text-area-input {
    min-height: 50px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    color: #fff;
}

.input-group input::placeholder,
.text-input::placeholder,
.text-area-input::placeholder {
    color: rgba(255,255,255,0.26);
}

.input-group input:focus,
.text-input:focus,
.select-input:focus,
.text-area-input:focus,
textarea:focus {
    border-color: rgba(226,232,240,0.28) !important;
    box-shadow: 0 0 0 4px rgba(226,232,240,0.08);
}

.auth-layout-refined {
    width: min(1080px, 100%);
    grid-template-columns: minmax(320px, 1.08fr) minmax(360px, 420px);
    gap: 32px;
}

.auth-side,
.auth-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 28px;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-side {
    display: grid;
    gap: 26px;
    align-content: start;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.07), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
        rgba(8, 8, 8, 0.92);
}

.auth-card {
    display: grid;
    gap: 18px;
    align-content: start;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
        rgba(8, 8, 8, 0.94);
}

.auth-side::before,
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 28%, rgba(255,255,255,0.02));
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 88%);
}

.auth-side-top,
.auth-card-top {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.auth-side-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.auth-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.72);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.auth-copy,
.auth-card-top {
    position: relative;
    z-index: 1;
}

.auth-copy h1,
.auth-card-top h2 {
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
}

.auth-copy {
    gap: 14px;
}

.auth-copy h1 {
    max-width: 12ch;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.auth-copy .muted-text {
    max-width: 60ch;
    color: rgba(255,255,255,0.62);
}

.auth-signal-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.auth-signal-item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.025);
}

.auth-signal-item strong {
    font-size: 15px;
    letter-spacing: -0.02em;
}

.auth-signal-item span,
.auth-side-foot,
.auth-card-foot {
    color: rgba(255,255,255,0.6);
}

.auth-side-foot,
.auth-card-foot {
    position: relative;
    z-index: 1;
    padding-top: 4px;
    font-size: 13px;
    line-height: 1.7;
}

.auth-form-shell {
    position: relative;
    z-index: 1;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.02);
}

.auth-header,
.auth-card-top {
    margin-bottom: 0;
}

.auth-card-top h2 {
    font-size: clamp(28px, 3vw, 36px);
    letter-spacing: -0.045em;
}

.auth-tabs {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    padding: 5px;
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.07);
}

.auth-form {
    gap: 0;
}

.auth-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 16px;
}

.auth-card-foot span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.42);
}

.auth-card-foot strong {
    color: rgba(255,255,255,0.82);
    font-size: 13px;
}

@media (max-width: 900px) {
    .auth-layout-refined {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .auth-copy h1 {
        max-width: 14ch;
        font-size: clamp(28px, 8vw, 40px);
    }
}

@media (max-width: 640px) {
    .auth-side,
    .auth-card {
        padding: 22px;
        border-radius: 24px;
    }

    .auth-side-top {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .auth-form-shell {
        padding: 16px;
        border-radius: 20px;
    }

    .auth-card-foot {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* DailySend-inspired landing auth */
@keyframes silverShine {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.silver-shine {
    background: linear-gradient(120deg, #94a3b8 0%, #94a3b8 35%, #e2e8f0 50%, #94a3b8 65%, #94a3b8 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: silverShine 3s ease-in-out infinite;
}

#screen-auth.screen.active {
    display: block;
    padding: 0 24px 48px;
}

.landing-shell {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 12;
    padding-top: 18px;
}

.landing-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(16px);
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.landing-brand svg {
    color: rgba(255,255,255,0.92);
}

.landing-nav-links,
.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.landing-nav-links a,
.landing-nav-login {
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

.landing-nav-links a:hover,
.landing-nav-login:hover {
    color: #fff;
}

.landing-main {
    display: grid;
    gap: 56px;
    padding-top: 34px;
}

.landing-hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 420px);
    gap: 34px;
    align-items: start;
    min-height: calc(100vh - 150px);
    padding-top: 72px;
}

.landing-hero-copy {
    display: grid;
    align-content: center;
    gap: 24px;
    padding-top: 16px;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 500;
}

.landing-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
}

.landing-title {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(42px, 7vw, 74px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.06em;
    color: transparent;
    background: linear-gradient(144.5deg, #ffffff 28%, rgba(0, 0, 0, 0) 115%);
    -webkit-background-clip: text;
    background-clip: text;
}

.landing-subtitle {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,0.68);
    font-size: 16px;
    line-height: 1.8;
}

.landing-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.landing-pill-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition), background var(--transition);
}

.landing-pill-button:hover {
    transform: translateY(-1px);
}

.landing-pill-button.dark {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.landing-pill-button.light {
    background: #fff;
    color: #050505;
    box-shadow: 0 14px 36px rgba(255,255,255,0.12);
}

.landing-pill-button.subtle {
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.86);
}

.landing-proof-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-proof-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.42);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-auth-card {
    position: relative;
    display: grid;
    gap: 18px;
    align-content: start;
    padding: 26px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
        rgba(8,8,8,0.94);
}

.landing-auth-card::before,
.landing-preview-window::before,
.landing-cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 28%, rgba(255,255,255,0.02));
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 92%);
}

.landing-auth-top,
.landing-auth-foot,
.auth-tabs,
.auth-form-shell {
    position: relative;
    z-index: 1;
}

.landing-auth-top h2 {
    margin-top: 6px;
    font-size: 34px;
    letter-spacing: -0.05em;
}

.landing-auth-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 4px;
}

.landing-auth-foot div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    background: rgba(255,255,255,0.025);
}

.landing-auth-foot span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.landing-auth-foot strong {
    color: rgba(255,255,255,0.84);
    font-size: 13px;
    line-height: 1.5;
}

.landing-preview-section {
    position: relative;
}

.landing-preview-frame {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
}

.landing-preview-glow {
    position: absolute;
    inset: -16px;
    border-radius: 32px;
    background: radial-gradient(ellipse at center, rgba(148, 163, 184, 0.16) 0%, transparent 70%);
    opacity: 0.55;
    filter: blur(42px);
}

.landing-preview-window {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
        rgba(6,6,6,0.96);
    box-shadow: 0 26px 70px rgba(0,0,0,0.45);
}

.landing-preview-window::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 320px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(0,0,0,0), rgba(148,163,184,0.5) 50%, rgba(0,0,0,0));
}

.landing-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.landing-preview-brand {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.landing-preview-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-preview-pills span,
.landing-preview-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.56);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-preview-body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 18px;
}

.landing-preview-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.landing-preview-summary article,
.landing-preview-row {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.025);
}

.landing-preview-summary strong,
.landing-preview-row strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 16px;
    letter-spacing: -0.03em;
}

.landing-preview-summary span {
    color: rgba(255,255,255,0.56);
    font-size: 14px;
    line-height: 1.7;
}

.landing-preview-list {
    display: grid;
    gap: 12px;
}

.landing-preview-row strong {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
}

.landing-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 980px;
    margin: 0 auto;
    padding-top: 4px;
}

.landing-trust-strip span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    border-radius: 999px;
    min-height: 36px;
    padding: 0 16px;
    color: rgba(255,255,255,0.46);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-steps-section,
.landing-features-section,
.landing-cta-section {
    padding: 12px 0 0;
}

.landing-section-head {
    display: grid;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: center;
}

.landing-section-head h2,
.landing-cta-panel h2 {
    font-size: clamp(34px, 5vw, 50px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.05em;
    color: transparent;
    background: linear-gradient(144.5deg, #ffffff 28%, rgba(0, 0, 0, 0) 115%);
    -webkit-background-clip: text;
    background-clip: text;
}

.landing-steps-grid,
.landing-features-grid {
    display: grid;
    gap: 18px;
}

.landing-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-step-card,
.landing-feature-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.07);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
        rgba(9,9,9,0.9);
}

.landing-step-index {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.58);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.landing-step-card strong,
.landing-feature-card strong {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: #fff;
}

.landing-step-card p,
.landing-feature-card p {
    margin: 0;
    color: rgba(255,255,255,0.58);
    font-size: 14px;
    line-height: 1.75;
}

.landing-cta-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
    justify-items: center;
    padding: 36px 28px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    background:
        radial-gradient(ellipse at top, rgba(148,163,184,0.1), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
        rgba(8,8,8,0.96);
    text-align: center;
}

.landing-cta-panel p {
    max-width: 680px;
}

@media (max-width: 1100px) {
    .landing-hero-section,
    .landing-preview-body,
    .landing-steps-grid,
    .landing-features-grid {
        grid-template-columns: 1fr;
    }

    .landing-preview-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .landing-nav-links {
        display: none;
    }

    .landing-hero-section {
        min-height: auto;
        padding-top: 46px;
    }

    .landing-title {
        max-width: 13ch;
    }
}

@media (max-width: 760px) {
    #screen-auth.screen.active {
        padding-inline: 16px;
    }

    .landing-nav {
        padding-top: 14px;
    }

    .landing-nav-inner {
        padding: 14px 16px;
        border-radius: 24px;
    }

    .landing-nav-actions .landing-nav-login {
        display: none;
    }

    .landing-main {
        gap: 40px;
    }

    .landing-hero-section {
        gap: 22px;
    }

    .landing-title {
        max-width: none;
        font-size: clamp(34px, 10vw, 52px);
    }

    .landing-auth-card {
        padding: 20px;
        border-radius: 24px;
    }

    .landing-auth-foot {
        grid-template-columns: 1fr;
    }

    .landing-preview-window,
    .landing-step-card,
    .landing-feature-card,
    .landing-cta-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .landing-preview-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Product-wide landing consistency pass */
#screen-dashboard.screen.active,
#screen-tracker.screen.active,
#screen-inventory.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 24px 48px;
}

#screen-dashboard .page-shell,
#screen-tracker .page-shell,
#screen-inventory .page-shell {
    width: min(1240px, 100%);
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 11;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(16px);
    box-shadow: none;
}

.nav-left,
.nav-actions {
    gap: 14px;
}

.page-stack {
    gap: 26px;
}

.dashboard-header {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
    padding: 26px 28px 24px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 30px;
    background:
        radial-gradient(ellipse at top, rgba(148,163,184,0.1), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
        rgba(8,8,8,0.94);
}

.dashboard-header::before,
.section-panel::before,
.tracker-controls-panel::before,
.match-header::before,
.team-section::before,
.inventory-header::before,
.inventory-meta-simple::before,
.simplified-toolbar::before,
.equipped-panel::before,
.inventory-group::before,
.waiting-panel::before,
.empty-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 28%, rgba(255,255,255,0.02));
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), transparent 92%);
}

.dashboard-header-copy h1,
.inventory-header-copy h1,
.match-header h2,
.waiting-panel h2,
.empty-panel h2,
.team-heading h3 {
    color: transparent;
    background: linear-gradient(144.5deg, #ffffff 28%, rgba(0, 0, 0, 0) 115%);
    -webkit-background-clip: text;
    background-clip: text;
}

.dashboard-header-copy h1 {
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 500;
    letter-spacing: -0.055em;
}

.dashboard-header-copy .muted-text {
    max-width: 760px;
    color: rgba(255,255,255,0.62);
}

.dashboard-status-strip,
.inventory-stats-strip {
    gap: 10px;
}

.status-inline-item {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
}

.dashboard-main-simple,
.inventory-stack,
.tracker-stack {
    gap: 22px;
}

.section-panel,
.inventory-header,
.inventory-meta-simple,
.simplified-toolbar,
.equipped-panel,
.tracker-controls-panel,
.match-header,
.team-section,
.inventory-group,
.waiting-panel,
.empty-panel {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
        rgba(8,8,8,0.92);
    box-shadow: none;
}

.section-head,
.section-mini-head,
.match-header-left,
.match-header-right {
    position: relative;
    z-index: 1;
}

.diagnostic-item,
.activity-item,
.history-item,
.tool-row,
.insight-item,
.compare-box,
.equipped-card,
.player-rank-showcase,
.player-stat-card {
    border-radius: 18px;
}

.diagnostic-item,
.activity-item,
.history-item,
.tool-row,
.insight-item,
.compare-box,
.equipped-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.tracker-controls-panel {
    padding: 18px 20px;
}

.tracker-controls-grid {
    gap: 16px;
}

.segmented-control,
.auth-tabs {
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.07);
}

.chip-row {
    gap: 8px;
}

.chip-row.secondary {
    justify-content: flex-start;
}

.waiting-panel,
.empty-panel {
    text-align: center;
}

.waiting-icon {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.9);
    box-shadow: 0 0 20px rgba(255,255,255,0.06);
}

.pulse-ring,
.pulse-ring.delay-1,
.pulse-ring.delay-2 {
    border-color: rgba(255,255,255,0.1);
}

.match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.map-thumbnail {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.state-badge.ingame,
.state-badge.pregame,
.state-badge.menu,
.state-badge.error,
.state-badge.completed {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.1);
}

.team-section {
    padding: 20px 22px;
}

.team-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}

.player-card.player-card-vertical {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.07);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
        rgba(10,10,10,0.94);
    box-shadow: none;
}

.player-card.player-card-vertical::before,
.player-card-shine {
    display: none;
}

.player-card.self {
    border-color: rgba(226,232,240,0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.dashboard-tracker-subview[data-density="compact"] .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.player-card-compact {
    padding: 12px 14px;
    border-radius: 18px;
}

.player-card-compact-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.player-card-compact .compact-shell {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.player-card-compact .player-agent-img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.player-card-compact-copy {
    min-width: 0;
}

.player-card-compact-name-row,
.player-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.player-card-compact-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.copy-name-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.72);
    transition: 0.18s ease;
}

.copy-name-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.copy-name-btn.copied {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.24);
    color: #d1fae5;
}

.plan-current-summary {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}

.plan-current-summary strong {
    font-size: 22px;
    color: #fff;
}

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

.plan-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.plan-card.featured {
    background: linear-gradient(145deg, rgba(255, 66, 82, 0.08), rgba(255,255,255,0.04));
    border-color: rgba(255, 66, 82, 0.18);
}

.plan-card.active {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 18px 40px rgba(0,0,0,0.24);
}

.plan-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.plan-card-head h4 {
    margin: 6px 0 0;
    font-size: 24px;
    color: #fff;
}

.plan-feature-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: rgba(255,255,255,0.72);
}

.player-side-label,
.player-tag,
.peak-rank-chip,
.level-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.78);
}

.player-tag.self,
.player-tag.bypassed,
.player-tag.hidden {
    background: rgba(255,255,255,0.08);
}

.agent-portrait-shell,
.rank-badge.deluxe,
.skin-card-art,
.inventory-weapon-icon {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.player-rank-showcase,
.player-stat-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
}

.note-btn,
.favorite-btn {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}

.inventory-header-copy .muted-text,
.inventory-availability-inline {
    color: rgba(255,255,255,0.6);
}

.inventory-meta-simple,
.simplified-toolbar {
    gap: 18px;
}

.equipped-panel .equipped-grid,
.inventory-groups {
    gap: 16px;
}

.inventory-group {
    padding: 18px 20px;
}

.inventory-group::before {
    inset: 0;
    height: auto;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.05), transparent 28%, rgba(255,255,255,0.015)),
        linear-gradient(90deg, color-mix(in srgb, var(--group-accent, #dce2ea) 35%, transparent), transparent 36%);
}

.inventory-group-head {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.skin-card {
    border-radius: 20px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--skin-accent, #dce2ea) 14%, rgba(255,255,255,0.025)), rgba(255,255,255,0.015)),
        rgba(9,9,9,0.94);
}

.modal-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
        rgba(8,8,8,0.96);
    border: 1px solid rgba(255,255,255,0.07);
}

@media (max-width: 1100px) {
    .match-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    #screen-dashboard.screen.active,
    #screen-tracker.screen.active,
    #screen-inventory.screen.active {
        padding: 16px 16px 36px;
    }

    .top-nav,
    .dashboard-header,
    .section-panel,
    .inventory-header,
    .inventory-meta-simple,
    .simplified-toolbar,
    .tracker-controls-panel,
    .match-header,
    .team-section,
    .equipped-panel,
    .inventory-group,
    .waiting-panel,
    .empty-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .match-header,
    .dashboard-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-header-actions .btn-primary,
    .dashboard-header-actions .btn-secondary {
        width: 100%;
    }
}

/* Onyx-inspired landing port */
#screen-auth.screen.active {
    display: block;
    min-height: 100vh;
    padding: 0;
}

.onyx-landing {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #030303;
}

.onyx-landing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(255,255,255,0.06), transparent 26%),
        radial-gradient(circle at 50% 36%, rgba(255,255,255,0.04), transparent 32%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.11'/%3E%3C/svg%3E");
    opacity: 0.42;
    pointer-events: none;
}

.onyx-aura-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent, black 0%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 0%, black 80%, transparent);
}

.onyx-spline-container {
    position: absolute;
    inset: 0;
    opacity: 0.78;
}

.onyx-spline-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.onyx-nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding-top: 16px;
}

.onyx-nav {
    width: fit-content;
    max-width: calc(100% - 48px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.onyx-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
    cursor: pointer;
}

.onyx-brand:hover {
    opacity: 1;
}

.onyx-nav-links,
.onyx-nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.onyx-nav-links a,
.onyx-nav-login {
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

.onyx-nav-links a:hover,
.onyx-nav-login:hover {
    color: #fff;
}

.onyx-ghost-pill,
.onyx-primary-cta,
.onyx-secondary-cta,
.onyx-solid-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}

.onyx-ghost-pill,
.onyx-secondary-cta {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.onyx-primary-cta,
.onyx-solid-chip {
    background: #fff;
    color: #050505;
    box-shadow: 0 18px 42px rgba(255,255,255,0.12);
}

.onyx-ghost-pill:hover,
.onyx-primary-cta:hover,
.onyx-secondary-cta:hover,
.onyx-solid-chip:hover {
    transform: translateY(-1px);
}

.onyx-main {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 132px 0 72px;
}

.onyx-hero {
    max-width: 980px;
    margin: 0 auto;
    min-height: calc(100vh - 132px);
    padding: 132px 24px 84px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.onyx-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    font-weight: 600;
}

.onyx-badge iconify-icon,
.onyx-meta-row iconify-icon,
.onyx-bullet-list iconify-icon,
.onyx-ui-card iconify-icon,
.onyx-cta-badge iconify-icon {
    font-size: 18px;
}

.onyx-badge-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.36);
}

.onyx-badge-dim {
    color: rgba(255,255,255,0.56);
}

.onyx-hero h1,
.onyx-copy-block h3,
.onyx-showcase-copy h2,
.onyx-testimonials-head h2,
.onyx-cta-content h2,
.onyx-login-copy h2 {
    margin: 24px 0 0;
    font-size: clamp(64px, 9vw, 104px);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.07em;
    color: #fff;
    text-shadow: 0 24px 50px rgba(0,0,0,0.35);
}

.onyx-hero h1 span {
    display: block;
}

.onyx-hero p {
    max-width: 860px;
    margin: 22px auto 0;
    color: rgba(255,255,255,0.68);
    font-size: 17px;
    line-height: 1.75;
}

.onyx-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.onyx-meta-row {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.7);
}

.onyx-meta-row div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.onyx-login-section,
.onyx-split-section,
.onyx-showcase-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    align-items: center;
}

.onyx-login-section {
    margin-top: 96px;
}

.onyx-login-copy h2 {
    font-size: clamp(36px, 4vw, 54px);
    margin-top: 10px;
}

.onyx-login-copy .muted-text {
    margin-top: 14px;
    max-width: 620px;
}

.onyx-login-points {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.onyx-login-points article,
.onyx-ui-card,
.onyx-showcase-shell,
.onyx-testimonials-shell,
.onyx-cta-panel,
.onyx-login-card {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.66);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 28px 80px rgba(0,0,0,0.42);
}

.onyx-login-points article {
    padding: 18px 20px;
}

.onyx-login-points strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 16px;
}

.onyx-login-points span {
    color: rgba(255,255,255,0.62);
    font-size: 14px;
    line-height: 1.6;
}

.onyx-login-card {
    padding: 24px;
}

.onyx-login-head h3 {
    margin: 8px 0 6px;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -0.05em;
}

.onyx-login-form-shell {
    margin-top: 16px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.onyx-auth-tabs {
    margin-top: 16px;
}

.onyx-cloud-section {
    margin-top: 10px;
    text-align: center;
}

.onyx-cloud-section > p {
    margin: 0 0 18px;
    color: rgba(255,255,255,0.42);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.onyx-marquee {
    display: flex;
    overflow: hidden;
    gap: 20px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.onyx-marquee-track {
    display: flex;
    gap: 18px;
    flex: 0 0 auto;
    min-width: max-content;
    animation: onyxMarquee 26s linear infinite;
}

.onyx-marquee-track span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.55);
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@keyframes onyxMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 18px)); }
}

.onyx-split-section,
.onyx-showcase-section,
.onyx-testimonials-section,
.onyx-cta-section {
    margin-top: 110px;
}

.onyx-split-section.reverse .onyx-copy-block {
    order: 1;
}

.onyx-split-section.reverse .onyx-visual-frame {
    order: 2;
}

.onyx-ui-card,
.onyx-showcase-shell,
.onyx-testimonials-shell,
.onyx-cta-panel {
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.onyx-ui-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.onyx-ui-head h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.onyx-ui-head span,
.onyx-side-title,
.onyx-results-head span,
.onyx-results-head strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.onyx-ui-illustration {
    position: relative;
    height: 360px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.09));
    border: 1px solid rgba(255,255,255,0.06);
}

.onyx-browser-window,
.onyx-side-window,
.onyx-mini-sync,
.onyx-search-window,
.onyx-results-window,
.onyx-related-window {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.82);
    border-radius: 22px;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}

.onyx-browser-window {
    top: 26px;
    right: 26px;
    width: 76%;
    height: 64%;
}

.onyx-browser-bar,
.onyx-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.56);
    font-size: 12px;
}

.onyx-window-dots {
    display: flex;
    gap: 6px;
}

.onyx-window-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.onyx-window-dots span:nth-child(1) { background: #fb7185; }
.onyx-window-dots span:nth-child(2) { background: #facc15; }
.onyx-window-dots span:nth-child(3) { background: #4ade80; }

.onyx-player-stack,
.onyx-search-suggestions {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.onyx-player-line,
.onyx-results-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
}

.onyx-player-line.accent,
.onyx-results-card {
    background: rgba(132, 204, 22, 0.1);
    border-color: rgba(132, 204, 22, 0.2);
}

.onyx-player-line .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.28);
}

.onyx-player-line .bar,
.onyx-sync-line,
.onyx-results-card .bar {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
}

.onyx-player-line.accent .bar,
.onyx-sync-line.accent,
.onyx-results-card .bar {
    background: rgba(132, 204, 22, 0.45);
}

.onyx-player-line .bar.w-60 { width: 62%; }
.onyx-player-line .bar.w-52 { width: 52%; }
.onyx-player-line .bar.w-44 { width: 44%; }
.onyx-player-line .bar.w-48 { width: 48%; }
.onyx-player-line .bar.w-40 { width: 40%; }
.onyx-player-line .bar.w-56 { width: 56%; }
.onyx-results-card .bar.w-80 { width: 80%; }
.onyx-results-card .bar.w-60 { width: 60%; }
.onyx-results-card .bar.soft { opacity: 0.7; }

.onyx-side-window {
    left: 44px;
    bottom: 54px;
    width: 58%;
    padding: 14px;
    display: grid;
    gap: 10px;
}

.onyx-side-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    width: fit-content;
    border-radius: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.82);
}

.onyx-side-pill.blue { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.2); }
.onyx-side-pill.violet { background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.2); }
.onyx-side-pill.amber { background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.2); }
.onyx-side-pill.small { min-height: 28px; font-size: 11px; }

.onyx-mini-sync {
    left: 24px;
    bottom: 22px;
    width: 34%;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.onyx-sync-line {
    width: 100%;
}

.onyx-search-window {
    top: 26px;
    left: 26px;
    width: 78%;
}

.onyx-search-bar .bar.w-56 { width: 56%; }

.onyx-results-window {
    left: 26px;
    bottom: 22px;
    width: 80%;
    padding: 12px;
}

.onyx-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.onyx-results-head strong {
    color: #a3e635;
}

.onyx-results-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    color: #a3e635;
}

.onyx-results-card > div {
    flex: 1;
    display: grid;
    gap: 8px;
}

.onyx-related-window {
    right: 26px;
    top: 138px;
    width: 36%;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.onyx-ui-foot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.onyx-ui-foot-grid h4,
.onyx-copy-section h4 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.onyx-ui-foot-grid p,
.onyx-copy-section p,
.onyx-copy-block p,
.onyx-timeline p,
.onyx-footer p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.onyx-copy-block h3 {
    font-size: clamp(42px, 5vw, 64px);
    margin: 0;
}

.onyx-copy-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.onyx-bullet-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.onyx-bullet-list article {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.onyx-bullet-list article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: rgba(132, 204, 22, 0.1);
    color: #a3e635;
    flex: 0 0 auto;
}

.onyx-bullet-list strong,
.onyx-timeline strong,
.onyx-testimonial-user strong {
    color: #fff;
    font-size: 16px;
}

.onyx-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.onyx-stats-row strong {
    display: block;
    color: #fff;
    font-size: 34px;
    letter-spacing: -0.05em;
}

.onyx-stats-row span {
    color: rgba(255,255,255,0.58);
    font-size: 13px;
}

.onyx-inline-cta {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.onyx-showcase-shell {
    gap: 30px;
}

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

.onyx-media-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    background-size: cover;
    background-position: center;
}

.onyx-media-card.tall {
    min-height: 320px;
}

.feature-a { background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.62)), url('https://hoirqrkdgbmvpwutwuwj.supabase.co/storage/v1/object/public/assets/assets/fbddf75f-e2e3-4552-a710-55e2a5f4d6af_800w.jpg'); }
.feature-b { background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.62)), url('https://hoirqrkdgbmvpwutwuwj.supabase.co/storage/v1/object/public/assets/assets/c1696396-99ab-4e5f-abd0-3a963c1ff85d_800w.webp'); }
.feature-c { background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.62)), url('https://hoirqrkdgbmvpwutwuwj.supabase.co/storage/v1/object/public/assets/assets/5bab247f-35d9-400d-a82b-fd87cfe913d2_800w.webp'); }
.feature-d { background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.62)), url('https://hoirqrkdgbmvpwutwuwj.supabase.co/storage/v1/object/public/assets/assets/c8645457-3f4b-4898-b38f-e2676d678803_800w.jpg'); }

.onyx-media-chip,
.onyx-media-label {
    position: absolute;
    top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
}

.onyx-media-chip {
    left: 16px;
    width: 34px;
    padding: 0;
}

.onyx-media-label {
    right: 16px;
    padding: 0 14px;
    font-size: 12px;
}

.onyx-media-copy {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.onyx-timeline {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.onyx-timeline div {
    position: relative;
    padding-left: 26px;
}

.onyx-timeline div span {
    position: absolute;
    top: 8px;
    left: 0;
    width: 12px;
    height: 12px;
    border: 2px solid #a3e635;
    border-radius: 999px;
    background: #050505;
}

.onyx-testimonials-head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
}

.onyx-testimonials-head h2 {
    margin: 0;
    font-size: clamp(42px, 7vw, 84px);
}

.onyx-testimonials-head p {
    margin: 0;
    color: rgba(255,255,255,0.58);
}

.onyx-testimonials-viewport {
    position: relative;
}

.onyx-testimonials-rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 10px 6px 6px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.onyx-testimonials-rail::-webkit-scrollbar {
    display: none;
}

.onyx-testimonial-card {
    flex: 0 0 min(520px, 88vw);
    padding: 26px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 26px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    color: #fff;
}

.onyx-testimonial-card.tilt-left { transform: rotate(-2deg); }
.onyx-testimonial-card.tilt-right { transform: rotate(1.5deg); }

.onyx-testimonial-card p {
    margin: 0;
    font-size: 28px;
    line-height: 1.28;
    letter-spacing: -0.05em;
}

.onyx-testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.onyx-testimonial-user img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.onyx-testimonial-user span {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.onyx-testimonial-controls {
    position: absolute;
    right: 12px;
    bottom: 10px;
    display: flex;
    gap: 10px;
}

.onyx-testimonial-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.onyx-testimonial-controls button.primary {
    background: #fff;
    color: #050505;
}

.onyx-cta-panel {
    min-height: 360px;
}

.onyx-cta-backdrop {
    position: absolute;
    inset: 0;
    background: url('https://hoirqrkdgbmvpwutwuwj.supabase.co/storage/v1/object/public/assets/assets/06254d74-b37f-4eaf-bc55-f9e0758e1c14_1600w.webp') center/cover;
    opacity: 0.38;
}

.onyx-cta-content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 42px 20px;
}

.onyx-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.84);
}

.onyx-cta-content h2 {
    font-size: clamp(40px, 5vw, 64px);
    margin: 22px 0 0;
}

.onyx-cta-content p {
    margin: 16px 0 0;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
}

.onyx-footer {
    margin-top: 86px;
    padding-top: 42px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.onyx-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 34px;
}

.onyx-footer h4 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 14px;
}

.onyx-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.onyx-footer a,
.onyx-footer p {
    color: rgba(255,255,255,0.58);
    font-size: 14px;
}

.onyx-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.onyx-footer-socials {
    display: flex;
    gap: 14px;
}

.onyx-footer-socials a {
    color: rgba(255,255,255,0.62);
    font-size: 20px;
}

@media (max-width: 1100px) {
    .onyx-nav {
        width: fit-content;
        max-width: calc(100% - 24px);
    }

    .onyx-main {
        width: min(1180px, calc(100% - 24px));
    }

    .onyx-login-section,
    .onyx-split-section,
    .onyx-showcase-shell,
    .onyx-footer-grid {
        grid-template-columns: 1fr;
    }

    .onyx-hero {
        min-height: auto;
        padding-top: 100px;
    }
}

@media (max-width: 760px) {
    .onyx-nav {
        width: fit-content;
        max-width: calc(100% - 24px);
        padding: 12px 18px;
        border-radius: 24px;
    }

    .onyx-nav-links {
        display: none;
    }

    .onyx-nav-actions .onyx-nav-login {
        display: none;
    }

    .onyx-main {
        width: calc(100% - 24px);
        padding-top: 108px;
    }

    .onyx-hero {
        min-height: auto;
        padding: 72px 0 42px;
    }

    .onyx-hero h1,
    .onyx-copy-block h3,
    .onyx-showcase-copy h2,
    .onyx-testimonials-head h2,
    .onyx-cta-content h2,
    .onyx-login-copy h2 {
        font-size: clamp(42px, 12vw, 62px);
    }

    .onyx-hero p,
    .onyx-cta-content p {
        font-size: 15px;
    }

    .onyx-login-card,
    .onyx-ui-card,
    .onyx-showcase-shell,
    .onyx-testimonials-shell,
    .onyx-cta-panel {
        padding: 18px;
        border-radius: 24px;
    }

    .onyx-ui-illustration {
        height: 300px;
    }

    .onyx-side-window {
        left: 18px;
        width: 66%;
    }

    .onyx-mini-sync,
    .onyx-related-window {
        display: none;
    }

    .onyx-ui-foot-grid,
    .onyx-stats-row,
    .onyx-footer-bottom,
    .onyx-testimonials-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .onyx-showcase-grid {
        grid-template-columns: 1fr;
    }

    .onyx-testimonial-card {
        flex-basis: 88vw;
        transform: none !important;
    }

    .onyx-testimonial-card p {
        font-size: 20px;
    }
}

/* ============================================================
   REDESIGNED LANDING: Split Hero + Login Card
   ============================================================ */

.onyx-nav-version {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-faint);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.onyx-hero-split {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 40px 0 60px;
}

.onyx-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.onyx-hero-content h1 {
    font-size: clamp(38px, 5.5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #e2e8f0 40%,
        #94a3b8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onyx-hero-content h1 span {
    display: block;
}

.hero-subtitle {
    max-width: 500px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dim);
    margin: 0;
}

.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.trust-avatars {
    display: flex;
}

.trust-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid var(--bg);
    margin-left: -6px;
}

.trust-dot:first-child {
    margin-left: 0;
}

.trust-dot:nth-child(1) {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.trust-dot:nth-child(2) {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.trust-dot:nth-child(3) {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}

.trust-text {
    font-size: 13px;
    color: var(--text-faint);
    font-weight: 500;
}

/* Login Card - Glassmorphism */
.onyx-hero-login-card {
    position: relative;
    padding: 32px 28px;
    border-radius: var(--radius-xl);
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-card-glow {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: card-glow-drift 8s ease-in-out infinite alternate;
}

@keyframes card-glow-drift {
    0% { transform: translate(0, 0); opacity: 0.6; }
    100% { transform: translate(-30px, 30px); opacity: 1; }
}

.onyx-hero-login-card .onyx-login-head {
    margin-bottom: 20px;
}

.onyx-hero-login-card .onyx-login-head h3 {
    font-size: 22px;
    margin-top: 4px;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.onyx-hero-login-card .auth-tabs {
    margin-bottom: 20px;
}

.onyx-hero-login-card .input-group {
    margin-bottom: 14px;
}

.onyx-hero-login-card .input-group input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    min-height: 44px;
}

.onyx-hero-login-card .input-group input:focus {
    border-color: rgba(192, 201, 212, 0.35) !important;
    box-shadow: 0 0 0 3px rgba(192, 201, 212, 0.06);
    background: rgba(255, 255, 255, 0.06);
}

.onyx-hero-login-card .btn-primary {
    margin-top: 4px;
    min-height: 48px;
    border-radius: 14px;
    font-size: 13px;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #0a0a0f;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.08);
}

.onyx-hero-login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

/* Responsive: Split hero stacked on mobile */
@media (max-width: 900px) {
    .onyx-hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
        padding: 30px 0 40px;
    }

    .onyx-hero-content h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .onyx-hero-login-card {
        max-width: 440px;
    }
}

@media (max-width: 600px) {
    .onyx-hero-split {
        gap: 28px;
        padding: 16px 0 28px;
    }

    .onyx-hero-content h1 {
        font-size: 32px;
    }

    .onyx-hero-login-card {
        padding: 24px 20px;
    }
}

/* ============================================================
   REVAMPED DASHBOARD: Sidebar + Glass Layout
   ============================================================ */

.onyx-dashboard-layout {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background: #000;
    position: relative;
    z-index: 10;
    overflow-x: clip;
}

/* Sidebar */
.onyx-sidebar {
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    z-index: 20;
}

.sidebar-head {
    margin-bottom: 40px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 32px;
}

.user-card-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #64748b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-edit-btn {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 9, 11, 0.92);
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.avatar-edit-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.avatar-edit-btn iconify-icon {
    font-size: 12px;
}

.user-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-card-info strong {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-info span {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-item iconify-icon {
    font-size: 20px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.server-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 999px;
    color: #86efac;
    font-size: 11px;
    font-weight: 700;
}

.onyx-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--danger);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.onyx-logout-btn:hover {
    opacity: 0.8;
}

/* Main Content */
.onyx-dashboard-main {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 40px 60px;
    position: relative;
    min-width: 0;
}

.dashboard-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.top-bar-left h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-top: 4px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Content Grid */
.dashboard-content-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-tile {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-faint);
}

.stat-tile strong {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.dashboard-main-columns {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.main-left-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.glass-card {
    padding: 32px;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.glass-card.compact {
    padding: 24px;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.head-icon {
    font-size: 28px;
    color: var(--text-soft);
}

.onyx-tabs {
    margin-top: 20px;
    margin-bottom: 24px;
}

.riot-method-box {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
}

.key-entry {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.key-entry input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    font-family: monospace;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.1em;
}

.success-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #86efac;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
}

.connected-state {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-icon {
    font-size: 40px;
    color: var(--text-soft);
}

.account-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.riot-account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.riot-account-stat {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.riot-account-stat span {
    color: var(--text-faint);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.riot-account-stat strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-actions {
    display: flex;
    gap: 12px;
}

.card-actions .btn-primary {
    flex: 2;
}

.card-actions .btn-secondary {
    flex: 1;
}

.activity-feed,
.diagnostic-feed,
.account-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1100px) {
    .dashboard-main-columns {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .riot-account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .onyx-dashboard-layout {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .onyx-sidebar {
        width: 100%;
        height: auto;
        padding: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .sidebar-user-card,
    .sidebar-foot,
    .sidebar-nav {
        display: none;
    }
    
    .onyx-dashboard-main {
        padding: 24px;
    }
    
    .dashboard-top-bar {
        margin-bottom: 32px;
    }
}

/* Item Refinement */
.activity-item, .diagnostic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
    margin-bottom: 8px;
}

.activity-item:hover, .diagnostic-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.activity-item.win { border-left: 3px solid #22c55e; }
.activity-item.loss { border-left: 3px solid #ef4444; }

.activity-item > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-item strong { font-size: 14px; color: #fff; }
.activity-item span { font-size: 11px; color: var(--text-faint); }

.activity-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-meta span { font-weight: 700; color: #fff; font-size: 12px; }
.activity-meta small { font-size: 10px; color: var(--text-faint); }

.diagnostic-item.success strong { color: #86efac; }
.diagnostic-item.warning strong { color: #fde047; }
.diagnostic-item.danger strong { color: #fca5a5; }

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    margin-bottom: 6px;
}

.history-item:hover { background: rgba(255, 255, 255, 0.04); }

.history-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.empty-inline {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-faint);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

/* ============================================================
   DASHBOARD SPACING / ALIGNMENT FIX PASS
   ============================================================ */

.onyx-dashboard-main {
    padding: 32px 40px 40px;
}

.dashboard-top-bar {
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 36px;
}

.top-bar-left {
    display: grid;
    gap: 6px;
}

.top-bar-left .section-label {
    margin-bottom: 0;
}

.top-bar-subtitle {
    max-width: 760px;
}

.top-bar-actions {
    flex-shrink: 0;
}

.dashboard-stats-row {
    gap: 18px;
    align-items: stretch;
}

.stat-tile {
    min-height: 114px;
    padding: 20px 22px;
    justify-content: space-between;
}

.stat-tile .chip,
.stat-tile .badge,
.stat-tile .status-chip {
    width: fit-content;
    max-width: 100%;
    margin-top: 8px;
}

.dashboard-main-columns {
    align-items: start;
    gap: 24px;
}

.dashboard-subview {
    display: grid;
    gap: 32px;
}

.dashboard-tracker-subview {
    gap: 18px;
}

.dashboard-inventory-subview {
    gap: 18px;
}

.tracker-shell-panel {
    padding: 18px 20px;
}

.tracker-inline-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.tracker-inline-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.tracker-inline-status .chip {
    padding: 9px 14px;
}

.dashboard-tracker-subview .tracker-controls-grid {
    grid-template-columns: 1.35fr repeat(3, minmax(150px, 0.78fr));
    gap: 14px;
}

.dashboard-tracker-subview .tracker-composition-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.dashboard-tracker-subview .tracker-stack {
    gap: 16px;
}

.dashboard-tracker-subview .match-header {
    padding: 18px 20px;
}

.dashboard-tracker-subview .waiting-panel {
    min-height: 360px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dashboard-tracker-subview .waiting-icon-wrap {
    width: 120px;
    height: 120px;
    margin-bottom: 14px;
}

.dashboard-tracker-subview .waiting-icon {
    width: 52px;
    height: 52px;
}

.dashboard-tracker-subview .waiting-panel h2 {
    margin-bottom: 8px;
}

.dashboard-tracker-subview .waiting-pills {
    margin-top: 18px;
}

.inventory-inline-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.inventory-inline-status,
.inventory-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-inventory-subview .inventory-header,
.dashboard-inventory-subview .inventory-meta-simple,
.dashboard-inventory-subview .simplified-toolbar,
.dashboard-inventory-subview .equipped-panel,
.dashboard-inventory-subview .inventory-group,
.dashboard-inventory-subview .waiting-panel,
.dashboard-inventory-subview .empty-panel {
    padding: 20px 22px;
}

.dashboard-inventory-subview.inventory-state-loading .inventory-header {
    opacity: 0.88;
}

.dashboard-inventory-subview.inventory-state-loading .status-inline-item {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.dashboard-inventory-subview.inventory-state-loading .status-inline-item strong,
.dashboard-inventory-subview.inventory-state-loading .inventory-header-copy h1,
.dashboard-inventory-subview.inventory-state-loading #inventory-updated-at {
    opacity: 0.68;
}

.dashboard-inventory-subview .inventory-stack {
    gap: 16px;
}

.dashboard-inventory-subview .inventory-groups {
    gap: 12px;
}

.dashboard-inventory-subview .inventory-toolbar {
    gap: 14px;
}

.dashboard-inventory-subview .inventory-header {
    gap: 14px;
}

.dashboard-inventory-subview .inventory-inline-toolbar {
    margin-bottom: -2px;
}

.dashboard-inventory-subview .inventory-header-copy h1 {
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.dashboard-inventory-subview .inventory-header-copy {
    gap: 4px;
    max-width: 700px;
}

.dashboard-inventory-subview .inventory-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.dashboard-inventory-subview .status-inline-item {
    min-width: 110px;
    min-height: auto;
    padding: 12px 14px;
    border-radius: 16px;
}

.dashboard-inventory-subview .inventory-availability-inline {
    max-width: none;
    grid-column: 1 / -1;
}

.dashboard-inventory-subview .inventory-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px 24px;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.dashboard-inventory-subview .inventory-meta-simple {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    align-items: start;
    gap: 16px;
}

.inventory-state-panel {
    min-height: 246px;
    display: grid;
    place-items: center;
    text-align: center;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.inventory-state-panel h2 {
    margin: 18px 0 6px;
    font-size: clamp(32px, 3vw, 48px);
    letter-spacing: -0.05em;
}

.inventory-state-panel p {
    max-width: 620px;
}

.inventory-state-enter {
    animation: inventoryStateFade 0.34s ease both;
}

.dashboard-inventory-subview .compact-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-inventory-subview .insight-item {
    min-height: 84px;
    padding: 16px 18px;
    align-content: start;
}

.dashboard-inventory-subview .compare-box {
    min-height: 100%;
    padding: 16px 18px;
    gap: 14px;
}

.dashboard-inventory-subview .inventory-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.dashboard-inventory-subview .toolbar-main {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-inventory-subview .toolbar-main > div:first-child {
    max-width: 520px;
}

.dashboard-inventory-subview .toolbar-filters {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
}

.dashboard-inventory-subview .inventory-toolbar > div:nth-child(3),
.dashboard-inventory-subview .inventory-toolbar > div:nth-child(4) {
    display: grid;
    gap: 8px;
}

.dashboard-inventory-subview .inventory-toolbar > div:nth-child(3) .control-label,
.dashboard-inventory-subview .inventory-toolbar > div:nth-child(4) .control-label {
    margin-bottom: 0;
}

.dashboard-inventory-subview #inventory-tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.dashboard-inventory-subview .inventory-filters {
    gap: 8px;
}

.dashboard-inventory-subview .inventory-filter-chip {
    padding: 7px 12px;
}

.dashboard-inventory-subview .equipped-panel .card-head {
    margin-bottom: 14px;
}

.dashboard-inventory-subview .equipped-panel .equipped-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.dashboard-inventory-subview .equipped-card {
    padding: 12px 14px;
    gap: 10px;
}

.dashboard-inventory-subview .equipped-card img {
    width: 84px;
    height: 48px;
}

.dashboard-inventory-subview .equipped-card strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.dashboard-inventory-subview .equipped-card span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.68);
}

.dashboard-inventory-subview .inventory-group-head {
    margin-bottom: 14px;
}

@media (max-width: 1200px) {
    .dashboard-inventory-subview .inventory-header,
    .dashboard-inventory-subview .inventory-meta-simple,
    .dashboard-inventory-subview .toolbar-filters {
        grid-template-columns: 1fr;
    }

    .dashboard-inventory-subview .inventory-stats-strip {
        justify-content: flex-start;
    }

    .dashboard-inventory-subview .toolbar-main {
        align-items: flex-start;
        flex-direction: column;
    }
}

.main-right-col,
.main-left-col {
    min-width: 0;
}

.main-right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.glass-card {
    padding: 28px;
}

.glass-card.compact {
    padding: 22px;
}

.section-head {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.section-head > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.section-head .section-label {
    margin-bottom: 0;
}

.section-head h3 {
    line-height: 1.08;
    font-size: 18px;
}

.section-head.split {
    align-items: center;
    justify-content: space-between;
}

.section-head.split > * {
    flex: 0 0 auto;
}

.section-mini-head {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.onyx-tabs.auth-tabs.compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.onyx-tabs.auth-tabs.compact .auth-tab {
    width: 100%;
    justify-content: center;
    min-width: 0;
}

.dashboard-plan-summary {
    display: grid;
    gap: 14px;
}

.settings-hero-panel,
.settings-panel {
    min-width: 0;
}

.settings-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.settings-hero-copy {
    max-width: 720px;
}

.settings-status-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.settings-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkbox-row-panel {
    min-height: 44px;
    align-self: end;
    padding: 0 2px;
}

.settings-plan-panel {
    grid-column: 1 / -1;
}

.settings-account-list {
    display: grid;
    gap: 12px;
}

.settings-info-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-info-row span {
    color: var(--text-faint);
    font-size: 13px;
}

.settings-info-row strong {
    color: #fff;
    font-size: 14px;
    text-align: right;
}

.accounts-panel {
    display: grid;
    gap: 18px;
}

.section-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.account-record {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.account-record-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.account-record-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.account-record-copy strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
    color: #fff;
}

.account-record-copy span {
    color: var(--text-faint);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-record-main small {
    flex-shrink: 0;
    color: var(--text-faint);
    font-size: 12px;
    white-space: nowrap;
}

.account-record-actions {
    display: flex;
    justify-content: flex-end;
}

.account-remove-btn {
    min-height: 38px;
    padding-inline: 16px;
    justify-content: center;
}

.riot-method-box,
.key-flow,
.key-details {
    display: grid;
    gap: 16px;
}

.riot-method-box {
    padding: 20px;
}

.riot-method-box .muted-text {
    margin: 0;
}

#riot-client-form,
.stack-form {
    display: grid;
    gap: 14px;
}

#riot-client-form .btn-primary,
.stack-form .btn-primary {
    width: 100%;
    justify-content: center;
}

.key-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    align-items: stretch;
}

.key-entry input {
    min-width: 0;
    width: 100%;
    text-align: left;
    letter-spacing: 0.08em;
}

.key-entry .btn-primary {
    width: auto;
    min-width: 180px;
    justify-content: center;
}

.connected-state,
.account-badge {
    min-width: 0;
}

.account-badge {
    align-items: flex-start;
}

.account-details strong,
.account-details span {
    min-width: 0;
    word-break: break-word;
}

.card-actions {
    flex-wrap: wrap;
}

.card-actions .btn-primary,
.card-actions .btn-secondary {
    min-width: 180px;
    justify-content: center;
}

.activity-feed,
.diagnostic-feed,
.account-history {
    gap: 14px;
}

.activity-item,
.diagnostic-item,
.history-item {
    margin-bottom: 0;
    min-width: 0;
}

.activity-item,
.history-item {
    padding: 14px 16px;
}

.activity-item > div:first-child,
.activity-meta,
.history-item > div {
    min-width: 0;
}

.history-item > div {
    display: grid;
    gap: 2px;
    flex: 1;
}

.history-item {
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.history-item strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.history-item small {
    flex-shrink: 0;
    white-space: nowrap;
    text-align: right;
    font-size: 11px;
}

.diagnostic-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.diagnostic-item span,
.diagnostic-item strong {
    min-width: 0;
}

.diagnostic-item strong {
    text-align: right;
}

@media (max-width: 1200px) {
    .onyx-dashboard-main {
        padding: 28px 28px 36px;
    }

    .dashboard-main-columns {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .settings-page-grid,
    .settings-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .main-right-col {
        gap: 20px;
    }
}

@media (max-width: 800px) {
    .onyx-dashboard-main {
        padding: 24px;
    }

    .dashboard-top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-stats-row {
        grid-template-columns: 1fr;
    }

    .key-entry {
        grid-template-columns: 1fr;
    }

    .settings-grid-two {
        grid-template-columns: 1fr;
    }

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

    .riot-account-stats {
        grid-template-columns: 1fr;
    }

    .key-entry .btn-primary,
    .card-actions .btn-primary,
    .card-actions .btn-secondary {
        min-width: 0;
        width: 100%;
    }

    .diagnostic-item {
        grid-template-columns: 1fr;
    }

    .diagnostic-item strong {
        text-align: left;
    }

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

    .settings-info-row strong {
        text-align: left;
    }

    .account-record-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-record-actions {
        justify-content: stretch;
    }

    .account-remove-btn {
        width: 100%;
    }

    .dashboard-tracker-subview .tracker-inline-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-tracker-subview .tracker-controls-grid {
        grid-template-columns: 1fr;
    }

    .tracker-complete-banner,
    .players-match-head,
    .players-history-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .tracker-ready-btn,
    .players-history-actions,
    .players-blacklist-btn {
        width: 100%;
    }

    .players-history-actions {
        justify-content: flex-start;
    }

    .dashboard-tracker-subview .waiting-panel {
        min-height: 300px;
    }

    .dashboard-tracker-subview[data-density="compact"] .players-grid {
        grid-template-columns: 1fr;
    }

    .inventory-inline-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-inventory-subview .inventory-meta-simple,
    .dashboard-inventory-subview .inventory-toolbar,
    .dashboard-inventory-subview .toolbar-filters,
    .dashboard-inventory-subview .compact-insights {
        grid-template-columns: 1fr;
    }

    .dashboard-inventory-subview .inventory-toolbar > div:nth-child(3),
    .dashboard-inventory-subview .inventory-toolbar > div:nth-child(4),
    .dashboard-inventory-subview .toolbar-filters {
        grid-column: auto;
    }

    .dashboard-inventory-subview .equipped-panel .equipped-grid {
        grid-template-columns: 1fr;
    }

    .plan-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PREMIUM VISUAL REFINEMENT — ALL DASHBOARD SECTIONS
   Appended: covers sidebar, home, tracker, inventory,
   players, accounts, settings. Does NOT touch landing page.
   ============================================================ */

/* ── Keyframes ─────────────────────────────────────────── */

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.45); }
    50%      { box-shadow: 0 0 8px 3px rgba(134, 239, 172, 0.18); }
}

@keyframes subtleBreathe {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

@keyframes accentSlide {
    from { height: 0; opacity: 0; }
    to   { height: 60%; opacity: 1; }
}

/* ── Custom Scrollbar ──────────────────────────────────── */

.onyx-dashboard-main::-webkit-scrollbar {
    width: 6px;
}

.onyx-dashboard-main::-webkit-scrollbar-track {
    background: transparent;
}

.onyx-dashboard-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.onyx-dashboard-main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ── Dashboard View Transitions ────────────────────────── */

.dashboard-subview {
    animation: fadeSlideIn 0.35s ease-out both;
}

.dashboard-subview.hidden {
    animation: none;
}

/* ── 1. SIDEBAR — Premium Redesign ─────────────────────── */

.onyx-sidebar {
    width: 272px;
    background:
        linear-gradient(180deg, rgba(14, 14, 14, 0.95) 0%, rgba(8, 8, 8, 0.98) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 1px 0 30px rgba(0, 0, 0, 0.4);
    padding: 28px 20px;
}

.sidebar-head {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-head .brand-mark {
    gap: 12px;
    font-size: 17px;
}

.sidebar-head .brand-mark svg {
    color: #fff;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
    transition: filter 0.3s ease;
}

.sidebar-head .brand-mark:hover svg {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.28));
}

/* User Card */
.sidebar-user-card {
    padding: 14px 16px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 24px;
    transition: border-color 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-user-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.sidebar-user-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.user-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b3b4f, #1a1a2e);
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.user-card-info strong {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.user-card-info span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* Navigation Items */
.sidebar-nav {
    gap: 4px;
}

.nav-item {
    position: relative;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.52);
    transition: all 0.22s ease;
    gap: 14px;
}

.nav-item iconify-icon {
    font-size: 21px;
    transition: color 0.22s ease, transform 0.22s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
}

.nav-item:hover iconify-icon {
    transform: scale(1.08);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    animation: accentSlide 0.3s ease-out both;
}

.nav-item.active iconify-icon {
    color: #fff;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    margin: 12px 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* Sidebar Footer */
.sidebar-foot {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 14px;
}

.server-status-pill {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.12);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.server-status-pill .status-dot {
    width: 7px;
    height: 7px;
    background: #86efac;
    animation: pulseGlow 2s ease-in-out infinite;
    border-radius: 999px;
}

.onyx-logout-btn {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.onyx-logout-btn:hover {
    background: rgba(248, 113, 113, 0.08);
    opacity: 1;
}

/* ── 2. DASHBOARD HOME — Top Bar & Stats ───────────────── */

.dashboard-top-bar {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-left .section-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.32);
}

.top-bar-left h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-bar-left h1 span {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.6);
}

.top-bar-subtitle {
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
}

.top-bar-actions .btn-secondary {
    border-radius: 14px;
    min-height: 42px;
    padding: 0 18px;
    gap: 8px;
    font-size: 12px;
}

.top-bar-actions .btn-icon {
    width: 42px;
    min-height: 42px;
    border-radius: 14px;
}

/* Stats Tiles */
.dashboard-stats-row {
    gap: 14px;
}

.stat-tile {
    position: relative;
    min-height: 108px;
    padding: 20px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}

.stat-tile::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.stat-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-tile .stat-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.36);
    margin-top: 0;
}

.stat-tile strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-tile .chip {
    padding: 6px 12px;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

/* ── 3. GLASS CARDS — Global Polish ────────────────────── */

.glass-card {
    position: relative;
    padding: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.08) 50%, transparent 95%);
    pointer-events: none;
}

.glass-card.compact {
    padding: 22px;
}

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

/* Section Head */
.section-head {
    margin-bottom: 20px;
    gap: 14px;
}

.head-icon {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.section-head > div .section-label {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    letter-spacing: 0.16em;
}

.section-head h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.92);
}

.section-head.split h3 {
    font-size: 16px;
}

.section-head.split .btn-icon-small {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-head.split .btn-icon-small:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ── 4. RIOT CONNECTION CARD ────────────────────────────── */

.riot-method-box {
    padding: 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease;
}

.riot-method-box .muted-text {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

.riot-method-box .btn-primary {
    border-radius: 14px;
    min-height: 48px;
}

.onyx-tabs.auth-tabs.compact {
    border-radius: 16px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.onyx-tabs .auth-tab {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 11px;
    transition: all 0.2s ease;
}

.onyx-tabs .auth-tab.active {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Connected State */
.connected-state {
    gap: 20px;
}

.account-badge {
    padding: 18px 20px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.2s ease;
}

.account-badge:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.account-icon {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.5);
}

.riot-account-stats {
    gap: 12px;
}

.riot-account-stat {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.riot-account-stat:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.08);
}

.card-actions .btn-primary {
    border-radius: 14px;
    min-height: 48px;
}

.card-actions .btn-secondary {
    border-radius: 14px;
    min-height: 48px;
}

/* ── 5. ACTIVITY & DIAGNOSTIC FEEDS ────────────────────── */

.activity-feed,
.diagnostic-feed {
    gap: 10px;
}

.activity-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    margin-bottom: 0;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(3px);
    border-color: rgba(255, 255, 255, 0.08);
}

.activity-item.win {
    border-left: 3px solid rgba(34, 197, 94, 0.6);
}

.activity-item.win:hover {
    background: rgba(34, 197, 94, 0.04);
}

.activity-item.loss {
    border-left: 3px solid rgba(239, 68, 68, 0.5);
}

.activity-item.loss:hover {
    background: rgba(239, 68, 68, 0.04);
}

.activity-item strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.activity-item span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.diagnostic-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 0;
    transition: background 0.2s ease;
}

.diagnostic-item:hover {
    background: rgba(255, 255, 255, 0.035);
    transform: none;
}

.diagnostic-item span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
}

.diagnostic-item.success strong { color: #86efac; }
.diagnostic-item.warning strong { color: #fbbf24; }
.diagnostic-item.danger strong  { color: #f87171; }

.badge-dot {
    min-height: 26px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.empty-inline {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.015);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.06);
    line-height: 1.6;
}

/* ── 6. MATCH TRACKER VIEW ────────────────────────────── */

.dashboard-tracker-subview .tracker-shell-panel {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.tracker-inline-toolbar {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 18px;
}

.tracker-inline-status .chip {
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tracker-controls-grid .control-block .control-label {
    color: rgba(255, 255, 255, 0.32);
}

.tracker-controls-grid .text-input,
.tracker-controls-grid .select-input {
    border-radius: 14px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease;
}

.tracker-controls-grid .text-input:focus,
.tracker-controls-grid .select-input:focus {
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.dashboard-tracker-subview .waiting-panel {
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.04), transparent 50%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.dashboard-tracker-subview .waiting-icon {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
}

.dashboard-tracker-subview .team-section {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%);
    transition: border-color 0.2s ease;
}

.dashboard-tracker-subview .team-section:hover {
    border-color: rgba(255, 255, 255, 0.09);
}

.dashboard-tracker-subview .player-card.player-card-vertical {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.dashboard-tracker-subview .player-card.player-card-vertical:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.tracker-complete-banner {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    padding: 20px 22px;
}

.meta-row .chip {
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 10px;
}

/* ── 7. INVENTORY VIEW ─────────────────────────────────── */

.dashboard-inventory-subview .inventory-header {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    overflow: hidden;
}

.dashboard-inventory-subview .inventory-header::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.dashboard-inventory-subview .inventory-header-copy h1 {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-inventory-subview .status-inline-item {
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.dashboard-inventory-subview .status-inline-item:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.1);
}

.dashboard-inventory-subview .inventory-meta-simple {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.dashboard-inventory-subview .insight-item {
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.dashboard-inventory-subview .insight-item:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.1);
}

.dashboard-inventory-subview .compare-box {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-inventory-subview .simplified-toolbar {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.dashboard-inventory-subview .inventory-group {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    transition: border-color 0.2s ease;
}

.dashboard-inventory-subview .inventory-group:hover {
    border-color: rgba(255, 255, 255, 0.09);
}

.dashboard-inventory-subview .skin-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dashboard-inventory-subview .skin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
    border-color: color-mix(in srgb, var(--skin-accent, #dce2ea) 40%, rgba(255, 255, 255, 0.12));
}

.dashboard-inventory-subview .equipped-panel {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.dashboard-inventory-subview .equipped-card {
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.dashboard-inventory-subview .equipped-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
}

.inventory-inline-toolbar {
    padding-bottom: 4px;
}

.inventory-inline-toolbar .chip {
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 10px;
}

.inventory-inline-actions .btn-nav {
    border-radius: 12px;
    min-height: 38px;
    padding: 0 14px;
}

/* ── 8. PLAYERS VIEW ───────────────────────────────────── */

.players-history-panel {
    border-radius: 22px;
}

.players-history-panel .section-head > div h3 {
    font-size: 17px;
}

.players-match-card {
    padding: 22px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    transition: border-color 0.2s ease;
}

.players-match-card:hover {
    border-color: rgba(255, 255, 255, 0.09);
}

.players-match-head h3 {
    font-size: 17px;
    font-weight: 700;
}

.players-match-meta .chip {
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 10px;
}

.players-history-row {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.players-history-row:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
}

.players-history-row.blacklisted {
    border-color: rgba(239, 68, 68, 0.18);
    background: rgba(239, 68, 68, 0.04);
}

.players-history-row.blacklisted:hover {
    background: rgba(239, 68, 68, 0.06);
}

.players-blacklist-btn {
    border-radius: 12px;
    min-height: 34px;
    font-size: 11px;
}

/* ── 9. ACCOUNTS VIEW ──────────────────────────────────── */

.accounts-panel {
    border-radius: 22px;
}

.accounts-panel .section-head > div h3 {
    font-size: 17px;
}

.account-record {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.account-record:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.account-record-copy strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.account-record-copy span {
    color: rgba(255, 255, 255, 0.36);
    font-size: 11px;
}

.account-remove-btn {
    border-radius: 12px;
    min-height: 36px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.account-remove-btn:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.2);
    background: rgba(248, 113, 113, 0.06);
}

/* ── 10. SETTINGS VIEW ─────────────────────────────────── */

.settings-hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

.settings-hero-panel::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.settings-hero-panel .section-head h3 {
    font-size: 17px;
}

.settings-hero-copy .muted-text {
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
    line-height: 1.7;
}

.settings-status-chips .chip {
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 10px;
}

.settings-panel {
    border-radius: 22px;
    transition: border-color 0.2s ease;
}

.settings-panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.settings-panel .section-head h3 {
    font-size: 16px;
}

.settings-grid .control-block .control-label {
    color: rgba(255, 255, 255, 0.32);
}

.settings-grid .select-input {
    border-radius: 14px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.checkbox-row-panel {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox-row-panel span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Plan Cards */
.plan-current-summary {
    padding: 20px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.plan-current-summary strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.plan-card {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.plan-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.plan-card.featured {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.plan-card.featured:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.plan-card-head h4 {
    font-size: 22px;
    letter-spacing: -0.03em;
}

.plan-card .btn-primary {
    border-radius: 14px;
    min-height: 46px;
}

.plan-card .btn-secondary {
    border-radius: 14px;
    min-height: 46px;
}

.plan-feature-list {
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.6;
}

/* Session Info */
.settings-info-row {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.settings-info-row:hover {
    background: rgba(255, 255, 255, 0.035);
}

.settings-info-row span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.settings-info-row strong {
    font-size: 13px;
    font-weight: 700;
}

/* ── 11. QUICK ACTIONS BAR ────────────────────────────── */

.quick-actions-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    color: rgba(255, 255, 255, 0.78);
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.quick-action-btn iconify-icon {
    font-size: 18px;
    opacity: 0.7;
}

.quick-action-btn:hover iconify-icon {
    opacity: 1;
}

/* ── 12. GLOBAL REFINEMENTS ───────────────────────────── */

/* Chip refinements */
.chip.success {
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.chip.subtle {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.06);
}

/* Segmented Control refinements */
.segmented-control {
    border-radius: 14px;
    padding: 4px;
}

.segment {
    border-radius: 11px;
    min-height: 34px;
    padding: 0 14px;
    font-size: 11px;
}

.segment.active {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Loading pills in tracker */
.loading-pill {
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 10px;
}

/* Buttons global */
.btn-primary {
    border-radius: 14px;
    font-size: 12px;
    letter-spacing: 0.06em;
    transition: all 0.22s ease;
}

.btn-secondary {
    border-radius: 14px;
    font-size: 12px;
}

/* ── Responsive Overrides for Refinements ──────────────── */

@media (max-width: 800px) {
    .onyx-sidebar {
        width: 100%;
        height: auto;
        padding: 16px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
    }

    .sidebar-head {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .quick-actions-bar {
        flex-direction: column;
    }

    .quick-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   DASHBOARD PREMIUM POLISH
   Scoped to the dashboard only so the landing page stays intact
   ============================================================ */

.onyx-dashboard-layout {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.035), transparent 26%),
        linear-gradient(180deg, #020202 0%, #050505 48%, #030303 100%);
}

.onyx-sidebar {
    position: relative;
    background:
        linear-gradient(180deg, rgba(15, 15, 15, 0.95), rgba(8, 8, 8, 0.98)),
        rgba(0, 0, 0, 0.96);
    border-right-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset -1px 0 0 rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        18px 0 60px rgba(0, 0, 0, 0.45);
}

.onyx-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%);
    opacity: 0.85;
}

.sidebar-head,
.sidebar-nav,
.sidebar-foot,
.sidebar-user-card {
    position: relative;
    z-index: 1;
}

.sidebar-head {
    padding-bottom: 8px;
}

.brand-mark {
    gap: 14px;
    color: rgba(255, 255, 255, 0.96);
}

.brand-mark svg {
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.18))
        drop-shadow(0 0 24px rgba(255, 255, 255, 0.07));
}

.brand-mark span {
    letter-spacing: -0.035em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand-mark-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.brand-mark-button:hover {
    opacity: 1;
}

.sidebar-user-card {
    position: relative;
    overflow: hidden;
    padding: 17px 18px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 38px rgba(0, 0, 0, 0.25);
}

.sidebar-user-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 55%);
}

.user-card-avatar {
    position: relative;
    overflow: visible;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(125, 149, 187, 0.92), rgba(62, 74, 96, 0.94));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.28);
}

.user-card-avatar::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.025);
}

.user-card-info {
    min-width: 0;
}

.user-card-info strong {
    font-size: 17px;
    line-height: 1.1;
}

#dashboard-hero-license {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-divider {
    height: 1px;
    width: 100%;
    margin: 4px 0 18px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0.95;
}

.sidebar-divider-soft {
    margin: 14px 0 10px;
    opacity: 0.55;
}

.sidebar-nav {
    gap: 8px;
}

.nav-segment {
    display: grid;
    gap: 8px;
}

.nav-segment + .nav-segment {
    margin-top: 6px;
}

.nav-item {
    position: relative;
    gap: 14px;
    padding: 13px 16px 13px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.72);
    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease,
        color 0.24s ease,
        box-shadow 0.24s ease;
}

.nav-item::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.28));
    opacity: 0;
    transform: scaleY(0.55);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-item iconify-icon {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.76);
    transition: transform 0.22s ease, color 0.22s ease, opacity 0.22s ease;
}

.nav-item span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-item:hover {
    transform: translateX(3px);
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-item:hover iconify-icon {
    color: #fff;
    transform: scale(1.05);
}

.nav-item.active {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 16px 28px rgba(0, 0, 0, 0.18);
}

.nav-item.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.nav-item.active iconify-icon {
    color: rgba(255, 255, 255, 0.98);
}

.sidebar-nav .nav-item:disabled {
    cursor: not-allowed;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    transform: none;
    opacity: 1;
}

.sidebar-nav .nav-item:disabled::before {
    opacity: 0;
    transform: scaleY(0.35);
}

.sidebar-nav .nav-item:disabled iconify-icon,
.sidebar-nav .nav-item:disabled .nav-icon,
.sidebar-nav .nav-item:disabled span {
    color: rgba(255, 255, 255, 0.32);
}

.sidebar-nav .nav-item:disabled:hover {
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    transform: none;
}

.sidebar-foot {
    gap: 14px;
    padding-top: 20px;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.server-status-pill {
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.08));
    border-color: rgba(134, 239, 172, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.server-status-pill .status-dot {
    animation: sidebarPulseGlow 2.4s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.45);
}

.onyx-logout-btn {
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid transparent;
    color: rgba(248, 113, 113, 0.92);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.onyx-logout-btn:hover {
    opacity: 1;
    transform: translateX(2px);
    background: rgba(248, 113, 113, 0.06);
    border-color: rgba(248, 113, 113, 0.12);
}

.onyx-dashboard-main {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.onyx-dashboard-main::-webkit-scrollbar {
    width: 12px;
}

.onyx-dashboard-main::-webkit-scrollbar-track {
    background: transparent;
}

.onyx-dashboard-main::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    background-clip: padding-box;
}

.dashboard-top-bar {
    position: relative;
    align-items: flex-start;
    gap: 26px;
    margin-bottom: 34px;
    padding-bottom: 26px;
}

.dashboard-top-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.top-bar-left {
    display: grid;
    gap: 8px;
}

.top-bar-left h1 {
    background: linear-gradient(180deg, #ffffff 12%, rgba(218, 218, 218, 0.78) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

.top-bar-left h1 span {
    color: inherit;
}

.section-label {
    color: rgba(220, 220, 220, 0.58);
    letter-spacing: 0.18em;
}

.top-bar-subtitle {
    max-width: 72ch;
    color: rgba(255, 255, 255, 0.66);
}

.top-bar-actions {
    gap: 12px;
}

.dashboard-content-grid {
    display: grid;
    gap: 22px;
}

.dashboard-stats-row {
    gap: 18px;
}

.stat-tile {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 22px 22px 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 36px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.stat-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 36%);
    opacity: 0.7;
    pointer-events: none;
}

.dashboard-stats-row .stat-tile:nth-child(1) {
    background:
        linear-gradient(160deg, rgba(91, 173, 255, 0.08), rgba(255, 255, 255, 0.02) 52%);
}

.dashboard-stats-row .stat-tile:nth-child(2) {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 48%);
}

.dashboard-stats-row .stat-tile:nth-child(3) {
    background:
        linear-gradient(160deg, rgba(80, 255, 188, 0.08), rgba(255, 255, 255, 0.02) 52%);
}

.dashboard-stats-row .stat-tile:nth-child(4) {
    background:
        linear-gradient(160deg, rgba(193, 171, 255, 0.08), rgba(255, 255, 255, 0.02) 54%);
}

.stat-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 42px rgba(0, 0, 0, 0.24);
}

.stat-tile-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.stat-icon-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-icon-shell iconify-icon {
    font-size: 20px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
}

.stat-tile strong {
    font-size: 28px;
    letter-spacing: -0.04em;
}

.dashboard-quick-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 18px;
}

.quick-actions-copy {
    display: grid;
    gap: 6px;
}

.quick-actions-copy h3 {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.quick-actions-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    color: rgba(255, 255, 255, 0.94);
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.quick-action-btn iconify-icon {
    font-size: 17px;
}

.quick-action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.quick-action-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.dashboard-main-columns {
    gap: 28px;
}

.main-right-col {
    gap: 22px;
}

.onyx-dashboard-main .glass-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(16, 16, 16, 0.82), rgba(10, 10, 10, 0.9));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 20px 50px rgba(0, 0, 0, 0.28);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.onyx-dashboard-main .glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.055), transparent 28%);
    opacity: 0.82;
}

.onyx-dashboard-main .glass-card:hover {
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 22px 54px rgba(0, 0, 0, 0.3);
}

.section-head {
    position: relative;
    z-index: 1;
    gap: 18px;
    margin-bottom: 22px;
}

.section-head.split {
    align-items: center;
}

.head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.section-head h3 {
    letter-spacing: -0.035em;
}

.onyx-tabs.auth-tabs.compact {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.07);
}

.onyx-tabs .auth-tab {
    border: 1px solid transparent;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.onyx-tabs .auth-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.onyx-tabs .auth-tab.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 20px rgba(0, 0, 0, 0.18);
}

.account-badge {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
    border-color: rgba(255, 255, 255, 0.08);
}

.account-icon {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.account-detail-row {
    gap: 10px;
}

.riot-account-stats {
    gap: 16px;
}

.riot-account-stat {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.riot-account-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.activity-feed,
.diagnostic-feed {
    gap: 12px;
}

.activity-item,
.diagnostic-item {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.activity-item::before,
.diagnostic-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.activity-item.win::before,
.diagnostic-item.success::before {
    background: linear-gradient(180deg, rgba(134, 239, 172, 1), rgba(34, 197, 94, 0.55));
}

.activity-item.loss::before,
.diagnostic-item.danger::before {
    background: linear-gradient(180deg, rgba(252, 165, 165, 1), rgba(239, 68, 68, 0.52));
}

.diagnostic-item.warning::before {
    background: linear-gradient(180deg, rgba(253, 224, 71, 1), rgba(234, 179, 8, 0.52));
}

.activity-item:hover,
.diagnostic-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
}

.activity-meta span {
    font-size: 13px;
}

.activity-meta small {
    color: rgba(255, 255, 255, 0.5);
}

.badge-dot {
    min-height: 30px;
    padding-inline: 12px;
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-icon,
.btn-secondary {
    backdrop-filter: blur(14px);
}

.btn-icon:hover,
.btn-secondary:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.dashboard-subview.is-entering {
    animation: none;
}

.pulse-once {
    animation: quickPulseOnce 0.95s ease;
}

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

@keyframes sidebarPulseGlow {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.42);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(134, 239, 172, 0);
    }
}

@keyframes quickPulseOnce {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    35% {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05);
    }
}

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

@media (max-width: 1200px) {
    .dashboard-quick-actions {
        grid-template-columns: 1fr;
    }

    .quick-actions-row {
        justify-content: flex-start;
    }
}

@media (max-width: 800px) {
    .dashboard-quick-actions {
        gap: 16px;
    }

    .quick-actions-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .quick-action-btn {
        width: 100%;
    }

    .dashboard-top-bar {
        padding-bottom: 20px;
        margin-bottom: 26px;
    }
}

/* --- SECTION-SPECIFIC PREMIUM POLISH --- */

/* Inventory Skin Cards & Rarities */
.inventory-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.inventory-groups.inventory-groups-flat {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    align-items: start;
}

.skin-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.skin-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
}

.skin-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--rarity-color, rgba(255,255,255,0.1));
    opacity: 0.6;
}

/* Valorant Rarity Colors */
.skin-card[data-rarity="Select"] { --rarity-color: #5a9fe2; }
.skin-card[data-rarity="Deluxe"] { --rarity-color: #00ca84; }
.skin-card[data-rarity="Premium"] { --rarity-color: #d156ff; }
.skin-card[data-rarity="Ultra"] { --rarity-color: #f7c325; }
.skin-card[data-rarity="Exclusive"] { --rarity-color: #fe8b42; }

.skin-card-img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.skin-card:hover .skin-card-img {
    transform: scale(1.08);
}

.skin-card-name {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-main);
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Match Tracker Map Polish */
.map-thumbnail {
    width: 120px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
}

/* Players History Cards */
.players-match-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.players-match-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.players-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.players-history-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.players-history-row.blacklisted {
    background: rgba(255, 68, 68, 0.05);
    border: 1px dashed rgba(255, 68, 68, 0.2);
}

.player-tag.blacklist {
    display: inline-flex;
    align-items: center;
    background: #ff4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    animation: alertPulse 2s infinite;
}

@keyframes alertPulse {
    0% { opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
    70% { opacity: 1; box-shadow: 0 0 0 6px rgba(255, 68, 68, 0); }
    100% { opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
}

/* Settings Panels refinement */
.settings-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.settings-panel {
    height: 100%;
}

.settings-grid {
    display: grid;
    gap: 20px;
    margin-top: 16px;
}

.settings-grid-two { grid-template-columns: 1fr 1fr; }
.settings-grid-three { grid-template-columns: 1fr 1fr 1fr; }

.checkbox-row-panel {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-row-panel:hover {
    background: rgba(255, 255, 255, 0.06);
}

.remember-login-row {
    margin: 2px 0 16px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.remember-login-row input {
    accent-color: #c0c9d4;
}

/* Players history compact layout */
.players-history-panel {
    display: grid;
    gap: 18px;
}

.players-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.014));
}

.players-search-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    transition: var(--transition);
}

.players-search-shell:focus-within {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.players-search-shell iconify-icon {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.players-search-input {
    border: 0;
    background: transparent;
    padding: 0;
    min-height: auto;
    width: 100%;
}

.players-search-input:focus {
    box-shadow: none;
}

.players-filter-control {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.players-filter-control .segment {
    min-width: 118px;
    justify-content: center;
}

.players-match-card.compact-history {
    gap: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.players-match-summary {
    display: grid;
    gap: 14px;
    cursor: pointer;
    outline: none;
}

.players-match-summary:hover .players-compact-field,
.players-match-summary:focus-visible .players-compact-field {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
}

.players-match-summary:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.players-match-card.compact-history .players-match-head {
    align-items: flex-end;
}

.players-match-card.compact-history .players-match-head h3 {
    font-size: 18px;
    color: #fff;
}

.players-match-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.players-expand-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.players-expand-indicator iconify-icon {
    font-size: 14px;
}

.players-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.players-compact-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.players-compact-label {
    color: rgba(255, 255, 255, 0.46);
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.players-compact-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.players-compact-mono {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    letter-spacing: 0.01em;
}

.players-history-grid.expanded-history {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    gap: 12px;
}

.players-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.95fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.players-history-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.players-history-agent-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.players-history-agent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.players-history-agent-fallback {
    color: rgba(255, 255, 255, 0.85);
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.players-history-copy {
    min-width: 0;
}

.players-history-copy strong,
.players-history-copy span,
.players-history-copy small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.players-history-copy strong {
    font-size: 15px;
    color: #fff;
}

.players-history-copy span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

.players-history-copy small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.players-history-rank {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.players-history-rank-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.players-history-rank-icon-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.players-history-rank-icon,
.players-history-peak-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.players-history-rank-fallback {
    color: rgba(255, 255, 255, 0.68);
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.players-history-rank-copy {
    min-width: 0;
}

.players-history-rank-copy strong,
.players-history-rank-copy span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.players-history-rank-copy strong {
    color: #fff;
    font-size: 14px;
}

.players-history-rank-copy span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.players-history-peak {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.players-history-peak-label {
    color: rgba(255, 255, 255, 0.46);
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.players-history-peak-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.players-history-peak-badge span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 600;
}

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

.players-blacklist-btn {
    min-height: 38px;
    padding-inline: 16px;
}

.player-tag.self {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.12);
    color: #bfdbfe;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.chip.danger {
    background: rgba(255, 68, 68, 0.12);
    color: #ff8f8f;
    border-color: rgba(255, 68, 68, 0.22);
}

@media (max-width: 1100px) {
    .players-toolbar {
        grid-template-columns: 1fr;
    }

    .players-filter-control {
        justify-content: flex-start;
    }

    .players-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .players-history-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .players-filter-control {
        width: 100%;
    }

    .players-filter-control .segment {
        min-width: 0;
        flex: 1 1 0;
    }

    .players-compact-grid {
        grid-template-columns: 1fr;
    }

    .players-match-head-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .players-history-panel {
        gap: 16px;
    }

    .players-toolbar {
        padding: 14px;
    }

    .players-search-shell {
        min-height: 46px;
        padding-inline: 14px;
    }

    .players-match-card.compact-history {
        padding: 16px;
    }
}

/* Final dashboard viewport override */
#screen-dashboard.screen.active {
    padding: 0;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

.dashboard-main-columns {
    grid-template-columns: minmax(0, 1fr);
}

/* Inventory dashboard transparency fix */
.dashboard-inventory-subview .inventory-header,
.dashboard-inventory-subview .inventory-meta-simple,
.dashboard-inventory-subview .simplified-toolbar,
.dashboard-inventory-subview .equipped-panel,
.dashboard-inventory-subview .waiting-panel,
.dashboard-inventory-subview .empty-panel {
    background:
        linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(11, 11, 11, 0.98)) !important;
}

.dashboard-inventory-subview .inventory-header::before,
.dashboard-inventory-subview .inventory-meta-simple::before,
.dashboard-inventory-subview .simplified-toolbar::before,
.dashboard-inventory-subview .equipped-panel::before,
.dashboard-inventory-subview .waiting-panel::before,
.dashboard-inventory-subview .empty-panel::before {
    content: none !important;
    background: none !important;
    mask: none !important;
    -webkit-mask: none !important;
    mask-image: none !important;
}

/* Sidebar avatar polish */
.sidebar-user-card .user-card-avatar {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    overflow: hidden;
}

.sidebar-user-card .user-card-avatar::before {
    border-radius: 999px;
}

.sidebar-user-card .user-card-avatar img,
.sidebar-user-card #nav-username-initials {
    width: 100%;
    height: 100%;
    border-radius: 999px;
}

.sidebar-user-card #nav-username-initials {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user-card .avatar-edit-btn {
    right: 2px;
    bottom: 2px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px) scale(0.92);
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease;
}

.sidebar-user-card:hover .avatar-edit-btn,
.sidebar-user-card:focus-within .avatar-edit-btn,
.sidebar-user-card .avatar-edit-btn:focus-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Instalock Feature Styles */
.instalock-hero-panel {
    margin-bottom: 20px;
}

.instalock-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.instalock-status-card.active {
    background: var(--success-soft);
    border-color: var(--success);
}

.instalock-status-card h4 {
    font-size: 18px;
    margin: 4px 0;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.agent-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.agent-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.agent-card.selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-soft);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.agent-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.agent-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.agent-card:hover .agent-icon {
    transform: scale(1.1);
}

.agent-name {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

.agent-role {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.agent-card-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.05;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
}

.text-input-small {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
    width: 200px;
}

.text-input-small:focus {
    border-color: var(--text-soft);
    background: rgba(255, 255, 255, 0.05);
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-faint);
}

@media (max-width: 600px) {
    .instalock-status-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .status-actions {
        width: 100%;
    }
    
    .status-actions button {
        width: 100%;
    }
}

/* Settings page redesign */
.settings-shell {
    display: grid;
    gap: 22px;
}

.settings-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 6px;
}

.settings-page-copy {
    display: grid;
    gap: 6px;
}

.settings-page-copy h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
}

.settings-page-copy .muted-text {
    margin: 0;
    max-width: 720px;
    color: rgba(216, 224, 236, 0.74);
}

.settings-page-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.settings-tabbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
    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.04);
    width: fit-content;
    max-width: 100%;
}

.settings-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(221, 228, 240, 0.72);
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.settings-tab iconify-icon {
    font-size: 17px;
}

.settings-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.settings-tab.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.settings-tab-panel {
    display: grid;
    gap: 24px;
}

.settings-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.settings-card {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.settings-card-span {
    grid-column: 1 / -1;
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.settings-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.settings-card-header .muted-text {
    margin: 6px 0 0;
}

.settings-profile-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.settings-profile-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, rgba(222, 229, 239, 0.12), rgba(222, 229, 239, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-profile-avatar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.settings-profile-identity {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.settings-profile-identity strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
}

.settings-profile-identity span,
.settings-profile-identity small {
    color: rgba(216, 224, 236, 0.72);
}

.settings-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.settings-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.settings-field > span {
    color: rgba(216, 224, 236, 0.66);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.settings-readonly-input {
    min-width: 0;
    background: rgba(255, 255, 255, 0.022);
    border-color: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    cursor: default;
}

.settings-readonly-input[readonly] {
    opacity: 1;
}

.settings-card-footnote {
    margin: 0;
    color: rgba(216, 224, 236, 0.58);
    font-size: 13px;
}

.settings-preferences-list {
    display: grid;
    gap: 14px;
}

.settings-preference-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 18px;
    align-items: center;
    min-width: 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-preference-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.settings-preference-copy strong {
    color: #fff;
    font-size: 15px;
}

.settings-preference-copy span {
    color: rgba(216, 224, 236, 0.64);
    font-size: 13px;
}

.settings-select {
    width: 100%;
    min-width: 0;
}

.settings-toggle-row {
    cursor: pointer;
}

.settings-toggle-shell {
    position: relative;
    width: 56px;
    height: 32px;
    flex-shrink: 0;
}

.settings-toggle-shell input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.settings-toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.settings-toggle-slider::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    transition: var(--transition);
}

.settings-toggle-shell input:checked + .settings-toggle-slider {
    background: rgba(233, 239, 248, 0.18);
    border-color: rgba(233, 239, 248, 0.28);
}

.settings-toggle-shell input:checked + .settings-toggle-slider::after {
    transform: translateX(24px);
}

.settings-status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.settings-status-banner.success {
    background: rgba(22, 163, 74, 0.09);
    border-color: rgba(34, 197, 94, 0.26);
}

.settings-status-banner iconify-icon {
    flex-shrink: 0;
    font-size: 20px;
    color: #4ade80;
}

.settings-status-banner strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.settings-status-banner span {
    color: rgba(216, 224, 236, 0.72);
    font-size: 13px;
}

.settings-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-plan-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.settings-plan-main {
    display: grid;
    gap: 8px;
    max-width: 720px;
}

.settings-plan-main strong {
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
}

.settings-plan-main .muted-text {
    margin: 0;
}

.settings-plan-pricebox {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    min-width: 220px;
    border-radius: 18px;
    text-align: right;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-plan-pricebox strong {
    color: #fff;
    font-size: 26px;
    line-height: 1;
}

.settings-plan-pricebox span {
    color: rgba(216, 224, 236, 0.72);
    font-size: 13px;
}

.settings-billing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1080px) {
    .settings-layout-grid,
    .settings-billing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .settings-page-header,
    .settings-plan-hero,
    .settings-preference-row,
    .settings-field-grid {
        grid-template-columns: 1fr;
    }

    .settings-page-header,
    .settings-plan-hero {
        display: grid;
        align-items: stretch;
    }

    .settings-tabbar {
        width: 100%;
        overflow-x: auto;
    }

    .settings-tab {
        flex: 1 0 auto;
        justify-content: center;
    }

    .settings-preference-row {
        display: grid;
    }

    .settings-plan-pricebox {
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .settings-card {
        padding: 20px;
        border-radius: 20px;
    }

    .settings-profile-summary {
        align-items: flex-start;
    }

    .settings-profile-identity strong {
        font-size: 20px;
    }

    .settings-tabbar {
        gap: 6px;
        padding: 5px;
    }

    .settings-tab {
        padding-inline: 12px;
        font-size: 13px;
    }
}

/* Billing tab polish */
.settings-tab-panel[data-settings-panel="billing"] .settings-card {
    gap: 20px;
}

.settings-tab-panel[data-settings-panel="billing"] .settings-card-header h3 {
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.settings-tab-panel[data-settings-panel="billing"] .settings-card-header .muted-text {
    max-width: 780px;
}

.settings-plan-hero {
    position: relative;
    overflow: hidden;
    padding: 24px 26px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 40px rgba(0, 0, 0, 0.18);
}

.settings-plan-hero::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6ee7b7, #22c55e);
    opacity: 0.9;
}

.settings-plan-main {
    position: relative;
    z-index: 1;
    gap: 10px;
}

.settings-plan-main strong {
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -0.05em;
}

.settings-plan-main .muted-text {
    max-width: 780px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(219, 226, 238, 0.78);
}

.settings-plan-pricebox {
    position: relative;
    z-index: 1;
    min-width: 250px;
    padding: 22px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.settings-plan-pricebox strong {
    font-size: clamp(36px, 4vw, 46px);
    letter-spacing: -0.05em;
}

.settings-plan-pricebox span {
    font-size: 14px;
    color: rgba(219, 226, 238, 0.72);
}

.settings-billing-grid {
    gap: 18px;
}

.settings-tab-panel[data-settings-panel="billing"] .settings-billing-grid .settings-info-row {
    min-height: 112px;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.014));
}

.settings-tab-panel[data-settings-panel="billing"] .settings-billing-grid .settings-info-row span {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(216, 224, 236, 0.48);
}

.settings-tab-panel[data-settings-panel="billing"] .settings-billing-grid .settings-info-row strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
    text-align: left;
    color: #fff;
}

.settings-plan-panel {
    padding-top: 8px;
}

.settings-plan-panel .plan-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.settings-plan-panel .plan-card {
    position: relative;
    display: grid;
    gap: 18px;
    align-content: start;
    min-height: 100%;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

.settings-plan-panel .plan-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.settings-plan-panel .plan-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.02));
}

.settings-plan-panel .plan-card.active {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(34, 197, 94, 0.1);
}

.settings-plan-panel .plan-card.active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6ee7b7, #22c55e);
}

.settings-plan-panel .plan-card.featured {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.018));
    border-color: rgba(255, 255, 255, 0.08);
}

.settings-plan-panel .plan-card-head {
    align-items: flex-start;
    margin-bottom: 2px;
}

.settings-plan-panel .plan-card-head h4 {
    margin: 6px 0 0;
    font-size: 38px;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #fff;
}

.settings-plan-panel .plan-card .muted-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(219, 226, 238, 0.76);
}

.settings-plan-panel .plan-feature-list {
    display: grid;
    gap: 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.settings-plan-panel .plan-feature-list li {
    position: relative;
    padding-left: 22px;
    color: rgba(235, 239, 246, 0.86);
    font-size: 14px;
}

.settings-plan-panel .plan-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.settings-plan-panel .plan-card .btn-primary,
.settings-plan-panel .plan-card .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    margin-top: auto;
}

@media (max-width: 980px) {
    .settings-plan-panel .plan-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .settings-tab-panel[data-settings-panel="billing"] .settings-card-header h3 {
        font-size: 24px;
    }

    .settings-plan-main strong,
    .settings-plan-pricebox strong,
    .settings-plan-panel .plan-card-head h4 {
        font-size: 30px;
    }
}
