:root {
    --bg-base: #0f0f10;
    --bg-surface: #18181a;
    --bg-surface-2: #1f1f22;
    --bg-surface-3: #27272a;
    --bg-hover: #2d2d31;
    --bg-input: #1a1a1c;

    --border-1: #2a2a2e;
    --border-2: #36363a;
    --border-3: #45454a;

    --text-1: #e8ebf3;
    --text-2: #b8c0d4;
    --text-3: #8891ad;
    --text-4: #5d6685;

    --gold: #647D62;
    --gold-soft: #7A9277;
    --gold-dim: #4F6450;
    --gold-bg: rgba(100, 125, 98, 0.14);
    --gold-border: rgba(100, 125, 98, 0.38);

    --navy: #2b4a8a;
    --navy-light: #3a5fa8;

    --blue: #4a90e2;
    --blue-bg: rgba(74, 144, 226, 0.14);
    --green: #4caf7a;
    --green-bg: rgba(76, 175, 122, 0.14);
    --red: #e15565;
    --red-bg: rgba(225, 85, 101, 0.14);
    --orange: #e89942;
    --orange-bg: rgba(232, 153, 66, 0.14);
    --purple: #9b6fcc;
    --purple-bg: rgba(155, 111, 204, 0.14);
    --discord: #6a78f0;
    --discord-bg: rgba(106, 120, 240, 0.14);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.55);

    --radius-sm: 3px;
    --radius-md: 5px;
    --radius-lg: 7px;
    --radius-xl: 9px;

    --font-stack: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: var(--bg-base);
    color: var(--text-1);
    font-family: var(--font-stack);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--gold-soft);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    display: block;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-3);
}

.dashboard-body {
    background: var(--bg-base);
    color: var(--text-1);
    position: relative;
    z-index: 0;
}

.dashboard-body::before {
    content: '';
    position: fixed;
    bottom: 67px;
    left: 340px;
    width: 420px;
    height: 420px;
    background-image: url('https://fileserver.unturnedroleplay.com/urp-logo-small.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: rotate(10deg);
    transform-origin: center center;
    opacity: 0.067;
    pointer-events: none;
    z-index: -1;
}

.login-body {
    background: var(--bg-base);
    height: 100vh;
    overflow: hidden;
    position: relative;
    color: var(--text-1);
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    z-index: 10;
    padding: 20px;
}

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.steam-icon {
    font-size: 3.4rem;
    color: var(--gold);
    margin-bottom: 18px;
}

.login-header h1 {
    font-size: 1.9rem;
    margin-bottom: 8px;
    color: var(--text-1);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.login-header p {
    color: var(--text-3);
    font-size: 0.95rem;
}

.error-message {
    background: var(--red-bg);
    border: 1px solid var(--red);
    color: var(--red);
    padding: 13px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.steam-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-surface-2);
    color: var(--text-1);
    text-decoration: none;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.18s ease;
    border: 1px solid var(--gold-border);
    width: 100%;
    margin-bottom: 18px;
}

.steam-login-btn:hover {
    background: var(--bg-surface-3);
    border-color: var(--gold);
    color: var(--gold-soft);
}

.login-info {
    text-align: center;
}

.login-info p {
    color: var(--text-3);
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.background-animation {
    display: none;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

.sidebar {
    width: 272px;
    background:
        radial-gradient(120% 55% at 50% 0%, rgba(100, 125, 98, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    border-right: 1px solid var(--border-1);
    color: var(--text-1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 20px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-1);
    letter-spacing: 0.3px;
    min-width: 0;
}

.logo:hover {
    color: var(--text-1);
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-dim) 100%);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 6px 16px rgba(100, 125, 98, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-2);
}

.logo-text strong {
    color: var(--gold-soft);
    font-weight: 800;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: none;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.user-info {
    margin: 2px 14px 6px;
    padding: 11px 13px;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    background: var(--bg-surface-2);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.user-avatar {
    position: relative;
    flex-shrink: 0;
    margin: 0;
}

.user-avatar img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-2);
    object-fit: cover;
    object-position: center;
}

.user-status-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--bg-surface-2);
}

.user-details {
    min-width: 0;
    flex: 1;
}

.user-details h3 {
    font-size: 0.92rem;
    margin: 0 0 2px;
    color: var(--text-1);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-3);
    font-size: 0.72rem;
    font-weight: 500;
}

.user-role-badge i {
    font-size: 0.5rem;
    color: var(--green);
}

.sidebar-presence {
    margin: 0 0 10px;
    padding: 11px 13px;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    background: var(--bg-surface-2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.presence-label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-4);
    cursor: pointer;
    text-align: left;
    transition: color 0.15s ease;
}

.presence-label:hover {
    color: var(--text-2);
}

.presence-label-text {
    flex: 1;
    min-width: 0;
}

.presence-label #presenceCount {
    color: var(--text-1);
    font-weight: 800;
}

.presence-chevron {
    font-size: 0.6rem;
    color: var(--text-4);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sidebar-presence.collapsed .presence-chevron {
    transform: rotate(-90deg);
}

.sidebar-presence.collapsed .presence-list {
    display: none;
}

.sidebar-presence.collapsed {
    gap: 0;
}

.presence-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: ticketsPulse 1.8s ease-out infinite;
}

.sidebar-presence.is-empty .presence-dot {
    background: var(--text-4);
    animation: none;
}

.presence-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 190px;
    overflow-y: auto;
}

.sidebar-presence.is-empty .presence-list {
    display: none;
}

.presence-list::-webkit-scrollbar {
    width: 5px;
}

.presence-list::-webkit-scrollbar-thumb {
    background: var(--border-2);
    border-radius: 6px;
}

.presence-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.presence-item:hover {
    background: var(--bg-hover);
}

.presence-item-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-surface-3);
    box-shadow: 0 0 0 2px rgba(76, 175, 122, 0.4);
}

.presence-item-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-menu {
    flex: 1;
    list-style: none;
    padding: 8px 12px 14px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--border-2);
    border-radius: 6px;
}

.sidebar-menu li {
    margin-bottom: 1px;
}

.sidebar-menu li.sidebar-section-label {
    list-style: none;
    padding: 15px 12px 6px;
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 1.3px;
    cursor: default;
    user-select: none;
    pointer-events: none;
}

.sidebar-menu li.sidebar-section-label:first-child {
    padding-top: 4px;
}

.sidebar-menu li.sidebar-section-label + li {
    margin-top: 0;
}

.sidebar-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-2);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.sidebar-menu li.active > a {
    color: var(--gold-soft);
    background: var(--gold-bg);
}

.sidebar-menu li.active > a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--gold-soft);
}

.sidebar-menu i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    color: var(--text-3);
    transition: color 0.15s ease;
}

.sidebar-menu li.active > a i,
.sidebar-menu a:hover i {
    color: var(--gold-soft);
}

.dropdown-toggle {
    justify-content: space-between !important;
    position: relative;
    cursor: pointer;
}

.dropdown-icon {
    transition: transform 0.25s ease;
    font-size: 0.65rem;
    margin-left: auto;
    color: var(--text-4) !important;
}

.dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
    color: var(--gold-soft) !important;
}

.dropdown-content {
    display: none;
    flex-direction: column;
    gap: 1px;
    background: transparent;
    margin: 2px 0 4px 26px;
    padding-left: 12px;
    border-left: 1px solid var(--border-2);
    overflow: hidden;
}

.dropdown-content.show {
    display: flex;
}

.dropdown-content a {
    padding: 8px 12px !important;
    color: var(--text-3) !important;
    font-size: 0.82rem;
    font-weight: 500;
    background: none !important;
    transition: background 0.15s ease, color 0.15s ease;
    gap: 11px;
    border-radius: var(--radius-sm) !important;
}

.dropdown-content a:hover {
    background: var(--bg-hover) !important;
    color: var(--text-1) !important;
}

.dropdown-content a.active-sub {
    background: var(--gold-bg) !important;
    color: var(--gold-soft) !important;
}

.dropdown-content a i {
    width: 15px;
    text-align: center;
    font-size: 0.78rem;
    color: inherit !important;
}

.dropdown-item.active > .dropdown-toggle {
    color: var(--gold-soft);
}

.sidebar-footer {
    padding: 12px 14px 16px;
    border-top: 1px solid var(--border-1);
    margin-top: auto;
}

.sidebar-footer form {
    margin: 0;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    color: var(--text-2);
    text-decoration: none;
    padding: 10px 13px;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    border: 1px solid var(--border-1);
    background: var(--bg-surface-2);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.logout-btn i {
    color: var(--red);
    width: 18px;
    text-align: center;
    transition: color 0.15s ease;
}

.logout-btn:hover {
    background: var(--red-bg);
    border-color: var(--red);
    color: var(--red);
}

.main-content {
    flex: 1;
    margin-left: 270px;
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-1);
    padding: 14px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-1);
    cursor: pointer;
}

.top-bar h1 {
    color: var(--text-1);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-1);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.15s ease;
    -webkit-user-select: none;
    user-select: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.user-dropdown:hover {
    background: var(--bg-hover);
    border-color: var(--border-1);
}

.user-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--gold-border);
    object-fit: cover;
}

.user-dropdown #userChevron {
    transition: transform 0.2s;
    font-size: 10px;
    color: var(--text-3);
}

.user-dropdown.open #userChevron {
    transform: rotate(180deg);
}

.user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    overflow: hidden;
    padding: 5px 0;
}

.user-menu.open {
    display: block;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: background 0.12s;
}

.user-menu-item i {
    width: 15px;
    text-align: center;
    color: var(--text-3);
    font-size: 12px;
}

.user-menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.user-menu-item:hover i {
    color: var(--gold-soft);
}

.user-menu-divider {
    height: 1px;
    background: var(--border-1);
    margin: 4px 0;
}

.user-menu-logout {
    color: var(--red);
}

.user-menu-logout i {
    color: var(--red);
}

.user-menu-logout:hover {
    background: var(--red-bg);
    color: var(--red);
}

.user-menu-logout:hover i {
    color: var(--red);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.notif-bell {
    position: relative;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 1rem;
    border: 1px solid transparent;
}

.notif-bell:hover {
    background: var(--bg-hover);
    color: var(--gold-soft);
    border-color: var(--border-1);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
}

.notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 440px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    overflow: hidden;
    flex-direction: column;
}

.notif-panel.open {
    display: flex;
}

.notif-panel-header {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    flex-shrink: 0;
}

.notif-mark-all {
    background: none;
    border: none;
    color: var(--gold-soft);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.notif-mark-all:hover {
    color: var(--gold);
    text-decoration: underline;
}

.notif-panel-body {
    overflow-y: auto;
    flex: 1;
    max-height: 380px;
}

.notif-empty {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-4);
    font-size: 13px;
}

.notif-panel-footer {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-soft);
    text-decoration: none;
    border-top: 1px solid var(--border-1);
    flex-shrink: 0;
}

.notif-panel-footer:hover {
    background: var(--bg-hover);
    color: var(--gold);
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-1);
    cursor: pointer;
    transition: background 0.12s;
}

.notif-item:hover {
    background: var(--bg-hover);
}

.notif-item.unread {
    background: var(--gold-bg);
    border-left: 2px solid var(--gold);
}

.notif-item.unread:hover {
    background: rgba(201, 164, 73, 0.18);
}

.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-desc {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-time {
    font-size: 10px;
    color: var(--text-4);
    margin-top: 3px;
}

.dashboard-content {
    padding: 28px 32px;
    flex: 1;
}

.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: var(--gold);
}

.page-subtitle {
    color: var(--text-3);
    font-size: 0.85rem;
    margin: 4px 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 3px;
}

.stat-info p {
    color: var(--text-3);
    font-size: 0.82rem;
}

.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    margin-bottom: 22px;
    overflow: hidden;
}

.card-header {
    background: var(--bg-surface-2);
    color: var(--text-1);
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-1);
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-1);
}

.card-header h2 i {
    color: var(--gold);
    font-size: 0.95rem;
}

.card-content {
    padding: 22px;
    color: var(--text-2);
}

.card-content p,
.card-content span,
.card-content div,
.card-content td,
.card-content li {
    color: inherit;
}

.profile-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: start;
}

.profile-image img {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-md);
    border: 2px solid var(--gold-border);
    object-fit: cover;
}

.profile-table {
    width: 100%;
    color: var(--text-2);
}

.profile-table tr {
    border-bottom: 1px solid var(--border-1);
}

.profile-table tr:last-child {
    border-bottom: none;
}

.profile-table td {
    padding: 11px 0;
    vertical-align: top;
    color: var(--text-2);
}

.profile-table td:first-child {
    width: 150px;
    color: var(--text-3);
    font-weight: 600;
    font-size: 0.85rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-1);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gold-bg);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    color: var(--text-1);
    font-weight: 500;
    margin-bottom: 3px;
    font-size: 0.88rem;
}

.activity-time {
    color: var(--text-3);
    font-size: 0.78rem;
}

.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin: 2px;
    color: #fff;
}

.role-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    margin: 2px;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-2);
    color: var(--text-1);
}

.role-badge-modern .role-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.role-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 18px;
    margin: 10px 0;
    border-left: 3px solid var(--gold);
    transition: all 0.18s ease;
}

.role-card:hover {
    border-color: var(--gold-border);
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 92%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: var(--bg-surface-2);
    color: var(--text-1);
    padding: 18px 26px;
    border-bottom: 1px solid var(--border-1);
    position: relative;
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-1);
}

.modal-title i {
    color: var(--gold);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: var(--text-2);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-surface-2);
    flex-shrink: 0;
}

.role-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    margin: 8px 0;
    background: var(--bg-surface-2);
    transition: all 0.2s ease;
}

.role-item:hover {
    border-color: var(--gold-border);
    background: var(--bg-surface-3);
}

.role-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-name {
    font-weight: 600;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
}

.role-details {
    font-size: 11px;
    color: var(--text-3);
}

.role-actions {
    display: flex;
    gap: 8px;
}

.btn-assign,
.btn-remove {
    padding: 7px 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-assign {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green);
}

.btn-assign:hover {
    background: var(--green);
    color: #fff;
}

.btn-remove {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red);
}

.btn-remove:hover {
    background: var(--red);
    color: #fff;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.18s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.88rem;
    background: var(--bg-surface-2);
    color: var(--text-1);
}

.btn-primary {
    background: var(--gold);
    color: #0e1525;
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-soft);
    border-color: var(--gold-soft);
    color: #0e1525;
}

.btn-secondary {
    background: var(--bg-surface-2);
    color: var(--text-1);
    border-color: var(--border-2);
}

.btn-secondary:hover {
    background: var(--bg-surface-3);
    border-color: var(--border-3);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 5px;
}

.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-body {
    background: var(--bg-base);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-1);
    padding: 20px;
}

.error-container {
    text-align: center;
    color: var(--text-1);
    max-width: 560px;
}

.error-icon {
    font-size: 4.5rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.error-content h1 {
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--gold);
    letter-spacing: 2px;
}

.error-content h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-1);
    font-weight: 700;
}

.error-content p {
    font-size: 1rem;
    color: var(--text-3);
    margin-bottom: 26px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-detail-box {
    margin: 18px 0;
    padding: 14px;
    background: var(--red-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--red);
    text-align: left;
}

.error-detail-box h4 {
    color: var(--red);
    margin-bottom: 8px;
    font-size: 13px;
}

.error-detail-box small {
    color: var(--red);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    word-break: break-all;
    font-size: 12px;
}

.table-responsive {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-1);
}

.users-table th,
.users-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-1);
    color: var(--text-2);
}

.users-table th {
    background: var(--bg-surface-2);
    font-weight: 700;
    color: var(--text-3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.users-table tr:hover {
    background: var(--bg-hover);
}

.users-table tr:last-child td {
    border-bottom: none;
}

.welcome-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin-bottom: 22px;
}

.welcome-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.welcome-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--gold-border);
    object-fit: cover;
}

.welcome-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
}

.welcome-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 6px;
}

.welcome-text h1 span {
    color: var(--gold-soft);
}

.welcome-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.welcome-meta span {
    font-size: 12px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.welcome-meta i {
    font-size: 11px;
    color: var(--gold);
}

.welcome-meta a {
    color: var(--text-3) !important;
    text-decoration: none;
}

.welcome-meta a:hover {
    color: var(--gold-soft) !important;
}

.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.db-stat {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.db-stat:hover {
    border-color: var(--gold-border);
    transform: translateY(-2px);
}

.db-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--gold) !important;
    background: var(--gold-bg) !important;
    border: 1px solid var(--gold-border);
    flex-shrink: 0;
}

.db-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1;
}

.db-stat-label {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

#recentActivity .activity-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-1);
    transition: background 0.15s;
}

#recentActivity .activity-item:last-child {
    border-bottom: none;
}

#recentActivity .activity-item:hover {
    background: var(--bg-hover);
}

#recentActivity .activity-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--gold) !important;
    background: var(--gold-bg) !important;
    border: 1px solid var(--gold-border);
    flex-shrink: 0;
}

#recentActivity .activity-content p {
    font-size: 12px;
    color: var(--text-1);
    font-weight: 500;
    margin: 0 0 2px;
}

#recentActivity .activity-time {
    font-size: 10px;
    color: var(--text-4);
}

.blurred-location {
    filter: blur(5px);
    cursor: pointer;
    transition: filter 0.25s ease;
    border-radius: 3px;
    user-select: none;
}

.blurred-location:hover,
.blurred-location.revealed {
    filter: blur(0);
}

.dashboard-twocol {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.dashboard-side-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-1);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.18s;
}

.quick-link:hover {
    background: var(--bg-surface-3);
    border-color: var(--gold-border);
    color: var(--gold-soft);
}

.quick-link i {
    color: var(--gold);
    width: 16px;
    text-align: center;
}

.account-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

.account-info-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-info-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-4);
    letter-spacing: 0.6px;
}

.account-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
}

.account-info-value.mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-2);
}

.account-info-divider {
    border-top: 1px solid var(--border-1);
    padding-top: 12px;
}

.um-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.um-table thead tr {
    background: var(--bg-surface-2);
}

.um-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-2);
    white-space: nowrap;
}

.um-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-1);
    font-size: 13px;
    color: var(--text-2);
    vertical-align: middle;
}

.um-table tbody tr:last-child td {
    border-bottom: none;
}

.um-row {
    transition: background 0.12s;
}

.um-row:hover {
    background: var(--bg-hover);
}

.um-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.um-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-2);
    flex-shrink: 0;
}

.um-username {
    font-weight: 600;
    color: var(--text-1);
    font-size: 13px;
}

.um-subtext {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 1px;
}

.um-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-3);
}

.um-empty {
    font-style: italic;
    color: var(--text-4);
    font-size: 12px;
}

.um-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-2);
    color: var(--text-1);
}

.um-role-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.um-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.um-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--gold-bg);
    color: var(--gold);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid var(--gold-border);
    transition: all 0.15s;
}

