/* Modern UI/UX Design Update for YouBuild Panel */

:root {
    /* Enhanced Color Palette - Gray, Black, Teal Theme */
    --bg: #0a0e27;
    --bg-soft: #1a1a1a;
    --sidebar: #0d111e;
    --card: #141b2f;
    --card-2: #2a2a2a;
    --surface: #0c1429;
    --border: rgba(15, 123, 129, 0.12);
    --border-hover: rgba(15, 123, 129, 0.25);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #0f7f88;
    --accent-bright: #14b8a6;
    --accent-2: #10b981;
    --accent-3: #6b7280;
    --danger: #0f8f96;
    --warning: #f59e0b;
    --info: #6b7280;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12), transparent 50%),
        linear-gradient(180deg, #050a1a 0%, #0a0e27 100%);
    color: var(--text);
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

button, input, select, textarea, a {
    font: inherit;
}

/* Button Styles */
button, a.secondary, a.danger {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    cursor: pointer;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

button {
    background: linear-gradient(135deg, #0f7f88 0%, #0a5f67 100%);
    box-shadow: 0 4px 15px rgba(15, 123, 129, 0.3);
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 123, 129, 0.4);
    filter: brightness(1.1);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-btn, .secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-hover);
    box-shadow: none !important;
}

.secondary-btn:hover, .secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-bright);
}

.danger {
    background: linear-gradient(135deg, #0f8f96 0%, #0a6e72 100%) !important;
    box-shadow: 0 4px 15px rgba(15, 123, 129, 0.3) !important;
}

.danger:hover {
    box-shadow: 0 6px 20px rgba(15, 123, 129, 0.4) !important;
}

/* Form Elements */
input, select, textarea {
    width: 100%;
    background: rgba(15, 21, 53, 0.5);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition: var(--transition);
}

input::placeholder, textarea::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
    background: rgba(15, 21, 53, 0.8);
}

label {
    display: block;
    margin: 0 0 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1 { font-size: 2.2rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }

p { margin: 0; }

.muted { color: var(--muted); }
.small-text { font-size: 0.92rem; }

/* Layout */
.app-shell {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    background: linear-gradient(180deg, rgba(13, 17, 30, 0.98) 0%, rgba(10, 14, 39, 0.98) 100%);
    border-right: 1px solid var(--border);
    padding: 24px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: auto;
}

.brand-box {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 8px;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.nav-btn {
    text-align: left;
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    padding: 12px 14px;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: var(--border-hover);
    color: var(--text);
}

.nav-btn.is-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: var(--accent-bright);
    color: var(--accent-bright);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.sidebar-userbox {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.sidebar-username {
    font-weight: 700;
    margin-top: 6px;
    color: var(--accent-bright);
}

/* Header */
.app-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(20, 27, 47, 0.4) 0%, rgba(20, 27, 47, 0.2) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-kicker {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--accent-bright);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.header-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Main Content */
.app-content {
    display: flex;
    flex-direction: column;
}

.app-main {
    padding: 32px 28px;
    flex: 1;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.metric-card {
    background: linear-gradient(135deg, rgba(20, 27, 47, 0.8) 0%, rgba(20, 27, 47, 0.5) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.metric-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.metric-label {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 12px;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-sub {
    color: var(--muted);
    font-size: 0.9rem;
}

.metric-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.1);
    overflow: hidden;
    margin-top: 12px;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4b5563, #6b7280);
    transition: width 0.4s ease;
}

/* Card Styles */
.card {
    background: linear-gradient(135deg, rgba(20, 27, 47, 0.9) 0%, rgba(20, 27, 47, 0.6) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 32px rgba(20, 146, 142, 0.15);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-head h2 {
    margin: 0;
}

/* World Grid - New Modern Layout */
.worlds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.world-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.8) 0%, rgba(26, 40, 68, 0.5) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.world-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-bright);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.2);
}

.world-card-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    position: relative;
    overflow: hidden;
}

.world-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 50%);
}

.world-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.world-card-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.world-card-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 12px;
    display: grid;
    gap: 4px;
}

.world-card-stats {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.world-card-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.world-card-stat-label {
    color: var(--muted);
}

.world-card-stat-value {
    font-weight: 600;
}

.world-card-buttons {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

/* Tabs */
.tab-pane {
    display: none;
}

.tab-pane.is-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(6px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Server Subtabs */
.server-subtabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.server-subtab-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    transition: var(--transition);
}

.server-subtab-btn:hover {
    color: var(--accent-bright);
}

.server-subtab-btn.is-active {
    color: var(--accent-bright);
    border-bottom-color: var(--accent-bright);
}

.server-subtab-pane {
    display: none;
}

.server-subtab-pane.is-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Console */
.live-console {
    min-height: 520px;
    max-height: 520px;
    overflow: auto;
    background: linear-gradient(135deg, rgba(5, 9, 20, 0.9) 0%, rgba(15, 21, 53, 0.4) 100%);
    border: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    padding: 16px;
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 0.93rem;
    line-height: 1.5;
}

.mc-line {
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 4px;
}

.console-command-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    background: linear-gradient(135deg, rgba(4, 7, 15, 0.95) 0%, rgba(10, 14, 39, 0.8) 100%);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 14px 16px;
}

.console-prompt {
    color: var(--accent-bright);
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-weight: 700;
}

.console-command-bar input {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.console-command-bar input:focus {
    box-shadow: none;
}

/* Player Manager Cards */
.player-manager-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.player-card-v2 {
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.8) 0%, rgba(26, 40, 68, 0.5) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.player-card-v2:hover {
    transform: translateY(-4px);
    border-color: var(--accent-bright);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.player-card-v2-head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.player-card-v2-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    font-weight: 800;
    flex-shrink: 0;
}

.player-card-v2-meta {
    flex: 1;
    min-width: 0;
}

.player-card-v2-name {
    font-weight: 700;
    word-break: break-word;
}

.player-card-v2-sub {
    font-size: 0.85rem;
    color: var(--muted);
}

.player-card-v2-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

/* Modal */
.player-modal[hidden] {
    display: none !important;
}

.player-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    animation: modalFadeIn 0.3s ease-out;
}

.player-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 20, 0.7);
    backdrop-filter: blur(6px);
}

.player-modal-dialog, .player-modal-dialog-v2 {
    position: relative;
    width: min(950px, calc(100vw - 48px));
    max-height: calc(100vh - 60px);
    overflow: auto;
    margin: 30px auto;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
    background: linear-gradient(135deg, rgba(20, 146, 142, 0.08) 0%, rgba(20, 146, 142, 0.04) 100%);
    padding: 24px 32px;
    border-radius: 20px 20px 0 0;
    margin: -32px -32px 32px -32px;
}

.player-modal-identity {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.player-modal-avatar {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0bb0a3 0%, #31c7b8 100%);
    font-weight: 800;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.player-modal-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    padding: 0;
    background: linear-gradient(135deg, rgba(20, 146, 142, 0.1) 0%, rgba(20, 146, 142, 0.05) 100%);
    border: 1px solid rgba(20, 146, 142, 0.2);
    color: #1fb5a7;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.player-modal-close:hover {
    background: linear-gradient(135deg, rgba(20, 146, 142, 0.2) 0%, rgba(20, 146, 142, 0.1) 100%);
    border-color: #1fb5a7;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(20, 146, 142, 0.3);
}

/* Mod Actions */
.mod-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 14px 0;
}

/* Sanctions */
.sanctions-card {
    padding: 24px;
}

.sanctions-log-row {
    display: grid;
    grid-template-columns: 80px 100px 120px 120px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
    margin-bottom: 8px;
}

.sanctions-log-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-bright);
}

.sanctions-log-type {
    font-weight: 700;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    color: var(--accent-bright);
    font-size: 0.8rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .worlds-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .player-manager-grid-v2 {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .app-main {
        padding: 20px 16px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .worlds-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .mod-actions {
        grid-template-columns: 1fr;
    }

    .player-manager-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .worlds-grid {
        grid-template-columns: 1fr;
    }

    .player-manager-grid-v2 {
        grid-template-columns: 1fr;
    }

    .player-modal-dialog, .player-modal-dialog-v2 {
        width: calc(100vw - 20px);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.3);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.5);
}

/* Utility Classes */
.tool-card-wide {
    grid-column: 1 / -1;
}

/* Enhanced Tool Cards with Icons/Emojis */
.tool-card {
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.7) 0%, rgba(20, 30, 55, 0.5) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.tool-card h3::before {
    font-size: 1.3rem;
}

.tool-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.tool-form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.broadcast-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

/* Player Manager TopBar */
.player-manager-topbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.player-overview-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.player-overview-pill:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: var(--accent-bright);
}

.player-overview-label {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-overview-pill strong {
    color: var(--accent-bright);
    font-size: 1.1rem;
}

.player-overview-search {
    flex: 1;
    min-width: 200px;
}

.player-overview-search input {
    width: 100%;
    background: rgba(96, 165, 250, 0.08);
    border-color: var(--border);
}

/* Modern Player Grid V2 */
.player-manager-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.player-card-v2 {
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.8) 0%, rgba(20, 30, 55, 0.5) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.player-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s ease;
}

.player-card-v2:hover {
    transform: translateY(-6px);
    border-color: var(--accent-bright);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.player-card-v2:hover::before {
    left: 100%;
}

.player-card-v2-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.player-card-v2-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    font-weight: 800;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.player-card-v2-meta {
    flex: 1;
    min-width: 0;
}

.player-card-v2-name {
    font-weight: 700;
    word-break: break-word;
    font-size: 0.95rem;
}

.player-card-v2-sub {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 2px;
}

.player-card-v2-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.player-card-v2-actions button {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 10px;
}

/* Sanction Styles */
.sanctions-card {
    padding: 24px;
}

.sanction-category-block {
    margin-bottom: 20px;
}

.sanction-category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(96, 165, 250, 0.2);
}

.sanction-category-head h4 {
    margin: 0;
    color: var(--accent-bright);
    font-size: 0.95rem;
}

