/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #273549;
    --bg-input: #0b1120;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --discord: #5865F2;
    --discord-hover: #4752C4;
    
    --border-color: #334155;
    --border-radius: 12px;
    --transition: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
    width: 100%;
}

h1, h2, h3, h4 {
    color: var(--text-main);
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

a:focus-visible,
.btn:focus-visible,
form button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

small {
    color: var(--text-muted);
    font-size: 0.825rem;
    display: inline-block;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.text-muted {
    color: var(--text-muted);
}

/* ==========================================================================
   2. HEADER & NAVIGATION (header.php)
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    gap: 16px;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    text-decoration: none;
    flex-shrink: 0;
}

header .logo:hover {
    opacity: 0.9;
}

.nav-logo-badge {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-logo-title {
    background: linear-gradient(90deg, #ffffff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

header nav a {
    color: var(--text-muted);
    font-size: 0.925rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

header nav a:hover {
    color: var(--text-main);
    background-color: var(--bg-card-hover);
}

header nav a.active {
    color: #ffffff;
    font-weight: 600;
    background-color: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.nav-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-username {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.925rem;
}

.btn-logout {
    color: #f87171 !important;
}

.btn-logout:hover {
    background-color: rgba(239, 68, 68, 0.15) !important;
}

.nav-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ==========================================================================
   3. FOOTER STYLING
   ========================================================================== */
#home-footer {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 24px;
    margin-top: 35px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-col {
    display: flex;
    align-items: center;
}

.footer-left {
    flex: 1;
    justify-content: flex-start;
}

.footer-center {
    flex: 1;
    justify-content: center;
}

.footer-right {
    flex: 1;
    justify-content: flex-end;
}

#home-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

#home-footer a:hover {
    color: var(--text-main);
}

.footer-divider {
    margin: 0 4px;
    opacity: 0.4;
}

.icon-skull, .icon-burger, .icon-cannabis {
    margin: 0 2px;
    display: inline-block;
}

.icon-skull i { color: #e2e8f0; }
.icon-burger i { color: #f59e0b; }
.icon-cannabis i { color: #10b981; }

/* ==========================================================================
   4. CARDS & CONTAINER LAYOUTS
   ========================================================================== */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.page-card {
    max-width: 800px;
    margin: 0 auto 24px auto;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    gap: 16px;
}

.auth.card {
    max-width: 440px;
    margin: 40px auto;
    padding: 32px;
}

.auth.card h1 {
    margin-bottom: 8px;
    text-align: center;
}

.auth.card > p {
    text-align: center;
    margin-bottom: 24px;
}

/* ==========================================================================
   5. HERO BANNER (index.php)
   ========================================================================== */
.hero {
    position: relative;
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.hero-text h1 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.2;
}

.hero-text p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   6. FORMS, INPUTS & BUTTONS
   ========================================================================== */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-label, label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

label.check {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

label.check input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    min-height: 42px;
}

input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

input::placeholder,
textarea::placeholder {
    color: #475569;
}

button,
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary);
    color: #ffffff;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
    text-decoration: none;
    vertical-align: middle;
    min-height: 42px;
}

button:hover,
.btn:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

button:active,
.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    min-height: 32px;
}

.btn-danger {
    background-color: var(--error);
}

.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
    background-color: #334155;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #475569;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

.btn-discord {
    background-color: var(--discord);
    color: #ffffff !important;
}

.btn-discord:hover {
    background-color: var(--discord-hover);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
}

/* ==========================================================================
   7. ALERTS, STATUS & GESPERRTE FELDER
   ========================================================================== */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.925rem;
    font-weight: 500;
}