.um-profile-btn:hover {
    background: var(--gold);
    color: #0e1525;
}

.um-hdr-search {
    padding: 8px 12px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-1);
    background: var(--bg-input);
    width: 220px;
    transition: all 0.2s;
}

.um-hdr-search::placeholder {
    color: var(--text-4);
}

.um-hdr-search:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-surface-2);
}

.um-hdr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.um-hdr-btn.search-btn {
    background: var(--gold);
    color: #0e1525;
    border-color: var(--gold);
}

.um-hdr-btn.search-btn:hover {
    background: var(--gold-soft);
}

.um-hdr-btn.clear-btn {
    background: var(--bg-surface-2);
    color: var(--text-2);
    border-color: var(--border-2);
}

.um-hdr-btn.clear-btn:hover {
    background: var(--bg-surface-3);
}

.um-hdr-btn.add-btn {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green);
}

.um-hdr-btn.add-btn:hover {
    background: var(--green);
    color: #fff;
}

.um-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-1);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}

.um-page-btn:hover {
    background: var(--bg-surface-3);
    color: var(--gold-soft);
}

.um-page-info {
    font-size: 13px;
    color: var(--text-3);
}

.um-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-1);
}

.um-mw,
.sp-mw {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.18s;
}

.um-mw.show,
.sp-mw.show {
    opacity: 1;
    display: flex;
}

.um-m,
.sp-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    max-width: 580px;
    width: 92%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.94) translateY(12px);
    transition: transform 0.22s;
}

.um-mw.show .um-m,
.sp-mw.show .sp-modal {
    transform: scale(1) translateY(0);
}

.um-mhdr,
.sp-mhdr {
    background: var(--bg-surface-2);
    color: var(--text-1);
    padding: 17px 22px;
    border-bottom: 1px solid var(--border-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.um-mhdr h3,
.sp-mhdr h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
}

.um-mhdr h3 i,
.sp-mhdr h3 i {
    color: var(--gold);
}

.um-mx,
.sp-mx {
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
    flex-shrink: 0;
}

.um-mx:hover,
.sp-mx:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.um-mbd,
.sp-mbody {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    color: var(--text-2);
}

.um-mft,
.sp-mfoot {
    padding: 14px 22px;
    border-top: 1px solid var(--border-1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--bg-surface-2);
    flex-shrink: 0;
}

.um-fg,
.sp-fg {
    margin-bottom: 14px;
}

.um-fg label,
.sp-fg label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
}

.um-fg label i,
.sp-fg label i {
    margin-right: 4px;
}

.um-fg label small,
.sp-fg label small {
    color: var(--text-4);
    font-weight: 400;
    margin-left: 4px;
}

.um-inp,
.sp-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-1);
    background: var(--bg-input);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.um-inp:focus,
.sp-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-bg);
}

.um-inp.mono,
.sp-input.mono,
input.mono,
.mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.um-bpri,
.sp-btn-pri {
    padding: 9px 18px;
    background: var(--gold);
    color: #0e1525;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.um-bpri:hover,
.sp-btn-pri:hover {
    background: var(--gold-soft);
}

.um-bsec,
.sp-btn-sec {
    padding: 9px 16px;
    background: var(--bg-surface-3);
    color: var(--text-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.um-bsec:hover,
.sp-btn-sec:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.um-toast,
.sp-toast,
.st-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    z-index: 20000;
    transform: translateX(420px);
    transition: transform 0.3s;
    box-shadow: var(--shadow-md);
    min-width: 220px;
}

.um-toast.show,
.sp-toast.show,
.st-toast.show {
    transform: translateX(0);
}

.um-toast.success,
.sp-toast.ok,
.st-toast.success {
    background: var(--green);
}

.um-toast.error,
.sp-toast.err,
.st-toast.error {
    background: var(--red);
}

.sp-back-row {
    margin-bottom: 14px;
}

.sp-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-3);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.sp-back:hover {
    background: var(--bg-hover);
    color: var(--gold-soft);
}

.sp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 22px 26px;
    margin-bottom: 0;
}

.sp-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.sp-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-border);
    flex-shrink: 0;
}

.sp-header-info {
    min-width: 0;
}

.sp-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-1);
}

.sp-realname {
    margin: 2px 0 6px;
    font-size: 12px;
    color: var(--text-3);
}

.sp-roles-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.sp-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-2);
    color: var(--text-1);
}

.sp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.sp-muted {
    color: var(--text-4) !important;
}

.sp-header-right {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid var(--border-2);
    background: var(--bg-surface-2);
    color: var(--text-1);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.sp-btn:hover {
    background: var(--bg-surface-3);
    border-color: var(--gold-border);
    color: var(--gold-soft);
}

.sp-btn-dark {
    background: var(--bg-surface-3);
}

.sp-btn-amber {
    background: var(--gold-bg);
    color: var(--gold);
    border-color: var(--gold-border);
}

.sp-btn-amber:hover {
    background: var(--gold);
    color: #0e1525;
}

.sp-btn-blue {
    background: var(--blue-bg);
    color: var(--blue);
    border-color: var(--blue);
}

.sp-btn-blue:hover {
    background: var(--blue);
    color: #fff;
}

.sp-btn-purple {
    background: var(--purple-bg);
    color: var(--purple);
    border-color: var(--purple);
}

.sp-btn-purple:hover {
    background: var(--purple);
    color: #fff;
}

.sp-btn-red {
    background: var(--red-bg);
    color: var(--red);
    border-color: var(--red);
}

.sp-btn-red:hover {
    background: var(--red);
    color: #fff;
}

.sp-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-top: none;
    border-bottom: none;
    padding: 0 18px;
    overflow-x: auto;
}

.sp-tab {
    padding: 12px 18px;
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.sp-tab:hover {
    color: var(--text-1);
}

.sp-tab.active {
    color: var(--gold-soft);
    border-bottom-color: var(--gold);
}

.sp-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 22px;
    margin-bottom: 22px;
}

.sp-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sp-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sp-card-title {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-1);
    background: var(--bg-surface-3);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-card-title i {
    color: var(--gold);
}

.sp-detail-grid {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-1);
    gap: 12px;
}

.sp-detail:last-child {
    border-bottom: none;
}

.sp-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sp-detail-value {
    font-size: 12px;
    color: var(--text-1);
    text-align: right;
}

.sp-activity {
    padding: 8px 16px;
    max-height: 320px;
    overflow-y: auto;
}

.sp-act-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-1);
}

.sp-act-row:last-child {
    border-bottom: none;
}

.sp-act-icon {
    font-size: 14px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sp-act-info {
    flex: 1;
    min-width: 0;
}

.sp-act-label {
    display: block;
    font-size: 12px;
    color: var(--text-1);
    font-weight: 600;
}

.sp-act-sub {
    display: block;
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
}

.sp-act-time {
    font-size: 10px;
    color: var(--text-4);
    flex-shrink: 0;
}

.sp-tbl-wrap {
    overflow-x: auto;
}

.sp-tbl {
    width: 100%;
    border-collapse: collapse;
}

.sp-tbl thead tr {
    background: var(--bg-surface-3);
}

.sp-tbl th {
    padding: 10px 14px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-2);
    white-space: nowrap;
}

.sp-tbl td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-1);
    font-size: 12px;
    color: var(--text-2);
    vertical-align: middle;
}

.sp-tbl tbody tr:last-child td {
    border-bottom: none;
}

.sp-tbl tbody tr:hover {
    background: var(--bg-hover);
}

.sp-nowrap {
    white-space: nowrap;
}

.sp-badge-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--green-bg);
    color: var(--green);
    font-size: 10px;
}

.sp-badge-fail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--red-bg);
    color: var(--red);
    font-size: 10px;
}

.sp-status-badge,
.sp-src-badge,
.sp-sev-badge {
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.sp-status-badge.open {
    background: var(--blue-bg);
    color: var(--blue);
}

.sp-status-badge.closed {
    background: var(--green-bg);
    color: var(--green);
}

.sp-src-badge.nylex {
    background: var(--purple-bg);
    color: var(--purple);
}

.sp-src-badge.police {
    background: var(--orange-bg);
    color: var(--orange);
}

.sev-info {
    background: var(--blue-bg);
    color: var(--blue);
}

.sev-warn {
    background: var(--orange-bg);
    color: var(--orange);
}

.sev-high {
    background: var(--red-bg);
    color: var(--red);
}

.sp-empty {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-4);
}

.sp-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    opacity: 0.4;
    color: var(--gold);
}

.sp-mask {
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sp-mask-hide {
    color: var(--text-4);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 1px;
}

.sp-mask-show {
    display: none;
    font-size: 12px;
    color: var(--text-1);
}

.sp-mask:hover .sp-mask-hide {
    display: none;
}

.sp-mask:hover .sp-mask-show {
    display: inline;
}

.sp-sensitive-warn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 9px 14px;
    background: var(--orange-bg);
    border: 1px solid var(--orange);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--orange);
}

.sp-audit-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.sp-audit-desc {
    max-width: 320px;
    font-size: 12px;
    color: var(--text-2);
    word-wrap: break-word;
    white-space: normal;
}

.sp-audit-target {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.sp-audit-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-2);
    flex-shrink: 0;
}

.sp-role-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 13px;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    margin-bottom: 7px;
    background: var(--bg-surface-2);
    transition: border-color 0.15s;
}

.sp-role-row:hover {
    border-color: var(--gold-border);
}

.sp-role-nm {
    font-weight: 600;
    color: var(--text-1);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.sp-role-meta {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
}

.sp-role-btn {
    padding: 5px 13px;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.15s;
}

.sp-role-btn.add {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green);
}

.sp-role-btn.add:hover {
    background: var(--green);
    color: #fff;
}

.sp-role-btn.rem {
    background: var(--red-bg);
    color: var(--red);
    border-color: var(--red);
}

.sp-role-btn.rem:hover {
    background: var(--red);
    color: #fff;
}

.st-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.st-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.st-field small {
    font-size: 11px;
    color: var(--text-4);
}

.st-input-wrap {
    position: relative;
}

.st-inp {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-1);
    background: var(--bg-input);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.st-inp:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-bg);
}

.st-readonly {
    background: var(--bg-surface-2);
    color: var(--text-3);
    cursor: not-allowed;
}

.st-lock {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-4);
    font-size: 12px;
}

select.st-inp,
select.um-inp,
select.sp-input {
    padding-right: 12px;
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

select.st-inp option,
select.um-inp option,
select.sp-input option {
    background: var(--bg-surface);
    color: var(--text-1);
}

.st-sec-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-1);
}

.st-sec-row:last-of-type {
    border-bottom: none;
}

.st-sec-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: var(--gold-bg);
    color: var(--gold);
    border: 1px solid var(--gold-border);
}

.st-sec-text-main {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
}

.st-sec-text-sub {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 1px;
}

.st-sec-text-sub.success {
    color: var(--green);
}

.np-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.np-btn-blue {
    background: var(--gold);
    color: #0e1525;
    border-color: var(--gold);
}

.np-btn-blue:hover {
    background: var(--gold-soft);
}

.np-btn-grey {
    background: var(--bg-surface-2);
    color: var(--text-2);
    border-color: var(--border-2);
}

.np-btn-grey:hover {
    background: var(--bg-surface-3);
    color: var(--text-1);
}

.np-filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    background: var(--bg-surface-2);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.np-filter-btn:hover {
    background: var(--bg-surface-3);
}

.np-filter-btn.active {
    background: var(--gold);
    color: #0e1525;
    border-color: var(--gold);
}

.np-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-1);
    transition: background 0.12s;
}

.np-item:last-child {
    border-bottom: none;
}

.np-item:hover {
    background: var(--bg-hover);
}

.np-item.unread {
    background: var(--gold-bg);
    border-left: 3px solid var(--gold);
}

.np-item.unread:hover {
    background: rgba(201, 164, 73, 0.18);
}

.np-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.np-body {
    flex: 1;
    min-width: 0;
}

.np-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 2px;
}

.np-message {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
    margin-bottom: 4px;
}

.np-time {
    font-size: 11px;
    color: var(--text-4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.np-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.np-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-2);
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    background: var(--bg-surface-2);
    color: var(--text-2);
    transition: all 0.15s;
}

.np-action-btn:hover {
    background: var(--gold);
    color: #0e1525;
    border-color: var(--gold);
}

.np-item.np-hidden {
    display: none;
}

.player-page-layout {
    display: flex;
    gap: 20px;
    width: 100%;
}

.player-page-layout > .content-card {
    flex: 1;
    min-width: 0;
}

.profile-nav-vertical {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 2px;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    position: relative;
}

.profile-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.profile-nav-item.active {
    background: var(--gold-bg);
    color: var(--gold-soft);
}

.profile-nav-item i {
    width: 16px;
    text-align: center;
    color: var(--text-3);
}

.profile-nav-item.active i {
    color: var(--gold);
}

.nav-badge {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
}

.nav-badge.active-badge {
    background: var(--red);
    color: #fff;
}

.nav-badge.expired-badge {
    background: var(--bg-surface-3);
    color: var(--text-3);
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.alert-info {
    background: var(--blue-bg);
    border: 1px solid var(--blue);
    color: var(--text-1);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-info i {
    color: var(--blue);
    font-size: 1.1rem;
}

.alert-warning {
    background: var(--orange-bg);
    border: 1px solid var(--orange);
    color: var(--text-1);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-warning i {
    color: var(--orange);
}

.alert-danger {
    background: var(--red-bg);
    border: 1px solid var(--red);
    color: var(--text-1);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger i {
    color: var(--red);
}

.alert-success {
    background: var(--green-bg);
    border: 1px solid var(--green);
    color: var(--text-1);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success i {
    color: var(--green);
}

.alert-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 3px;
    color: var(--text-1);
}

.alert-subtitle {
    font-size: 0.85rem;
    color: var(--text-2);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 500;
    z-index: 10001;
    transform: translateX(420px);
    transition: transform 0.2s ease;
    min-width: 250px;
    box-shadow: var(--shadow-md);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--green);
}

.notification.error {
    background: var(--red);
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-3);
    font-size: 14px;
}

.loading-spinner i {
    font-size: 22px;
    margin-bottom: 10px;
    display: block;
    color: var(--gold);
}

.action-btn {
    transition: all 0.15s ease !important;
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.18s;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-bg);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-4);
}

textarea {
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

label {
    color: var(--text-2);
}

table {
    border-collapse: collapse;
}

th {
    color: var(--text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 11px;
    text-align: left;
}

code,
pre,
.mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

pre {
    background: var(--bg-input);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--text-2);
    font-size: 12px;
    overflow-x: auto;
}

code {
    background: var(--bg-input);
    color: var(--gold-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

hr {
    border: 0;
    border-top: 1px solid var(--border-1);
    margin: 18px 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-1);
    font-weight: 600;
    line-height: 1.3;
}

p {
    color: var(--text-2);
    line-height: 1.55;
}

small {
    color: var(--text-3);
    font-size: 0.8rem;
}

.text-muted {
    color: var(--text-3) !important;
}

.text-faded {
    color: var(--text-4) !important;
}

.text-gold {
    color: var(--gold-soft) !important;
}

.text-success {
    color: var(--green) !important;
}

.text-danger {
    color: var(--red) !important;
}

.text-warning {
    color: var(--orange) !important;
}

.text-info {
    color: var(--blue) !important;
}

.bg-surface {
    background: var(--bg-surface) !important;
}

.bg-surface-2 {
    background: var(--bg-surface-2) !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: 8px;
}

.gap-md {
    gap: 14px;
}

.gap-lg {
    gap: 20px;
}

.mb-sm {
    margin-bottom: 8px;
}

.mb-md {
    margin-bottom: 16px;
}

.mb-lg {
    margin-bottom: 22px;
}

.mt-sm {
    margin-top: 8px;
}

.mt-md {
    margin-top: 16px;
}

.mt-lg {
    margin-top: 22px;
}

.full-width {
    width: 100%;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.flex-wrap {
    flex-wrap: wrap;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-auto-220 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.grid-auto-250 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.field-card {
    background: var(--bg-surface-2);
    padding: 18px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
    border: 1px solid var(--border-1);
    border-left: 3px solid var(--gold);
}

.field-card h4 {
    margin: 0 0 8px;
    color: var(--text-3);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.field-card p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-1);
    font-weight: 600;
}

.quick-action-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    color: var(--text-1);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 11px;
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    background: var(--bg-surface-3);
    border-color: var(--gold-border);
}

.quick-action-card i {
    font-size: 1.1rem;
    color: var(--gold);
}

.quick-action-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-1);
}

.quick-action-sub {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-top: 2px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-3);
}

.empty-state i {
    font-size: 2.8rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 14px;
    color: var(--gold);
}

.empty-state h3 {
    margin: 0 0 6px;
    color: var(--text-1);
    font-size: 1.05rem;
}

.empty-state p {
    margin: 0;
    font-size: 13px;
    color: var(--text-3);
}

.divider {
    height: 1px;
    background: var(--border-1);
    margin: 18px 0;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}

.badge-blue {
    background: var(--blue-bg);
    color: var(--blue);
}

.badge-green {
    background: var(--green-bg);
    color: var(--green);
}

.badge-red {
    background: var(--red-bg);
    color: var(--red);
}

.badge-orange {
    background: var(--orange-bg);
    color: var(--orange);
}

.badge-gold {
    background: var(--gold-bg);
    color: var(--gold-soft);
}

.badge-purple {
    background: var(--purple-bg);
    color: var(--purple);
}

.staff-rank-pill {
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    display: inline-block;
}

.player-info-block {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-1);
}

.player-info-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 2px solid var(--gold-border);
    object-fit: cover;
    flex-shrink: 0;
}

.player-info-name {
    margin: 0;
    color: var(--text-1);
    font-size: 1.5rem;
    font-weight: 700;
}

.player-info-sub {
    margin: 5px 0 0 0;
    color: var(--text-3);
    font-size: 0.9rem;
}

.player-action-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.player-action-card.danger {
    background: var(--red-bg);
    color: var(--red);
    border-color: var(--red);
}

.player-action-card.warning {
    background: var(--orange-bg);
    color: var(--orange);
    border-color: var(--orange);
}

.player-action-card.muted {
    background: var(--bg-surface-3);
    color: var(--text-2);
    border-color: var(--border-2);
}

.player-action-card:hover {
    transform: translateY(-2px);
}

.player-action-card i {
    font-size: 1.2rem;
}

.player-action-title {
    font-weight: 600;
}

.player-action-sub {
    font-size: 0.8rem;
    opacity: 0.85;
}

.bug-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 14px;
    transition: all 0.15s;
    border-left: 3px solid var(--gold);
}

.bug-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-1px);
}

.bug-card.high {
    border-left-color: var(--red);
}

.bug-card.medium {
    border-left-color: var(--orange);
}