.sanction-category-count {
    font-size: 0.85rem;
    color: var(--muted);
    background: rgba(96, 165, 250, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.sanction-id-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.sanction-id-card {
    display: grid;
    gap: 8px;
    text-align: left;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.sanction-id-card:hover {
    border-color: var(--accent-bright);
    background: linear-gradient(135deg, rgba(20, 146, 142, 0.1) 0%, rgba(20, 146, 142, 0.08) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(20, 146, 142, 0.15);
}

.sanction-id-number {
    font-size: 0.82rem;
    color: var(--accent-bright);
    font-weight: 700;
}

.sanction-id-label {
    font-weight: 700;
    font-size: 0.95rem;
}

.sanction-id-description {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.sanctions-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.7fr) minmax(320px, 1.1fr);
    gap: 24px;
    align-items: start;
}

.sanctions-grid > .tool-card.tool-card-wide {
    grid-column: 1 / -1;
}

.log-toolbar,
.events-toolbar,
.transactions-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    background: rgba(255, 255, 255,+ 0.04);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 14px;
    padding: 14px;
}

.log-toolbar input,
.events-toolbar input,
.transactions-toolbar input {
    min-width: 220px;
    flex: 1 1 280px;
    background: rgba(15, 21, 53, 0.75);
}

.event-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.events-toolbar {
    justify-content: space-between;
}

.transactions-toolbar {
    justify-content: space-between;
}

.transactions-table-head,
.sanctions-log-head {
    display: grid;
    grid-template-columns: 110px 100px 120px 120px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(96, 165, 250, 0.07);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 14px;
}

.sanctions-log-head {
    margin-bottom: 8px;
}

.sanctions-log-list {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
    margin-top: 14px;
}

.sanctions-log-row {
    display: grid;
    grid-template-columns: 110px 100px 120px 120px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.sanctions-log-row:hover {
    background: rgba(96, 165, 250, 0.08);
    border-color: var(--accent-bright);
    transform: translateY(-1px);
}

.sanctions-log-type {
    font-weight: 700;
    padding: 6px 10px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    color: var(--accent-bright);
    font-size: 0.78rem;
    white-space: nowrap;
}

.sanctions-log-command {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sanctions-log-type {
    font-weight: 700;
    padding: 6px 10px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    color: var(--accent-bright);
    font-size: 0.78rem;
    white-space: nowrap;
}

.sanctions-log-time,
.sanctions-log-player,
.sanctions-log-user,
.sanctions-log-command {
    font-size: 0.92rem;
    color: var(--text);
}

.sanctions-log-command {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transactions-table-head {
    margin-bottom: 8px;
}

#transactions-list {
    display: grid;
    gap: 10px;
}

.transaction-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.transaction-row:hover {
    background: rgba(96, 165, 250, 0.05);
    border-color: var(--accent-bright);
}

.transaction-player,
.transaction-time,
.transaction-date {
    font-size: 0.9rem;
}

.transaction-player {
    font-weight: 600;
}

.transaction-time,
.transaction-date {
    color: var(--muted);
    font-size: 0.85rem;
}

.transaction-amount {
    font-weight: 700;
    font-size: 0.95rem;
}

.transaction-amount.in {
    color: #6ee7b7;
}

.transaction-amount.out {
    color: #fca5a5;
}

.live-console {
    min-height: 480px;
    max-height: 520px;
}

.console-command-bar {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
}

.console-command-bar input {
    min-width: 0;
}

.console-command-bar button {
    min-width: 110px;
}


/* Events Tab Styling */
.event-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.event-item:hover {
    background: rgba(96, 165, 250, 0.05);
    border-color: var(--accent-bright);
}

.event-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.event-badge.joins {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.event-badge.sanctions {
    background: rgba(20, 146, 142, 0.2);
    color: #fca5a5;
}

.event-badge.warnerror {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.event-badge.panel {
    background: rgba(139, 92, 246, 0.2);
    color: #d8b4fe;
}

/* Events Stats */
.events-stat-card {
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.6) 0%, rgba(26, 40, 68, 0.3) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    transition: var(--transition);
}

.events-stat-card:hover {
    border-color: var(--accent-bright);
    transform: translateY(-2px);
}

.events-stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.events-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.log-toolbar,
.events-toolbar,
.transactions-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 14px;
    padding: 14px;
}

.log-toolbar input,
.events-toolbar input,
.transactions-toolbar input {
    min-width: 220px;
    flex: 1 1 280px;
    background: rgba(15, 21, 53, 0.75);
}

.event-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.events-toolbar {
    justify-content: space-between;
}

.transactions-toolbar {
    justify-content: space-between;
}

.event-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    transition: var(--transition);
}

.event-item:hover {
    background: rgba(96, 165, 250, 0.05);
    border-color: var(--accent-bright);
    transform: translateY(-2px);
}

.event-item-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-line {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
}

.transactions-table-head {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.transaction-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.transaction-row:hover {
    background: rgba(96, 165, 250, 0.08);
    border-color: var(--accent-bright);
    transform: translateY(-2px);
}

.sanctions-log-head,
.sanctions-log-row {
    grid-template-columns: 110px 100px 120px 120px 1fr;
}

.sanctions-log-command {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sanction-id-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.sanction-id-card {
    display: grid;
    gap: 10px;
    justify-content: space-between;
    min-height: 140px;
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.65) 0%, rgba(20, 30, 55, 0.4) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.92rem;
}

.sanction-id-card:hover {
    border-color: var(--accent-bright);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.18);
}

.sanction-id-description {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 4.2em;
}

.sanctions-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.7fr) minmax(300px, 1fr);
    gap: 18px;
    align-items: start;
}

.sanctions-grid > .tool-card.tool-card-wide {
    grid-column: 1 / -1;
}

.live-console {
    background: linear-gradient(135deg, rgba(4, 7, 15, 0.95) 0%, rgba(10, 14, 39, 0.9) 100%);
    border: 1px solid rgba(96, 165, 250, 0.18);
}

.console-command-bar {
    border: 1px solid rgba(96, 165, 250, 0.14);
    padding: 16px;
}

.console-command-bar input {
    background: rgba(15, 21, 53, 0.85);
}

@media (max-width: 1200px) {
    .sanctions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .events-toolbar,
    .transactions-toolbar,
    .log-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .event-chip-row {
        justify-content: flex-start;
    }

    .transaction-row,
    .transactions-table-head,
    .sanctions-log-head,
    .sanctions-log-row {
        grid-template-columns: 1fr;
    }

    .sanctions-log-command {
        white-space: normal;
    }

    .console-command-bar {
        grid-template-columns: 1fr;
    }
}

/* Scheduler Styles */
.scheduler-task-item {
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.6) 0%, rgba(26, 40, 68, 0.3) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.scheduler-task-item:hover {
    border-color: var(--accent-bright);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.scheduler-task-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.scheduler-task-title {
    font-weight: 700;
    font-size: 1rem;
}

.scheduler-task-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.scheduler-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.scheduler-badge.scheduled {
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
}

.scheduler-task-command {
    background: rgba(5, 9, 20, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    color: var(--text);
    margin: 10px 0;
    word-break: break-all;
}

/* Transactions */
.transaction-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.transaction-row:hover {
    background: rgba(96, 165, 250, 0.08);
    border-color: var(--accent-bright);
    transform: translateY(-2px);
}

.transaction-player,
.transaction-time,
.transaction-date {
    font-size: 0.9rem;
}

.transaction-player {
    font-weight: 600;
}

.transaction-time,
.transaction-date {
    color: var(--muted);
    font-size: 0.85rem;
}

.transaction-amount {
    font-weight: 700;
    font-size: 0.95rem;
}

.transaction-amount.in {
    color: #6ee7b7;
}

.transaction-amount.out {
    color: #fca5a5;
}

/* Memory Worlds */
.memory-worlds-list {
    display: grid;
    gap: 10px;
}

.memory-world-row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(100px, 1fr));
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.6) 0%, rgba(26, 40, 68, 0.3) 100%);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.memory-world-row:hover {
    border-color: var(--accent-bright);
    transform: translateX(4px);
}

.memory-world-title {
    display: grid;
    gap: 4px;
}

.memory-world-scope {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 700;
}

.memory-world-name {
    font-weight: 700;
    word-break: break-word;
}

.memory-world-stat {
    display: grid;
    gap: 3px;
}

