/* APP-FEELING & BASICS */
html, body { overscroll-behavior-y: none; }
body {
    background-color: #030508; 
    background-image: radial-gradient(circle at top center, #0a111a 0%, #020304 100%);
    color: #b0c4de; font-family: 'Rajdhani', sans-serif; font-size: 15px; margin: 0; padding: 20px 260px 20px 20px; min-height: 100vh;
    -webkit-user-select: none; -ms-user-select: none; user-select: none;
}
input, textarea, select { -webkit-user-select: auto; -ms-user-select: auto; user-select: auto; }
img, .avatar, .avatar-large, .avatar-small { -webkit-user-drag: none; }

/* SCI-FI SCROLLBARS */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(10, 15, 20, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0, 255, 204, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 204, 0.6); }

h1, h2, h3 { 
    font-family: 'Orbitron', sans-serif; color: #00ffcc; text-align: center; text-transform: uppercase; 
    letter-spacing: 2px; text-shadow: 0 0 15px rgba(0, 255, 204, 0.3); margin-top: 10px; font-weight: 600;
}

.container { max-width: 1400px; margin: 0 auto; overflow-x: visible; position: relative; padding-bottom: 40px;}

/* WEICHERE CONTAINER (Frosted Glass) - Runder & mehr Sci-Fi Glow */
.section, .retro-box, .player-details, .sheet-container, .form-box { 
    background: rgba(10, 15, 22, 0.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.03); 
    border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); 
}
.section { padding: 25px; margin-bottom: 30px; }