.bug-card.low {
    border-left-color: var(--blue);
}

.bug-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 6px;
}

.bug-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--text-3);
}

.bug-card-desc {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 8px;
    line-height: 1.5;
}

.ticket-msg {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 10px;
}

.ticket-msg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-1);
}

.ticket-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-2);
}

.ticket-msg-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
}

.ticket-msg-time {
    font-size: 11px;
    color: var(--text-4);
    margin-left: auto;
}

.ticket-msg-body {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
}

.chat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-surface-2);
    color: var(--text-2);
    border: 1px solid var(--border-2);
}

.evidence-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: all 0.15s;
    border-left: 3px solid var(--gold);
}

.evidence-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-2px);
}

.search-bar-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.search-input {
    flex: 1;
    min-width: 220px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-bg);
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.permission-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 16px;
}

.permission-card h4 {
    color: var(--text-1);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.permission-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.permission-item input[type="checkbox"] {
    accent-color: var(--gold);
}

@media (max-width: 1024px) {
    .dashboard-twocol {
        grid-template-columns: 1fr;
    }

    .sp-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 240px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .sidebar-toggle {
        display: block;
    }

    .stats-grid,
    .db-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .login-card {
        margin: 16px;
        padding: 26px 22px;
    }

    .top-bar {
        padding: 12px 16px;
    }

    .top-bar h1 {
        font-size: 1rem;
    }

    .stat-info h3 {
        font-size: 1.1rem;
    }

    .profile-table td {
        padding: 6px 0;
        font-size: 0.78rem;
    }

    .profile-table td:first-child {
        width: 95px;
    }

    .user-avatar img {
        width: 50px;
        height: 50px;
    }

    .user-details h3 {
        font-size: 0.9rem;
    }

    .user-details p {
        font-size: 0.72rem;
    }

    .dropdown-content a {
        padding: 7px 12px !important;
        font-size: 0.82rem !important;
        gap: 11px;
    }

    .dropdown-content a i {
        width: 14px;
        font-size: 0.8rem;
    }

    .modal-title {
        font-size: 1rem;
    }

    .users-table th,
    .users-table td {
        padding: 9px 8px;
        font-size: 12px;
    }

    .dashboard-content {
        padding: 18px 16px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .card-content {
        padding: 16px;
    }

    .card-header {
        padding: 12px 16px;
    }

    .modal-content,
    .um-m,
    .sp-modal {
        width: 95%;
        max-height: 92vh;
    }

    .modal-header,
    .um-mhdr,
    .sp-mhdr {
        padding: 14px 18px;
    }

    .modal-body,
    .um-mbd,
    .sp-mbody {
        padding: 18px;
    }

    .modal-footer,
    .um-mft,
    .sp-mfoot {
        padding: 12px 18px;
    }

    .role-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .role-actions {
        align-self: stretch;
        justify-content: space-between;
    }

    .welcome-banner {
        flex-direction: column;
        text-align: center;
    }

    .welcome-meta {
        justify-content: center;
    }

    .notif-panel {
        width: 92vw;
        right: -8px;
    }

    .player-page-layout {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .sp-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sp-header-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .sp-tabs {
        padding: 0 4px;
    }

    .sp-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .notification,
    .um-toast,
    .sp-toast,
    .st-toast {
        right: 10px;
        left: 10px;
        min-width: 0;
        transform: translateY(-120px);
    }

    .notification.show,
    .um-toast.show,
    .sp-toast.show,
    .st-toast.show {
        transform: translateY(0);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h2 {
    flex: 0 1 auto;
}

.card-header > div {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.card-header form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.card-content > div:has(table) {
    overflow-x: auto;
}

.user-roles-cell > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.um-role-badge > span:first-child {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.card-content > div:last-of-type {
    padding: 0;
}

.dashboard-content > div:first-child:has(h1) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-content > div:first-child > div:has(h1) h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-content > div:first-child > div:has(h1) h1 i {
    color: var(--gold);
}

.dashboard-content > div:first-child > div:has(h1) p {
    color: var(--text-3);
    font-size: 0.85rem;
    margin: 4px 0 0;
}

.dashboard-content > div:first-child > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
}

.dashboard-content > div:first-child > a:hover {
    background: var(--bg-surface-3);
    color: var(--gold-soft);
    border-color: var(--gold-border);
}

.um-table th:last-child,
.um-table td:last-child {
    text-align: center;
    width: 1%;
}

.um-table td:nth-child(5),
.um-table td:nth-child(6) {
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
}

.dashboard-content > .content-card .card-content > div:has(.um-pagination),
.dashboard-content > .content-card .card-content > div:not(:has(table)):not(.empty-state):has(span):has(a.um-page-btn) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-1);
}

.card-content > div:not(.empty-state):not(:has(table)):last-child:has(.um-page-btn) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-1);
}

.card-content > div:has(> .um-page-btn) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-1);
}

.card-content > div:has(.um-page-btn) span {
    font-size: 13px;
    color: var(--text-3);
}

.empty-state-container,
.card-content > div:has(.fa-user-slash),
.card-content > div:has(.fa-bell-slash) {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-3);
}

.card-content > div:has(> .fa-user-slash) i,
.card-content > div:has(> .fa-bell-slash) i {
    font-size: 2.8rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 14px;
    color: var(--gold);
}

.card-content > div:has(> .fa-user-slash) h3,
.card-content > div:has(> .fa-bell-slash) h3 {
    margin: 0 0 8px;
    color: var(--text-1);
}

.card-content > div:has(> .fa-user-slash) p,
.card-content > div:has(> .fa-bell-slash) p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-3);
}

.card-content > div:has(> .fa-user-slash) a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--gold);
    color: #0e1525;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.um-fg input + small,
.sp-fg input + small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-4);
}

.um-fg label span,
.sp-fg label span {
    color: var(--red);
}

.sp-detail-value mono,
.sp-detail-value.mono,
span.mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.btn,
.um-bpri,
.um-bsec,
.sp-btn-pri,
.sp-btn-sec,
.np-btn,
.um-hdr-btn,
.sp-btn,
.np-action-btn,
.um-profile-btn,
.um-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sidebar-menu .dropdown-content div {
    padding: 6px 11px 5px;
    color: var(--text-4);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    border-bottom: 1px solid var(--border-1);
    margin-bottom: 3px;
}

.sidebar-menu .dropdown-toggle > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.dropdown-content > div:first-child,
.dropdown-content > div:not(:has(a)) {
    padding: 6px 11px 5px;
    color: var(--text-4);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    border-bottom: 1px solid var(--border-1);
    margin-bottom: 3px;
}

.sp-panel .sp-columns {
    margin-bottom: 0;
}

.welcome-text {
    flex: 1;
    min-width: 0;
}

.dashboard-content > div:has(> .welcome-banner) ~ div {
    margin-top: 22px;
}

.profile-section h2,
.profile-section h3 {
    color: var(--text-1);
    margin-bottom: 14px;
}

.profile-section h3 {
    font-size: 1.05rem;
}

.profile-section table {
    width: 100%;
    border-collapse: collapse;
}

.profile-section table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-1);
    color: var(--text-2);
    font-size: 13px;
}

.profile-section table td:first-child {
    color: var(--text-3);
    font-weight: 600;
    width: 150px;
}

.profile-section table tr:last-child td {
    border-bottom: none;
}

.profile-section .field-card,
.profile-section .player-info-block {
    margin-bottom: 14px;
}

.profile-section > div:has(.field-card) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.profile-section > div:has(.player-action-card) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.sidebar-menu .dropdown-item .dropdown-toggle.active {
    color: var(--gold-soft);
}

.dashboard-content {
    color: var(--text-1);
}

.dashboard-content > div:not(.content-card):not(.dashboard-twocol):not(.welcome-banner):not(.db-stats-grid):not(.stats-grid) {
    color: var(--text-1);
}

.notif-panel,
.user-menu {
    color: var(--text-1);
}

.content-card .card-header h2 {
    color: var(--text-1);
}

.card-content h3,
.card-content h4,
.card-content h5 {
    color: var(--text-1);
}

input[readonly] {
    background: var(--bg-surface-2);
    color: var(--text-3);
    cursor: not-allowed;
}

.player-page-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 22px;
    align-items: start;
}

.player-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: sticky;
    top: 84px;
    box-shadow: var(--shadow-md);
}

.player-sidebar-header {
    position: relative;
    padding: 24px 18px 20px;
    border-bottom: 1px solid var(--border-1);
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(100, 125, 98, 0.16) 0%, transparent 65%),
        linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
}

.player-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 13px;
}

.player-avatar {
    width: 104px;
    height: 104px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--border-2);
    background: var(--bg-surface-3);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.player-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.player-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
    line-height: 1.25;
    word-break: break-word;
    letter-spacing: 0.2px;
}

.player-steam-id {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 3px 9px;
    background: var(--bg-input);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-3);
    margin: 2px 0 0;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.3px;
    word-break: break-all;
}

.staff-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    padding: 4px 12px;
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.staff-badge::before {
    content: '\f3ed';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
}

.player-sidebar-nav {
    padding: 10px 10px 12px;
}

.player-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.player-nav-menu .nav-item {
    list-style: none;
}

.player-nav-menu .nav-divider {
    height: 1px;
    background: var(--border-1);
    margin: 9px 8px;
    list-style: none;
}

.player-nav-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-2);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.player-nav-menu .nav-link i {
    width: 18px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
    transition: color 0.15s;
}

.player-nav-menu .nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.player-nav-menu .nav-link:hover i {
    color: var(--gold-soft);
}

.player-nav-menu .nav-item.active .nav-link {
    background: var(--gold-bg);
    color: var(--gold-soft);
    font-weight: 600;
}

.player-nav-menu .nav-item.active .nav-link::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--gold-soft);
}

.player-nav-menu .nav-item.active .nav-link i {
    color: var(--gold-soft);
}

.player-nav-menu .nav-link span {
    flex: 1;
}

.player-nav-menu .nav-badges {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.player-nav-menu .nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
}

.player-nav-menu .nav-badge.active-badge {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(225, 85, 101, 0.4);
}

.player-nav-menu .nav-badge.expired-badge {
    background: var(--bg-surface-3);
    color: var(--text-3);
    border: 1px solid var(--border-2);
}

.player-nav-menu .nav-badge.perm-badge {
    min-width: 18px;
    background: var(--red);
    color: #fff;
    border: 1px solid var(--red);
    box-shadow: 0 0 0 3px var(--red-bg);
}

.player-nav-menu .nav-item.perm-ban-item .nav-link {
    color: var(--red);
}

.player-nav-menu .nav-item.perm-ban-item .nav-link i {
    color: var(--red);
}

.player-nav-menu .nav-item.perm-ban-item.active .nav-link {
    background: var(--red-bg);
}

.player-nav-menu .nav-item.perm-ban-item.active .nav-link::before {
    background: var(--red);
}

.player-nav-menu .nav-badge.wipe-badge {
    background: var(--bg-surface-3);
    color: var(--text-2);
    border: 1px solid var(--border-2);
}

.player-nav-menu .nav-badge.parole-badge {
    min-width: 18px;
    text-align: center;
    background: var(--orange);
    color: #fff;
    border: 1px solid var(--orange);
    box-shadow: 0 0 0 3px var(--orange-bg);
}

.player-nav-menu .nav-item.parole-item .nav-link {
    color: var(--orange);
}

.player-nav-menu .nav-item.parole-item .nav-link i {
    color: var(--orange);
}

.player-nav-menu .nav-item.parole-item.active .nav-link {
    background: var(--orange-bg);
}

.player-nav-menu .nav-item.parole-item.active .nav-link::before {
    background: var(--orange);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.input-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.2px;
}

.input-group .required {
    color: #f87171;
    margin-left: 2px;
}

.modern-input,
input.modern-input,
select.modern-input,
textarea.modern-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.modern-input:focus,
input.modern-input:focus,
select.modern-input:focus,
textarea.modern-input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-surface-2);
}

.modern-input::placeholder,
input.modern-input::placeholder,
textarea.modern-input::placeholder {
    color: var(--text-4);
}

textarea.modern-input {
    min-height: 90px;
    resize: vertical;
}

select.modern-input {
    cursor: pointer;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--bg-surface-2);
    border: 1px dashed var(--border-3);
    border-radius: 4px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.file-label:hover {
    background: var(--bg-hover);
    border-color: var(--gold-border);
    color: var(--gold-soft);
}

.upload-progress-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 18, 0.78);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.upload-progress-modal.active,
.upload-progress-modal[style*="flex"] {
    display: flex;
}

.upload-progress-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: 7px;
    padding: 32px;
    width: min(90vw, 480px);
    text-align: center;
    color: var(--text-1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.upload-progress-content h2 {
    margin: 12px 0 6px;
    font-size: 18px;
    color: var(--text-1);
}

.upload-progress-content p {
    color: var(--text-3);
    font-size: 13px;
    margin: 0;
}

.upload-progress-content .fa-cloud-upload-alt {
    font-size: 36px;
    color: var(--gold);
}

.dashboard-content > div:not([class]) > h1:first-child,
.dashboard-content > div:not([class]) > h1:first-child + p {
    display: block;
}

.dashboard-content > div:not([class]):has(> h1) {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

.dashboard-content > div:not([class]) > h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-1);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-content > div:not([class]) > h1 i {
    color: var(--gold);
    font-size: 18px;
}

.dashboard-content > div:not([class]) > p {
    color: var(--text-3);
    font-size: 13px;
    margin: 0;
}

.card-content > div:not([class]):has(> .input-group + .input-group) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.card-content > form > div:not([class]):has(> .content-card) {
    display: grid;
    gap: 18px;
}

form > div:not([class]):has(> .content-card) {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card-content [style*="#f8f9fa"],
.card-content [style*="background:#f8f9fa"],
.card-content [style*="background: #f8f9fa"] {
    background: var(--bg-surface-2) !important;
    color: var(--text-1) !important;
    border: 1px solid var(--border-1) !important;
}

[style*="background:white"],
[style*="background: white"] {
    background: var(--bg-surface-2) !important;
}

[style*="color:#000"],
[style*="color: #000"],
[style*="color:black"],
[style*="color: black"] {
    color: var(--text-1) !important;
}

.dashboard-content > div:not([class]):has(> div > .fa-ticket-alt),
.dashboard-content > div:not([class]):has(> div > .fa-envelope-open),
.dashboard-content > div:not([class]):has(> div > .fa-calendar-day),
.dashboard-content > div:not([class]):has(> div > .fa-server) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.dashboard-content > div:not([class]):has(> div > .fa-ticket-alt) > div,
.dashboard-content > div:not([class]):has(> div > .fa-envelope-open) > div,
.dashboard-content > div:not([class]):has(> div > .fa-calendar-day) > div,
.dashboard-content > div:not([class]):has(> div > .fa-server) > div {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-content > div:not([class]):has(> div > .fa-ticket-alt) > div > div:first-child,
.dashboard-content > div:not([class]):has(> div > .fa-envelope-open) > div > div:first-child,
.dashboard-content > div:not([class]):has(> div > .fa-calendar-day) > div > div:first-child,
.dashboard-content > div:not([class]):has(> div > .fa-server) > div > div:first-child {
    width: 42px;
    height: 42px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 16px;
    flex-shrink: 0;
}

.dashboard-content > div:not([class]):has(> div > .fa-ticket-alt) > div > div:last-child > div:first-child,
.dashboard-content > div:not([class]):has(> div > .fa-envelope-open) > div > div:last-child > div:first-child,
.dashboard-content > div:not([class]):has(> div > .fa-calendar-day) > div > div:last-child > div:first-child,
.dashboard-content > div:not([class]):has(> div > .fa-server) > div > div:last-child > div:first-child {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.1;
}

.dashboard-content > div:not([class]):has(> div > .fa-ticket-alt) > div > div:last-child > div:last-child,
.dashboard-content > div:not([class]):has(> div > .fa-envelope-open) > div > div:last-child > div:last-child,
.dashboard-content > div:not([class]):has(> div > .fa-calendar-day) > div > div:last-child > div:last-child,
.dashboard-content > div:not([class]):has(> div > .fa-server) > div > div:last-child > div:last-child {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

.dashboard-content > main > div:not([class]):has(> .content-card),
.dashboard-content > div:not([class]):has(> .content-card + .content-card) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 1100px) {
    .dashboard-content > div:not([class]):has(> .content-card + .content-card) {
        grid-template-columns: 1fr;
    }
}

.player-page-layout > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.player-page-layout > div:nth-child(2) > div:not(.content-card):has(> .fa-shield-alt) {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    border-radius: 5px;
    padding: 14px 18px;
    color: var(--gold-soft);
}

.player-page-layout > div:nth-child(2) > div:not(.content-card):has(> .fa-shield-alt) > .fa-shield-alt {
    font-size: 22px;
    color: var(--gold);
}

.player-page-layout > div:nth-child(2) > div:not(.content-card):has(> .fa-exclamation-circle) {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 5px;
    padding: 14px 18px;
    color: #fca5a5;
}

.player-page-layout > div:nth-child(2) > div:not(.content-card):has(> .fa-exclamation-circle) > .fa-exclamation-circle {
    font-size: 22px;
    color: #f87171;
}

.player-page-layout .content-card .card-content > div:not([class]):has(> div > div + div) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 22px;
}

.player-page-layout .content-card .card-content > div:not([class]) > div:not([class]):has(> div + div) > div:first-child {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-3);
    margin-bottom: 4px;
}

.player-page-layout .content-card .card-content > div:not([class]) > div:not([class]):has(> div + div) > div:last-child {
    color: var(--text-1);
    font-size: 13.5px;
}

.player-page-layout .content-card .card-content:has(> .fa-check-circle) {
    text-align: center;
    padding: 36px 24px;
}

.player-page-layout .content-card .card-content > .fa-check-circle {
    font-size: 42px;
    color: #34d399;
    display: block;
    margin-bottom: 14px;
}

.player-page-layout .content-card .card-content > h3 {
    color: var(--text-1);
    font-size: 17px;
    margin: 0 0 6px;
    font-weight: 600;
}

.player-page-layout .content-card .card-content > p {
    color: var(--text-3);
    font-size: 13.5px;
    margin: 0 0 18px;
}

.player-page-layout .content-card .card-content > button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--gold);
    color: #0a1020;
    border: 1px solid var(--gold);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.player-page-layout .content-card .card-content > button:hover {
    background: var(--gold-soft);
}

.player-page-layout .content-card .card-content > div:not([class]):has(> button) {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.player-page-layout .content-card .card-content button:not(.tab-btn) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--bg-surface-3);
    color: var(--text-1);
    border: 1px solid var(--border-2);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.player-page-layout .content-card .card-content button:not(.tab-btn):hover {
    background: var(--bg-hover);
    border-color: var(--gold-border);
}