.memory-world-stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.memory-world-stat-value {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Raw Output Styling */
.rich-output {
    min-height: 180px;
    max-height: 340px;
    overflow: auto;
    background: linear-gradient(135deg, rgba(5, 9, 20, 0.95) 0%, rgba(15, 21, 53, 0.5) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.raw-player-output summary {
    cursor: pointer;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 600;
    padding: 10px 0;
    transition: var(--transition);
    user-select: none;
}

.raw-player-output summary:hover {
    color: var(--accent-bright);
}

/* Panel Notes */
.panel-note {
    color: var(--muted);
    font-size: 0.88rem;
    padding: 10px 14px;
    background: rgba(96, 165, 250, 0.05);
    border-left: 3px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Preset Description */
.preset-description {
    margin: 10px 0 14px;
    padding: 12px 14px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Moderation Grid */
.moderation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Command Preview */
.command-preview-box {
    margin-top: 16px;
}

#command-preview {
    min-height: 100px;
    max-height: 200px;
    resize: vertical;
    background: rgba(5, 9, 20, 0.8);
    border-color: var(--border);
    font-family: "JetBrains Mono", monospace;
}

/* Punishment Box */
.punishment-box {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Small Buttons */
.small-btn {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
}

/* Alert Styles */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.error {
    background: linear-gradient(135deg, rgba(20, 146, 142, 0.1) 0%, rgba(20, 146, 142, 0.05) 100%);
    border: 1px solid rgba(20, 146, 142, 0.3);
    color: #fca5a5;
}

.alert.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

/* Toast Notification Styles */
.toast-stack {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 1px solid rgba(20, 146, 142, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0bb0a3, #31c7b8);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.toast.success::before {
    background: linear-gradient(180deg, #10b981, #34d399);
}

.toast.error::before {
    background: linear-gradient(180deg, #1fb5a7, #f87171);
}

.toast.warning::before {
    background: linear-gradient(180deg, #f59e0b, #fbbf24);
}

.toast.info::before {
    background: linear-gradient(180deg, #6b7280, #9ca3af);
}

.toast.warning {
    /* Inherits base styles */
}

.toast.info {
    /* Inherits base styles */
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.toast-body {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Enhanced Modals */
.player-modal-layout {
    display: grid;
    gap: 16px;
}

.tool-card {
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.7) 0%, rgba(20, 30, 55, 0.5) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition);
}

.tool-card h3 {
    margin-bottom: 16px;
    font-weight: 700;
}

/* Better Input Focus States */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-bright);
    box-shadow: 
        0 0 0 3px rgba(96, 165, 250, 0.15),
        inset 0 1px 2px rgba(96, 165, 250, 0.1);
    background: rgba(15, 21, 53, 0.9);
}

/* Tab Navigation Enhancement */
.server-subtabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.server-subtabs::-webkit-scrollbar {
    height: 4px;
}

.server-subtabs::-webkit-scrollbar-track {
    background: transparent;
}

.server-subtabs::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.3);
    border-radius: 2px;
}

.server-subtab-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 10px 16px;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.server-subtab-btn:hover {
    color: var(--accent-bright);
    border-bottom-color: rgba(96, 165, 250, 0.5);
}

.server-subtab-btn.is-active {
    color: var(--accent-bright);
    border-bottom-color: var(--accent-bright);
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
}

/* Better Responsive Layout for Tool Cards */
.server-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.tool-card-wide {
    grid-column: 1 / -1;
}

/* Smooth Transitions for Tab Content */
.tab-pane.is-active {
    animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.server-subtab-pane.is-active {
    animation: fadeIn 0.3s ease;
}

/* Enhanced Modal Close Button Interaction */
.player-modal-close:active {
    transform: scale(0.95);
}

/* Better Hover States for Interactive Elements */
a[href]:hover,
.player-name-btn:hover {
    color: var(--accent-bright);
    text-decoration: underline;
}

/* Sanction Grid Responsive */
@media (max-width: 1200px) {
    .sanction-id-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .transaction-row {
        grid-template-columns: 1fr auto auto;
        font-size: 0.85rem;
    }

    .sanctions-log-head,
    .sanctions-log-row {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .sanctions-log-command {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .sanction-id-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .memory-world-row {
        grid-template-columns: 1fr;
    }

    .transaction-row,
    .transactions-table-head,
    .sanctions-log-head,
    .sanctions-log-row {
        grid-template-columns: 1fr;
    }

    .sanctions-log-command {
        white-space: normal;
    }

    .player-manager-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .player-overview-pill {
        width: 100%;
        justify-content: space-between;
    }

    .player-overview-search {
        min-width: auto;
        width: 100%;
    }

    .server-subtabs {
        gap: 8px;
    }

    .server-subtab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .toast-stack {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.loading {
    animation: shimmer 2s infinite;
}

/* Code Block Styling */
code {
    background: rgba(96, 165, 250, 0.1);
    color: var(--accent-bright);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85em;
}

label code {
    background: transparent;
    color: var(--accent-bright);
    padding: 0;
}

/* Legend Styling */
.label {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 600;
}

/* Event Chip Buttons */
.event-chip {
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.event-chip:hover {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.4);
    color: var(--accent-bright);
    transform: translateY(-2px);
}

.event-chip.is-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: var(--accent-bright);
    color: var(--accent-bright);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Transaction Filter */
.transaction-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.transaction-filter button {
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.transaction-filter button:hover {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.4);
    color: var(--accent-bright);
}

.transaction-filter button.is-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: var(--accent-bright);
    color: var(--accent-bright);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Scheduler Styles */
.scheduler-card {
    padding: 32px;
}

.scheduler-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Events List Container */
#events-list {
    display: grid;
    gap: 10px;
    max-height: 600px;
    overflow-y: auto;
}

/* Transactions Container */
#transactions-list {
    display: grid;
    gap: 8px;
}

/* Responsive Events Stats */
.events-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

/* Server Tools Card Grid */
.server-tools-card {
    padding: 24px;
}

.server-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

/* Better spacing for form inputs */
.moderation-grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.moderation-grid label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Enhanced player manager card */
.player-manager-card {
    padding: 24px;
}

/* Event line styling */
.event-line {
    word-break: break-word;
    line-height: 1.6;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15), transparent 60%),
        linear-gradient(180deg, #050a1a 0%, #0a0e27 100%);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(135deg, rgba(20, 27, 47, 0.95) 0%, rgba(20, 27, 47, 0.7) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.login-card h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Override and polish for console, logs, sanctions, events, transactions */
.log-toolbar,
.events-toolbar,
.transactions-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 14px;
    padding: 16px;
}

.log-toolbar input,
.events-toolbar input,
.transactions-toolbar input {
    min-width: 220px;
    flex: 1 1 260px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(15, 21, 53, 0.85);
    color: var(--text);
}

.log-toolbar button,
.events-toolbar button,
.transactions-toolbar button {
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid transparent;
    color: var(--text);
    padding: 11px 16px;
    border-radius: 12px;
    transition: var(--transition);
}

.log-toolbar button:hover,
.events-toolbar button:hover,
.transactions-toolbar button:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.live-console {
    background: linear-gradient(135deg, rgba(6, 11, 27, 0.95), rgba(12, 18, 44, 0.95));
    border: 1px solid rgba(96, 165, 250, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.console-command-bar {
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(8, 14, 31, 0.85);
    padding: 16px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.console-command-bar input {
    background: rgba(10, 17, 43, 0.9);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: var(--text);
}

.console-command-bar button {
    min-width: 140px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0bb0a3 0%, #0d7b76 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(20, 146, 142, 0.3);
    transition: var(--transition);
}

.console-command-bar button:hover {
    background: linear-gradient(135deg, #4b5563, #6b7280);
}

.sanctions-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.8fr) minmax(300px, 1fr);
    gap: 20px;
}

.sanction-id-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.sanction-id-card {
    padding: 18px;
    background: linear-gradient(135deg, rgba(20, 30, 55, 0.9), rgba(15, 22, 45, 0.8));
    border: 1px solid rgba(96, 165, 250, 0.14);
    box-shadow: 0 16px 40px rgba(4, 9, 27, 0.35);
}

.sanction-id-card:hover {
    background: linear-gradient(135deg, rgba(30, 44, 78, 0.95), rgba(19, 28, 52, 0.9));
}

.sanctions-log-head,
.sanctions-log-row,
.transactions-table-head,
.transaction-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto auto;
    gap: 12px;
    align-items: center;
}

.sanctions-log-head,
.transactions-table-head {
    padding: 14px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 14px;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.sanctions-log-row,
.transaction-row {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    transition: var(--transition);
}

.sanctions-log-row:hover,
.transaction-row:hover,
.event-item:hover {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-1px);
}

.sanctions-log-command {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}

.event-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.event-item-header {
    display: grid;
    gap: 6px;
}

.event-line {
    word-break: break-word;
    line-height: 1.6;
}

.transaction-player,
.transaction-time,
.transaction-date {
    font-size: 0.9rem;
}

.transaction-player {
    font-weight: 700;
}

.transaction-time,
.transaction-date {
    color: var(--muted);
}

.transaction-amount {
    font-weight: 700;
    font-size: 0.95rem;
}

.transaction-amount.in {
    color: #6ee7b7;
}

.transaction-amount.out {
    color: #fca5a5;
}

@media (max-width: 1200px) {
    .sanctions-grid,
    .transaction-row,
    .transactions-table-head,
    .sanctions-log-head,
    .sanctions-log-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .log-toolbar,
    .events-toolbar,
    .transactions-toolbar,
    .console-command-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .console-command-bar {
        grid-template-columns: 1fr;
    }

    .sanctions-log-command {
        white-space: normal;
    }
}

.login-card > p {
    color: var(--muted);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.login-card form {
    display: grid;
    gap: 16px;
}

.login-card label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.login-card input {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
}

.login-card button {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    box-shadow: 0 8px 24px rgba(75, 85, 99, 0.3);
}

.login-card button:hover {
    box-shadow: 0 12px 32px rgba(75, 85, 99, 0.4);
    transform: translateY(-2px);
}

/* =========================================================
   YOUBUILD PANEL – VISUAL POLISH PATCH
   Ganz ans Ende der Datei setzen
   ========================================================= */

:root {
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.16);
    --danger-soft: rgba(20, 146, 142, 0.16);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-strong: rgba(255, 255, 255, 0.07);
    --panel-outline: rgba(96, 165, 250, 0.18);
}

/* vorhandene Klasse aus dem Markup sauber abdecken */
.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(15, 123, 129, 0.35);
    border-radius: 12px;
    padding: 11px 14px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #0f8f96 0%, #0a6e72 100%);
    box-shadow: 0 8px 24px rgba(15, 123, 129, 0.25);
    transition: var(--transition);
}

.danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 123, 129, 0.35);
}

/* Header stärker und hochwertiger */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background:
        linear-gradient(90deg, rgba(8, 12, 28, 0.88) 0%, rgba(17, 24, 46, 0.84) 100%);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(96, 165, 250, 0.14);
}

.app-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hero */
.panel-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--panel-outline);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(20, 27, 47, 0.92) 0%, rgba(12, 18, 36, 0.92) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    position: relative;
}

.panel-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.03) 45%, transparent 70%);
    pointer-events: none;
}

.panel-hero__content {
    position: relative;
    z-index: 1;
}

.panel-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 10px;
}

.panel-hero__content h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.panel-hero__content p {
    max-width: 760px;
    color: #c9d4e5;
    font-size: 1rem;
}

.panel-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.panel-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(255, 255, 255, 0.05);
    color: #dbe8ff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.panel-hero__aside {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-kpi {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(8, 13, 29, 0.46);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-kpi--accent {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.14));
    border-color: rgba(96, 165, 250, 0.3);
}

.hero-kpi__label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-kpi__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    margin-bottom: 6px;
}

.hero-kpi small {
    color: #adc0dd;
    font-size: 0.84rem;
}

/* Sidebar klarer */
.nav-btn {
    position: relative;
    padding-left: 18px;
    overflow: hidden;
}

.nav-btn::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #9ca3af, #6b7280);
    transition: transform 0.22s ease;
}

.nav-btn:hover::before,
.nav-btn.is-active::before {
    transform: translateY(-50%) scaleY(1);
}

/* Karten konsistenter */
.card,
.metric-card,
.tool-card,
.player-card-v2,
.world-card,
.sanction-id-card,
.event-item,
.transaction-row,
.sanctions-log-row,
.scheduler-task-item {
    backdrop-filter: blur(14px);
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 154px;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(96,165,250,0), rgba(96,165,250,0.9), rgba(139,92,246,0.9), rgba(96,165,250,0));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.metric-card:hover::after {
    opacity: 1;
}

/* in HTML vorhanden, bisher aber nicht sauber abgedeckt */
.progress-track {
    width: 100%;
    height: 8px;
    margin-top: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #446491 0%, #5381dd 55%, #00d5ff 100%);
    box-shadow: 0 0 18px rgba(75, 85, 99, 0.35);
    transition: width 0.35s ease;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.09);
    color: #d8ffe5;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0%,
    100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.72; }
}

/* Console */
.console-card,
.events-card,
.transactions-card,
.player-manager-card,
.server-tools-card,
.scheduler-card,
.sanctions-card {
    padding: 24px;
}

.console-card {
    overflow: hidden;
}

.live-console {
    position: relative;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background:
        linear-gradient(180deg, rgba(6, 11, 27, 0.98), rgba(12, 18, 44, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 0 40px rgba(59,130,246,0.05);
}

.live-console::before {
    content: "";
    position: sticky;
    top: 0;
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96,165,250,0.75), transparent);
    opacity: 0.8;
}

.console-command-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(8, 14, 31, 0.9);
}

.console-command-bar button {
    min-width: 130px;
}

/* Toolbars */
.log-toolbar,
.events-toolbar,
.transactions-toolbar {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(96, 165, 250, 0.14);
    backdrop-filter: blur(14px);
}

/* Player-Modal-Details */
.player-modal-header-v2 {
    align-items: center;
}

.player-modal-statusline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.player-modal-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--success-soft);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #bdf5cf;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.player-modal-status-sub {
    color: var(--muted);
    font-size: 0.9rem;
}

/* fehlende Container */
.scheduler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    align-items: start;
}

.scheduler-task-list,
.events-list,
.transactions-list,
.sanction-catalog {
    display: grid;
    gap: 12px;
}

.sanction-catalog {
    max-height: 780px;
    overflow: auto;
    padding-right: 2px;
}

/* raw-output compact */
.compact {
    font-size: 0.84rem;
}