.alert.success, .alert-success {
    background-color: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert.error, .alert.danger, .alert-danger {
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid var(--error);
    color: var(--error);
}

.status-online, .info-online { color: var(--success); font-weight: 600; }
.status-offline, .info-offline { color: var(--text-muted); font-weight: 500; }
.bf-ready, .info-bf-ready { color: var(--warning); font-weight: 600; }
.info-bf-done { color: var(--text-muted); }

input[disabled],
select[disabled] {
    border-color: rgba(239, 68, 68, 0.45) !important;
    background-color: rgba(239, 68, 68, 0.06) !important;
    color: #ff6b6b !important;
    -webkit-text-fill-color: #ff6b6b !important;
    cursor: not-allowed !important;
    opacity: 0.85;
}

input[disabled]::placeholder {
    color: rgba(255, 107, 107, 0.65) !important;
}

.badge-protected {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(239, 68, 68, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================================================================
   8. DASHBOARD LAYOUT (dashboard.php)
   ========================================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.dashboard-team {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-count {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

.dashboard-user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.dashboard-user:hover {
    border-color: #475569;
}

.dashboard-user img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.dashboard-user-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-user-info strong {
    font-size: 0.975rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-user-info span {
    font-size: 0.825rem;
    color: var(--text-muted);
}

.dashboard-user-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.825rem;
    flex-shrink: 0;
}

.dashboard-live-time {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-main);
}

.dashboard-empty {
    text-align: center;
    padding: 28px;
    color: var(--text-muted);
    font-style: italic;
    background-color: var(--bg-body);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.dashboard-self {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--bg-body);
    border: 2px solid var(--primary);
    object-fit: cover;
}

.dashboard-profile h1 {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.dashboard-profile p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.dashboard-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    font-size: 0.9rem;
}

.dashboard-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dashboard-info-row span {
    color: var(--text-muted);
}

.dashboard-own-time,
.dashboard-own-time-large {
    font-family: monospace;
}

.dashboard-own-time-large {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    margin: 12px 0;
    letter-spacing: -0.05em;
}

.dashboard-off-duty {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    margin: 12px 0;
    font-size: 1.1rem;
}

.dashboard-current-work p {
    text-align: center;
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* ==========================================================================
   9. TEAM LIST GRID & CATEGORIES (team.php / index.php)
   ========================================================================== */
.team-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
}

.team-role {
    margin-bottom: 20px;
}

.team-role-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-rank-badge {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: pixelated;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.team-role-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.team-role-members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 8px;
}

.card.member {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0 !important;
    transition: var(--transition);
}

.card.member:hover {
    border-color: #475569;
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.02);
}

.member-avatar {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.member-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.member-details b {
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-details .habbo-motto {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.team-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    min-height: 65px;
}

.team-avatar img {
    object-fit: contain;
    image-rendering: pixelated;
}

.team-info strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-word;
}

/* ==========================================================================
   10. TABLES & PAGINATION
   ========================================================================== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 8px;
}

.table-wrap::-webkit-scrollbar {
    height: 6px;
}
.table-wrap::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    min-width: 550px;
}

th {
    background-color: rgba(11, 17, 32, 0.6);
    color: var(--text-muted);
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--bg-card-hover);
}

.audit-details {
    font-family: monospace;
    font-size: 0.825rem;
    color: var(--text-muted);
    max-width: 320px;
    word-break: break-word;
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pagination a, 
.pagination .active {
    padding: 6px 14px;
    border-radius: 6px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-main);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================================
   11. AUDIT LOG & UTILITIES
   ========================================================================== */
.text-nowrap {
    white-space: nowrap;
}

.code-font {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge-action {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.card.card-full,
.page-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   12. USER DROPDOWN MENÜ
   ========================================================================== */
.nav-user-dropdown {
    position: relative;
    display: inline-block;
}

.nav-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    min-height: 40px;
}

.nav-user-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-user-dropdown.open .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #181b20;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 6px 0;
}

.nav-user-dropdown.open .nav-dropdown-content {
    display: block;
    animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header-info {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
}

.dropdown-header-info small {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.dropdown-header-info b {
    font-size: 0.9rem;
    color: #fff;
    word-break: break-all;
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: #ccc !important;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
}

.dropdown-item-danger {
    color: #ff5e5e !important;
}

.dropdown-item-danger:hover {
    background: rgba(255, 94, 94, 0.1);
    color: #ff7b7b !important;
}

/* ==========================================================================
   13. DEZENTER DISCORD BUTTON IN DER NAVIGATION
   ========================================================================== */
.btn-discord-nav {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    background-color: rgba(88, 101, 242, 0.15) !important;
    border: 1px solid rgba(88, 101, 242, 0.35) !important;
    color: #a5b4fc !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    text-decoration: none;
    transition: var(--transition) !important;
    box-shadow: none !important;
    margin-left: 4px;
    min-height: 40px;
}

.btn-discord-nav:hover {
    background-color: #5865f2 !important;
    border-color: #5865f2 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.25) !important;
}

.btn-discord-nav:active {
    transform: translateY(0);
}

.btn-discord-nav .discord-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   14. STARTSEITE: BESCHREIBUNGS-KASTEN (RENDER-STYLING)
   ========================================================================== */
.home-about-card {
    line-height: 1.7;
    margin-bottom: 28px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.home-about-content h1,
.home-about-content h2,
.home-about-content h3 {
    margin-top: 14px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.home-about-content p {
    color: var(--text-main);
    margin-bottom: 12px;
}

.home-about-content p:last-child {
    margin-bottom: 0;
}

.home-about-content ul,
.home-about-content ol {
    margin-left: 24px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.home-about-content a {
    color: var(--primary);
    text-decoration: underline;
}

.home-about-content a:hover {
    color: var(--primary-hover);
}

/* ==========================================================================
   15. TINYMCE FEINSCHLIFF (DARK THEME INTEGRATION)
   ========================================================================== */
.tox-tinymce {
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.tox .tox-statusbar {
    border-top: 1px solid var(--border-color) !important;
    background-color: #1e293b !important;
}

.tox .tox-statusbar a,
.tox .tox-statusbar__text-container {
    color: var(--text-muted) !important;
}

/* ==========================================================================
   16. RESPONSIVE BREAKPOINTS (TABLETS & SMARTPHONES)
   ========================================================================== */
@media (max-width: 1024px) {
    .team-role-members { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px;
    }

    header .logo {
        justify-content: center;
    }

    header nav {
        justify-content: center;
        width: 100%;
    }

    .nav-user-dropdown {
        width: 100%;
    }

    .nav-user-trigger {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown-content {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 280px;
    }

    @keyframes dropdownFadeIn {
        from { opacity: 0; transform: translate(-50%, -4px); }
        to { opacity: 1; transform: translate(-50%, 0); }
    }

    .team-role-members { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .footer-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-left, .footer-center, .footer-right {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .card {
        padding: 16px;
    }

    .auth.card {
        padding: 20px 16px;
        margin: 20px auto;
    }

    .dashboard-user {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dashboard-user-status {
        align-items: flex-start;
        width: 100%;
        border-top: 1px solid var(--border-color);
        padding-top: 8px;
    }
}

@media (max-width: 480px) {
    .team-role-members { 
        grid-template-columns: 1fr; 
    }

    header nav {
        gap: 6px;
    }

    header nav a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    button,
    .btn {
        width: 100%;
    }
}
/* =========================================================
   17. USERNAME STYLES & EFFEKTE
   ========================================================= */
/* =========================================================
   17. PREMIUM USERNAME EFFEKTE (UPGRADE)
   ========================================================= */

/* Basis-Animationen */
@keyframes rainbowFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fireFlicker {
    0%, 100% { text-shadow: 0 -2px 6px #ff3300, 0 -6px 12px #ff8800, 0 0 20px #ff0000; }
    50% { text-shadow: 0 -3px 8px #ff5500, 0 -8px 16px #ffaa00, 0 0 25px #ff2200; }
}

@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 4px #00ffff, 0 0 10px #00ffff, 0 0 20px #00a8ff, 0 0 40px #0066ff; }
    50% { text-shadow: 0 0 2px #00ffff, 0 0 6px #00ffff, 0 0 14px #00a8ff, 0 0 25px #0066ff; }
}

@keyframes shimmerSweep {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glitchAnim {
    0% { text-shadow: -2px 0 #ff0055, 2px 0 #00ffff; }
    25% { text-shadow: 2px 0 #ff0055, -2px 0 #00ffff; }
    50% { text-shadow: -1px 0 #ff0055, 1px 0 #00ffff; }
    75% { text-shadow: 1px 0 #ff0055, -1px 0 #00ffff; }
    100% { text-shadow: -2px 0 #ff0055, 2px 0 #00ffff; }
}

@keyframes floatPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7)); }
    50% { filter: drop-shadow(0 0 16px rgba(236, 72, 153, 0.9)); }
}

/* 0. Standard */
.name-style-default {
    color: var(--text-main);
    font-weight: 600;
}

/* 1. Fire Flame (Loderndes Feuer) */
.name-style-fire {
    background: linear-gradient(180deg, #fff275 0%, #ff8c00 45%, #e52d27 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: fireFlicker 1.5s infinite alternate;
    display: inline-block;
}

/* 2. Cyber Neon (Pulsierende Neonröhre) */
.name-style-neon {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    animation: neonPulse 2s infinite ease-in-out;
}

/* 3. Purple Galaxy (Deep Space Glow) */
.name-style-galaxy {
    background: linear-gradient(90deg, #c084fc, #f472b6, #818cf8, #c084fc);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: rainbowFlow 4s ease infinite, floatPulse 3s infinite ease-in-out;
    display: inline-block;
}

/* 4. Luxury Gold (Echter Metall-Glanz) */
.name-style-gold {
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: shimmerSweep 3s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
    display: inline-block;
}

/* 5. Rainbow Wave (Flüssiger RGB-Farbwechsel) */
.name-style-rainbow {
    background: linear-gradient(90deg, #ff0055, #ff9900, #ffee00, #00ff66, #00ffff, #7700ff, #ff0055);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: rainbowFlow 3s linear infinite;
    display: inline-block;
}

/* 6. Deep Ocean (Flüssiges Wellenblau) */
.name-style-ocean {
    background: linear-gradient(90deg, #38bdf8, #0284c7, #818cf8, #38bdf8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: shimmerSweep 3s ease infinite;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
    display: inline-block;
}

/* 7. Blood Moon (Düsteres Dämonen-Rot) */
.name-style-blood {
    color: #ff3344;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px #990000, 0 0 16px #ff0033, 0 0 24px #660011;
}

/* 8. Toxic Acid (Radioaktiver Glow) */
.name-style-toxic {
    background: linear-gradient(90deg, #a3e635, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.8));
    display: inline-block;
}

/* 9. Frozen Ice (Gefrorene Eiskristalle) */
.name-style-ice {
    background: linear-gradient(180deg, #ffffff 10%, #bae6fd 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: 0 0 10px #7dd3fc, 0 0 20px #0284c7;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* 10. Cyberpunk 2077 (Glitch & High Contrast) */
.name-style-cyberpunk {
    color: #ffe600;
    font-weight: 900;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1.5px;
    animation: glitchAnim 1.8s infinite steps(2);
    display: inline-block;
}

/* 11. Retro Synthwave (80s Neon-Chic) */
.name-style-synthwave {
    background: linear-gradient(180deg, #ff007f 0%, #a855f7 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.6));
    display: inline-block;
}

/* 12. Sakura Blossom (Sanfter Kirschblüten-Schein) */
.name-style-sakura {
    background: linear-gradient(90deg, #ffffff, #f472b6, #ec4899);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: shimmerSweep 4s ease infinite;
    filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.7));
    display: inline-block;
}

/* 13. Matrix Code (Hacker Terminal) */
.name-style-matrix {
    color: #00ff66;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 700;
    text-shadow: 0 0 5px #00ff66, 0 0 15px #008833;
    letter-spacing: 2px;
}

/* 14. Midnight Glow (Elektrisches Nachtblau) */
.name-style-midnight {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 8px #6366f1, 0 0 18px #4f46e5, 0 0 30px #312e81;
}

/* 15. Diamond Sparkle (Extremer Glitzer-Lichtstrahl) */
.name-style-platinum {
    background: linear-gradient(110deg, #94a3b8 20%, #ffffff 50%, #94a3b8 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: shimmerSweep 2s infinite linear;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
    display: inline-block;
}

/* Style-Picker Boxen im Profil */
.style-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.style-picker-item {
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6);
    padding: 12px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.style-picker-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* =========================================================
   ADMIN TAB NAVIGATION & LAYOUT
   ========================================================= */
.admin-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    overflow-x: auto;
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateY(-1px);
}

.admin-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.admin-tab-pane {
    display: none;
}

.admin-tab-pane.active {
    display: block;
    animation: fadeInTab 0.25s ease-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .admin-grid-split {
        grid-template-columns: 1fr;
    }
}