@media (max-width: 980px) {
    .player-page-layout {
        grid-template-columns: 1fr;
    }
    .player-sidebar {
        position: relative;
        top: 0;
    }
}

.bug-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.bug-form-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bug-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: 6px;
}

.bug-form-required p {
    margin: 0;
    color: var(--text-3);
    font-size: 12.5px;
}

.bug-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold);
    color: #0a1020;
    border: 1px solid var(--gold);
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, transform 0.05s;
}

.btn-primary:hover {
    background: var(--gold-soft);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: var(--bg-surface-2);
    color: var(--text-1);
    border: 1px solid var(--border-2);
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--gold-border);
}

#mapCard .card-header h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    width: 100%;
}

#mapCard .card-header h3 > span:last-child {
    background: var(--bg-surface-3);
    color: var(--text-3);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#mapContainer {
    position: relative;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 5px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
    margin-bottom: 14px;
}

#mapContainer img {
    max-width: 100%;
    max-height: 480px;
    display: block;
}

#mapContainer img[src=""],
#mapContainer img:not([src]) {
    display: none;
}

#mapContainer:not(:has(img[src]:not([src=""])))::before {
    content: "Select a server to view the map";
    color: var(--text-4);
    font-size: 13px;
    font-style: italic;
}

#mapMarker {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
    pointer-events: none;
    display: none;
}

#mapMarker.visible {
    display: block;
}

#mapCard .card-content > div:not([id]):has(#mapCoords) {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#mapCoords {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 4px;
    padding: 8px 12px;
    color: var(--text-2);
    font-size: 13px;
}

#mapCoords button {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#mapCoords button:hover {
    background: rgba(239, 68, 68, 0.2);
}

#mapPrompt {
    color: var(--text-3);
    font-size: 12.5px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

#mapPrompt i {
    color: var(--gold);
}

#filePreview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

#filePreview:empty {
    display: none;
}

#filePreview > div {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 4px;
    padding: 8px 12px;
    color: var(--text-2);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label > span:not(.required) {
    color: var(--text-4);
    font-weight: 400;
    font-size: 11.5px;
    margin-left: 4px;
}

.tickets-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.tickets-stat {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.tickets-stat-icon {
    width: 42px;
    height: 42px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 16px;
    flex-shrink: 0;
}

.tickets-stat-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tickets-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.1;
}

.tickets-stat-label {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tickets-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
    margin-bottom: 22px;
}

@media (max-width: 1100px) {
    .tickets-two-col {
        grid-template-columns: 1fr;
    }
}

.top-closers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-closer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 5px;
    transition: background 0.15s, border-color 0.15s;
}

.top-closer:hover {
    background: var(--bg-hover);
    border-color: var(--border-2);
}

.top-closer.top-1 {
    background: var(--gold-bg);
    border-color: var(--gold-border);
}

.top-closer-rank {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.top-closer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-2);
    flex-shrink: 0;
}

.top-closer.top-1 .top-closer-avatar {
    border-color: var(--gold);
}

.top-closer-body {
    flex: 1;
    min-width: 0;
}

.top-closer-name {
    color: var(--text-1);
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-closer-count {
    color: var(--text-3);
    font-size: 12px;
    margin-top: 2px;
}

.top-closer .fa-crown {
    color: var(--gold);
    font-size: 14px;
}

.by-type-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.by-type-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    align-items: center;
}

.by-type-label {
    font-size: 13px;
    color: var(--text-1);
    font-weight: 500;
}

.by-type-count {
    color: var(--text-3);
    font-size: 12.5px;
    font-weight: 600;
}

.by-type-bar {
    grid-column: 1 / -1;
    height: 6px;
    background: var(--bg-surface-3);
    border-radius: 3px;
    overflow: hidden;
}

.by-type-bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
}

.by-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.by-server-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 5px;
    padding: 12px 14px;
    text-align: center;
}

.by-server-name {
    font-size: 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.by-server-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
}

.page-header {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-1);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h1 i {
    color: var(--gold);
    font-size: 18px;
}

.page-header p {
    color: var(--text-3);
    font-size: 13px;
    margin: 0;
}

.tickets-three-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 22px;
    align-items: start;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.data-table thead th {
    text-align: left;
    padding: 9px 12px;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-1);
    background: var(--bg-surface-2);
}

.data-table thead th:first-child {
    border-top-left-radius: 4px;
}

.data-table thead th:last-child {
    border-top-right-radius: 4px;
}

.data-table tbody td {
    padding: 10px 12px;
    color: var(--text-1);
    border-bottom: 1px solid var(--border-1);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover td {
    background: var(--bg-hover);
}

.mono {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--text-2);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.badge i {
    font-size: 8px;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.32);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.32);
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.32);
}

.badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.32);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.32);
}

.empty-state {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
    font-style: italic;
}

.rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
    font-size: 11px;
    font-weight: 700;
}

.status-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-breakdown-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 4px;
}

.status-breakdown-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-3);
    flex-shrink: 0;
}

.status-dot.status-open {
    background: #f87171;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.status-dot.status-closed {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-dot.status-pending {
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.status-breakdown-name {
    color: var(--text-1);
    font-size: 13px;
    text-transform: capitalize;
    font-weight: 500;
}

.status-breakdown-count {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
}

.status-breakdown-pct {
    color: var(--gold-soft);
    font-size: 13px;
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}

.player-main-area {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.staff-notice,
.danger-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 5px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.staff-notice {
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
}

.staff-notice > i {
    font-size: 22px;
    color: var(--gold);
}

.staff-notice-title,
.danger-notice-title {
    font-weight: 600;
    color: var(--text-1);
    font-size: 14px;
    margin-bottom: 2px;
}

.staff-notice-meta {
    font-size: 12.5px;
    color: var(--gold-soft);
}

.danger-notice {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.danger-notice > i {
    font-size: 22px;
    color: #f87171;
}

.danger-notice-meta {
    font-size: 12.5px;
    color: #fca5a5;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.detail-row-full {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-3);
    margin-bottom: 4px;
}

.detail-value {
    color: var(--text-1);
    font-size: 13.5px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-value-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-2);
}

.text-muted {
    color: var(--text-3);
}

.action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, border-color 0.15s;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.55);
    color: #fecaca;
}

.card-content-centered {
    text-align: center;
    padding: 40px 24px;
}

.card-content-centered > h3 {
    color: var(--text-1);
    font-size: 17px;
    margin: 14px 0 6px;
    font-weight: 600;
}

.card-content-centered > p {
    color: var(--text-3);
    font-size: 13.5px;
    margin: 0 0 18px;
}

.status-icon-success {
    font-size: 42px;
    color: #34d399;
    display: block;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 18, 0.72);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: 7px;
    width: min(92vw, 540px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-1);
    background: var(--bg-surface-2);
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
}

.modal-header h3 i {
    color: var(--gold);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-3);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    color: var(--text-1);
    font-size: 13.5px;
    line-height: 1.55;
}

.modal-body p {
    margin: 0 0 10px;
    color: var(--text-2);
}

.modal-body strong {
    color: var(--text-1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-1);
    background: var(--bg-surface-2);
}

.modal-player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 5px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.modal-player-avatar {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-2);
}

.modal-player-name {
    color: var(--text-1);
    font-weight: 600;
    font-size: 14px;
}

.modal-player-id {
    color: var(--text-3);
    font-size: 11.5px;
    margin-top: 2px;
}

.label-hint {
    color: var(--text-4);
    font-weight: 400;
    font-size: 11.5px;
}

.input-hint {
    color: var(--text-4);
    font-size: 11.5px;
    font-style: italic;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.upload-progress-head {
    text-align: center;
    margin-bottom: 22px;
}

.upload-progress-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--gold);
    font-size: 26px;
}

.upload-progress-bar-section {
    margin-bottom: 14px;
}

.upload-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-2);
}

.upload-progress-row span:last-child {
    color: var(--gold-soft);
    font-weight: 700;
}

.upload-progress-track {
    height: 8px;
    background: var(--bg-surface-3);
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
    border-radius: 4px;
    transition: width 0.2s ease-out;
}

.upload-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-3);
}

.card-content table img,
.player-page-layout table img,
.modal-content table img,
.data-table img {
    max-width: 32px;
    max-height: 32px;
    object-fit: cover;
}

.mod-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mod-avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-2);
    background: var(--bg-surface-3);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.stat-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-left: 3px solid var(--gold);
    border-radius: 5px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card.stat-danger {
    border-left-color: #ef4444;
}

.stat-card.stat-warning {
    border-left-color: #f59e0b;
}

.stat-card.stat-info {
    border-left-color: #3b82f6;
}

.stat-card.stat-success {
    border-left-color: #10b981;
}

.stat-card.stat-muted {
    border-left-color: var(--text-4);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.1;
}

.stat-card.stat-danger .stat-value { color: #f87171; }
.stat-card.stat-warning .stat-value { color: #fbbf24; }
.stat-card.stat-info .stat-value { color: #93c5fd; }
.stat-card.stat-success .stat-value { color: #6ee7b7; }
.stat-card.stat-muted .stat-value { color: var(--text-2); }

.stat-label {
    font-size: 11.5px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.tab-bar {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-1);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-3);
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--text-1);
}

.tab-btn.active {
    color: var(--gold-soft);
    border-bottom-color: var(--gold);
}

.tab-btn i {
    font-size: 12px;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 5px;
    background: var(--bg-surface-3);
    color: var(--text-2);
    font-size: 11px;
    font-weight: 700;
}

.tab-count.danger {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.tab-count.muted {
    background: var(--bg-surface-3);
    color: var(--text-3);
}

.tab-panel.hidden {
    display: none;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-1);
    border-radius: 5px;
    background: var(--bg-surface);
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-wrap thead th {
    text-align: left;
    padding: 10px 14px;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-1);
    white-space: nowrap;
}

.table-wrap tbody td {
    padding: 10px 14px;
    color: var(--text-1);
    border-bottom: 1px solid var(--border-1);
    vertical-align: middle;
}

.table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.table-wrap tbody tr:hover td {
    background: var(--bg-hover);
}

.reason-cell {
    max-width: 280px;
    color: var(--text-2);
    line-height: 1.45;
    word-break: break-word;
}

.badge-danger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.32);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-warning {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.32);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-muted {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--bg-surface-3);
    color: var(--text-3);
    border: 1px solid var(--border-2);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-success {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.32);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-danger i,
.badge-warning i,
.badge-muted i,
.badge-success i {
    font-size: 8px;
}

.alert-warning,
.alert-danger,
.alert-info,
.alert-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.45;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.30);
    color: #fcd34d;
}

.alert-warning > i {
    font-size: 18px;
    color: #fbbf24;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.30);
    color: #fca5a5;
}

.alert-danger > i {
    font-size: 18px;
    color: #f87171;
}

.alert-danger > div strong,
.alert-warning > div strong {
    display: block;
    color: var(--text-1);
    font-weight: 600;
    margin-bottom: 2px;
}

.alert-danger > div span,
.alert-warning > div span {
    font-size: 12.5px;
    opacity: 0.85;
}

.staff-notice strong {
    color: var(--text-1);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.staff-notice span {
    font-size: 12.5px;
    color: var(--gold-soft);
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.family-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 5px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.family-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.family-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-2);
    background: var(--bg-surface-3);
    flex-shrink: 0;
}

.family-card-info {
    min-width: 0;
    flex: 1;
}

.family-name {
    color: var(--text-1);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.family-steam {
    color: var(--text-3);
    font-size: 11.5px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    margin-top: 2px;
}

.family-card-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: 4px;
    padding: 10px 12px;
}

.family-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
}

.family-detail .detail-label {
    color: var(--text-3);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    margin: 0;
    font-size: 12px;
}

.family-detail .detail-value {
    color: var(--text-1);
    font-size: 12.5px;
    text-align: right;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.family-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.family-btn:hover {
    background: var(--gold);
    color: #0a1020;
}

.unavailable-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.unavailable-card {
    text-align: center;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    padding: 36px 32px;
    max-width: 480px;
}

.unavailable-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 26px;
    margin: 0 auto 16px;
}

.unavailable-card h3 {
    color: var(--text-1);
    font-size: 17px;
    margin: 0 0 8px;
    font-weight: 600;
}

.unavailable-card p {
    color: var(--text-3);
    font-size: 13.5px;
    margin: 0;
    line-height: 1.55;
}

.profile-nav-vertical {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 4px;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.profile-nav-item i {
    width: 16px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
    transition: color 0.15s;
}

.profile-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.profile-nav-item:hover i {
    color: var(--gold-soft);
}

.profile-nav-item.active {
    background: var(--gold-bg);
    color: var(--gold-soft);
    font-weight: 600;
}

.profile-nav-item.active i {
    color: var(--gold);
}

.profile-nav-item span {
    flex: 1;
}

.profile-nav-item .nav-badge {
    margin-left: auto;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.player-profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 5px;
    margin-bottom: 18px;
}

.player-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid var(--gold-border);
    background: var(--bg-surface-3);
    flex-shrink: 0;
}

.player-profile-info {
    flex: 1;
    min-width: 0;
}

.player-profile-info h2 {
    margin: 0 0 4px;
    color: var(--text-1);
    font-size: 18px;
    font-weight: 600;
}

.player-profile-info p {
    margin: 0;
    color: var(--text-3);
    font-size: 12.5px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.player-profile-rank {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.info-cell {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 5px;
    padding: 12px 14px;
}

.info-cell h4 {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-3);
}

.info-cell p {
    margin: 0;
    color: var(--text-1);
    font-size: 13.5px;
    line-height: 1.45;
    word-break: break-word;
}

.info-cell .mono {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12.5px;
}

.quick-actions-section {
    margin-top: 18px;
}

.quick-actions-section h3 {
    margin: 0 0 12px;
    color: var(--text-1);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-actions-section h3 i {
    color: var(--gold);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.join-settings-section {
    margin-top: 18px;
}

.join-settings-section h3 {
    margin: 0 0 12px;
    color: var(--text-1);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.join-settings-section h3 i {
    color: var(--gold);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-lg, 8px);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-badge.status-on {
    background: var(--green-bg);
    border-color: var(--green);
    color: var(--green);
}

.status-badge.status-off {
    background: var(--red-bg);
    border-color: var(--red);
    color: var(--red);
}

.status-badge.status-unknown {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-2, #9aa0a6);
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 5px;
    color: var(--text-1);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.quick-action:hover {
    background: var(--bg-hover);
    border-color: var(--gold-border);
}

.quick-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--bg-surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 14px;
    flex-shrink: 0;
}

.quick-action-text {
    min-width: 0;
}

.quick-action-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
}

.quick-action-meta {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 1px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.note-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-left: 3px solid var(--gold);
    border-radius: 5px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-card.general { border-left-color: var(--gold); }
.note-card.moderation { border-left-color: #f87171; }
.note-card.management { border-left-color: #c084fc; }
.note-card.other { border-left-color: #60a5fa; }

.note-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.note-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.note-card.moderation .note-type-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.32);
}

.note-card.management .note-type-badge {
    background: rgba(192, 132, 252, 0.15);
    color: #ddb6fc;
    border-color: rgba(192, 132, 252, 0.32);
}

.note-card.other .note-type-badge {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.32);
}

.note-card-actions {
    display: flex;
    gap: 4px;
}

.note-action-btn {
    background: var(--bg-surface-3);
    color: var(--text-3);
    border: 1px solid var(--border-2);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background 0.15s, color 0.15s;
}

.note-action-btn.edit:hover {
    background: var(--gold-bg);
    color: var(--gold-soft);
    border-color: var(--gold-border);
}

.note-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.note-card-title {
    color: var(--text-1);
    font-weight: 600;
    font-size: 14px;
}

.note-card-content {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.note-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-1);
}

.note-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-author img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-2);
    background: var(--bg-surface-3);
    flex-shrink: 0;
}

.note-author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.author-name {
    color: var(--text-1);
    font-size: 12.5px;
    font-weight: 600;
}

.note-date {
    color: var(--text-3);
    font-size: 11px;
}

.note-edited {
    color: var(--text-4);
    font-size: 11px;
    font-style: italic;
}

#noteModal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

#noteModal .form-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#noteModal .form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
}

#noteModal .form-group input,
#noteModal .form-group select,
#noteModal .form-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13.5px;
    font-family: inherit;
}

#noteModal .form-group input:focus,
#noteModal .form-group select:focus,
#noteModal .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-surface-2);
}

#noteModal #managementWarning {
    display: none;
    background: rgba(192, 132, 252, 0.10);
    border: 1px solid rgba(192, 132, 252, 0.32);
    color: #ddb6fc;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12.5px;
    gap: 8px;
    align-items: center;
}

#noteModal #managementWarning > i {
    color: #c084fc;
}

#noteModal #customTypeGroup {
    display: none;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    padding: 12px 18px;
    border-radius: 5px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    font-size: 13px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    border-left: 3px solid #10b981;
}

.notification.error {
    border-left: 3px solid #ef4444;
}

.sensitive-data {
    display: inline-flex;
    align-items: center;
    height: 28px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
    color: var(--text-1);
    background: var(--bg-surface-3);
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--border-2);
    vertical-align: middle;
    line-height: 1;
}

.reveal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-2);
    color: var(--text-3);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 6px;
    padding: 0;
    vertical-align: middle;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.reveal-btn i {
    display: block;
    line-height: 1;
    font-size: 12px;
}

.reveal-btn:hover {
    background: var(--gold-bg);
    color: var(--gold-soft);
    border-color: var(--gold-border);
}

.sensitive-section {
    margin-bottom: 22px;
}

.sensitive-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.sensitive-section-header h3 {
    margin: 0;
    color: var(--text-1);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sensitive-section-header h3 i {
    color: var(--gold);
}

.sensitive-section-count {
    color: var(--text-3);
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-surface-3);
    border-radius: 6px;
}

.search-empty-state {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-3);
}

.search-empty-state > i {
    font-size: 36px;
    color: var(--gold);
    display: block;
    margin-bottom: 14px;
}

.search-empty-state h3 {
    color: var(--text-1);
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 600;
}

.search-empty-state p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
}

.search-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 14px;
}

.search-form-row input[type="text"] {
    flex: 1;
    min-width: 220px;
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13.5px;
}

.search-form-row input[type="text"]:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-surface-2);
}

.empty-state > i {
    font-size: 42px;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}

.empty-state h3 {
    color: var(--text-1);
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-3);
    font-size: 13.5px;
    margin: 0;
}

.pagination-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pagination-row a,
.pagination-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    color: var(--text-2);
    border-radius: 6px;
    font-size: 12.5px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pagination-row a:hover {
    background: var(--bg-hover);
    color: var(--gold-soft);
    border-color: var(--gold-border);
}

.pagination-row span.current {
    background: var(--gold-bg);
    border-color: var(--gold-border);
    color: var(--gold-soft);
    font-weight: 600;
}

.session-table .session-active {
    color: #34d399;
    font-weight: 600;
}