/* Tabellen-/Listenoptik etwas sauberer */
.transactions-table-head,
.sanctions-log-head {
    background: rgba(96, 165, 250, 0.07);
    border: 1px solid rgba(96, 165, 250, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.transaction-row,
.sanctions-log-row,
.event-item,
.scheduler-task-item {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* Buttons in Formularreihen */
.tool-form-row > button,
.broadcast-row > button,
.mod-actions > button {
    min-height: 44px;
}

/* Mobile */
@media (max-width: 1200px) {
    .panel-hero {
        grid-template-columns: 1fr;
    }

    .panel-hero__aside {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .panel-hero__aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 18px 16px;
    }

    .panel-hero {
        padding: 18px;
        border-radius: 18px;
    }

    .panel-hero__content h2 {
        font-size: 1.5rem;
    }

    .console-command-bar {
        grid-template-columns: 1fr;
    }

    .status-pill {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .panel-hero__aside {
        grid-template-columns: 1fr;
    }

    .panel-hero__chips {
        gap: 8px;
    }

    .panel-chip {
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   DASHBOARD COMPACT LAYOUT
   ========================= */

.dashboard-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 16px;
    height: calc(100vh - 165px);
    min-height: calc(100vh - 165px);
}

.metrics-grid--dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 0;
}

.metric-card--focus {
    min-height: 138px;
    padding: 18px 20px;
}

.metric-card--focus .metric-label {
    margin-bottom: 8px;
}

.metric-card--focus .metric-value {
    font-size: 2rem;
    line-height: 1.05;
    margin-bottom: 6px;
}

.metric-card--focus .metric-sub {
    font-size: 0.86rem;
}

.console-card--dashboard {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 18px;
}

.console-card-head {
    margin-bottom: 12px;
    padding-bottom: 12px;
    align-items: center;
}

.dashboard-inline-status {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.dashboard-inline-pill {
    display: grid;
    gap: 2px;
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-inline-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}

.dashboard-inline-pill strong {
    font-size: 1.05rem;
    color: var(--accent-bright);
    line-height: 1.1;
}

.dashboard-inline-pill small {
    color: var(--muted);
    font-size: 0.76rem;
}

.dashboard-log-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
}

.dashboard-log-toolbar input {
    min-width: 0;
}

.console-card--dashboard .live-console {
    flex: 1;
    min-height: 0;
    height: 100%;
    max-height: none;
    padding: 14px;
}

.console-card--dashboard .console-command-bar {
    margin-top: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px 14px;
}

.console-card--dashboard .console-command-bar button {
    min-width: 120px;
}

.dashboard-hidden-metrics {
    display: none;
}

@media (max-width: 1200px) {
    .dashboard-shell {
        height: auto;
        min-height: 0;
    }

    .metrics-grid--dashboard {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .metrics-grid--dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-log-toolbar {
        grid-template-columns: 1fr;
    }

    .dashboard-inline-status {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .console-card--dashboard {
        padding: 16px;
    }

    .console-card-head {
        align-items: flex-start;
    }

    .console-card--dashboard .console-command-bar {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   YOUBUILD PANEL - MASTER POLISH PASS
   Ganz ans Ende der style_modern.css setzen
   ========================================================= */

:root {
    --panel-bg-1: rgba(19, 28, 52, 0.92);
    --panel-bg-2: rgba(13, 19, 38, 0.92);
    --panel-glass: rgba(255, 255, 255, 0.04);
    --panel-glass-2: rgba(255, 255, 255, 0.06);
    --panel-border-strong: rgba(96, 165, 250, 0.2);
    --panel-border-soft: rgba(255, 255, 255, 0.06);
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.16);
    --danger-soft: rgba(20, 146, 142, 0.16);
    --warning-soft: rgba(245, 158, 11, 0.16);
}

/* ---------- Base ---------- */

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 16% 18%, rgba(59, 130, 246, 0.14), transparent 26%),
        radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.12), transparent 24%),
        linear-gradient(180deg, #050914 0%, #0a1024 100%);
}

button,
input,
select,
textarea,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
.secondary-btn,
.danger-btn,
.event-chip,
.server-subtab-btn,
.nav-btn,
.player-modal-close {
    transition:
        transform 0.18s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

/* ---------- Shell / Sidebar / Header ---------- */

.app-shell {
    grid-template-columns: 258px 1fr;
}

.app-sidebar {
    background:
        linear-gradient(180deg, rgba(10, 15, 29, 0.98) 0%, rgba(8, 12, 24, 0.98) 100%);
    border-right: 1px solid rgba(96, 165, 250, 0.12);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.brand-box {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-btn {
    position: relative;
    padding: 12px 14px 12px 18px;
    border: 1px solid transparent;
    overflow: hidden;
}

.nav-btn::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    background: linear-gradient(180deg, #60a5fa, #8b5cf6);
    transition: transform 0.2s ease;
}

.nav-btn:hover::before,
.nav-btn.is-active::before {
    transform: translateY(-50%) scaleY(1);
}

.nav-btn.is-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.12));
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.08),
        0 10px 20px rgba(59, 130, 246, 0.12);
}

.sidebar-userbox {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 26px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.12);
    background:
        linear-gradient(90deg, rgba(15, 22, 41, 0.86) 0%, rgba(15, 22, 41, 0.72) 100%);
    backdrop-filter: blur(16px);
}

.header-title {
    letter-spacing: -0.02em;
}

.header-actions {
    align-items: center;
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 15px;
    border-radius: 12px;
    border: 1px solid rgba(20, 146, 142, 0.3);
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #1fb5a7 0%, #158d82 100%);
    box-shadow: 0 8px 20px rgba(20, 146, 142, 0.22);
}

.danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 146, 142, 0.28);
}

/* ---------- Main spacing ---------- */

.app-main {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---------- Shared card language ---------- */

.card,
.metric-card,
.tool-card,
.world-card,
.player-card-v2,
.sanction-id-card,
.event-item,
.transaction-row,
.sanctions-log-row,
.scheduler-task-item,
.events-stat-card,
.player-overview-pill,
.dashboard-inline-pill {
    backdrop-filter: blur(14px);
}

.card,
.tool-card,
.metric-card {
    border-color: rgba(96, 165, 250, 0.12);
    box-shadow:
        0 12px 30px rgba(3, 8, 24, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.card:hover,
.tool-card:hover,
.metric-card:hover,
.world-card:hover,
.player-card-v2:hover,
.sanction-id-card:hover,
.event-item:hover,
.transaction-row:hover,
.sanctions-log-row:hover,
.scheduler-task-item:hover {
    border-color: rgba(96, 165, 250, 0.24);
}

.card-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-head h2,
.card-head h3 {
    letter-spacing: -0.015em;
}

/* ---------- Form language ---------- */

input,
select,
textarea {
    min-height: 46px;
    background: rgba(15, 21, 53, 0.72);
    border: 1px solid rgba(96, 165, 250, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(96, 165, 250, 0.2);
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(15, 21, 53, 0.9);
    border-color: var(--accent-bright);
    box-shadow:
        0 0 0 3px rgba(96, 165, 250, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.tool-form-row,
.broadcast-row {
    gap: 12px;
}

.tool-form-row > button,
.broadcast-row > button,
.mod-actions > button,
.tool-actions > button {
    min-height: 44px;
}

/* ---------- Dashboard compact ---------- */

.dashboard-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    height: calc(100vh - 140px);
    min-height: calc(100vh - 140px);
}

.metrics-grid--dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 0;
}

.metric-card--focus {
    min-height: 132px;
    padding: 18px 18px 16px;
    position: relative;
    overflow: hidden;
}

.metric-card--focus::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    opacity: 0.95;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 55%, #22c55e 100%);
}

.metric-card--focus .metric-label {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.metric-card--focus .metric-value {
    font-size: 2rem;
    line-height: 1.05;
    margin-bottom: 6px;
}

.metric-card--focus .metric-sub {
    font-size: 0.84rem;
}

.progress-track {
    width: 100%;
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.04);
}

.console-card--dashboard {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 16px;
}

.console-card-head {
    margin-bottom: 12px;
    padding-bottom: 12px;
    align-items: center;
}

.dashboard-inline-status {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.dashboard-inline-pill {
    display: grid;
    gap: 2px;
    min-width: 125px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-inline-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.dashboard-inline-pill strong {
    font-size: 1.05rem;
    line-height: 1.1;
    color: var(--accent-bright);
}

.dashboard-inline-pill small {
    font-size: 0.76rem;
    color: var(--muted);
}

.dashboard-log-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
}

.dashboard-hidden-metrics {
    display: none;
}

/* ---------- Console ---------- */

.console-card,
.player-manager-card,
.sanctions-card,
.events-card,
.scheduler-card,
.transactions-card,
.server-tools-card {
    padding: 20px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.08);
    color: #cff9da;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.log-toolbar,
.events-toolbar,
.transactions-toolbar {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 14px;
    padding: 12px;
}

.live-console {
    flex: 1;
    min-height: 0;
    max-height: none;
    background:
        linear-gradient(180deg, rgba(6, 11, 27, 0.98), rgba(12, 18, 44, 0.95));
    border: 1px solid rgba(96, 165, 250, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        inset 0 0 40px rgba(59, 130, 246, 0.04);
}

.console-command-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border: 1px solid rgba(96, 165, 250, 0.12);
    background: linear-gradient(135deg, rgba(8, 12, 24, 0.96), rgba(11, 18, 37, 0.88));
    padding: 12px 14px;
}

.console-command-bar button {
    min-width: 120px;
}

.console-command-bar input {
    min-width: 0;
}

/* ---------- Server tools / tabs ---------- */

.server-subtabs {
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.12);
    overflow-x: auto;
}

.server-subtab-btn {
    padding: 10px 14px;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.server-subtab-btn:hover {
    color: var(--text);
    border-bottom-color: rgba(96, 165, 250, 0.4);
}

.server-subtab-btn.is-active {
    color: var(--accent-bright);
    border-bottom-color: var(--accent-bright);
    box-shadow: inset 0 -1px 0 rgba(96, 165, 250, 0.2);
}

.server-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
}

.tool-card {
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.76) 0%, rgba(17, 26, 48, 0.62) 100%);
}

.tool-actions {
    gap: 10px;
}

.tool-actions .secondary-btn,
.mod-actions .secondary-btn {
    background: rgba(255,255,255,0.05) !important;
}

/* ---------- World / Player cards ---------- */

.world-card,
.player-card-v2 {
    background: linear-gradient(135deg, rgba(25, 38, 66, 0.88) 0%, rgba(17, 27, 50, 0.74) 100%);
    border: 1px solid rgba(96, 165, 250, 0.14);
    box-shadow: 0 10px 24px rgba(4, 9, 27, 0.2);
}

.world-card:hover,
.player-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(6, 11, 29, 0.28);
}

.world-card-image,
.player-card-v2-avatar,
.player-modal-avatar {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.player-overview-pill {
    border-radius: 14px;
}

.player-overview-pill strong {
    letter-spacing: -0.01em;
}

/* ---------- Modals ---------- */

.player-modal-backdrop {
    background: rgba(5, 9, 20, 0.76);
    backdrop-filter: blur(10px);
}

.player-modal-dialog,
.player-modal-dialog-v2 {
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: linear-gradient(135deg, rgba(18, 27, 49, 0.98), rgba(13, 20, 38, 0.97));
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.player-modal-header,
.player-modal-header-v2 {
    position: sticky;
    top: -24px;
    z-index: 3;
    padding: 0 0 14px;
    background: linear-gradient(180deg, rgba(18, 27, 49, 0.98) 0%, rgba(18, 27, 49, 0.9) 100%);
    backdrop-filter: blur(10px);
}

.player-modal-close:hover {
    transform: scale(1.04);
}

/* ---------- Sanctions / Events / Transactions / Scheduler ---------- */

.sanction-category-head,
.transactions-table-head,
.sanctions-log-head {
    background: rgba(96, 165, 250, 0.06);
    border-radius: 14px;
}

.sanction-id-card {
    min-height: 146px;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(4, 9, 27, 0.14);
}

.sanction-id-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sanctions-log-row,
.transaction-row,
.scheduler-task-item,
.event-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(4, 9, 27, 0.14);
}

.sanctions-log-row:hover,
.transaction-row:hover,
.scheduler-task-item:hover,
.event-item:hover {
    background: rgba(96, 165, 250, 0.07);
    transform: translateY(-2px);
}

.sanctions-log-type,
.scheduler-badge,
.event-badge {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.scheduler-task-command,
.rich-output,
#command-preview {
    background: rgba(6, 11, 24, 0.72);
    border: 1px solid rgba(96, 165, 250, 0.12);
}

/* ---------- Chips / filters ---------- */

.event-chip {
    border-radius: 12px;
    padding: 9px 14px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.18);
}

.event-chip:hover {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.3);
}

.event-chip.is-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.14));
    border-color: var(--accent-bright);
    color: var(--accent-bright);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.14);
}

/* ---------- Toasts / alerts ---------- */

.toast {
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.32);
}

.alert {
    border-radius: 14px;
}

/* ---------- Scrollbars ---------- */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.24);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.42);
    background-clip: padding-box;
}

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
    .dashboard-shell {
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 980px) {
    .metrics-grid--dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-inline-status {
        justify-content: flex-start;
        width: 100%;
    }

    .dashboard-log-toolbar {
        grid-template-columns: 1fr;
    }

    .server-tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 16px;
    }

    .app-main {
        padding: 16px;
        gap: 16px;
    }

    .console-card,
    .player-manager-card,
    .sanctions-card,
    .events-card,
    .scheduler-card,
    .transactions-card,
    .server-tools-card {
        padding: 16px;
    }

    .console-command-bar {
        grid-template-columns: 1fr;
    }

    .console-command-bar button {
        width: 100%;
    }

    .transactions-table-head,
    .transaction-row,
    .sanctions-log-head,
    .sanctions-log-row {
        grid-template-columns: 1fr;
    }

    .sanctions-log-command {
        white-space: normal;
    }

    .player-modal-header,
    .player-modal-header-v2 {
        top: -16px;
    }
}

@media (max-width: 560px) {
    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .header-actions > * {
        width: 100%;
    }

    .dashboard-inline-pill,
    .player-overview-pill {
        width: 100%;
    }
}