/* SLEEK BUTTONS - Runder, dynamischer Hover */
button, .tab-btn, .tc-tab-btn {
    background: rgba(255, 255, 255, 0.02); color: #8899aa; font-family: 'Orbitron', sans-serif; font-size: 12px;
    text-transform: uppercase; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 10px 20px;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); letter-spacing: 1px; font-weight: 600;
}
button:hover, .tab-btn:hover, .tc-tab-btn:hover {
    background: rgba(0, 255, 204, 0.08); border-color: rgba(0, 255, 204, 0.4); color: #00ffcc; box-shadow: 0 0 20px rgba(0, 255, 204, 0.3); transform: translateY(-2px) scale(1.02);
}
.tab-btn.active, .tc-tab-btn.active {
    background: rgba(255, 153, 0, 0.08); color: #ffaa33; border-color: rgba(255, 153, 0, 0.4); box-shadow: 0 0 20px rgba(255, 153, 0, 0.2);
}
.tab-btn.bp-btn { background: rgba(224, 102, 255, 0.05); color: #e066ff; border: 1px solid rgba(224,102,255,0.4); animation: pulse-border 3s infinite; }
.btn-submit, .btn-login { background: rgba(0, 255, 204, 0.1) !important; color: #00ffcc !important; border: 1px solid rgba(0, 255, 204, 0.3) !important; }
.btn-submit:hover, .btn-login:hover { background: #00ffcc !important; color: #000 !important; box-shadow: 0 0 25px rgba(0, 255, 204, 0.5) !important; transform: translateY(-2px) scale(1.02); }

/* MODERN INPUTS - Runder & weicher */
input[type="text"], input[type="password"], input[type="datetime-local"], input[type="number"], select, input[type="file"] { 
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; padding: 10px 14px; border-radius: 8px; font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 500; transition: all 0.3s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
input:focus, select:focus { outline: none; border-color: #00ffcc; background: rgba(0, 0, 0, 0.6); box-shadow: 0 0 15px rgba(0, 255, 204, 0.2), inset 0 2px 4px rgba(0,0,0,0.3); }
input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; background-color: rgba(0,0,0,0.4); margin: 0 6px 0 0; width: 1.4em; height: 1.4em; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; display: inline-grid; place-content: center; cursor: pointer; vertical-align: middle; transition: all 0.2s;
}
input[type="checkbox"]::before {
    content: ""; width: 0.7em; height: 0.7em; transform: scale(0); transition: 120ms transform ease-in-out; box-shadow: inset 1em 1em #00ffcc; transform-origin: center; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
input[type="checkbox"]:checked { border-color: #00ffcc; background-color: rgba(0, 255, 204, 0.1); box-shadow: 0 0 10px rgba(0,255,204,0.3); }
input[type="checkbox"]:checked::before { transform: scale(1); }

/* HEADER & SIDEBAR */
.header-bar { 
    display: flex; gap: 8px; align-items: center; background: rgba(10, 15, 22, 0.6); backdrop-filter: blur(16px); padding: 8px 15px; border: 1px solid rgba(255,255,255,0.03); border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.3); 
    position: relative; z-index: 100;
}

.right-sidebar { position: fixed; top: 20px; right: 20px; display: flex; flex-direction: column; gap: 15px; width: 220px; z-index: 1000; max-height: calc(100vh - 40px); overflow-y: auto; overflow-x: hidden; padding-right: 5px;}

/* COUNTDOWN BOXES - Runder & stärkerer Glow */
.countdown-box { 
    background: rgba(10, 15, 22, 0.4); border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 16px; text-align: center; padding: 15px 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); position: relative; overflow: hidden;
}
.countdown-box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; box-shadow: 0 0 20px 2px #ff9900; background: #ff9900; opacity: 0.6; }
.leaderboard-bg::before { box-shadow: 0 0 20px 2px #ff3333; background: #ff3333; opacity: 0.6; }
.leaderboard-title { color: #ff7733 !important; }
.cortex-bg { padding: 12px 10px; }
.cortex-bg::before { box-shadow: 0 0 20px 2px #e066ff; background: #e066ff; opacity: 0.5; }
.cortex-title { color: #e066ff !important; margin-bottom: 6px; }
.sale-green-theme::before { box-shadow: 0 0 20px 2px #ccff00; background: #ccff00; opacity: 0.6; }

.countdown-title { font-family: 'Orbitron', sans-serif; font-size: 9px; text-transform: uppercase; color: #8899aa; letter-spacing: 1px; margin-bottom: 8px; }
.countdown-timer { font-size: 16px; font-weight: bold; color: #fff; font-family: 'Orbitron', monospace; letter-spacing: 1px;}
.cortex-timer { cursor: pointer; transition: transform 0.2s; }
.cortex-timer:hover { transform: scale(1.05); }

/* TIME BLOCKS */
.time-container { display: flex; justify-content: center; gap: 6px; margin-top: 5px; }
.time-block { 
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 6px 4px; font-family: 'Orbitron', monospace; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; align-items: center; min-width: 32px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}
.time-block span { font-size: 8px; color: #667788; margin-top: 3px; text-transform: uppercase; font-family: 'Rajdhani', sans-serif; letter-spacing: 1px; font-weight: 600; }

/* LIVE BPS COLLAPSIBLE */
.live-bps-container { padding: 15px; transition: all 0.3s ease; border-radius: 16px; }
.live-bps-summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; outline: none; list-style: none; margin: -5px -5px 0 -5px; padding: 5px; }
.live-bps-summary::-webkit-details-marker { display: none; }
.live-bps-summary .live-arrow { transition: transform 0.3s; color: #667788; font-size: 12px; }
.live-bps-container[open] .live-bps-summary .live-arrow { transform: rotate(180deg); color: #00ffcc; }

/* GLOBALE AVATARE & TC-WRAPPER */
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-sizing: border-box; flex-shrink: 0; }
.avatar-small { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-sizing: border-box; flex-shrink: 0; }
.avatar-large { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; box-sizing: border-box; flex-shrink: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.generic-avatar { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2)) !important; font-family: 'Orbitron', sans-serif; font-weight: bold; text-transform: uppercase; }

.tc-avatar-wrapper {
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; box-sizing: border-box; padding: 2px;
    background-color: rgba(0,0,0,0.6); 
    box-shadow: 0 2px 6px rgba(0,0,0,0.5); flex-shrink: 0;
}
.tc-avatar-wrapper img, .tc-avatar-wrapper .generic-avatar {
    width: 100% !important; height: 100% !important; border-radius: 50% !important; border: none !important; box-shadow: none !important; margin: 0 !important;
}
.tc-avatar-wrapper .generic-avatar { font-size: 10px !important; line-height: 1 !important; }
.tc-avatar-main { width: 28px; height: 28px; border: 2px solid currentColor; }
.tc-avatar-req { width: 24px; height: 24px; border: 1.5px solid currentColor; }

.dropdown { position: relative; display: inline-block; z-index: 100; }
.user-name-toggle { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; transition: background 0.2s; }
.user-name-toggle:hover { background: rgba(255,255,255,0.05); }
.dropdown-content { 
    visibility: hidden; opacity: 0; position: absolute; top: 100%; right: 0; left: auto; 
    background: rgba(10, 15, 22, 0.95); backdrop-filter: blur(16px); min-width: max-content; 
    box-shadow: 0px 15px 40px rgba(0,0,0,0.6); z-index: 1000; border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 12px; display: flex; flex-direction: column; gap: 8px; padding: 12px; 
    margin-top: 10px; transition: visibility 0.2s, opacity 0.2s; 
}
.dropdown:hover .dropdown-content, .dropdown-content.show { visibility: visible !important; opacity: 1 !important; }
.dropdown-content button { white-space: nowrap; padding: 8px 15px; font-size: 11px; width: 100%; text-align: left; }
.btn-logout { border-color: rgba(255,51,51,0.2) !important; color: #ff3333 !important; background: rgba(255,51,51,0.05) !important; }
.btn-logout:hover { background: rgba(255,51,51,0.15) !important; color: #ff5555 !important; box-shadow: 0 0 20px rgba(255,51,51,0.4) !important; border-color: rgba(255,51,51,0.6) !important; }

/* MODAL ANIMATIONEN & STYLING */
@keyframes overlayFade { from { opacity: 0; backdrop-filter: blur(0px); } to { opacity: 1; backdrop-filter: blur(8px); } }
@keyframes sciFiPop { from { transform: translate(-50%, -45%) scale(0.95); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(3, 5, 8, 0.8); z-index: 2000; backdrop-filter: blur(8px); animation: overlayFade 0.3s ease-out forwards; }
.modal-small { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(10, 15, 22, 0.8); backdrop-filter: blur(20px); padding: 30px; width: 340px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1); animation: sciFiPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.modal-large { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(10, 15, 22, 0.9); backdrop-filter: blur(20px); padding: 30px; width: 95vw; max-width: 1500px; height: 90vh; border-radius: 16px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1); animation: sciFiPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.modal-content { overflow-y: auto; flex-grow: 1; margin-top: 15px; padding-bottom: 80px; }


/* =========================================================================
   AB HIER: ORIGINAL CODE (Status, Grid, Tabellen & Admin) 
   ========================================================================= */

.table-container { width: 100%; overflow-x: auto; overflow-y: visible; padding-bottom: 50px;}
.planet-matrix-table, .sheet-table { border-collapse: collapse; font-family: 'Rajdhani', sans-serif; font-size: 13px; width: max-content; }
.planet-matrix-table th, .planet-matrix-table td, .sheet-table th, .sheet-table td { border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.03); text-align: center; box-sizing: border-box; padding: 6px 8px; }
.planet-matrix-table th, .sheet-table th { background: rgba(10, 14, 22, 0.95); backdrop-filter: blur(10px); font-family: 'Orbitron', sans-serif; font-size: 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #b0c4de; text-transform: uppercase; letter-spacing: 1px; position: sticky; top: 0; z-index: 20; }

.th-rings { background: rgba(22, 34, 43, 0.95) !important; color: #66b3ff !important; }
.th-ancient { background: rgba(34, 22, 43, 0.95) !important; color: #e066ff !important; } 
.th-schnell { background: rgba(22, 27, 43, 0.95) !important; color: #66b3ff !important; } 
.th-lang { background: rgba(22, 43, 26, 0.95) !important; color: #66ff99 !important; } 
.th-stark { background: rgba(43, 22, 22, 0.95) !important; color: #ff6666 !important; } 

.sys-Vega { background: rgba(38, 38, 54, 0.95) !important; color: #ffffff !important; }
.sys-Antares { background: rgba(46, 30, 46, 0.95) !important; color: #ff77ff !important; }
.sys-Gemini { background: rgba(25, 46, 46, 0.95) !important; color: #55ffff !important; }
.sys-Mizar { background: rgba(30, 46, 30, 0.95) !important; color: #55ff55 !important; }
.sys-Sol { background: rgba(46, 46, 25, 0.95) !important; color: #ffff55 !important; }
.sys-Draconis { background: rgba(46, 36, 25, 0.95) !important; color: #ffaa44 !important; }
.sys-Sirius { background: rgba(46, 25, 25, 0.95) !important; color: #ff6666 !important; }

.tech-grau { background: rgba(37, 37, 51, 0.95) !important; color: #d1d1e0 !important; }
.tech-rot { background: rgba(59, 35, 35, 0.95) !important; color: #ff9999 !important; }
.tech-gelb { background: rgba(59, 55, 35, 0.95) !important; color: #ffea99 !important; }
.tech-blau { background: rgba(35, 50, 59, 0.95) !important; color: #99d1ff !important; }
.tech-gruen { background: rgba(35, 59, 42, 0.95) !important; color: #99ffaa !important; }
.tech-pfirsich { background: rgba(59, 47, 35, 0.95) !important; color: #ffccaa !important; }
.tech-braun { background: rgba(48, 32, 24, 0.95) !important; color: #ffaa88 !important; }

.col-slot { position: sticky; left: 0; background: rgba(10, 14, 22, 0.95); backdrop-filter: blur(10px); z-index: 15; width: 120px; min-width: 120px;}
.col-bp { position: sticky; left: 120px; background: rgba(10, 14, 22, 0.95); backdrop-filter: blur(10px); z-index: 15; width: 280px; min-width: 280px; border-right: 1px solid rgba(255,255,255,0.05) !important; }
th.col-slot, th.col-bp { z-index: 30; }

.planet-matrix-table tbody tr:hover td, .sheet-table tbody tr:hover td { background-color: rgba(255, 255, 255, 0.02); transition: background-color 0.1s ease-in-out; }

.draggable-th { cursor: grab; transition: background 0.2s, transform 0.2s; min-width: 32px; }
.draggable-th:active { cursor: grabbing; }
.draggable-th.drag-over { border-left: 2px solid #00ffcc !important; background: rgba(0, 255, 204, 0.05) !important; }

.planet-collapse-btn-new { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #aaa; font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 10px; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; }
.planet-collapse-btn-new:hover { background: rgba(0,255,204,0.15); border-color: #00ffcc; color: #00ffcc; box-shadow: 0 0 10px rgba(0,255,204,0.3); transform: scale(1.05); }
.planet-timer { font-family: 'Orbitron', sans-serif; font-weight: 600; color: #00ffcc; letter-spacing: 1px;}
.planet-timer.warning-24h { color: #ffaa33; } 
.planet-timer.warning-12h { color: #ff3333; } 
.planet-timer.collapsed { color: #ff3333; }

.bp-select-cell { text-align: left; padding: 4px 8px; font-weight: 600; font-size: 12px;}
.vertical-text { writing-mode: vertical-rl; text-orientation: upright; max-height: 220px; padding: 5px; white-space: nowrap; font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: -0.5px; text-align: left; }
.slot-label { font-weight: 600; padding: 4px; vertical-align: middle; font-size: 11px; color: #aaa; }

.status-voll   { background-color: rgba(0, 77, 0, 0.8); color: #99ff99; font-weight: 700; border-radius: 4px; box-shadow: inset 0 0 5px rgba(0, 255, 153, 0.3); }
.status-fehlt  { background-color: rgba(102, 0, 0, 0.8); color: #ff9999; font-weight: 700; border-radius: 4px; box-shadow: inset 0 0 5px rgba(255, 51, 51, 0.3); }
.status-teilweise { background-color: rgba(179, 89, 0, 0.8); color: #ffcc66; font-weight: 700; border-radius: 4px; box-shadow: inset 0 0 5px rgba(255, 170, 51, 0.3); }
.status-wunsch { background-color: rgba(75, 0, 130, 0.8); color: #e066ff; font-weight: 700; border-radius: 4px; box-shadow: inset 0 0 5px rgba(224, 102, 255, 0.3); }
.status-empty  { background-color: transparent; }
.status-none   { background-color: rgba(255,255,255,0.05); color: #666; font-weight: bold; border-radius: 4px; }

.slot-18er, .slot-23er { background: rgba(102, 179, 255, 0.05) !important; color: #66b3ff !important; box-shadow: inset 4px 0 0 #66b3ff !important; }
.slot-14er, .slot-15er { background: rgba(255, 170, 51, 0.05) !important; color: #ffaa33 !important; box-shadow: inset 4px 0 0 #ffaa33 !important; }
.slot-12er, .slot-6er  { background: rgba(255, 102, 102, 0.05) !important; color: #ff6666 !important; box-shadow: inset 4px 0 0 #ff6666 !important; }
.slot-5er  { background: rgba(102, 255, 153, 0.05) !important; color: #66ff99 !important; box-shadow: inset 4px 0 0 #66ff99 !important; }
.slot-other { background: rgba(209, 209, 224, 0.02) !important; color: #d1d1e0 !important; box-shadow: inset 4px 0 0 #666680 !important; }
.boss-giza { box-shadow: inset 4px 0 0 #00ff88, inset 0 0 15px rgba(0,255,136,0.15) !important; background: rgba(0,255,136,0.05) !important; color: #00ff88 !important; }
.boss-amarna { box-shadow: inset 4px 0 0 #00ccff, inset 0 0 15px rgba(0,204,255,0.15) !important; background: rgba(0,204,255,0.05) !important; color: #00ccff !important; }
.boss-soris { box-shadow: inset 4px 0 0 #ff3366, inset 0 0 15px rgba(255,51,102,0.15) !important; background: rgba(255,51,102,0.05) !important; color: #ff3366 !important; }

.cell-interactive { cursor: pointer !important; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cell-interactive:hover { background-color: rgba(255,255,255,0.05); transform: scale(1.1); box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 10; }

.tc-header { font-weight: bold; font-size: 14px; padding: 12px; text-align: center; border-radius: 6px; text-transform: uppercase; font-family:'Orbitron', sans-serif;}
.tc-ship-box { border-radius: 8px; overflow: hidden; display: flex; align-items: stretch; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; }

@keyframes highlight-cell { 0% { background-color: rgba(255, 255, 255, 1) !important; box-shadow: inset 0 0 30px #fff, 0 0 30px #e066ff !important; color: #000; } 10% { background-color: rgba(224, 102, 255, 1) !important; box-shadow: inset 0 0 20px #e066ff !important; color: #fff;} 100% { background-color: initial; box-shadow: initial; color: inherit; } }
.highlight-row-active td { animation: highlight-cell 8s ease-out forwards; }

.collapsed-header-mode .vertical-text { display: none !important; }
.collapsed-header-mode th { padding-top: 8px !important; padding-bottom: 8px !important; }

.player-details { margin-bottom: 8px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.03); border-radius: 10px; overflow: hidden; transition: all 0.3s ease; }
.player-details summary { cursor: pointer; padding: 10px 12px; font-size: 13px; font-weight: bold; background: transparent; color: #00ffcc; user-select: none; font-family:'Orbitron', sans-serif; display: flex; align-items: center; gap: 10px; list-style: none; }
.player-details summary::-webkit-details-marker { display: none; }
.player-details[open] { border-color: rgba(0, 255, 204, 0.2); box-shadow: 0 0 15px rgba(0, 255, 204, 0.05); background: rgba(0,0,0,0.3); }
.player-details summary .arrow { margin-left: auto; transition: transform 0.3s ease; color: #667788; }
.player-details[open] summary .arrow { transform: rotate(180deg); color: #00ffcc; }
.live-bp-list { padding: 0; margin: 0; list-style: none; background: transparent; animation: slideDown 0.3s ease-out forwards; transform-origin: top; }
@keyframes slideDown { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
.live-drop-item { padding: 8px 12px; border-top: 1px solid rgba(255,255,255,0.02); cursor: pointer; transition: all 0.2s ease-in-out; font-size: 13px; }
.live-drop-item:hover { background: rgba(255, 255, 255, 0.03); padding-left: 18px; border-left: 2px solid rgba(0,255,204,0.5); }
.sirius-highlight { box-shadow: inset 0 0 0 1px #ff3333, inset 0 0 8px rgba(255, 51, 51, 0.4) !important; }
.td-tech { position: sticky; left: 0; font-weight: bold; text-align: left; z-index: 15; border-right: 2px solid #ff9900 !important; min-width: 140px; font-size: 13px;}
.counter-table { border-collapse: collapse; width: 100%; border: 1px solid rgba(0,255,204,0.2); margin-top: 10px;}
.counter-table th { background: rgba(0,30,40,0.9); color: #ff9900; font-weight: bold; font-size: 12px; padding: 8px; text-align: center; text-transform: uppercase;}
.counter-table td { padding: 5px 8px; border: 1px solid rgba(0,255,204,0.1); font-weight: bold; }
.count-val { text-align: center; font-style: italic; font-size: 15px; color: #00ffcc; background: transparent; font-weight: bold;}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* --- ADMIN PANEL CSS --- */
.btn-create { background: rgba(255, 153, 0, 0.1) !important; color: #ff9900 !important; border: 1px solid rgba(255, 153, 0, 0.4) !important; width: 100%; padding: 12px; font-size: 14px; margin-top: 5px; border-radius: 8px; }
.btn-create:hover { background: #ff9900 !important; color: #000 !important; box-shadow: 0 0 20px rgba(255, 153, 0, 0.4) !important; transform: translateY(-2px); }
.btn-red { background: rgba(255, 51, 51, 0.1) !important; border-color: rgba(255, 51, 51, 0.3) !important; color: #ff4444 !important; border-radius: 8px; }
.btn-red:hover:not(:disabled) { background: #ff4444 !important; color: #000 !important; box-shadow: 0 0 15px rgba(255, 51, 51, 0.4) !important; border-color: #ff4444 !important; transform: translateY(-2px); }
.btn-green { background: rgba(0, 255, 153, 0.1) !important; border-color: rgba(0, 255, 153, 0.3) !important; color: #00ffcc !important; border-radius: 8px; }
.btn-green:hover:not(:disabled) { background: #00ffcc !important; color: #000 !important; box-shadow: 0 0 15px rgba(0, 255, 204, 0.4) !important; border-color: #00ffcc !important; transform: translateY(-2px); }
.status-badge { padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 10px; text-transform: uppercase; display: inline-block; text-align: center; letter-spacing: 0.5px; }
.status-active { background-color: rgba(0, 255, 153, 0.1); color: #00ffcc; border: 1px solid rgba(0, 255, 153, 0.2); }
.status-inactive { background-color: rgba(255, 51, 51, 0.1); color: #ff4444; border: 1px solid rgba(255, 51, 51, 0.2); }

.admin-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; margin-top: 15px; font-size: 14px; }
.admin-table th { background: transparent; color: #667788; text-transform: uppercase; font-size: 11px; font-family: 'Orbitron', sans-serif; border-bottom: 1px solid rgba(255, 255, 255, 0.05); letter-spacing: 1px; padding: 10px 12px; text-align: left;}
.admin-table td { background: rgba(0,0,0,0.2); padding: 12px; text-align: left; vertical-align: middle; border-top: 1px solid rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.02); }
.admin-table td:first-child { border-left: 1px solid rgba(255,255,255,0.02); border-radius: 8px 0 0 8px; }
.admin-table td:last-child { border-right: 1px solid rgba(255,255,255,0.02); border-radius: 0 8px 8px 0; }
.admin-table tbody tr:hover td { background-color: rgba(255, 255, 255, 0.03); }

/* STYLING FÜR DIE HEX-FARBEINGABE MIT FESTEM # */
.hex-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 10px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.hex-input-wrapper:focus-within {
    border-color: #00ffcc;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2), inset 0 2px 4px rgba(0,0,0,0.3);
}
.hex-prefix {
    color: #888;
    font-weight: bold;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    user-select: none;
}
.hex-input-field {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 5px !important;
    width: 100%;
}
.hex-input-field:focus {
    box-shadow: none !important;
}

/* DRAG & DROP FÜR PLANETEN */
.planet-card { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.planet-card.drag-over-planet { border-color: rgba(0,255,204,0.6) !important; box-shadow: 0 0 25px rgba(0, 255, 204, 0.3) !important; transform: scale(1.02); }

/* RUNDE BADGES FÜR SPIELER-STATUS */
.avatar-planet-badge { width: 100% !important; height: 100% !important; border-radius: 50%; object-fit: cover; border: none !important; box-shadow: none !important; margin: 0 !important; }
.generic-avatar.avatar-planet-badge { font-size: 10px !important; display: flex !important; align-items: center !important; justify-content: center !important; }

/* SIRIUS BP ROW STYLING (Sci-Fi Look) */
.sirius-bp-row {
    transition: all 0.2s ease;
}
.sirius-bp-row:hover {
    background: rgba(255,255,255,0.05) !important;
    transform: scale(1.01);
    border-color: rgba(255,255,255,0.1) !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.4) !important;
}

/* ==============================================================
   CUSTOM RANGE SLIDER (Sci-Fi Look)
   ============================================================== */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin: 10px 0;
}
input[type="range"]:focus { outline: none; }
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%; 
    height: 6px; 
    cursor: pointer;
    background: rgba(0, 255, 204, 0.15);
    border-radius: 4px; 
    border: 1px solid rgba(0, 255, 204, 0.3);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
input[type="range"]::-webkit-slider-thumb {
    height: 18px; 
    width: 18px; 
    border-radius: 50%;
    background: #00ffcc; 
    cursor: pointer;
    -webkit-appearance: none; 
    margin-top: -7px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
    border: 2px solid #030508;
    transition: transform 0.2s, box-shadow 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2); 
    box-shadow: 0 0 15px rgba(0, 255, 204, 1);
}

/* Verstecke die kleinen, hässlichen Pfeile im Number-Input */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] { -moz-appearance: textfield; }

/* ==============================================================
   SCI-FI ANIMATIONS & HOLOGRAPHIC EFFECTS
   ============================================================== */

/* 1. Holo-Flicker für Überschriften (Subtiler Defekt/Glitch) */
@keyframes holoFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; text-shadow: 0 0 15px rgba(0, 255, 204, 0.3); }
    20%, 22%, 24%, 55% { opacity: 0.8; text-shadow: 0 0 5px rgba(0, 255, 204, 0.8), 2px 0 2px rgba(255,0,255,0.3), -2px 0 2px rgba(0,255,255,0.3); }
}
h1, h2, h3 { 
    animation: holoFlicker 8s infinite; 
}

/* 2. Cyber-Scanline Effekt auf Countdown-Boxen bei Hover */
.countdown-box {
    position: relative;
    overflow: hidden;
}
.countdown-box::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(0,255,204,0.15) 50%, rgba(255,255,255,0) 100%);
    z-index: 10;
    pointer-events: none;
    transition: all 0.5s ease;
    opacity: 0;
}
.countdown-box:hover::after {
    opacity: 0.88;
    animation: scanline 2.5s linear infinite;
}
@keyframes scanline {
    0% { top: -30%; }
    100% { top: 130%; }
}

/* 3. Atmen / Pulsieren der Container-Ränder (Frosted Glass Panels) */
@keyframes breatheBorder {
    0% { border-color: rgba(255, 255, 255, 0.02); }
    50% { border-color: rgba(0, 255, 204, 0.15); box-shadow: 0 10px 40px rgba(0,0,0,0.3), inset 0 0 15px rgba(0,255,204,0.05); }
    100% { border-color: rgba(255, 255, 255, 0.02); }
}
/* Wendet das Atmen auf die Hauptcontainer an */
.retro-box, .player-details {
    animation: breatheBorder 5s ease-in-out infinite;
}

/* 4. Subtiler Glitch auf den Live-Timern, wenn man drüberhovert */
.countdown-timer:hover {
    animation: textGlitch 0.3s linear infinite alternate;
}
@keyframes textGlitch {
    0% { transform: translate(0); }
    25% { transform: translate(-1px, 1px); text-shadow: -1px 0 rgba(255,0,0,0.5), 1px 0 rgba(0,255,255,0.5); }
    50% { transform: translate(1px, -1px); text-shadow: 1px 0 rgba(255,0,0,0.5), -1px 0 rgba(0,255,255,0.5); }
    75% { transform: translate(-1px, -1px); text-shadow: -1px 0 rgba(255,0,0,0.5), 1px 0 rgba(0,255,255,0.5); }
    100% { transform: translate(1px, 1px); text-shadow: 1px 0 rgba(255,0,0,0.5), -1px 0 rgba(0,255,255,0.5); }
}

/* ==============================================================
   GIF BACKGROUND (Statischer Hintergrund, unabhängig vom Zoom)
   ============================================================== */
html::before {
    content: "";
    position: fixed;
    
    /* Feste Ausrichtung an den Rändern des echten Fensters */
	top: 0;
    left: 0;
    width: 100vw;      
    height: 100vh;    
    
    background-image: url('/background.gif');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; 
    
    opacity: 0.12;     
    filter: blur(6px); 
    
    z-index: -1;       
    pointer-events: none; 
}

/* SCI-FI SCROLLBARS (Extrem subtil) */
::-webkit-scrollbar { 
    width: 4px; /* Sehr dünn */
    height: 2px; 
}
::-webkit-scrollbar-track { 
    background: transparent; /* Komplett unsichtbare Spur */
}
::-webkit-scrollbar-thumb { 
    background: rgba(0, 255, 204, 0.1); /* Fast unsichtbar */
    border-radius: 10px; 
    transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover { 
    background: rgba(0, 255, 204, 0.5); /* Leuchtet erst beim drüberfahren */
}