body {
    background: radial-gradient(ellipse at 50% 0%, #2d0808 0%, #0e0101 55%, #000000 100%) fixed;
    background-attachment: fixed;
}

:root {
    --accent: #e8291c;
    --accent-strong: #c41f15;
    --text-soft: #d4d4d4;
    --panel-bg: rgba(18, 4, 4, 0.82);
    --panel-border: rgba(232, 41, 28, 0.18);
    --btn-bg: #1e0505;
    --btn-hover: #320808;
}

.app-header {
    padding: 18px 28px;
    background: linear-gradient(to bottom, #180303, #050000);
    border-bottom: 1px solid #2a0505;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--accent);
}

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

.app-header-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    min-width: 0;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.app-header .btn {
    width: auto;
    white-space: nowrap;
}

.btn {
    padding: 8px 16px;
    background: var(--btn-bg);
    color: #e8e8e8;
    border-radius: 8px;
    border: 1px solid var(--accent-strong);
    cursor: pointer;
    transition: 0.15s;
}

.btn:hover {
    background: var(--btn-hover);
    border-color: var(--accent);
}

.btn:active {
    transform: scale(0.96);
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-danger {
    background: #2a0404;
    border-color: #7a1a1a;
}

.btn-danger:hover {
    background: #3d0606;
    border-color: #c41f15;
}

.user-badge {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    max-width: 100%;
    background: rgba(30, 5, 5, 0.90);
    border: 1px solid rgba(232, 41, 28, 0.35);
    border-radius: 999px;
    color: var(--text-soft);
}

#user-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    letter-spacing: 0.2px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.user-edit {
    background: transparent;
    border: 1px solid rgba(255, 120, 120, 0.5);
    color: var(--text-soft);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
}

.user-edit:hover {
    background: rgba(255, 80, 80, 0.2);
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 12px;
}