/* =========================================
   YOUBUILD - PREMIUM PANEL PASS
   ========================================= */

:root {
    --bg: #0a0f1c;
    --bg-soft: #111827;
    --sidebar: #0b1120;
    --surface: #131b2e;
    --surface-2: #182236;
    --card: #151d31;
    --card-2: #1a243a;

    --text: #f4f7fb;
    --muted: #97a3b6;

    --accent: #3b82f6;
    --accent-bright: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.14);

    --border: rgba(148, 163, 184, 0.10);
    --border-strong: rgba(56, 189, 248, 0.22);

    --danger: #1fb5a7;
    --success: #22c55e;
    --warning: #f59e0b;

    --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.38);

    --transition: all 0.22s ease;
}

/* ===== Base ===== */

html, body {
    background:
        radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.08), transparent 24%),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.07), transparent 22%),
        linear-gradient(180deg, #070c16 0%, #0c1322 100%);
    color: var(--text);
}

a[href]:hover,
.player-name-btn:hover {
    text-decoration: none;
}

/* ===== Sidebar ===== */

.app-shell {
    grid-template-columns: 250px 1fr;
}

.app-sidebar {
    background:
        linear-gradient(180deg, rgba(9, 14, 27, 0.98) 0%, rgba(10, 16, 28, 0.98) 100%);
    border-right: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset -1px 0 0 rgba(56, 189, 248, 0.08);
    padding: 22px 18px;
}

.brand-box {
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.brand-icon {
    width: 50px;
    height: 50px;
}

.brand-title {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
}

.brand-subtitle {
    color: #8da0bb;
    letter-spacing: 0.04em;
}

.sidebar-nav {
    gap: 8px;
}

.nav-btn {
    position: relative;
    background: transparent;
    color: #c2cde0;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 13px 14px 13px 18px;
    font-weight: 600;
}

.nav-btn::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8, #2563eb);
    transition: transform 0.18s ease;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.04);
    color: #ffffff;
    border-color: rgba(255,255,255,0.06);
}

.nav-btn:hover::before,
.nav-btn.is-active::before {
    transform: translateY(-50%) scaleY(1);
}

.nav-btn.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(56, 189, 248, 0.10));
    border-color: rgba(56, 189, 248, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 10px 20px rgba(0,0,0,0.16);
}

/* ===== Header ===== */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(14, 20, 34, 0.84);
    backdrop-filter: blur(14px);
}

.header-kicker {
    color: #38bdf8;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.header-title {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.header-subtitle {
    color: #9caac0;
}

.header-actions {
    gap: 10px;
}

button,
.secondary-btn,
.danger-btn {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 600;
}

button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

button:hover:not(:disabled) {
    filter: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.28);
}

.secondary-btn {
    background: rgba(255,255,255,0.045) !important;
    border-color: rgba(255,255,255,0.07) !important;
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.07) !important;
    border-color: rgba(56, 189, 248, 0.22) !important;
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #158d82 0%, #0b6360 100%) !important;
    border-color: rgba(20, 146, 142, 0.28) !important;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.22) !important;
    text-decoration: none;
}

/* ===== Content ===== */

.app-main {
    padding: 22px;
    gap: 18px;
}

.card,
.metric-card,
.tool-card,
.world-card,
.player-card-v2,
.sanction-id-card,
.event-item,
.transaction-row,
.sanctions-log-row,
.scheduler-task-item {
    background:
        linear-gradient(180deg, rgba(21, 29, 49, 0.94) 0%, rgba(16, 23, 40, 0.94) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 12px 26px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
}

.card:hover,
.metric-card:hover,
.tool-card:hover,
.world-card:hover,
.player-card-v2:hover,
.sanction-id-card:hover,
.event-item:hover,
.transaction-row:hover,
.sanctions-log-row:hover,
.scheduler-task-item:hover {
    border-color: rgba(56, 189, 248, 0.18);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.24),
        0 0 0 1px rgba(56, 189, 248, 0.04);
}

.card-head {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.card-head h2,
.card-head h3 {
    letter-spacing: -0.015em;
}

/* ===== Dashboard ===== */

.dashboard-shell {
    gap: 14px;
    height: calc(100vh - 138px);
    min-height: calc(100vh - 138px);
}

.metrics-grid--dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metric-card--focus {
    min-height: 126px;
    padding: 16px 18px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.metric-card--focus::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
    opacity: 0.95;
}

.metric-card--focus .metric-label {
    color: #8fa2bc;
    margin-bottom: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.metric-card--focus .metric-value {
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 4px;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
}

.metric-card--focus .metric-sub {
    color: #92a4bb;
    font-size: 0.84rem;
}

.progress-track {
    height: 7px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.console-card--dashboard {
    padding: 16px;
    min-height: 0;
    height: 100%;
}

.console-card-head {
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.dashboard-inline-status {
    gap: 10px;
}

.dashboard-inline-pill {
    min-width: 122px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
}

.dashboard-inline-label {
    color: #8898ae;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.dashboard-inline-pill strong {
    color: #ffffff;
    font-size: 1rem;
}

.dashboard-inline-pill small {
    color: #8ea0b8;
    font-size: 0.75rem;
}

.dashboard-log-toolbar {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    padding: 10px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
}

/* ===== Console ===== */

.live-console {
    min-height: 0;
    max-height: none;
    flex: 1;
    background:
        linear-gradient(180deg, rgba(6, 10, 18, 0.98) 0%, rgba(8, 13, 24, 0.98) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px 18px 0 0;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02),
        inset 0 0 30px rgba(56, 189, 248, 0.03);
}

.console-command-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    background: rgba(13, 18, 31, 0.98);
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none;
    border-radius: 0 0 18px 18px;
    padding: 12px 14px;
}

.console-command-bar input {
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.console-command-bar input:focus {
    background: transparent;
    box-shadow: none;
}

.console-prompt {
    color: #38bdf8;
}

/* ===== Forms ===== */

input,
select,
textarea {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text);
    border-radius: 12px;
    min-height: 44px;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(56, 189, 248, 0.14);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.10);
    background: rgba(255,255,255,0.05);
}

.tool-form-row,
.broadcast-row {
    gap: 12px;
}

/* ===== Section-specific cards ===== */

.player-card-v2-avatar,
.player-modal-avatar,
.world-card-image {
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
}

.player-overview-pill,
.events-stat-card,
.sanctions-log-head,
.transactions-table-head {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
}

.event-chip {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
    color: #b7c2d3;
    border-radius: 12px;
}

.event-chip:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.18);
    background: rgba(56, 189, 248, 0.08);
}

.event-chip.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.20), rgba(56, 189, 248, 0.10));
    border-color: rgba(56, 189, 248, 0.24);
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.player-modal-dialog,
.player-modal-dialog-v2 {
    background:
        linear-gradient(180deg, rgba(18, 27, 46, 0.98) 0%, rgba(12, 18, 31, 0.98) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-lg);
}

.player-modal-backdrop {
    background: rgba(3, 7, 15, 0.76);
    backdrop-filter: blur(8px);
}

/* ===== Mobile ===== */

@media (max-width: 980px) {
    .metrics-grid--dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-log-toolbar {
        grid-template-columns: 1fr;
    }

    .dashboard-inline-status {
        justify-content: flex-start;
    }

    .dashboard-shell {
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .app-main {
        padding: 16px;
    }

    .console-command-bar {
        grid-template-columns: 1fr;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .header-actions > * {
        width: 100%;
    }
}

/* =========================================
   PROFESSIONAL SCHEDULER + NO-EMOJI PASS
   ========================================= */

.section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.16);
    color: var(--accent-bright);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.scheduler-card--pro {
    padding: 22px;
}

.scheduler-head {
    align-items: center;
}

.scheduler-layout-pro {
    display: grid;
    grid-template-columns: minmax(380px, 1.1fr) minmax(400px, 1.3fr);
    gap: 24px;
    align-items: start;
}

.scheduler-form-stack {
    display: grid;
    gap: 18px;
}

.scheduler-panel {
    background:
        linear-gradient(180deg, rgba(20, 28, 47, 0.96) 0%, rgba(15, 22, 38, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 18px;
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.scheduler-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.scheduler-panel-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.scheduler-panel h3 {
    margin: 0;
    font-size: 1.08rem;
    letter-spacing: -0.015em;
}

.scheduler-grid-compact {
    gap: 14px;
    margin-bottom: 14px;
}

.scheduler-button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.scheduler-panel-note,
.scheduler-queue-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.scheduler-panel--queue {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.scheduler-panel-head--queue {
    margin-bottom: 12px;
}

.scheduler-task-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    max-height: 760px;
    overflow-y: auto;
    padding-right: 2px;
}

.scheduler-empty {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.08);
    color: var(--muted);
    font-size: 0.92rem;
}

.scheduler-task-item {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(22, 31, 53, 0.95) 0%, rgba(16, 23, 39, 0.95) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.scheduler-task-item:hover {
    border-color: rgba(56, 189, 248, 0.18);
    transform: translateY(-2px);
}

.scheduler-task-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.scheduler-task-main {
    min-width: 0;
}

.scheduler-task-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 4px;
    word-break: break-word;
}

.scheduler-task-time {
    color: var(--muted);
    font-size: 0.86rem;
}

.scheduler-task-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.scheduler-task-meta-item {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.scheduler-task-label {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.scheduler-task-value {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.35;
}

.scheduler-task-command {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(7, 12, 23, 0.86);
    border: 1px solid rgba(255,255,255,0.06);
    color: #dbe7f7;
    font-family: "JetBrains Mono", "Consolas", monospace;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}

.scheduler-task-error {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(20, 146, 142, 0.08);
    border: 1px solid rgba(20, 146, 142, 0.16);
    color: #fca5a5;
    font-size: 0.88rem;
}

.scheduler-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.scheduler-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.scheduler-badge.scheduled {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.20);
    color: #7dd3fc;
}

.scheduler-badge.running {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.20);
    color: #fcd34d;
}

.scheduler-badge.done,
.scheduler-badge.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.20);
    color: #86efac;
}

.scheduler-badge.cancelled,
.scheduler-badge.canceled {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

.scheduler-badge.error {
    background: rgba(20, 146, 142, 0.12);
    border-color: rgba(20, 146, 142, 0.20);
    color: #fca5a5;
}

/* Dashboard / controls text-only polish */
.header-kicker,
.metric-label,
.dashboard-inline-label,
.scheduler-panel-kicker,
.section-kicker {
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .scheduler-layout-pro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .scheduler-button-row,
    .scheduler-task-meta-grid {
        grid-template-columns: 1fr;
    }

    .scheduler-task-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   ICON SYSTEM
   ========================================= */

.nav-btn,
.server-subtab-btn,
.ui-title,
.ui-inline-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    width: 100%;
    justify-content: flex-start;
}

.nav-btn__icon,
.subtab-btn__icon,
.ui-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    color: currentColor;
}

.ui-icon--box {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.16);
}

.nav-btn__icon svg,
.subtab-btn__icon svg,
.ui-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-head h2.ui-title,
.tool-card h3.ui-inline-title,
.server-subtab-btn {
    letter-spacing: -0.01em;
}

.tool-card h3::before {
    display: none !important;
}

/* =========================================
   WORLD IMAGES
   ========================================= */

.world-card-image {
    width: 100%;
    height: 168px;
    position: relative;
    overflow: hidden;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.world-card-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 10, 20, 0.05) 0%, rgba(5, 10, 20, 0.28) 100%);
}

.world-card-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 56px;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 18, 0.58) 100%);
}

.world-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(8, 13, 24, 0.72);
    border: 1px solid rgba(255,255,255,0.10);
    color: #e6edf7;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.world-modal-visual {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    flex: 0 0 78px;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 10px 22px rgba(0,0,0,0.20),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* =========================================
   YOUBUILD BRAND COLOR PASS
   Rot / Schwarz auf Basis des Logos
   ========================================= */