.session-table .session-active i {
    font-size: 8px;
    margin-right: 4px;
}

.balance-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-left: 3px solid var(--gold);
    border-radius: 5px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.balance-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 20px;
    flex-shrink: 0;
}

.balance-card-body h4 {
    margin: 0 0 4px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-3);
}

.balance-card-body p {
    margin: 0;
    color: var(--text-1);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.balance-card-body p.positive { color: #34d399; }
.balance-card-body p.negative { color: #f87171; }

.section-heading {
    color: var(--text-1);
    font-size: 15px;
    font-weight: 600;
    margin: 18px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-heading i {
    color: var(--gold);
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-heading-row h3 {
    margin: 0;
    color: var(--text-1);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-heading-row h3 i {
    color: var(--gold);
}

.section-heading-row > span {
    color: var(--text-3);
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-surface-3);
    border-radius: 6px;
}

.chat-tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-tag-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid var(--border-2);
    flex-shrink: 0;
}

.chat-tag-hex {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    color: var(--text-2);
}

.chat-tag-meta {
    color: var(--text-3);
    font-size: 11.5px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    margin-top: 2px;
    word-break: break-all;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pill.active {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.32);
}

.status-pill.inactive {
    background: var(--bg-surface-3);
    color: var(--text-3);
    border: 1px solid var(--border-2);
}

.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.tag-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tag-type-badge.event {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.32);
}

.tag-type-badge.donator {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.32);
}

.tag-type-badge.staff {
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
}

.sp-back-row {
    margin-bottom: 14px;
}

.sp-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    color: var(--text-2);
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s, color 0.15s;
}

.sp-back:hover {
    background: var(--bg-hover);
    color: var(--gold-soft);
    border-color: var(--gold-border);
}

.sp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sp-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.sp-avatar {
    width: 72px;
    height: 72px;
    border-radius: 7px;
    object-fit: cover;
    border: 2px solid var(--gold-border);
    background: var(--bg-surface-3);
    flex-shrink: 0;
}

.sp-header-info {
    min-width: 0;
}

.sp-name {
    margin: 0 0 2px;
    color: var(--text-1);
    font-size: 20px;
    font-weight: 600;
}

.sp-realname {
    margin: 0 0 8px;
    color: var(--text-3);
    font-size: 13px;
}

.sp-roles-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sp-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 8px;
    color: var(--text-2);
    font-size: 11.5px;
    font-weight: 500;
}

.sp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-3);
    flex-shrink: 0;
}

.sp-muted {
    color: var(--text-3);
    font-size: 12px;
    font-style: italic;
}

.sp-header-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid var(--border-2);
    background: var(--bg-surface-2);
    color: var(--text-1);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}

.sp-btn:hover {
    background: var(--bg-hover);
    border-color: var(--gold-border);
    color: var(--gold-soft);
}

.sp-btn-dark {
    background: var(--bg-surface-3);
}

.sp-btn-amber {
    background: var(--gold-bg);
    color: var(--gold-soft);
    border-color: var(--gold-border);
}

.sp-btn-amber:hover {
    background: var(--gold);
    color: #0a1020;
    border-color: var(--gold);
}

.sp-btn-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.32);
}

.sp-btn-blue:hover {
    background: rgba(59, 130, 246, 0.22);
    color: #bfdbfe;
}

.sp-btn-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.32);
}

.sp-btn-red {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.32);
}

.sp-btn-red:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fecaca;
}

.sp-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: auto;
}

.sp-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-3);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-md);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.sp-tab i {
    font-size: 12px;
    opacity: 0.85;
}

.sp-tab:hover {
    color: var(--text-1);
    background: var(--bg-surface-2);
}

.sp-tab.active {
    color: var(--text-1);
    background: var(--bg-surface-3);
    border-color: var(--border-2);
    box-shadow: inset 0 -2px 0 var(--gold-soft);
}

.sp-tab.active i {
    color: var(--gold-soft);
    opacity: 1;
}

.sp-panel {
    display: block;
}

.sp-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 1024px) {
    .sp-columns {
        grid-template-columns: 1fr;
    }
}

.sp-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.sp-card-title {
    color: var(--text-1);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-1);
}

.sp-card-title i {
    color: var(--gold);
}

.sp-card-title-red {
    color: #fca5a5;
}

.sp-card-title-red i {
    color: #f87171;
}

.sp-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

.sp-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sp-detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-3);
}

.sp-detail-value {
    color: var(--text-1);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-detail-value i {
    color: var(--text-3);
    font-size: 12px;
}

.sp-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.sp-stat {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-left: 3px solid var(--gold);
    border-radius: 5px;
    padding: 12px 14px;
}

.sp-stat-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.1;
}

.sp-stat-lbl {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.sp-tbl-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-1);
    border-radius: 5px;
}

.sp-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sp-tbl thead th {
    text-align: left;
    padding: 10px 14px;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-1);
    white-space: nowrap;
}

.sp-tbl tbody td {
    padding: 10px 14px;
    color: var(--text-1);
    border-bottom: 1px solid var(--border-1);
    vertical-align: middle;
}

.sp-tbl tbody tr:last-child td { border-bottom: none; }
.sp-tbl tbody tr:hover td { background: var(--bg-hover); }

.sp-status-badge {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sp-status-badge.open {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.32);
}

.sp-status-badge.closed {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.32);
}

.sp-src-badge {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sp-src-badge.nylex {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.32);
}

.sp-src-badge.police {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.32);
}

.sp-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
    font-style: italic;
}

.sp-activity {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sp-act-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-1);
}

.sp-act-row:last-child {
    border-bottom: none;
}

.sp-act-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 12px;
    flex-shrink: 0;
}

.sp-act-info {
    flex: 1;
    min-width: 0;
}

.sp-act-label {
    color: var(--text-1);
    font-size: 13px;
    font-weight: 500;
}

.sp-act-sub {
    color: var(--text-3);
    font-size: 11.5px;
    margin-top: 2px;
}

.sp-act-time {
    color: var(--text-4);
    font-size: 11.5px;
    white-space: nowrap;
}

.amount-positive { color: #34d399; font-weight: 600; }
.amount-negative { color: #f87171; font-weight: 600; }

.header-count {
    margin-left: 8px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
    padding: 3px 9px;
    background: var(--bg-surface-3);
    border-radius: 6px;
}

.card-header h2 .header-count {
    text-transform: none;
    letter-spacing: 0;
}

.search-avatar {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-2);
    background: var(--bg-surface-3);
}

.row-actions {
    display: flex;
    gap: 4px;
}

.row-action-btn {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    color: var(--text-2);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.row-action-btn:hover {
    background: var(--gold-bg);
    color: var(--gold-soft);
    border-color: var(--gold-border);
}

.sp-mask {
    position: relative;
    display: inline-flex;
}

.sp-mask-hide {
    color: var(--text-3);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    letter-spacing: 0.5px;
}

.sp-mask-show {
    display: none;
}

.sp-mask:hover .sp-mask-hide { display: none; }
.sp-mask:hover .sp-mask-show { display: inline; }

.sp-count {
    margin-left: 8px;
    color: var(--text-3);
    font-size: 11.5px;
    font-weight: 500;
    padding: 2px 8px;
    background: var(--bg-surface-3);
    border-radius: 5px;
}

.sp-badge-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 10px;
}

.sp-badge-fail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-size: 10px;
}

.sp-sensitive-warn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fca5a5;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 12px;
}