:root {
    --bg: #070709;
    --bg-soft: #0d0e12;
    --sidebar: #090a0d;
    --surface: #101218;
    --surface-2: #141720;
    --card: #13161e;
    --card-2: #181c26;

    --text: #f5f7fb;
    --muted: #9aa3b2;

    --accent: #0f7f88;
    --accent-bright: #14b8a6;
    --accent-soft: rgba(15, 123, 129, 0.14);
    --accent-soft-2: rgba(20, 146, 142, 0.10);

    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(20, 146, 142, 0.22);

    --danger: #0f8f96;
    --success: #22c55e;
    --warning: #f59e0b;

    --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.44);
}

/* Grundstimmung */
html, body {
    background:
        radial-gradient(circle at 14% 10%, rgba(15, 123, 129, 0.08), transparent 24%),
        radial-gradient(circle at 86% 14%, rgba(10, 112, 111, 0.08), transparent 20%),
        linear-gradient(180deg, #060607 0%, #0b0c10 100%);
}

/* Sidebar */
.app-sidebar {
    background:
        linear-gradient(180deg, rgba(8, 8, 10, 0.99) 0%, rgba(11, 11, 14, 0.99) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset -1px 0 0 rgba(20, 146, 142, 0.08);
}

.header-kicker,
.brand-subtitle,
.dashboard-inline-label,
.metric-label,
.scheduler-panel-kicker,
.section-kicker {
    color: #14b8a6;
}

/* Navigation */
.nav-btn::before {
    background: linear-gradient(180deg, #14c4b7, #084d51);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.06);
}

.nav-btn.is-active {
    background: linear-gradient(135deg, rgba(15, 123, 129, 0.20), rgba(20, 146, 142, 0.08));
    border-color: rgba(20, 146, 142, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 10px 20px rgba(0,0,0,0.18);
}

/* Header */
.app-header {
    background: rgba(14, 15, 19, 0.86);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Buttons */
button {
    background: linear-gradient(135deg, #0d777d 0%, #1fd4cd 100%);
    box-shadow: 0 8px 18px rgba(15, 123, 129, 0.24);
}

button:hover:not(:disabled) {
    box-shadow: 0 12px 22px rgba(15, 123, 129, 0.30);
}

.secondary-btn {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.07) !important;
}

.secondary-btn:hover {
    border-color: rgba(20, 146, 142, 0.22) !important;
    background: rgba(255,255,255,0.06) !important;
}

.danger-btn {
    background: linear-gradient(135deg, #0a6d72 0%, #1ed7c7 100%) !important;
    border-color: rgba(20, 146, 142, 0.26) !important;
    box-shadow: 0 10px 20px rgba(15, 123, 129, 0.24) !important;
}

/* Cards */
.card,
.metric-card,
.tool-card,
.world-card,
.player-card-v2,
.sanction-id-card,
.event-item,
.transaction-row,
.sanctions-log-row,
.scheduler-task-item {
    background:
        linear-gradient(180deg, rgba(19, 21, 28, 0.96) 0%, rgba(13, 15, 21, 0.96) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 12px 26px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.02);
}

.card:hover,
.metric-card:hover,
.tool-card:hover,
.world-card:hover,
.player-card-v2:hover,
.sanction-id-card:hover,
.event-item:hover,
.transaction-row:hover,
.sanctions-log-row:hover,
.scheduler-task-item:hover {
    border-color: rgba(20, 146, 142, 0.16);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.28),
        0 0 0 1px rgba(20, 146, 142, 0.04);
}

/* Dashboard-Metriken */
.metric-card--focus::after {
    background: linear-gradient(90deg, #025b5a 0%, #18a29f 100%);
}

.metric-card--focus .metric-value {
    color: #ffffff;
}

/* Progressbars */
.progress-track {
    background: rgba(255,255,255,0.05);
}


/* Pills / Info-Boxen */
.dashboard-inline-pill,
.player-overview-pill,
.events-stat-card,
.sanctions-log-head,
.transactions-table-head,
.scheduler-panel-note,
.scheduler-queue-note,
.scheduler-task-meta-item {
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.06);
}

.ui-icon--box {
    background: rgba(20, 146, 142, 0.10);
    border-color: rgba(20, 146, 142, 0.18);
    color: #ff4a4a;
}

/* Formulare */
input,
select,
textarea {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(20, 146, 142, 0.16);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(20, 146, 142, 0.30);
    box-shadow: 0 0 0 3px rgba(20, 146, 142, 0.10);
    background: rgba(255,255,255,0.05);
}

/* Konsole */
.live-console {
    background:
        linear-gradient(180deg, rgba(5, 6, 8, 0.99) 0%, rgba(9, 10, 14, 0.99) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02),
        inset 0 0 30px rgba(20, 146, 142, 0.03);
}

.console-prompt {
    color: #ff3d3d;
}

.console-command-bar {
    background: rgba(14, 15, 19, 0.98);
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none;
}

/* Tabs / Chips */
.server-subtab-btn:hover {
    border-bottom-color: rgba(20, 146, 142, 0.35);
}

.server-subtab-btn.is-active {
    color: #ff5555;
    border-bottom-color: #18a29f;
    box-shadow: inset 0 -1px 0 rgba(20, 146, 142, 0.16);
}

.event-chip {
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.06);
}

.event-chip:hover {
    color: #ffffff;
    border-color: rgba(20, 146, 142, 0.18);
    background: rgba(20, 146, 142, 0.08);
}

.event-chip.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(7, 95, 91, 0.24), rgba(20, 146, 142, 0.10));
    border-color: rgba(20, 146, 142, 0.22);
    box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

/* Weltkarten */
.world-card-image::before {
    background:
        linear-gradient(180deg, rgba(20, 0, 0, 0.08) 0%, rgba(10, 6, 10, 0.30) 100%);
}

.world-card-badge {
    background: rgba(15, 12, 16, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff0f0;
}

/* Modal */
.player-modal-dialog,
.player-modal-dialog-v2 {
    background:
        linear-gradient(180deg, rgba(20, 22, 29, 0.98) 0%, rgba(12, 14, 19, 0.98) 100%);
    border: 1px solid rgba(255,255,255,0.06);
}

.player-modal-backdrop {
    background: rgba(4, 4, 6, 0.78);
}

/* Scrollbar */
::-webkit-scrollbar-thumb {
    background: rgba(20, 146, 142, 0.22);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 146, 142, 0.36);
}

/* =========================================
   FINAL RED CLEANUP PASS
   Login + letzte blaue Altlasten entfernen
   Ganz ans Ende setzen
   ========================================= */

/* ---------- Login komplett rot/schwarz ---------- */

.login-page {
    background:
        radial-gradient(circle at 18% 18%, rgba(20, 146, 142, 0.10), transparent 24%),
        radial-gradient(circle at 82% 78%, rgba(170, 0, 0, 0.10), transparent 22%),
        linear-gradient(180deg, #050506 0%, #0b0c10 100%) !important;
}

.login-card {
    background:
        linear-gradient(180deg, rgba(20, 22, 29, 0.97) 0%, rgba(12, 14, 19, 0.97) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.login-card h1 {
    background: linear-gradient(135deg, #ff4a4a 0%, #a90000 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.login-card .muted,
.login-card p,
.login-card .small-text {
    color: #aab2bf !important;
}

/* ---------- globale Fokus-/Accent-Reste ---------- */

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    box-shadow: 0 0 0 3px rgba(20, 146, 142, 0.14) !important;
}

::selection {
    background: rgba(20, 146, 142, 0.22);
    color: #ffffff;
}

/* ---------- Toolbars / Suchleisten / Inputs ---------- */

.log-toolbar,
.events-toolbar,
.transactions-toolbar {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.log-toolbar input,
.events-toolbar input,
.transactions-toolbar input,
.player-overview-search input {
    background: rgba(255, 255, 255, 0.035) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.log-toolbar input:hover,
.events-toolbar input:hover,
.transactions-toolbar input:hover,
.player-overview-search input:hover {
    border-color: rgba(20, 146, 142, 0.16) !important;
}

.log-toolbar input:focus,
.events-toolbar input:focus,
.transactions-toolbar input:focus,
.player-overview-search input:focus {
    border-color: rgba(20, 146, 142, 0.28) !important;
    box-shadow: 0 0 0 3px rgba(20, 146, 142, 0.10) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.log-toolbar button,
.events-toolbar button,
.transactions-toolbar button {
    background: rgba(20, 146, 142, 0.08) !important;
    border: 1px solid rgba(20, 146, 142, 0.12) !important;
}

.log-toolbar button:hover,
.events-toolbar button:hover,
.transactions-toolbar button:hover {
    background: rgba(20, 146, 142, 0.14) !important;
    border-color: rgba(20, 146, 142, 0.22) !important;
}

/* ---------- Player-Pills / kleine Infoboxen ---------- */

.player-overview-pill,
.dashboard-inline-pill,
.events-stat-card,
.transactions-table-head,
.sanctions-log-head,
.scheduler-task-meta-item,
.scheduler-panel-note,
.scheduler-queue-note,
.preset-description,
.panel-note {
    background: rgba(255, 255, 255, 0.035) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.player-overview-pill:hover,
.events-stat-card:hover {
    border-color: rgba(20, 146, 142, 0.18) !important;
}

.player-overview-pill strong,
.events-stat-value,
.sidebar-username {
    color: #00d5ff !important;
}

.events-stat-value {
    background: linear-gradient(135deg, #2bc9b9, #0a5855) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ---------- Player Cards / Shine-Effekt ---------- */

.player-card-v2::before {
    background: linear-gradient(90deg, transparent, rgba(20, 146, 142, 0.10), transparent) !important;
}

.player-card-v2:hover {
    box-shadow: 0 12px 32px rgba(120, 0, 0, 0.20) !important;
}

/* ---------- Chips / Filter ---------- */

.event-chip,
.transaction-filter button {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #bcc5d3 !important;
}

.event-chip:hover,
.transaction-filter button:hover {
    background: rgba(20, 146, 142, 0.08) !important;
    border-color: rgba(20, 146, 142, 0.18) !important;
    color: #ffffff !important;
}

.event-chip.is-active,
.transaction-filter button.is-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    border-color: rgba(20, 146, 142, 0.22) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16) !important;
}

/* ---------- Tabellen / Logs / Listen ---------- */

.sanctions-log-row:hover,
.transaction-row:hover,
.scheduler-task-item:hover,
.event-item:hover {
    background: rgba(20, 146, 142, 0.06) !important;
    border-color: rgba(20, 146, 142, 0.16) !important;
}

/* ---------- Badges / kleine farbige Elemente ---------- */

.sanctions-log-type {
    background: rgba(20, 146, 142, 0.12) !important;
    color: #ff7272 !important;
}

.world-card-badge {
    background: rgba(18, 12, 14, 0.74) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff1f1 !important;
}

.ui-icon--box {
    background: rgba(20, 146, 142, 0.10) !important;
    border-color: rgba(20, 146, 142, 0.18) !important;
    color: #0bb0a3 !important;
}

/* ---------- Console / command preview ---------- */

.live-console,
.rich-output,
.scheduler-task-command,
#command-preview {
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02),
        inset 0 0 30px rgba(20, 146, 142, 0.03) !important;
}

.console-prompt {
    color: #ff4141 !important;
}

/* ---------- Subtabs / kleinere Akzente ---------- */

.server-subtab-btn:hover {
    border-bottom-color: rgba(20, 146, 142, 0.34) !important;
}

.server-subtab-btn.is-active {
    color: #00d5ff !important;
    border-bottom-color: #18a29f !important;
    box-shadow: inset 0 -1px 0 rgba(20, 146, 142, 0.14) !important;
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar-thumb {
    background: rgba(20, 146, 142, 0.22) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 146, 142, 0.36) !important;
}

/* =========================================================
   YOUBUILD FINAL UI PATCH
   GANZ ANS ENDE DER style_modern.css
   ========================================================= */

:root {
    --yb-bg-0: #060708;
    --yb-bg-1: #0d1016;
    --yb-bg-2: #141922;
    --yb-surface-1: rgba(20, 24, 32, 0.92);
    --yb-surface-2: rgba(28, 34, 46, 0.88);
    --yb-surface-3: rgba(255, 255, 255, 0.035);
    --yb-border: rgba(255, 255, 255, 0.08);
    --yb-border-strong: rgba(20, 146, 142, 0.22);
    --yb-border-soft: rgba(255, 255, 255, 0.05);
    --yb-text: #f5f7fb;
    --yb-muted: #9ca7b7;
    --yb-red: #14b8a6;
    --yb-red-2: #0b5f62;
    --yb-red-soft: rgba(20, 146, 142, 0.12);
    --yb-red-soft-2: rgba(20, 146, 142, 0.18);
    --yb-green-soft: rgba(34, 197, 94, 0.14);
    --yb-amber-soft: rgba(245, 158, 11, 0.14);
    --yb-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

html,
body {
    background:
        radial-gradient(circle at 16% 18%, rgba(15, 123, 129, 0.10), transparent 24%),
        radial-gradient(circle at 84% 82%, rgba(10, 112, 111, 0.10), transparent 22%),
        linear-gradient(180deg, #050506 0%, #0a0c10 100%) !important;
    color: var(--yb-text) !important;
}



/* ---------- Modals allgemein ---------- */

.player-modal-backdrop {
    background: rgba(3, 3, 5, 0.78) !important;
    backdrop-filter: blur(12px) !important;
}

.player-modal-dialog,
.player-modal-dialog-v2 {
    width: min(980px, calc(100vw - 48px));
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    background:
        linear-gradient(180deg, rgba(20, 24, 32, 0.98) 0%, rgba(10, 12, 16, 0.98) 100%) !important;
    box-shadow: var(--yb-shadow) !important;
    border-radius: 24px !important;
}

#tool-world-select, #tool-difficulty-select, #ban-id-select{
    background-color: #050506;
    color: var(--yb-text);
}

.player-modal-header,
.player-modal-header-v2 {
    margin: -32px -32px 28px -32px !important;
    padding: 24px 28px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background:
        linear-gradient(135deg, rgba(20, 146, 142, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
}

.player-modal-close {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(20, 146, 142, 0.18) !important;
    color: #ff5f5f !important;
    box-shadow: none !important;
}

.player-modal-close:hover {
    background: rgba(20, 146, 142, 0.10) !important;
    border-color: rgba(20, 146, 142, 0.32) !important;
}

/* ---------- World Modal speziell ---------- */

.world-modal-layout {
    display: grid;
    gap: 18px;
}

.world-stats-panel h3,
.world-actions-panel h3,
.world-command-panel h3 {
    margin-bottom: 16px;
}

.world-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.world-stat-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.world-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #ff5b5b, #8f1111);
    opacity: 0.92;
}

.world-stat-card--chunks::before {
    background: linear-gradient(180deg, #ff5b5b, #8f1111);
}

.world-stat-card--entities::before {
    background: linear-gradient(180deg, #f59e0b, #7c4700);
}

.world-stat-card--tiles::before {
    background: linear-gradient(180deg, #22c55e, #0d6a31);
}

.world-stat-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--yb-muted);
    margin-bottom: 10px;
    font-weight: 700;
}

.world-stat-value {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
}

.world-actions-panel .mod-actions,
.world-command-panel .tool-form-row {
    margin-top: 0;
}

/* ---------- Sanktionen / Kategorie-Header ---------- */

.sanction-catalog {
    display: grid;
    gap: 18px;
    max-height: 780px;
    overflow: auto;
    padding-right: 2px;
}

.sanction-category-block {
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sanction-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(20, 146, 142, 0.14) !important;
    background:
        linear-gradient(135deg, rgba(20, 146, 142, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
}

.sanction-category-head h4 {
    margin: 0;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.sanction-category-count {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(20, 146, 142, 0.10) !important;
    border: 1px solid rgba(20, 146, 142, 0.16);
    color: #ff9d9d !important;
    font-size: 0.78rem;
    font-weight: 700;
}

.sanction-id-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.sanction-id-card {
    min-height: 148px;
    text-align: left;
    border-radius: 16px !important;
    background:
        linear-gradient(180deg, rgba(30, 35, 46, 0.92) 0%, rgba(18, 22, 30, 0.92) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18) !important;
}

.sanction-id-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 146, 142, 0.20) !important;
    background:
        linear-gradient(180deg, rgba(20, 146, 142, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
}

.sanction-id-label {
    color: #ffffff !important;
}

.sanction-id-description {
    color: var(--yb-muted) !important;
}

/* ---------- Scheduler deutlich weniger blau ---------- */

.scheduler-card--pro {
    padding: 24px !important;
    background:
        linear-gradient(180deg, rgba(18, 22, 30, 0.98) 0%, rgba(10, 12, 16, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.scheduler-head {
    margin-bottom: 20px !important;
}

.scheduler-layout-pro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.scheduler-form-stack {
    display: grid;
    gap: 18px;
}

.scheduler-panel {
    border-radius: 20px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(28, 33, 44, 0.92) 0%, rgba(18, 22, 30, 0.92) 100%);
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.scheduler-panel--queue {
    min-height: 100%;
}

.scheduler-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scheduler-panel-kicker {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #00d5ff !important;
    font-weight: 800;
}

.scheduler-panel h3 {
    margin: 0;
    color: #ffffff;
}

.scheduler-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.scheduler-grid-compact > div:last-child {
    grid-column: 1 / -1;
}

.scheduler-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.scheduler-panel-note,
.scheduler-queue-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: var(--yb-muted) !important;
    line-height: 1.5;
}

.scheduler-task-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.scheduler-task-item {
    border-radius: 16px !important;
    background:
        linear-gradient(180deg, rgba(34, 39, 50, 0.96) 0%, rgba(20, 24, 32, 0.96) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.scheduler-task-item:hover {
    border-color: rgba(20, 146, 142, 0.18) !important;
}

.scheduler-task-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.scheduler-task-title {
    color: #ffffff;
    font-weight: 700;
}

.scheduler-task-meta {
    color: var(--yb-muted) !important;
}

.scheduler-badge {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #a7efbf !important;
    border: 1px solid rgba(34, 197, 94, 0.16);
}

.scheduler-badge.scheduled {
    background: rgba(20, 146, 142, 0.10) !important;
    color: #ff9e9e !important;
    border: 1px solid rgba(20, 146, 142, 0.18);
}

.scheduler-task-command {
    background: rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #f4f7fb !important;
}

.scheduler-empty {
    padding: 18px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    background: rgba(255,255,255,0.02);
    color: var(--yb-muted);
    text-align: center;
}

/* ---------- Login / Logout komplett professioneller ---------- */

.login-page,
.logout-page {
    min-height: 100vh;
    padding: 28px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 14% 18%, rgba(20, 146, 142, 0.18), transparent 24%),
        radial-gradient(circle at 84% 78%, rgba(20, 146, 142, 0.18), transparent 20%),
        linear-gradient(180deg, #050506 0%, #0a0c10 100%) !important;
}

.auth-shell {
    width: min(1100px, 100%);
}

.auth-shell--compact {
    width: min(560px, 100%);
}

.auth-panel {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 0.9fr);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(18, 22, 30, 0.98) 0%, rgba(10, 12, 16, 0.98) 100%);
    box-shadow: var(--yb-shadow);
}

.auth-panel--logout {
    grid-template-columns: 1fr;
}

.auth-brand {
    position: relative;
    padding: 42px;
    background:
        linear-gradient(160deg, rgba(20, 146, 142, 0.12) 0%, rgba(255,255,255,0.02) 46%, rgba(255,255,255,0.01) 100%);
    border-right: 1px solid rgba(255,255,255,0.06);
}

.auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 32%);
    pointer-events: none;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(20, 146, 142, 0.10);
    border: 1px solid rgba(20, 146, 142, 0.14);
    color: #ff9c9c;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.auth-brand h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.auth-brand p {
    margin: 0 0 22px;
    color: var(--yb-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 46ch;
}

.auth-feature-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.auth-feature {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.05);
}

.auth-feature span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ff8a8a;
    font-weight: 800;
}

.auth-feature strong {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
}

.auth-form-card {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    background:
        linear-gradient(180deg, rgba(20, 24, 32, 0.94) 0%, rgba(12, 15, 20, 0.96) 100%);
}

.auth-form-card--center {
    text-align: center;
    align-items: center;
}

.auth-form-head {
    display: grid;
    gap: 8px;
}

.auth-form-head--center {
    justify-items: center;
}

.auth-form-kicker {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #ff8686;
}

.auth-form-head h2,
.auth-form-head h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.auth-form-head p {
    margin: 0;
    color: var(--yb-muted);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-input-group {
    display: grid;
    gap: 8px;
    text-align: left;
}

.auth-input-group label {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-submit {
    margin-top: 6px;
    min-height: 52px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.auth-footnote {
    color: #7f8a99;
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-form-card .alert {
    margin-bottom: 0;
}

.logout-success-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(20, 146, 142, 0.16) 0%, rgba(6, 60, 59, 0.22) 100%);
    border: 1px solid rgba(20, 146, 142, 0.18);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.logout-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
}

.logout-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff4949 0%, #b20f0f 100%);
    animation: ybLogoutProgress 3s linear forwards;
}

@keyframes ybLogoutProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .auth-panel {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .scheduler-layout-pro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .world-stats-grid,
    .scheduler-grid-compact {
        grid-template-columns: 1fr;
    }

    .auth-brand,
    .auth-form-card {
        padding: 26px 22px;
    }

    .login-page,
    .logout-page {
        padding: 16px;
    }

    .player-modal-dialog,
    .player-modal-dialog-v2 {
        width: calc(100vw - 20px);
        margin: 10px auto;
        padding: 22px;
    }

    .player-modal-header,
    .player-modal-header-v2 {
        margin: -22px -22px 22px -22px !important;
        padding: 18px 20px !important;
    }
}
/* ---------- Rollen / Benutzerverwaltung ---------- */
.is-permission-hidden {
    display: none !important;
}

.user-manager-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.user-create-form,
.user-list-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin: 6px 0 4px;
}

.permission-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    font-size: 0.92rem;
}

.permission-check input {
    width: 16px;
    height: 16px;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
}

.user-role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(20, 146, 142, 0.14);
    border: 1px solid rgba(20, 146, 142, 0.22);
    color: #fecaca;
    font-weight: 700;
    font-size: 0.82rem;
}

.user-permissions-text {
    margin-top: 6px;
    line-height: 1.45;
}

.user-row-actions {
    display: flex;
    justify-content: flex-end;
}

.card-head--compact {
    gap: 12px;
}

@media (max-width: 980px) {
    .user-manager-layout {
        grid-template-columns: 1fr;
    }

    .user-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .user-row-actions {
        justify-content: flex-start;
    }
}

/* Benutzerverwaltung UX/UI v2 */
.is-permission-hidden {
    display: none !important;
}

.user-manager-layout--wide {
    grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
    align-items: start;
}

.user-form-head,
.user-form-footer,
.user-list-head,
.user-list-actions,
.permission-panel-head,
.permission-actions,
.user-row-main,
.user-row-actions,
.user-row-role {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-form-head,
.user-list-head,
.permission-panel-head {
    justify-content: space-between;
}

.user-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.role-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.role-preview-card {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.045);
    color: inherit;
    border-radius: 16px;
    padding: 13px;
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.role-preview-card strong,
.role-preview-card span {
    display: block;
}

.role-preview-card span {
    margin-top: 6px;
    color: var(--muted, #9aa4b2);
    font-size: .86rem;
    line-height: 1.35;
}

.role-preview-card:hover,
.role-preview-card.is-selected {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.085);
}

.permission-panel {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.14);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
}

.permission-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.permission-summary {
    margin-top: 12px;
}

.secondary-btn--small,
.danger-btn--small {
    padding: 7px 10px;
    font-size: .84rem;
}

.user-list-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.user-list-actions input[type="search"] {
    min-width: 220px;
}

.users-list--cards {
    display: grid;
    gap: 12px;
}

.user-row--card {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(160px, .7fr) minmax(240px, 1fr) minmax(0, auto);
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.035);
    border-radius: 18px;
    padding: 14px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
}

.user-row-role {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.user-permissions-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.permission-mini-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: .78rem;
    white-space: nowrap;
}

.user-row-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
}

.user-row-actions button {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .user-manager-layout--wide,
    .user-form-grid,
    .role-preview-grid,
    .user-row--card {
        grid-template-columns: 1fr;
    }

    .user-list-actions,
    .user-form-head,
    .permission-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .user-list-actions input[type="search"] {
        min-width: 0;
        width: 100%;
    }

    .user-row-actions {
        align-items: flex-start;
    }
}


/* Benutzerliste v3: kompakte Karten, Rechte erst beim Hover/Fokus */
.user-row--hover-rights {
    position: relative;
    grid-template-columns: minmax(230px, 1.2fr) minmax(170px, .75fr) minmax(150px, .55fr) auto;
    overflow: visible;
    background:
        linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        rgba(15, 23, 42, .78);
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.user-row--hover-rights:hover,
.user-row--hover-rights:focus,
.user-row--hover-rights:focus-within {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 18px 38px rgba(0,0,0,.28);
    outline: none;
}

.user-identity {
    min-width: 0;
}

.user-identity strong,
.user-identity .small-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role-pill--admin {
    background: rgba(20, 146, 142, .18);
    border-color: rgba(20, 146, 142, .36);
    color: #fecaca;
}

.user-role-pill--watcher {
    background: rgba(59, 130, 246, .16);
    border-color: rgba(59, 130, 246, .32);
    color: #bfdbfe;
}

.user-role-pill--custom {
    background: rgba(168, 85, 247, .16);
    border-color: rgba(168, 85, 247, .32);
    color: #e9d5ff;
}

.user-current-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(34,197,94,.26);
    background: rgba(34,197,94,.12);
    color: #bbf7d0;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.user-rights-hover {
    position: relative;
    justify-self: stretch;
}

.user-rights-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.16);
    cursor: default;
    user-select: none;
}

.user-rights-trigger strong {
    font-size: .9rem;
    white-space: nowrap;
}

.rights-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(34,197,94,.9);
    box-shadow: 0 0 0 4px rgba(34,197,94,.13);
    flex: 0 0 auto;
}

.user-rights-popover {
    position: absolute;
    z-index: 30;
    top: 50%;
    right: calc(100% + 12px);
    width: min(340px, 72vw);
    max-height: 280px;
    overflow: auto;
    transform: translate(10px, -50%) scale(.98);
    opacity: 0;
    pointer-events: none;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(10, 15, 28, .96);
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    backdrop-filter: blur(16px);
    transition: opacity .14s ease, transform .14s ease;
}

.user-rights-popover::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -7px;
    width: 12px;
    height: 12px;
    transform: translateY(-50%) rotate(45deg);
    border-top: 1px solid rgba(255,255,255,.16);
    border-right: 1px solid rgba(255,255,255,.16);
    background: rgba(10, 15, 28, .96);
}

.user-rights-popover-title {
    margin-bottom: 10px;
    font-weight: 800;
    color: #f8fafc;
}

.user-permissions-wrap--popover {
    gap: 8px;
}

.user-permissions-wrap--popover .permission-mini-pill {
    background: rgba(255,255,255,.09);
}

.user-row--hover-rights:hover .user-rights-popover,
.user-row--hover-rights:focus .user-rights-popover,
.user-row--hover-rights:focus-within .user-rights-popover,
.user-rights-hover:hover .user-rights-popover {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
    pointer-events: auto;
}

@media (max-width: 1100px) {
    .user-row--hover-rights {
        grid-template-columns: 1fr;
    }

    .user-rights-trigger {
        justify-content: flex-start;
    }

    .user-rights-popover {
        position: static;
        width: 100%;
        max-height: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        margin-top: 10px;
        box-shadow: none;
    }

    .user-rights-popover::after {
        display: none;
    }
}

/* =========================================================
   FIX: Benutzerverwaltung Header, Icon, Hoverbox, User-Liste
   Ganz unten in assets/style_modern.css einfügen
   ========================================================= */

.user-manager-card {
    position: relative;
    overflow: visible !important;
    padding: 24px !important;
    isolation: isolate;
}

.user-manager-card > .card-head {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0 0 18px 0 !important;
    padding: 0 0 16px 0 !important;
}

.user-manager-card .ui-title {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.15;
    margin: 0;
}

.user-manager-card .ui-icon--box {
    width: 34px;
    height: 34px;
    min-width: 34px;
    flex: 0 0 34px;
    margin: 0;
    border-radius: 12px;
    background: rgba(20, 146, 142, 0.12);
    border: 1px solid rgba(20, 146, 142, 0.32);
    color: #ff5c5c;
    box-shadow: 0 0 0 1px rgba(20, 146, 142, 0.06), 0 12px 26px rgba(255, 0, 0, 0.12);
}

.user-manager-card .ui-icon--box svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.user-manager-layout,
.user-manager-layout--wide {
    position: relative;
    z-index: 10;
    overflow: visible !important;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
    gap: 22px;
    align-items: start;
}

.user-create-form {
    position: relative;
    z-index: 2;
    overflow: visible !important;
}

.user-list-card,
.user-list-card--wide {
    position: relative;
    z-index: 20;
    overflow: visible !important;
    overflow-x: hidden;
}

.user-list-card:hover,
.user-list-card--wide:hover {
    z-index: 200;
    overflow-x: hidden;
}

.users-list,
.users-list--cards {
    position: relative;
    z-index: 30;
    overflow: visible !important;
}

.user-row--card,
.user-row--hover-rights {
    position: relative;
    overflow: visible !important;
}

.user-row--hover-rights {
    z-index: 1;
    grid-template-columns: minmax(230px, 1.2fr) minmax(170px, 0.75fr) minmax(150px, 0.55fr) minmax(0, auto);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.user-row--hover-rights:hover,
.user-row--hover-rights:focus,
.user-row--hover-rights:focus-within {
    z-index: 9999;
    overflow: hidden;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 60, 60, 0.10);
    outline: none;
}

.user-row-main {
    min-width: 0;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-identity {
    min-width: 0;
}

.user-identity strong,
.user-identity .small-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role-pill {
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
}

.user-role-pill--admin {
    background: rgba(20, 146, 142, 0.18);
    border-color: rgba(20, 146, 142, 0.38);
    color: #fecaca;
}

.user-role-pill--watcher {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.34);
    color: #bfdbfe;
}

.user-role-pill--custom {
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(168, 85, 247, 0.34);
    color: #e9d5ff;
}

.user-current-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.13);
    color: #bbf7d0;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-rights-hover {
    position: relative;
    justify-self: start;
    z-index: 5;
}

.user-rights-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.18);
    cursor: default;
    user-select: none;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.user-rights-hover:hover .user-rights-trigger,
.user-row--hover-rights:focus-within .user-rights-trigger {
    border-color: rgba(255, 80, 80, 0.34);
    background: rgba(20, 146, 142, 0.08);
    box-shadow: 0 0 0 1px rgba(20, 146, 142, 0.06);
}

.user-rights-trigger strong {
    font-size: 0.9rem;
    white-space: nowrap;
}

.rights-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.95);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.13);
    flex: 0 0 auto;
}


.user-rights-popover {
    position: absolute;
    overflow-x: hidden !important;
    top: 50%;
    right: calc(100% + 14px);
    width: min(360px, 72vw);
    max-height: 340px;
    overflow: auto;
    opacity: 0;
    pointer-events: none;
    transform: translate(12px, -50%) scale(0.98);
    padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(8, 12, 22, 0.98));
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(20, 146, 142, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    transition:
        opacity 0.14s ease,
        transform 0.14s ease;
}

.user-rights-popover::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -7px;
    width: 12px;
    height: 12px;
    transform: translateY(-50%) rotate(45deg);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(17, 24, 39, 0.98);
}

.user-rights-popover-title {
    margin-bottom: 11px;
    font-weight: 900;
    color: #f8fafc;
}

.user-permissions-wrap--popover {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-permissions-wrap--popover .permission-mini-pill {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e5e7eb;
}

.user-row--hover-rights:hover .user-rights-popover,
.user-row--hover-rights:focus .user-rights-popover,
.user-row--hover-rights:focus-within .user-rights-popover,
.user-rights-hover:hover .user-rights-popover,
.user-rights-hover:focus-within .user-rights-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%) scale(1);
}

.user-list-head {
    position: relative;
    z-index: 50;
}

.user-list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.user-list-actions input[type="search"] {
    min-width: 250px;
}