.sp-sensitive-warn i { color: #f87171; }

.sp-card-sensitive {
    border-color: rgba(239, 68, 68, 0.25);
}

.sp-nowrap { white-space: nowrap; }

.sp-fg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sp-sev-badge {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sp-sev-badge.low { background: rgba(96,165,250,.15); color:#93c5fd; border:1px solid rgba(96,165,250,.32); }
.sp-sev-badge.medium { background: rgba(245,158,11,.15); color:#fbbf24; border:1px solid rgba(245,158,11,.32); }
.sp-sev-badge.high { background: rgba(239,68,68,.15); color:#f87171; border:1px solid rgba(239,68,68,.32); }
.sp-sev-badge.critical { background: rgba(220,38,38,.22); color:#fecaca; border:1px solid rgba(220,38,38,.5); }

.sp-audit-action {
    color: var(--text-1);
    font-size: 13px;
    font-weight: 600;
}

.sp-audit-desc {
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.45;
}

.sp-audit-target {
    color: var(--text-3);
    font-size: 12px;
}

.sp-audit-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-2);
}

.sp-mw {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 18, 0.78);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sp-mw.show { display: flex; }

.sp-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: 7px;
    width: min(92vw, 540px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.sp-mhdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-1);
    background: var(--bg-surface-2);
}

.sp-mhdr h3 {
    margin: 0;
    color: var(--text-1);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.sp-mhdr h3 i { color: var(--gold); }

.sp-mbody {
    padding: 20px;
    overflow-y: auto;
}

.sp-mfoot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 20px;
    border-top: 1px solid var(--border-1);
    background: var(--bg-surface-2);
}

.sp-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13.5px;
}

.sp-input:focus { outline: none; border-color: var(--gold); background: var(--bg-surface-2); }

.sp-btn-pri {
    background: var(--gold);
    color: #0a1020;
    border: 1px solid var(--gold);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.sp-btn-sec {
    background: var(--bg-surface-2);
    color: var(--text-1);
    border: 1px solid var(--border-2);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.sp-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    border-radius: 5px;
    z-index: 9999;
    font-size: 13px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.sp-role-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-1);
}

.sp-role-row:last-child { border-bottom: none; }

.sp-role-nm {
    color: var(--text-1);
    font-weight: 600;
    font-size: 13.5px;
}

.sp-role-meta {
    color: var(--text-3);
    font-size: 11.5px;
}

.sp-role-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.sp-role-btn.add {
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
}

.sp-role-btn.rem {
    background: rgba(239,68,68,.15);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,.32);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 5px;
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
    font-size: 10.5px;
    font-weight: 700;
}

.advanced-filters {
    margin-top: 14px;
    padding: 16px 18px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 5px;
}

.advanced-filters h4 {
    margin: 0 0 12px;
    color: var(--text-1);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-filters h4 i { color: var(--gold); }

.filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 500;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-chip:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.filter-chip input[type="checkbox"] {
    width: 12px;
    height: 12px;
    margin: 0;
    accent-color: var(--gold);
}

.filter-chip.selected {
    background: var(--gold-bg);
    border-color: var(--gold-border);
    color: var(--gold-soft);
    font-weight: 600;
}

.assets-table th,
.assets-table td {
    padding: 11px 16px !important;
    white-space: nowrap;
}

.assets-table .asset-name-cell {
    color: var(--text-1);
    font-weight: 500;
    min-width: 220px;
}

.assets-table .amount-cell {
    color: var(--text-1);
    font-weight: 600;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    text-align: right;
    min-width: 80px;
}

.assets-table th:nth-child(4),
.assets-table td:nth-child(4) {
    text-align: right;
}

.asset-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    background: var(--bg-surface-3);
    color: var(--text-2);
    border: 1px solid var(--border-2);
}

.asset-type-badge.type-weapon       { background: rgba(239, 68, 68, 0.15);  color: #fca5a5; border-color: rgba(239, 68, 68, 0.34); }
.asset-type-badge.type-clothing     { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; border-color: rgba(168, 85, 247, 0.34); }
.asset-type-badge.type-vehicle,
.asset-type-badge.type-car,
.asset-type-badge.type-plane        { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-color: rgba(59, 130, 246, 0.34); }
.asset-type-badge.type-supply       { background: rgba(14, 165, 233, 0.15); color: #7dd3fc; border-color: rgba(14, 165, 233, 0.34); }
.asset-type-badge.type-placeable    { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.34); }
.asset-type-badge.type-caliber      { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.34); }
.asset-type-badge.type-boat         { background: rgba(34, 211, 238, 0.15); color: #67e8f9; border-color: rgba(34, 211, 238, 0.34); }
.asset-type-badge.type-helicopter   { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border-color: rgba(139, 92, 246, 0.34); }
.asset-type-badge.type-backpack     { background: rgba(20, 184, 166, 0.15); color: #5eead4; border-color: rgba(20, 184, 166, 0.34); }
.asset-type-badge.type-hat          { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; border-color: rgba(236, 72, 153, 0.34); }
.asset-type-badge.type-shirt        { background: rgba(120, 113, 108, 0.18); color: #d6d3d1; border-color: rgba(120, 113, 108, 0.4); }
.asset-type-badge.type-pants        { background: rgba(100, 116, 139, 0.18); color: #cbd5e1; border-color: rgba(100, 116, 139, 0.4); }
.asset-type-badge.type-vest         { background: rgba(249, 115, 22, 0.15); color: #fdba74; border-color: rgba(249, 115, 22, 0.34); }
.asset-type-badge.type-mask         { background: rgba(192, 38, 211, 0.15); color: #e9a8f5; border-color: rgba(192, 38, 211, 0.34); }
.asset-type-badge.type-glasses      { background: rgba(6, 182, 212, 0.15);  color: #67e8f9; border-color: rgba(6, 182, 212, 0.34); }
.asset-type-badge.type-fuel         { background: rgba(234, 88, 12, 0.15);  color: #fdba74; border-color: rgba(234, 88, 12, 0.34); }
.asset-type-badge.type-filter       { background: var(--bg-surface-3);      color: var(--text-3); border-color: var(--border-2); }

.source-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.source-pill i { font-size: 10px; }

.source-pill.vanilla {
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.32);
}

.source-pill.workshop {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.32);
}

.source-pill.workshop:hover {
    background: rgba(59, 130, 246, 0.24);
    color: #bfdbfe;
}

.row-action-btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-2);
    color: var(--text-2);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.row-action-btn-text:hover {
    background: var(--gold-bg);
    color: var(--gold-soft);
    border-color: var(--gold-border);
}

.row-action-btn-text i { font-size: 11px; }

.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.page-header-text {
    min-width: 0;
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.player-cell-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-2);
    background: var(--bg-surface-3);
    flex-shrink: 0;
}

.player-cell-info {
    min-width: 0;
    line-height: 1.35;
}

.player-cell-name {
    color: var(--text-1);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.player-cell-id {
    color: var(--text-3);
    font-size: 11.5px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.player-cell-sub {
    color: var(--text-4);
    font-size: 11px;
    margin-top: 1px;
}

.discord-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 9px;
}

.link-indicator.linked {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.link-indicator.manual {
    background: var(--bg-surface-3);
    color: var(--text-3);
    border: 1px solid var(--border-2);
}

.row-action-btn-danger {
    background: var(--bg-surface-2);
    border-color: var(--border-1);
    color: var(--text-3);
}

.row-action-btn-danger:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.filter-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.filter-section h4 {
    margin: 0 0 10px;
    color: var(--text-1);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section h4 i {
    color: var(--gold);
    font-size: 11px;
}

.filter-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.filter-form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.guid-cell {
    color: var(--text-3);
    font-size: 11.5px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amount-positive-blue { color: #93c5fd !important; }
.amount-zero          { color: var(--text-4) !important; }

.assets-table .badge-warning,
.assets-table .badge-danger {
    margin-left: 6px;
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.log-details-cell {
    line-height: 2;
    max-width: 480px;
}

.log-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    margin-right: 6px;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-2);
    color: var(--text-2);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.log-detail-chip.muted {
    background: transparent;
    border-color: transparent;
    color: var(--text-4);
    font-style: italic;
    padding: 2px 0;
}

.log-detail-chip i { font-size: 10px; color: var(--text-3); }

.log-detail-meta {
    display: inline-block;
    color: var(--text-4);
    font-size: 11.5px;
    margin-left: 4px;
    white-space: nowrap;
}

.log-time-cell {
    color: var(--text-3);
    font-size: 12px;
    white-space: nowrap;
}

.pagination-meta {
    color: var(--text-3);
    font-size: 12px;
    margin: 14px 0 8px;
}

.eco-month-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eco-month-form .modern-input { padding: 8px 14px; min-width: 150px; }

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 3px 10px;
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.live-badge i {
    font-size: 7px;
    animation: liveBlink 1.6s ease-in-out infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.update-status {
    margin-left: 10px;
    color: var(--text-4);
    font-size: 11.5px;
    font-weight: 500;
    vertical-align: middle;
}

.eco-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.eco-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    border-left: 3px solid var(--border-3);
}

.eco-stat-card.eco-inflow      { border-left-color: #10b981; }
.eco-stat-card.eco-outflow     { border-left-color: #ef4444; }
.eco-stat-card.eco-net-positive { border-left-color: #3b82f6; }
.eco-stat-card.eco-net-negative { border-left-color: #f59e0b; }
.eco-stat-card.eco-metrics     { border-left-color: var(--gold); }

.eco-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 5px;
    background: var(--bg-surface-3);
    color: var(--text-2);
    font-size: 17px;
    flex-shrink: 0;
}

.eco-inflow      .eco-stat-icon { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.eco-outflow     .eco-stat-icon { background: rgba(239, 68, 68, 0.15);  color: #fca5a5; }
.eco-net-positive .eco-stat-icon { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.eco-net-negative .eco-stat-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.eco-metrics     .eco-stat-icon { background: var(--gold-bg);            color: var(--gold-soft); }

.eco-stat-body { min-width: 0; flex: 1; }

.eco-stat-value {
    color: var(--text-1);
    font-size: 22px;
    font-weight: 700;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eco-inflow      .eco-stat-value { color: #6ee7b7; }
.eco-outflow     .eco-stat-value { color: #fca5a5; }
.eco-net-positive .eco-stat-value.eco-stat-net { color: #93c5fd; }
.eco-net-negative .eco-stat-value.eco-stat-net { color: #fbbf24; }

.eco-stat-label {
    color: var(--text-3);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
    font-weight: 500;
}

.eco-compare-notice {
    margin-bottom: 18px;
}

.eco-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.eco-cat-card { border-left: 3px solid var(--border-3); }
.eco-cat-card.eco-cat-money       { border-left-color: #10b981; }
.eco-cat-card.eco-cat-drugs       { border-left-color: #a855f7; }
.eco-cat-card.eco-cat-laundering  { border-left-color: #f59e0b; }
.eco-cat-card.eco-cat-processing  { border-left-color: #3b82f6; }
.eco-cat-card.eco-cat-vehicles    { border-left-color: #14b8a6; }
.eco-cat-card.eco-cat-vendors     { border-left-color: #eab308; }
.eco-cat-card.eco-cat-crime       { border-left-color: #ef4444; }
.eco-cat-card.eco-cat-law         { border-left-color: #6366f1; }
.eco-cat-card.eco-cat-other       { border-left-color: var(--text-4); }

.eco-cat-card .card-header h2 i {
    color: inherit;
    opacity: 0.85;
}

.eco-cat-card.eco-cat-money       .card-header h2 i { color: #10b981; }
.eco-cat-card.eco-cat-drugs       .card-header h2 i { color: #a855f7; }
.eco-cat-card.eco-cat-laundering  .card-header h2 i { color: #f59e0b; }
.eco-cat-card.eco-cat-processing  .card-header h2 i { color: #3b82f6; }
.eco-cat-card.eco-cat-vehicles    .card-header h2 i { color: #14b8a6; }
.eco-cat-card.eco-cat-vendors     .card-header h2 i { color: #eab308; }
.eco-cat-card.eco-cat-crime       .card-header h2 i { color: #ef4444; }
.eco-cat-card.eco-cat-law         .card-header h2 i { color: #6366f1; }

.eco-table th,
.eco-table td {
    padding: 9px 14px !important;
    font-size: 12.5px;
}

.eco-table th:nth-child(2),
.eco-table th:nth-child(3),
.eco-table td:nth-child(2),
.eco-table td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
}

.eco-row-excluded { opacity: 0.55; }
.eco-row-excluded td { color: var(--text-4); }

.eco-value-positive { color: #6ee7b7 !important; font-weight: 600; }
.eco-value-negative { color: #fca5a5 !important; font-weight: 600; }

.eco-change-up    { color: #6ee7b7; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.eco-change-down  { color: #fca5a5; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.eco-change-pct   { color: var(--text-4); font-weight: 500; font-size: 11px; margin-left: 2px; }

.eco-change-up i,
.eco-change-down i { font-size: 10px; }

@keyframes ecoFlashUp {
    0% { background: rgba(16, 185, 129, 0.35); }
    100% { background: transparent; }
}
@keyframes ecoFlashDown {
    0% { background: rgba(239, 68, 68, 0.35); }
    100% { background: transparent; }
}
@keyframes ecoCountAnim {
    0% { transform: scale(1.04); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.eco-flash-up    { animation: ecoFlashUp 1.2s ease-out; }
.eco-flash-down  { animation: ecoFlashDown 1.2s ease-out; }
.eco-count-anim  { animation: ecoCountAnim 0.45s ease-out; }

.ev-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.ev-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: 6px;
}

.ev-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.ev-stat-icon-files    { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.ev-stat-icon-notes    { background: var(--gold-bg);           color: var(--gold-soft); }
.ev-stat-icon-rejected { background: rgba(239, 68, 68, 0.15);  color: #fca5a5; }

.ev-stat-body { min-width: 0; }

.ev-stat-val {
    color: var(--text-1);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.ev-stat-lbl {
    color: var(--text-3);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
    font-weight: 500;
}

.ev-search-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.ev-search-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ev-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ev-result-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 4px;
    flex-wrap: wrap;
}

.ev-result-row:hover {
    background: var(--bg-hover);
    border-color: var(--border-2);
}

.ev-result-reason {
    flex: 1;
    min-width: 200px;
    color: var(--text-1);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev-result-sid {
    color: var(--text-3);
    font-size: 11.5px;
}

.ev-result-meta {
    color: var(--text-3);
    font-size: 11.5px;
    white-space: nowrap;
}

.ev-result-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.ev-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.ev-badge.ev-badge-ban  { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }
.ev-badge.ev-badge-warn { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }

.ev-mono {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    color: var(--text-3);
    font-size: 12px;
}

.ev-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-2);
    background: var(--bg-surface-3);
    flex-shrink: 0;
}

.ev-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.btn-sm {
    padding: 5px 11px !important;
    font-size: 12px !important;
}

.ev-target-info {
    margin-bottom: 14px;
}

.ev-target-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 4px;
    flex-wrap: wrap;
}

.ev-target-reason {
    flex: 1;
    min-width: 0;
    color: var(--text-2);
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev-scan-notice {
    margin-bottom: 14px;
}

.ev-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 800px) {
    .ev-upload-grid { grid-template-columns: 1fr; }
    .ev-search-grid { grid-template-columns: 1fr; }
}

.ev-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-surface-2);
    border: 2px dashed var(--border-2);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    min-height: 180px;
}

.ev-drop-zone:hover,
.ev-drop-zone.drag-over {
    background: var(--gold-bg);
    border-color: var(--gold-border);
}

.ev-drop-zone > i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 10px;
}

.ev-dz-title {
    color: var(--text-1);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ev-dz-sub {
    color: var(--text-3);
    font-size: 11.5px;
}

.ev-dz-types {
    color: var(--text-4);
    font-size: 11px;
    margin-top: 4px;
}

.ev-previews {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.ev-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    font-size: 12px;
}

.ev-preview-item > i { color: var(--gold); font-size: 14px; }

.ev-preview-name {
    flex: 1;
    color: var(--text-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev-preview-size {
    color: var(--text-3);
    font-size: 11px;
    white-space: nowrap;
}

.ev-preview-remove {
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
}

.ev-preview-remove:hover { color: #fca5a5; }

.ev-note-label {
    display: block;
    color: var(--text-1);
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 6px;
}

.ev-note-count-row {
    text-align: right;
    font-size: 11px;
    margin-top: 4px;
}

.ev-upload-actions {
    margin-top: 18px;
    padding: 0;
    border-top: none;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ev-pun-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.ev-pun-row {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 5px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.ev-pun-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ev-pun-date {
    color: var(--text-3);
    font-size: 11.5px;
    margin-left: auto;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.ev-pun-body {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 14px;
    align-items: center;
}

@media (max-width: 700px) {
    .ev-pun-body { grid-template-columns: 1fr; }
}

.ev-pun-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ev-pun-player-info { min-width: 0; }

.ev-pun-name {
    color: var(--text-1);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-pun-sid {
    color: var(--text-3);
    font-size: 11px;
    margin-top: 2px;
}

.ev-pun-reason {
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ev-pun-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--border-1);
}

.ev-pun-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.ev-pun-by-lbl {
    color: var(--text-3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 500;
}

.ev-pun-by-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-1);
    font-size: 12px;
    font-weight: 500;
}

.ev-pun-by-user .ev-avatar-sm {
    width: 22px;
    height: 22px;
}

.ev-status-active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6ee7b7;
    font-size: 11.5px;
    font-weight: 600;
}

.ev-status-active i { font-size: 7px; }

.ev-evidence-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
    border: 1px solid transparent;
    transition: background 0.15s;
}

.ev-evidence-link.has-ev {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.32);
}

.ev-evidence-link.has-ev:hover {
    background: rgba(59, 130, 246, 0.25);
}

.ev-evidence-link.no-ev {
    background: rgba(239, 68, 68, 0.13);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.ev-evidence-link.no-ev:hover {
    background: rgba(239, 68, 68, 0.22);
}

.ev-attach-btn.active {
    background: var(--gold-soft);
    border-color: var(--gold-soft);
}

.ev-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    padding: 12px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-left: 3px solid #6ee7b7;
    border-radius: 4px;
    color: var(--text-1);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    max-width: 360px;
}

.ev-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.ev-toast.error { border-left-color: #fca5a5; }
.ev-toast.success { border-left-color: #6ee7b7; }

.ev-checker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.empty-state-success i { color: #6ee7b7 !important; }

.ev-upload-link:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.34) !important;
}

.ev-page-header,
.dashboard-content > .ev-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.ev-page-header-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ev-page-header h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    color: var(--text-1);
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.ev-page-header h1 i {
    color: var(--gold);
}

.ev-page-header p {
    margin: 0;
    color: var(--text-3);
    font-size: 0.9rem;
}

.ev-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--text-3);
    font-size: 0.85rem;
    font-weight: 600;
}

.ev-back-link:hover {
    color: var(--gold-soft);
}

.ev-label,
.ev-note-label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-3);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.55px;
}

.ev-inp,
#noteInput,
#uploadNote,
#medalUrl {
    width: 100%;
    background: var(--bg-input);
    color: var(--text-1);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font: inherit;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ev-inp:focus,
#noteInput:focus,
#uploadNote:focus,
#medalUrl:focus {
    border-color: var(--gold-border) !important;
    background: var(--bg-surface-2);
    box-shadow: 0 0 0 3px rgba(100, 125, 98, 0.12);
}

textarea.ev-inp,
#noteInput,
#uploadNote {
    resize: vertical;
    min-height: 120px;
}

.ev-search-form {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(240px, 1fr) auto auto;
    gap: 14px;
    align-items: end;
}

.ev-search-btn,
.ev-clear-btn,
.ev-btn-pri,
.ev-btn-sec,
.ev-action-btn,
.upl-btn-pri,
.upl-btn-sec,
#medalBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ev-search-btn,
.ev-btn-pri,
.ev-action-btn,
.upl-btn-pri,
#medalBtn {
    background: var(--gold);
    border-color: var(--gold);
    color: #0e1525;
}

.ev-search-btn:hover,
.ev-btn-pri:hover,
.ev-action-btn:hover,
.upl-btn-pri:hover,
#medalBtn:hover {
    background: var(--gold-dim) !important;
    border-color: var(--gold-dim) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.ev-search-btn:hover i,
.ev-btn-pri:hover i,
.ev-action-btn:hover i,
.upl-btn-pri:hover i,
#medalBtn:hover i {
    color: #ffffff !important;
}

.ev-clear-btn,
.ev-btn-sec,
.upl-btn-sec {
    background: var(--bg-surface-2);
    border-color: var(--border-2);
    color: var(--text-2);
}

.ev-clear-btn:hover,
.ev-btn-sec:hover,
.upl-btn-sec:hover {
    background: var(--bg-surface-3);
    color: var(--text-1);
    border-color: var(--border-3);
}

.ev-recent-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ev-mine-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ev-mine-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ev-mine-toggle i {
    font-size: 12px;
    color: var(--text-3);
    transition: color 0.15s;
}

.ev-mine-toggle:hover {
    background: var(--bg-hover);
    color: var(--gold-soft);
    border-color: var(--gold-border);
}

.ev-mine-toggle:hover i { color: var(--gold-soft); }

.ev-mine-toggle:has(input:checked) {
    background: var(--gold-bg);
    border-color: var(--gold-border);
    color: var(--gold-soft);
}

.ev-mine-toggle:has(input:checked) i { color: var(--gold-soft); }

.ev-perpage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-3);
}

.ev-perpage select {
    background: var(--bg-surface-2);
    color: var(--text-1);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    padding: 8px 12px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.ev-perpage select:hover {
    border-color: var(--gold-border);
    background: var(--bg-hover);
}

.ev-perpage select:focus {
    border-color: var(--gold-border);
    box-shadow: 0 0 0 3px rgba(100, 125, 98, 0.12);
}

.ev-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-1);
}

.ev-page-info {
    font-size: 12px;
    color: var(--text-3);
}

.ev-page-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ev-page-num {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.ev-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    color: var(--text-2);
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ev-page-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--gold-soft);
    border-color: var(--gold-border);
}

.ev-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ev-card-notice,
.ev-scan-notice,
.upl-scan-notice,
.ev-archive-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    color: var(--text-2);
    margin-bottom: 16px;
    line-height: 1.5;
}

.ev-card-notice i,
.ev-scan-notice i,
.upl-scan-notice i,
.ev-archive-notice i {
    color: var(--gold);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    border-radius: 50%;
    font-size: 0.95rem;
    margin-top: 0;
}

.ev-card-notice > span,
.ev-scan-notice > span,
.upl-scan-notice > span,
.ev-archive-notice > span {
    flex: 1;
    min-width: 0;
}

.ev-upload-card-header h2 {
    justify-content: space-between;
    width: 100%;
}

.ev-upload-card-header button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    background: var(--bg-surface-3);
    color: var(--text-2);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.ev-upload-card-header button:hover {
    color: var(--text-1);
    border-color: var(--gold-border);
}

#searchResultsCard,
#uploadCard {
    display: none;
}

.upl-status-banner {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gold-border);
    background: var(--gold-bg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    animation: uplBannerSlide 0.25s ease-out;
}

.upl-status-banner.active {
    display: flex;
}

@keyframes uplBannerSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.upl-status-banner .upl-status-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 1.1rem;
}

.upl-status-banner .upl-status-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.upl-status-banner .upl-status-title {
    color: var(--text-1);
    font-size: 0.95rem;
    font-weight: 700;
}

.upl-status-banner .upl-status-sub {
    color: var(--text-3);
    font-size: 0.82rem;
}

.upl-status-results.active {
    display: block;
    padding: 16px 18px;
}

.upl-status-results.upl-status-success {
    border-color: var(--green);
    background: var(--green-bg);
}

.upl-status-results.upl-status-warning {
    border-color: var(--orange);
    background: var(--orange-bg);
}

.upl-result-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-1);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 4px 0;
}

.upl-result-row i {
    color: var(--green);
    font-size: 1.05rem;
}

.upl-result-row.warn i {
    color: var(--orange);
}

.upl-result-detail {
    margin-left: 28px;
    font-size: 0.8rem;
    color: var(--text-3);
    padding: 3px 0;
    word-break: break-all;
}

.upl-result-detail code {
    background: var(--bg-surface-3);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--text-2);
}

.ev-upload-grid,
.upl-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.ev-note-count-row,
.upl-note-count-row {
    margin-top: 7px;
    text-align: right;
    color: var(--text-4);
    font-size: 0.75rem;
}

.ev-upload-actions,
.upl-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

#filePreviews,
.ev-previews {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.upl-preview-item,
.ev-preview-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 0.82rem;
}

.upl-preview-item i,
.upl-preview-item img,
.ev-preview-item i {
    color: var(--gold);
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.upl-preview-item span:first-of-type,
.ev-preview-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-1);
}

.upl-preview-item button,
.ev-preview-remove {
    border: none;
    background: transparent;
    color: var(--text-3);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.upl-preview-item button:hover,
.ev-preview-remove:hover {
    color: var(--red);
}

.ev-pun-row {
    display: grid;
    grid-template-columns: auto auto auto minmax(200px, 1fr) auto auto auto;
    gap: 18px;
    align-items: center;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 15px 18px;
    margin-bottom: 10px;
}

.ev-pun-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
}

.ev-pun-meta .ev-pun-date {
    margin-left: 0;
    color: var(--text-3);
    font-size: 11.5px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.ev-pun-archive {
    color: var(--text-4);
    font-size: 11px;
    font-style: italic;
    white-space: nowrap;
}

.ev-pun-row > div[title] {
    color: var(--text-2);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev-pun-player > div > div:first-child,
.ev-pun-by > div span {
    color: var(--text-1);
    font-size: 0.83rem;
    font-weight: 600;
}

.ev-pun-by > span:first-child {
    display: block;
    color: var(--text-4);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ev-pun-by > div,
.ev-pun-by > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-2);
}

.ev-evidence-link {
    white-space: nowrap;
}

.ev-type-badge,
.upl-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.ev-type-ban,
.upl-type-ban {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.ev-type-warn,
.upl-type-warn {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.ev-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    margin-bottom: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
}

.ev-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-3);
    font-weight: 700;
    cursor: pointer;
}

.ev-tab:hover,
.ev-tab.active {
    background: var(--gold-bg);
    color: var(--gold-soft);
}

.ev-tab-count {
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--bg-surface-3);
    color: var(--text-2);
    font-size: 0.72rem;
}

.ev-file-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.ev-file-icon,
.ev-file-icon > div,
.ev-file-icon-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gold-bg);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    cursor: pointer;
}

.ev-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold-border);
    cursor: pointer;
}

.ev-file-meta > div:first-child {
    color: var(--text-1);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ev-file-meta > div:not(:first-child) {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 5px;
    color: var(--text-3);
    font-size: 0.78rem;
}

.ev-file-actions {
    display: flex;
    gap: 8px;
}

.ev-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-2);
    background: var(--bg-surface-3);
    color: var(--text-2);
    cursor: pointer;
}

.ev-icon-btn:hover {
    color: var(--gold-soft);
    border-color: var(--gold-border);
}

.ev-icon-btn.del-btn:hover {
    color: var(--red);
    border-color: rgba(225, 85, 101, 0.42);
    background: var(--red-bg);
}

.ev-rejected-list {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-1);
}

.ev-rejected-list h4 {
    color: var(--text-1);
    margin-bottom: 10px;
}

.ev-rejected-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: var(--red-bg);
    border: 1px solid rgba(225, 85, 101, 0.32);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    margin-bottom: 8px;
}

.ev-note-compose {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.ev-note-compose-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ev-note-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.ev-note-item > div:first-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-3);
    font-size: 0.78rem;
}

.ev-note-item > div:nth-child(2) {
    color: var(--text-1);
    line-height: 1.55;
    white-space: pre-wrap;
}

.ev-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-2);
}

.ev-note-item button {
    align-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(225, 85, 101, 0.35);
    background: var(--red-bg);
    color: var(--red);
    font-weight: 700;
    cursor: pointer;
}

#noNotesMsg,
.ev-empty-state {
    padding: 34px 20px;
    text-align: center;
    color: var(--text-3);
    background: var(--bg-surface-2);
    border: 1px dashed var(--border-2);
    border-radius: var(--radius-md);
}

.upl-form-stack {
    display: grid;
    gap: 18px;
}

.upl-medal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 22px;
}

.upl-medal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-1);
}

.upl-medal-header img {
    width: 28px;
    height: 28px;
}

.upl-medal-title {
    color: var(--text-1);
    font-weight: 800;
}

.upl-medal-subtitle {
    color: var(--text-3);
    font-size: 0.82rem;
}

.upl-medal-body {
    padding: 20px 22px;
}

.upl-medal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

#medalStatus {
    margin-top: 10px;
    color: var(--text-3);
    font-size: 0.82rem;
}

#upl-toast,
#ev-toast:not(.ev-toast) {
    position: fixed;
    right: 24px;
    top: 24px;
    z-index: 10000;
    max-width: 360px;
    padding: 12px 18px;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-2);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    box-shadow: var(--shadow-lg);
    transform: translateX(420px);
    transition: transform 0.25s ease;
}

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.82);
    z-index: 10000;
}

#lightboxImg {
    max-width: min(1100px, 95vw);
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

#videoModal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
    z-index: 10000;
}

#videoModal > div {
    position: relative;
    width: min(520px, 92vw);
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

#videoModal button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-2);
    background: var(--bg-surface-3) !important;
    color: var(--text-2) !important;
    cursor: pointer;
}

#videoModal > div > div {
    padding: 34px 28px 28px;
}

#videoModal > div > div > div > div > div:first-child {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
}

#videoModal > div > div > div > div > div:first-child div {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

#videoPrepareStatus,
#videoFilename {
    color: var(--text-3);
    font-size: 0.82rem;
}

#videoPreparePercent {
    color: var(--text-1);
    font-weight: 800;
}

#videoModal > div > div > div > div > div:nth-child(5) > div:nth-child(2) {
    height: 8px;
    background: var(--bg-surface-3);
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0;
}

#videoPrepareBar {
    height: 100%;
    width: 0;
    background: var(--gold);
    border-radius: inherit;
}

@media (max-width: 1100px) {
    .ev-pun-row {
        grid-template-columns: auto auto minmax(160px, 1fr) auto;
        row-gap: 12px;
    }

    .ev-pun-row > div[title] {
        grid-column: 1 / -1;
        white-space: normal;
    }

    .ev-pun-meta {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 850px) {
    .ev-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ev-search-form,
    .ev-upload-grid,
    .upl-main-grid,
    .upl-medal-row,
    .ev-file-row {
        grid-template-columns: 1fr;
    }

    .ev-pun-row {
        grid-template-columns: 1fr;
    }

    .ev-upload-actions,
    .upl-actions {
        justify-content: stretch;
        flex-direction: column-reverse;
    }

    .ev-upload-actions > *,
    .upl-actions > * {
        width: 100%;
    }
}

.ev-file-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    padding: 14px 16px;
}

.ev-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    align-self: center;
    justify-self: center;
}

.ev-file-icon > div,
.ev-file-icon-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ev-file-icon i,
.ev-file-icon-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.ev-thumb {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
}

.ev-file-actions,
.ev-file-row > div:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.upl-form-stack {
    max-width: 1180px;
    margin: 0 auto;
    gap: 22px;
}

.upl-form-stack > .content-card,
.upl-medal-card {
    margin-bottom: 0;
}

.upl-drop-zone,
.ev-drop-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 220px;
    padding: 34px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(24, 32, 64, 0.96), rgba(17, 24, 48, 0.96));
    border: 1px dashed var(--border-3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.upl-drop-zone:hover,
.upl-drop-zone.drag-over,
.ev-drop-zone:hover,
.ev-drop-zone.drag-over {
    background: linear-gradient(180deg, rgba(100, 125, 98, 0.16), rgba(24, 32, 64, 0.96));
    border-color: var(--gold-border);
    box-shadow: inset 0 0 0 1px rgba(100, 125, 98, 0.16);
}

.upl-drop-zone > i,
.ev-drop-zone > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 0 8px;
    border-radius: var(--radius-md);
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 1.45rem;
    line-height: 1;
}

.upl-drop-zone input[type="file"],
.ev-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ev-dz-title {
    color: var(--text-1);
    font-size: 0.98rem;
    font-weight: 800;
}

.ev-dz-sub {
    color: var(--text-2);
    font-size: 0.82rem;
}

.ev-dz-types {
    margin-top: 4px;
    color: var(--text-4);
    font-size: 0.78rem;
}

.upl-medal-card,
.upl-form-stack .content-card {
    border-radius: var(--radius-lg);
    border-color: var(--border-1);
    box-shadow: var(--shadow-sm);
}

.upl-medal-header,
.upl-form-stack .card-header {
    min-height: 56px;
    padding: 16px 20px;
}

.upl-medal-header img {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-2);
    padding: 4px;
}

.upl-medal-body,
.upl-form-stack .card-content {
    padding: 22px;
}

.upl-medal-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
}

#medalBtn,
.upl-btn-pri,
.upl-btn-sec {
    min-height: 42px;
    padding: 0 18px;
    white-space: nowrap;
}

#medalBtn i,
.upl-btn-pri i,
.upl-btn-sec i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#noteInput {
    min-height: 150px;
}

.upl-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 6px 0 0;
    padding: 16px 0 0;
    background: linear-gradient(180deg, rgba(10, 16, 32, 0), var(--bg-base) 42%);
}

.upl-progress-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.upl-progress-row > div:first-child {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    flex-shrink: 0;
}

@media (max-width: 850px) {
    .upl-form-stack {
        max-width: none;
    }

    .upl-medal-row {
        grid-template-columns: 1fr;
    }

    #medalBtn {
        width: 100%;
    }

    .ev-file-row {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .ev-file-actions,
    .ev-file-row > div:last-child {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

.ev-file-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.ev-file-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.ev-file-icon > div,
.ev-file-icon-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.ev-file-icon i,
.ev-file-icon-link i {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
}

.ev-thumb {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: cover;
    object-position: center center;
    align-self: center;
    justify-self: center;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.ev-file-actions,
.ev-file-row > div:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    align-self: center;
}

#videoModal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(8px);
    z-index: 10000;
}

#videoModal > div {
    position: relative;
    width: min(560px, 92vw);
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

#videoModal button {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-2);
    background: var(--bg-surface-3) !important;
    color: var(--text-2) !important;
    cursor: pointer;
    line-height: 1;
}

#videoModal button:hover {
    background: var(--bg-hover) !important;
    color: var(--text-1) !important;
    border-color: var(--gold-border);
}

#videoModal button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
}

#videoModal > div > div {
    padding: 38px 30px 30px;
}

#videoModal > div > div > div > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#videoModal > div > div > div > div > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 0 4px;
    min-height: 18px;
}

#videoModal > div > div > div > div > div:first-child > div {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.8;
}

#videoModal > div > div > div > div > div:nth-child(2) {
    color: var(--text-1);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    padding-right: 42px;
}

#videoModal > div > div > div > div > div:nth-child(3) {
    color: var(--text-2);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    margin-top: -6px;
    padding-right: 18px;
}

#videoModal > div > div > div > div > div:nth-child(4) {
    display: grid;
    gap: 9px;
    margin-top: 6px;
}

#videoModal > div > div > div > div > div:nth-child(4) > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

#videoPrepareStatus {
    min-width: 0;
    color: var(--text-3);
    font-size: 0.84rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#videoPreparePercent {
    flex-shrink: 0;
    min-width: 48px;
    text-align: right;
    color: var(--text-1);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
}

#videoPreparePercent span {
    font-size: 0.7rem;
    color: var(--text-3);
    margin-left: 1px;
}

#videoModal > div > div > div > div > div:nth-child(4) > div:nth-child(2) {
    width: 100%;
    height: 10px;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-1);
    border-radius: 999px;
    overflow: hidden;
}

#videoPrepareBar {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gold);
    border-radius: inherit;
    transition: width 0.2s ease;
}

#videoFilename {
    min-width: 0;
    color: var(--text-4);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 850px) {
    .ev-file-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .ev-file-actions,
    .ev-file-row > div:last-child {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

.ev-file-row {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 78px !important;
    align-items: center !important;
    gap: 16px !important;
    min-height: 72px !important;
}

.ev-file-icon {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    align-self: center !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: var(--radius-sm) !important;
    background: var(--gold-bg) !important;
    border: 1px solid var(--gold-border) !important;
}

.ev-file-icon > div,
.ev-file-icon-link {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.ev-file-icon i,
.ev-file-icon-link i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.ev-thumb {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    vertical-align: middle !important;
}

.ev-file-meta {
    min-width: 0 !important;
    align-self: center !important;
}

.ev-file-actions,
.ev-file-row > div:last-child {
    width: 78px !important;
    min-width: 78px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    align-self: center !important;
    justify-self: end !important;
}

.ev-icon-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.ev-icon-btn i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.ev-tab-panel {
    display: none;
}

#evtab-files {
    display: block;
}

.ev-file-row {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 16px !important;
    min-height: 74px;
    padding: 14px 16px !important;
}

.ev-file-icon {
    width: 56px !important;
    height: 46px !important;
    min-width: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    justify-self: center !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
}

.ev-file-icon > div,
.ev-file-icon-link {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: var(--radius-sm) !important;
    background: var(--gold-bg) !important;
    border: 1px solid var(--gold-border) !important;
    color: var(--gold) !important;
    overflow: hidden !important;
    line-height: 1 !important;
}

.ev-file-icon > div i,
.ev-file-icon-link i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.ev-thumb {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    vertical-align: middle !important;
}

.ev-file-meta {
    min-width: 0;
    align-self: center !important;
}

.ev-file-actions,
.ev-file-row > div:last-child {
    min-width: 76px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    align-self: center !important;
    justify-self: end !important;
    margin: 0 !important;
}

#videoModal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 7, 18, 0.74);
    backdrop-filter: blur(7px);
    z-index: 10000;
}

#videoModal .video-prepare-card {
    position: relative;
    width: min(440px, 92vw);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-lg);
}

#videoModal .video-prepare-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-2);
    border-radius: 50%;
    background: var(--bg-surface-3) !important;
    color: var(--text-2) !important;
    cursor: pointer;
    z-index: 2;
}

#videoModal .video-prepare-close:hover {
    color: var(--text-1) !important;
    border-color: var(--gold-border);
    background: var(--bg-hover) !important;
}

.video-prepare-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 34px 30px 28px;
}

.video-prepare-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 1rem;
}

.video-prepare-title {
    color: var(--text-1);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.video-prepare-text {
    color: var(--text-2);
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 360px;
}

.video-prepare-progress-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
}

#videoPrepareStatus {
    color: var(--text-3);
    font-size: 0.82rem;
    font-weight: 600;
}

#videoPreparePercent {
    color: var(--text-1);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

#videoPreparePercent span {
    color: var(--text-3);
    font-size: 0.72rem;
    margin-left: 1px;
}

.video-prepare-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-1);
}

#videoPrepareBar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold-soft));
    transition: width 0.25s ease;
}

#videoFilename {
    color: var(--text-4);
    font-size: 0.78rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 850px) {
    .ev-file-row {
        grid-template-columns: 56px minmax(0, 1fr) !important;
    }

    .ev-file-actions,
    .ev-file-row > div:last-child {
        grid-column: 2;
        justify-content: flex-start !important;
        justify-self: start !important;
        min-width: 0;
    }
}

.doc-embed-wrapper {
    width: 100%;
    height: calc(100vh - 260px);
    min-height: 600px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.doc-embed {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.open-doc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}

.open-doc-button:hover {
    background: var(--bg-surface-3);
    border-color: var(--gold);
    color: var(--gold-soft);
}

@media (max-width: 850px) {
    .doc-embed-wrapper {
        height: calc(100vh - 180px);
        min-height: 480px;
    }
}

.info-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.info-tab-bar {
    display: inline-flex;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
}

.info-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-3);
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: calc(var(--radius-md) - 3px);
    transition: all 0.15s ease;
    font-family: inherit;
}

.info-tab-btn:hover {
    color: var(--text-1);
}

.info-tab-btn.active {
    background: var(--gold-bg);
    color: var(--gold-soft);
}

.info-tab-panel.hidden {
    display: none;
}

.info-perms {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.info-perms-section {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 20px;
}

.info-perms-section-head {
    margin-bottom: 16px;
}

.info-perms-section-head h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
}

.info-perms-section-head h3 i {
    color: var(--gold);
    font-size: 0.9rem;
}

.info-perms-section-head p {
    color: var(--text-3);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.5;
}

.info-perms-section-head p strong {
    color: var(--gold-soft);
    font-weight: 600;
}

.info-perms-role-list,
.info-perms-user-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-perms-role-item,
.info-perms-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.info-perms-role-meta,
.info-perms-user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.info-perms-role-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.info-perms-role-name,
.info-perms-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-1);
}

.info-perms-role-sub,
.info-perms-user-sub {
    font-size: 0.75rem;
    color: var(--text-3);
    margin-top: 2px;
}

.info-perms-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-1);
    flex-shrink: 0;
}

.info-perms-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.info-perms-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.info-perms-toggle-track {
    position: absolute;
    inset: 0;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-1);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.info-perms-toggle-track::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-3);
    border-radius: 50%;
    transition: transform 0.18s ease, background 0.18s ease;
}

.info-perms-toggle input:checked + .info-perms-toggle-track {
    background: var(--gold-bg);
    border-color: var(--gold-border);
}

.info-perms-toggle input:checked + .info-perms-toggle-track::before {
    transform: translateX(18px);
    background: var(--gold-soft);
}

.info-perms-toggle input:disabled + .info-perms-toggle-track {
    opacity: 0.5;
    cursor: not-allowed;
}

.info-perms-user-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.info-perms-user-input {
    flex: 1 1 240px;
    min-width: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    color: var(--text-1);
    font-size: 0.85rem;
    font-family: inherit;
}

.info-perms-user-input:focus {
    outline: none;
    border-color: var(--gold);
}

.info-perms-user-add {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.info-perms-user-add:hover:not(:disabled) {
    background: var(--bg-surface-3);
    border-color: var(--gold);
}

.info-perms-user-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.info-perms-user-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    flex-shrink: 0;
}

.info-perms-user-remove:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.info-perms-user-feedback {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.info-perms-feedback-success {
    background: rgba(100, 125, 98, 0.15);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
}

.info-perms-feedback-error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.info-perms-empty {
    color: var(--text-3);
    font-size: 0.85rem;
    padding: 16px;
    text-align: center;
    background: var(--bg-surface);
    border: 1px dashed var(--border-1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-perms-empty-row {
    list-style: none;
}

.ticket-type-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticket-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.ticket-date-time {
    font-size: 0.72rem;
    color: var(--text-3);
}

.transcript-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-3);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.15s ease;
}

.transcript-back:hover {
    color: var(--gold-soft);
}

.transcript-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.transcript-meta-item {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    min-width: 0;
}

.transcript-meta-item-wide {
    grid-column: 1 / -1;
}

.transcript-meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.transcript-meta-value {
    color: var(--text-1);
    font-size: 0.88rem;
    word-break: break-word;
}

.transcript-frame-wrap {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.transcript-frame {
    width: 100%;
    height: 600px;
    border: 0;
    display: block;
    background: #ffffff;
}

#session-expired-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#session-expired-overlay.visible {
    display: flex;
    opacity: 1;
}

.session-expired-card {
    width: min(440px, 92vw);
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: 7px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    padding: 36px 30px 28px;
    text-align: center;
    color: var(--text-1);
}

.session-expired-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.session-expired-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
}

.session-expired-card p {
    margin: 0 0 22px;
    color: var(--text-3);
    font-size: 13.5px;
    line-height: 1.5;
}

.session-expired-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gold);
    color: #0a1020;
    border: 1px solid var(--gold);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.session-expired-btn:hover {
    background: var(--gold-soft);
    color: #0a1020;
}

@keyframes ppFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes ppPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--gold-bg); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(100, 125, 98, 0.06); }
}

.player-page-layout .content-card {
    box-shadow: var(--shadow-sm);
    animation: ppFadeUp 0.35s ease both;
}

.player-page-layout .card-header {
    position: relative;
    background: linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
}

.player-page-layout .card-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--gold-soft) 0%, transparent 45%);
    opacity: 0.55;
}

.player-page-layout .card-header h2 {
    gap: 12px;
    font-size: 1.05rem;
}

.player-page-layout .card-header h2 i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 0.82rem;
}

.player-page-layout .stats-row {
    gap: 14px;
}

.player-page-layout .stat-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--border-1);
    border-left: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    padding: 17px 18px 16px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    animation: ppFadeUp 0.4s ease both;
}

.player-page-layout .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-soft);
    opacity: 0.95;
}

.player-page-layout .stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-2);
    box-shadow: var(--shadow-md);
}

.player-page-layout .stat-card.stat-danger::before { background: var(--red); }
.player-page-layout .stat-card.stat-warning::before { background: var(--orange); }
.player-page-layout .stat-card.stat-info::before { background: var(--blue); }
.player-page-layout .stat-card.stat-success::before { background: var(--green); }
.player-page-layout .stat-card.stat-muted::before { background: var(--text-4); }
.player-page-layout .stat-card.stat-muted-dark::before { background: var(--text-3); }
.player-page-layout .stat-card.stat-muted-dark .stat-value { color: var(--text-1); }

.player-page-layout .stat-value {
    font-size: 27px;
    letter-spacing: -0.5px;
}

.player-page-layout .stat-label {
    color: var(--text-4);
}

.player-page-layout .tab-bar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
}

.player-page-layout .tab-btn {
    margin-bottom: 0;
    padding: 8px 15px;
    border-bottom: none;
    border-radius: var(--radius-md);
    color: var(--text-3);
}

.player-page-layout .tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.player-page-layout .tab-btn.active {
    border-bottom: none;
    background: var(--gold-bg);
    color: var(--gold-soft);
    box-shadow: inset 0 0 0 1px var(--gold-border);
}

.tab-count.warning {
    background: var(--orange-bg);
    color: var(--orange);
}

.player-page-layout .table-wrap {
    border-radius: var(--radius-lg);
}

.player-page-layout .table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-surface-2);
}

.player-page-layout .table-wrap tbody tr {
    transition: background 0.12s ease;
}

.player-page-layout .table-wrap tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.014);
}

.player-page-layout .table-wrap tbody tr:hover td {
    background: var(--gold-bg);
}

.player-page-layout .table-wrap tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--gold-soft);
}

.player-page-layout .mod-avatar {
    border-color: var(--border-2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.player-page-layout .player-profile-card {
    position: relative;
    overflow: hidden;
    gap: 20px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(135% 120% at 0% 0%, rgba(100, 125, 98, 0.18) 0%, transparent 52%),
        linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
}

.player-page-layout .player-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    border: 2px solid var(--border-2);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.player-page-layout .player-profile-info h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.player-page-layout .info-grid {
    gap: 12px;
}

.player-page-layout .info-cell {
    position: relative;
    border-radius: var(--radius-lg);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.player-page-layout .info-cell:hover {
    transform: translateY(-2px);
    border-color: var(--gold-border);
    background: var(--bg-surface-3);
}

.player-page-layout .info-cell h4 {
    color: var(--text-4);
}

.player-page-layout .quick-actions-section h3 i,
.player-page-layout .join-settings-section h3 i {
    color: var(--gold-soft);
}

.player-page-layout .quick-action {
    position: relative;
    border-radius: var(--radius-lg);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.player-page-layout .quick-action:hover {
    transform: translateY(-2px);
    border-color: var(--gold-border);
    background: var(--bg-surface-3);
}

.player-page-layout .quick-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 15px;
}

.player-page-layout .quick-action::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    color: var(--text-4);
    font-size: 11px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.player-page-layout .quick-action:hover::after {
    transform: translateX(3px);
    color: var(--gold-soft);
}

.player-page-layout .empty-state {
    padding: 50px 24px;
    font-style: normal;
}

.player-page-layout .empty-state > i {
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 26px;
    animation: ppPulse 2.8s ease-in-out infinite;
}

.player-page-layout .empty-state h3 {
    font-size: 17px;
}

.player-page-layout .family-card {
    border-radius: var(--radius-lg);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.player-page-layout .family-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

.player-page-layout .detail-value {
    font-weight: 500;
}

.player-page-layout .detail-label {
    color: var(--text-4);
}

@media (max-width: 620px) {
    .player-page-layout .tab-bar {
        display: flex;
    }

    .player-page-layout .player-profile-card {
        flex-direction: column;
        text-align: center;
    }
}

.player-page-layout .balance-card {
    position: relative;
    overflow: hidden;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 20px;
    width: 100%;
    max-width: none;
    padding: 28px 30px;
    margin-bottom: 0;
    border: 1px solid var(--border-1);
    border-left: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(60% 150% at 0% 0%, rgba(100, 125, 98, 0.14) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    box-shadow: var(--shadow-sm);
    animation: ppFadeUp 0.4s ease both;
}

.player-page-layout .balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold-soft);
}

.player-page-layout .balance-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-dim) 100%);
    color: #fff;
    font-size: 23px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(100, 125, 98, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.player-page-layout .balance-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.player-page-layout .balance-card-body h4 {
    color: var(--text-3);
    font-size: 11.5px;
    letter-spacing: 1.3px;
    margin: 0;
}

.player-page-layout .balance-card-body p {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1.3px;
    line-height: 1;
    margin: 0;
}

.player-main-area > .staff-notice,
.player-main-area > .alert-warning,
.player-main-area > .danger-notice {
    margin-bottom: 0;
}

.perm-ban-page .pb-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px;
    margin-bottom: 18px;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(85% 180% at 0% 0%, rgba(225, 85, 101, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    box-shadow: var(--shadow-sm);
}

.perm-ban-page .pb-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.perm-ban-page .pb-hero-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red) 0%, #a83544 100%);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(225, 85, 101, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.perm-ban-page .pb-hero-text h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 3px;
    font-size: 21px;
    font-weight: 700;
    color: var(--text-1);
}

.perm-ban-page .pb-hero-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--gold-bg);
    color: var(--gold-soft);
    border: 1px solid var(--gold-border);
}