@media (max-width: 1300px) {
    .user-manager-layout,
    .user-manager-layout--wide {
        grid-template-columns: 1fr;
    }

    .user-list-card,
    .user-list-card--wide {
        z-index: 50;
    }

    .user-rights-popover {
        right: auto;
        left: 0;
        top: calc(100% + 10px);
        transform: translateY(-6px) scale(0.98);
    }

    .user-rights-popover::after {
        top: -7px;
        left: 26px;
        right: auto;
        transform: rotate(45deg);
        border-right: none;
        border-bottom: none;
        border-left: 1px solid rgba(255, 255, 255, 0.18);
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .user-row--hover-rights:hover .user-rights-popover,
    .user-row--hover-rights:focus .user-rights-popover,
    .user-row--hover-rights:focus-within .user-rights-popover,
    .user-rights-hover:hover .user-rights-popover,
    .user-rights-hover:focus-within .user-rights-popover {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1100px) {
    .user-row--hover-rights {
        grid-template-columns: 1fr;
    }

    .user-rights-trigger {
        justify-content: flex-start;
    }

    .user-rights-popover {
        position: static;
        width: 100%;
        max-height: none;
        opacity: 1;
        pointer-events: auto;
        transform: none !important;
        margin-top: 10px;
        box-shadow: none;
    }

    .user-rights-popover::after {
        display: none;
    }

    .user-list-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .user-list-actions input[type="search"] {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .user-manager-card {
        padding: 18px !important;
    }

    .user-manager-card .ui-title {
        align-items: flex-start;
    }

    .user-manager-card .ui-icon--box {
        width: 32px;
        height: 32px;
        min-width: 32px;
        flex-basis: 32px;
    }
}

/* =========================================================
   FIX: Transaktions-Hover flackert nicht mehr
   ========================================================= */

.transaction-row,
.transaction-card,
.transactions-list .card,
.transactions-table tbody tr {
    transform: none !important;
    will-change: auto !important;
}

.transaction-row:hover,
.transaction-card:hover,
.transactions-list .card:hover,
.transactions-table tbody tr:hover {
    transform: none !important;
}

.transaction-row *,
.transaction-card *,
.transactions-table tbody tr * {
    backface-visibility: hidden;
}

.transaction-hover,
.transaction-popover,
.transaction-details-popover,
.tx-hover,
.tx-popover {
    pointer-events: none !important;
}

.transactions-table tbody tr,
.transaction-row,
.transaction-card {
    transition:
        background-color 0.14s ease,
        border-color 0.14s ease,
        box-shadow 0.14s ease !important;
}