.perm-ban-page .pb-hero-text p {
    margin: 0;
    color: var(--text-3);
    font-size: 13px;
}

.perm-ban-page .pb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.perm-ban-page .pb-toolbar h2 {
    margin: 0;
}

.perm-ban-page .pb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.perm-ban-page .pb-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.perm-ban-page .pb-search-field i {
    position: absolute;
    left: 12px;
    color: var(--text-4);
    font-size: 12px;
    pointer-events: none;
}

.perm-ban-page .pb-search-field input {
    width: 320px;
    max-width: 58vw;
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    padding: 9px 12px 9px 32px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.perm-ban-page .pb-search-field input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-surface-2);
}

.perm-ban-page .pb-clear {
    padding: 9px 11px;
}

.perm-ban-page .table-wrap {
    border-radius: var(--radius-lg);
}

.perm-ban-page .table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-surface-2);
}

.perm-ban-page .table-wrap tbody tr {
    transition: background 0.12s ease;
}

.perm-ban-page .table-wrap tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.014);
}

.perm-ban-page .table-wrap tbody tr:hover td {
    background: var(--gold-bg);
}

.perm-ban-page .table-wrap tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--red);
}

.perm-ban-page .player-cell-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 9px;
    box-shadow: 0 0 0 2px rgba(225, 85, 101, 0.25);
}

.perm-ban-page .empty-state {
    padding: 52px 24px;
    font-style: normal;
}

.perm-ban-page .empty-state > i {
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--red-bg);
    border: 1px solid rgba(225, 85, 101, 0.4);
    color: var(--red);
    font-size: 26px;
}

.perm-ban-page .empty-state h3 {
    font-size: 17px;
}

@media (max-width: 680px) {
    .perm-ban-page .pb-search {
        width: 100%;
    }

    .perm-ban-page .pb-search-field {
        flex: 1;
    }

    .perm-ban-page .pb-search-field input {
        width: 100%;
        max-width: none;
    }
}

.perm-ban-page .pb-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.perm-ban-page .pb-view-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    background: var(--bg-input);
}

.perm-ban-page .pb-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 30px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-3);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.perm-ban-page .pb-view-btn:hover {
    color: var(--text-1);
    background: var(--bg-hover);
}

.perm-ban-page .pb-view-btn.active {
    background: var(--gold-bg);
    color: var(--gold-soft);
    box-shadow: inset 0 0 0 1px var(--gold-border);
}

.perm-ban-page .pb-results.view-list .pb-grid-view {
    display: none;
}

.perm-ban-page .pb-results.view-grid .pb-list-view {
    display: none;
}

.perm-ban-page .pb-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.perm-ban-page .pb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.perm-ban-page .pb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--red);
    opacity: 0.85;
}

.perm-ban-page .pb-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-2);
    box-shadow: var(--shadow-md);
}

.perm-ban-page .pb-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.perm-ban-page .pb-card-avatar {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 11px;
    object-fit: cover;
    background: var(--bg-surface-3);
    box-shadow: 0 0 0 2px rgba(225, 85, 101, 0.28);
}

.perm-ban-page .pb-card-ident {
    min-width: 0;
    flex: 1;
}

.perm-ban-page .pb-card-name {
    color: var(--text-1);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.perm-ban-page .pb-card-id {
    color: var(--text-3);
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.perm-ban-page .pb-card-sub {
    color: var(--text-4);
    font-size: 11px;
    margin-top: 1px;
}

.perm-ban-page .pb-card-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(225, 85, 101, 0.4);
}

.perm-ban-page .pb-card-fields {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.perm-ban-page .pb-card-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
}

.perm-ban-page .pb-card-label {
    color: var(--text-4);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.perm-ban-page .pb-card-field .mono {
    color: var(--text-2);
}

.perm-ban-page .pb-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-1);
}

@media (max-width: 680px) {
    .perm-ban-page .pb-toolbar-right {
        width: 100%;
    }

    .perm-ban-page .pb-search {
        flex: 1;
    }

    .perm-ban-page .pb-grid-view {
        grid-template-columns: 1fr;
    }
}

@keyframes ticketsPulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 122, 0.5); }
    70% { box-shadow: 0 0 0 7px rgba(76, 175, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 122, 0); }
}

@keyframes ticketsGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.tickets-page .tickets-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(75% 170% at 0% 0%, rgba(100, 125, 98, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    box-shadow: var(--shadow-sm);
}

.tickets-page .tickets-hero h1 {
    gap: 12px;
}

.tickets-page .tickets-hero h1 i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 16px;
}

.tickets-page .tickets-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(76, 175, 122, 0.4);
}

.tickets-page .tickets-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: ticketsPulse 1.8s ease-out infinite;
}

.tickets-page .content-card {
    box-shadow: var(--shadow-sm);
}

.tickets-page .card-header h2 {
    gap: 11px;
}

.tickets-page .card-header h2 i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 0.8rem;
}

.tickets-page .tickets-stat {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    padding: 16px 18px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tickets-page .tickets-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-soft);
    opacity: 0.9;
}

.tickets-page .tickets-stat:hover {
    transform: translateY(-3px);
    border-color: var(--border-2);
    box-shadow: var(--shadow-md);
}

.tickets-page .tickets-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-dim) 100%);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 6px 14px rgba(100, 125, 98, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tickets-page .tickets-stat-value {
    font-size: 25px;
    letter-spacing: -0.5px;
}

.tickets-page .tickets-stat-label {
    color: var(--text-4);
}

.tickets-page .top-closer {
    border-radius: var(--radius-md);
    padding: 11px 13px;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tickets-page .top-closer:hover {
    transform: translateX(3px);
}

.tickets-page .top-closer.top-1 {
    background: linear-gradient(90deg, var(--gold-bg) 0%, transparent 85%);
    border-color: var(--gold-border);
}

.tickets-page .by-type-bar {
    height: 7px;
    background: var(--bg-surface-3);
    border-radius: 999px;
}

.tickets-page .by-type-bar-fill {
    background: linear-gradient(90deg, var(--gold-dim) 0%, var(--gold-soft) 100%);
    border-radius: 999px;
    transform-origin: left;
    animation: ticketsGrow 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.tickets-page .by-type-count {
    color: var(--text-3);
}

.tickets-page .status-breakdown-row {
    border-radius: var(--radius-md);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tickets-page .status-breakdown-row:hover {
    background: var(--bg-surface-3);
    border-color: var(--border-2);
}

.tickets-page .data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.tickets-page .data-table tbody tr {
    transition: background 0.12s ease;
}

.tickets-page .data-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.014);
}

.tickets-page .data-table tbody tr:hover td {
    background: var(--gold-bg);
}

.tickets-page .data-table tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--gold-soft);
}

.tickets-page .empty-state {
    font-style: normal;
    padding: 42px 20px;
}

.disruptive-page .dp-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(75% 170% at 0% 0%, rgba(232, 153, 66, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    box-shadow: var(--shadow-sm);
}

.disruptive-page .dp-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.disruptive-page .dp-hero-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange) 0%, #c0392b 100%);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(232, 153, 66, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.disruptive-page .dp-hero-text h1 {
    margin: 0 0 3px;
}

.disruptive-page .dp-hero-text p {
    margin: 0;
}

.disruptive-page .dp-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-1);
}

.disruptive-page .dp-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-3);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.disruptive-page .dp-tab i {
    font-size: 12px;
}

.disruptive-page .dp-tab:hover {
    color: var(--text-1);
}

.disruptive-page .dp-tab.dp-tab-ban.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

.disruptive-page .dp-tab.dp-tab-warn.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.disruptive-page .content-card {
    box-shadow: var(--shadow-sm);
}

.disruptive-page .dp-filter-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px 22px;
    align-items: start;
}

.disruptive-page .dp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.disruptive-page .dp-field-wide {
    grid-column: 1 / -1;
}

.disruptive-page .dp-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-4);
}

.disruptive-page .dp-period {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.disruptive-page .dp-period-btn {
    padding: 10px 6px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.disruptive-page .dp-period-btn:hover {
    border-color: var(--border-3);
    color: var(--text-1);
}

.disruptive-page .dp-form-ban .dp-period-btn.active {
    background: var(--red-bg);
    border-color: var(--red);
    color: var(--red);
}

.disruptive-page .dp-form-warn .dp-period-btn.active {
    background: var(--orange-bg);
    border-color: var(--orange);
    color: var(--orange);
}

.disruptive-page .dp-radios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.disruptive-page .dp-radio {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    cursor: pointer;
    transition: all 0.15s ease;
}

.disruptive-page .dp-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.disruptive-page .dp-radio > i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: var(--text-3);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.disruptive-page .dp-radio-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.disruptive-page .dp-radio-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
}

.disruptive-page .dp-radio-sub {
    font-size: 11px;
    color: var(--text-4);
    margin-top: 1px;
}

.disruptive-page .dp-form-ban .dp-radio:has(input:checked) {
    border-color: var(--red);
    background: var(--red-bg);
}

.disruptive-page .dp-form-ban .dp-radio:has(input:checked) > i {
    color: var(--red);
}

.disruptive-page .dp-form-warn .dp-radio:has(input:checked) {
    border-color: var(--orange);
    background: var(--orange-bg);
}

.disruptive-page .dp-form-warn .dp-radio:has(input:checked) > i {
    color: var(--orange);
}

.disruptive-page .dp-actions {
    display: flex;
    margin-top: 18px;
}

.disruptive-page .dp-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.disruptive-page .dp-results-header h2 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.disruptive-page .dp-count {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: var(--bg-surface-3);
    color: var(--text-2);
    border: 1px solid var(--border-2);
}

.disruptive-page .table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-surface-2);
}

.disruptive-page .table-wrap tbody tr {
    transition: background 0.12s ease;
}

.disruptive-page .table-wrap tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.014);
}

.disruptive-page .table-wrap tbody tr:hover td {
    background: var(--bg-hover);
}

.disruptive-page .empty-state {
    font-style: normal;
    padding: 48px 24px;
}

.disruptive-page .empty-state > i {
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--green-bg);
    border: 1px solid rgba(76, 175, 122, 0.4);
    color: var(--green);
    font-size: 26px;
}

.disruptive-page .empty-state h3 {
    font-size: 17px;
    color: var(--text-1);
    margin: 0 0 6px;
}

@media (max-width: 720px) {
    .disruptive-page .dp-filter-grid {
        grid-template-columns: 1fr;
    }
}

.srv-page .page-header,
.srv-page .ev-page-header {
    position: relative;
    padding: 18px 22px;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(70% 170% at 0% 0%, rgba(100, 125, 98, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    box-shadow: var(--shadow-sm);
}

.srv-page .ev-page-header {
    align-items: center;
}

.srv-page .page-header h1,
.srv-page .ev-page-header h1 {
    gap: 12px;
}

.srv-page .page-header h1 > i:first-child,
.srv-page .ev-page-header h1 > i:first-child {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 16px;
}

.srv-page .content-card {
    box-shadow: var(--shadow-sm);
}

.srv-page .card-header h2 {
    gap: 11px;
}

.srv-page .card-header h2 > i:first-child {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 0.8rem;
}

.srv-page .table-wrap {
    border-radius: var(--radius-lg);
}

.srv-page .table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-surface-2);
}

.srv-page .table-wrap tbody tr {
    transition: background 0.12s ease;
}

.srv-page .table-wrap tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.014);
}

.srv-page .table-wrap tbody tr:hover td {
    background: var(--gold-bg);
}

.srv-page .table-wrap tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--gold-soft);
}

.srv-page .search-form-row input[type="text"] {
    border-radius: var(--radius-md);
}

.srv-page .search-form-row input[type="text"]:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-surface-2);
}

.srv-page .search-form-row select {
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    padding: 9px 12px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.srv-page .search-form-row select:focus {
    outline: none;
    border-color: var(--gold);
}

.srv-page .search-avatar {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid var(--border-2);
    background: var(--bg-surface-3);
}

.srv-page .empty-state,
.srv-page .search-empty-state {
    font-style: normal;
    padding: 48px 24px;
    text-align: center;
}

.srv-page .empty-state > i,
.srv-page .search-empty-state > i {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 25px;
    animation: ppPulse 2.8s ease-in-out infinite;
}

.srv-page .empty-state.empty-state-success > i {
    background: var(--green-bg);
    border-color: rgba(76, 175, 122, 0.4);
    color: var(--green);
}

.srv-page .empty-state h3,
.srv-page .search-empty-state h3 {
    font-size: 17px;
    color: var(--text-1);
    margin: 0 0 6px;
}

.users-page .users-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px;
    margin-bottom: 18px;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(75% 170% at 0% 0%, rgba(100, 125, 98, 0.13) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    box-shadow: var(--shadow-sm);
}

.users-page .users-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.users-page .users-hero-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-dim) 100%);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(100, 125, 98, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.users-page .users-hero-text h1 {
    margin: 0 0 3px;
    font-size: 21px;
    font-weight: 700;
    color: var(--text-1);
}

.users-page .users-hero-text p {
    margin: 0;
    color: var(--text-3);
    font-size: 13px;
}

.users-page .content-card {
    box-shadow: var(--shadow-sm);
}

.users-page .um-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.users-page .um-toolbar h2 {
    margin: 0;
    gap: 11px;
}

.users-page .um-toolbar h2 > i:first-child {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 0.8rem;
}

.users-page .um-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: var(--bg-surface-3);
    color: var(--text-2);
    border: 1px solid var(--border-2);
}

.users-page .um-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.users-page .um-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.users-page .um-search-field i {
    position: absolute;
    left: 12px;
    color: var(--text-4);
    font-size: 12px;
    pointer-events: none;
}

.users-page .um-search-field input {
    width: 280px;
    max-width: 55vw;
    background: var(--bg-input);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    padding: 9px 12px 9px 32px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.users-page .um-search-field input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-surface-2);
}

.users-page .um-clear {
    padding: 9px 11px;
}

.users-page .um-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
}

.users-page .um-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-surface-2);
}

.users-page .um-row {
    cursor: pointer;
}

.users-page .um-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.014);
}

.users-page .um-row:hover td {
    background: var(--gold-bg);
}

.users-page .um-row:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--gold-soft);
}

.users-page .um-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border-color: var(--border-2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.users-page .um-role-badge {
    border-radius: 20px;
    padding: 3px 10px;
}

.users-page .um-empty-state {
    text-align: center;
    padding: 52px 24px;
}

.users-page .um-empty-state > i {
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 26px;
    animation: ppPulse 2.8s ease-in-out infinite;
}

.users-page .um-empty-state h3 {
    font-size: 17px;
    color: var(--text-1);
    margin: 0 0 6px;
}

.users-page .um-empty-state p {
    color: var(--text-3);
    font-size: 13.5px;
    margin: 0 0 16px;
}

.users-page .um-empty-state a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.users-page .um-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.users-page .um-page-info {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 680px) {
    .users-page .um-search {
        width: 100%;
    }

    .users-page .um-search-field {
        flex: 1;
    }

    .users-page .um-search-field input {
        width: 100%;
        max-width: none;
    }
}

.staff-profile-page .sp-header {
    align-items: center;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(60% 180% at 0% 0%, rgba(100, 125, 98, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    box-shadow: var(--shadow-sm);
}

.staff-profile-page .sp-avatar {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    border: 2px solid var(--border-2);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.staff-profile-page .sp-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.staff-profile-page .sp-role-tag {
    border-radius: 20px;
}

.staff-profile-page .sp-tabs {
    border-radius: var(--radius-lg);
}

.staff-profile-page .sp-tab.active {
    background: var(--gold-bg);
    color: var(--gold-soft);
    border-color: var(--gold-border);
    box-shadow: none;
}

.staff-profile-page .sp-tab.active i {
    color: var(--gold-soft);
}

.staff-profile-page .sp-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.staff-profile-page .sp-card-title i {
    color: var(--gold-soft);
}

.staff-profile-page .sp-stat {
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--border-1);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
    padding: 15px 16px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.staff-profile-page .sp-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-soft);
    opacity: 0.9;
}

.staff-profile-page .sp-stat:hover {
    transform: translateY(-3px);
    border-color: var(--border-2);
    box-shadow: var(--shadow-md);
}

.staff-profile-page .sp-stat-val {
    font-size: 24px;
    letter-spacing: -0.5px;
}

.staff-profile-page .sp-stat-lbl {
    color: var(--text-4);
}

.staff-profile-page .sp-tbl-wrap {
    border-radius: var(--radius-lg);
}

.staff-profile-page .sp-tbl thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.staff-profile-page .sp-tbl tbody tr {
    transition: background 0.12s ease;
}

.staff-profile-page .sp-tbl tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.014);
}

.staff-profile-page .sp-tbl tbody tr:hover td {
    background: var(--gold-bg);
}

.staff-profile-page .sp-tbl tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--gold-soft);
}

.staff-profile-page .sp-empty {
    font-style: normal;
    padding: 44px 20px;
}

.staff-profile-page .sp-empty i {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 23px;
    animation: ppPulse 2.8s ease-in-out infinite;
}

.sp-modal,
.um-m {
    border-radius: var(--radius-xl);
}

.sp-mhdr,
.um-mhdr {
    background: linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
}

.sp-mhdr h3,
.um-mhdr h3 {
    gap: 11px;
    font-size: 15px;
}

.sp-mhdr h3 > i:first-child,
.um-mhdr h3 > i:first-child {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-soft);
    font-size: 0.82rem;
}

.sp-role-row {
    border-radius: var(--radius-md);
}
