:root {
    --bg-color: #0b0c10;
    --card-bg: #15181e;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --accent: #f59e0b;
    --gold: #f59e0b;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 2rem;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0b0c10;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    /* NEU: Verhindert, dass das Scanner-Licht oder andere Elemente die Seite in die Breite ziehen */
    overflow-x: hidden; 
}

/* Navigation & Header */
.top-nav { display: flex; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.top-nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.top-nav a:hover, .top-nav a.active { color: var(--gold); }

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.logo-title { margin: 0; font-size: 2.5rem; font-weight: 300; line-height: 1; letter-spacing: -1px; }
.logo-subtitle { color: var(--gold); font-size: 0.9rem; font-weight: 800; letter-spacing: 4px; margin-top: 4px; }
.status-badge { background: rgba(30, 142, 62, 0.1); color: #4ade80; padding: 0.4rem 0.8rem; border: 1px solid #22c55e; border-radius: 9999px; font-size: 0.8rem; font-weight: bold; display: inline-flex; align-items: center; gap: 0.4rem; box-shadow: 0 0 10px rgba(34, 197, 94, 0.2); }

/* ANIMIERTER K.I.T.T. SCANNER */
.kitt-scanner { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.03); margin-bottom: 1rem; position: relative; }
.kitt-beam { position: absolute; top: -15px; left: 0; height: 31px; width: 40%; background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 70%); pointer-events: none; animation: ambient-scan 10s ease-in-out infinite alternate; }
@keyframes ambient-scan { 0% { left: -15%; } 100% { left: 75%; } }

/* WETTER WIDGET */
.weather-clock-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: linear-gradient(135deg, var(--card-bg), #1c1f26); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
.clock-section { display: flex; flex-direction: column; gap: 0.3rem; }
.clock-time { font-size: 3.5rem; font-weight: 700; letter-spacing: -1px; color: var(--text-main); margin: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-sec { font-size: 0.55em; color: var(--text-muted); font-weight: 400; margin-left: 2px; vertical-align: baseline; letter-spacing: 0; }
.clock-date { color: var(--text-muted); font-size: 1.05rem; font-weight: 500; }
.weather-section { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; text-align: right; }
.weather-temp { font-size: 3.5rem; font-weight: 700; color: var(--gold); margin: 0; line-height: 1; }
.weather-desc { font-size: 1.1rem; font-weight: 600; color: var(--text-main); }
.weather-location { font-size: 0.9rem; color: var(--text-muted); background: rgba(255, 255, 255, 0.04); padding: 0.2rem 0.6rem; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.05); display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.2rem; }

/* Dashboard Grid */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); grid-auto-flow: dense; gap: 1.5rem; align-items: start; }

/* ==========================================
   1. FLUID CARD RESIZING & FREIER MODUS
========================================== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    resize: both;
    min-width: 350px;
    min-height: 250px;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; 
}
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; flex-shrink: 0 !important; }
.drag-handle { 
    cursor: grab; color: var(--border-color); font-size: 1.5rem; line-height: 1; padding: 0 5px; 
    user-select: none; transition: color 0.2s;
    touch-action: none; /* WICHTIG für sauberes Pointer-Dragging! */
}
.drag-handle:hover { color: var(--gold); }
.drag-handle:active { cursor: grabbing; }
.card-header h2 { margin: 0; font-size: 1.2rem; color: var(--text-main); font-weight: 500; }

.card.is-dragging { opacity: 0.4 !important; border: 2px dashed var(--gold) !important; }
.card.drag-over-card { border-color: var(--gold) !important; box-shadow: 0 0 20px rgba(245, 158, 11, 0.25) !important; }
.card.is-dragging-free { opacity: 0.8 !important; border-color: var(--gold) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; }

/* Kacheln frei bewegen (Absoluter Modus) */
.dashboard-grid.free-layout { display: block !important; position: relative; min-height: 85vh; }
.dashboard-grid.free-layout .card { position: absolute !important; margin: 0 !important; z-index: 10; }

/* ==========================================
   2. NEUES KALENDER GRID (Wochen-Scroll & Nahtlos)
========================================== */
.calendar-card { grid-column: span 2; }
@media (max-width: 950px) { .calendar-card { grid-column: span 1; } }

.month-nav-controls { display: flex; align-items: center; gap: 6px; }
.month-nav-btn { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); color: var(--text-muted); width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; padding: 0; }
.month-nav-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-main); border-color: rgba(255, 255, 255, 0.15); }

.calendar-month-grid {
    flex: 1 1 auto !important; 
    min-height: 0 !important;
    display: flex !important; 
    flex-direction: column !important;
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    overflow: hidden; 
}
.cal-header-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border-color); }
.cal-header-cell { text-align: center; padding: 10px 0; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }

.cal-week-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    flex: 1;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.cal-week-row::-webkit-scrollbar { display: none !important; }
.cal-week-row:last-child { border-bottom: none; }

.cal-cell {
    border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; gap: 2px;
    min-width: 0; position: relative; padding-bottom: 22px; 
}
.cal-cell:last-child { border-right: none; }
.cal-cell.empty-cell { background: rgba(255,255,255,0.01); }
.cal-cell.drag-over { background: rgba(245, 158, 11, 0.15) !important; outline: 2px dashed var(--gold); outline-offset: -2px; }

.cal-day-num { font-size: 0.75rem; color: var(--text-muted); text-align: center; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; margin: 2px auto 4px auto; flex-shrink: 0; }
.cal-cell.today .cal-day-num { background: var(--gold); color: #000; font-weight: bold; }

.cal-event-badge { 
    flex-shrink: 0 !important; font-size: 0.65rem; color: white; 
    margin: 2px 0 !important; 
    padding: 0 4px !important;
    border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
    cursor: grab; text-shadow: 0px 1px 2px rgba(0,0,0,0.5); min-height: 18px !important; line-height: 18px; 
    position: relative; z-index: 2; transition: filter 0.2s;
}
.cal-event-badge.multi-start { margin-right: -1px !important; border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 6px !important; z-index: 5 !important; }
.cal-event-badge.multi-middle { margin-left: -1px !important; margin-right: -1px !important; border-radius: 0; padding-left: 6px !important; padding-right: 6px !important; z-index: 5 !important; }
.cal-event-badge.multi-end { margin-left: -1px !important; border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 6px !important; z-index: 5 !important; }
.cal-event-badge:hover { filter: brightness(1.2); z-index: 10 !important; }

/* ==========================================
   3. DAS +X BADGE (Sticky im Scrollbereich)
========================================== */
.more-indicator {
    position: sticky; bottom: 2px; left: 4px;
    font-size: 0.65rem; font-weight: bold; color: var(--text-main);
    background: rgba(11, 12, 16, 0.85); padding: 2px 6px; border-radius: 4px;
    cursor: pointer; z-index: 20; width: fit-content;
    border: 1px solid var(--border-color); box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: all 0.2s;
}
.more-indicator:hover { color: #000; background: var(--gold); border-color: var(--gold); }

/* TERMIN LISTE (Fluid Scroll) */
.event-scroll-container { flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important; scrollbar-width: none !important; padding-right: 0 !important; }
.event-scroll-container::-webkit-scrollbar { display: none !important; }
.event-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.event-item { display: flex; align-items: flex-start; padding: 0.8rem 1rem; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid transparent; transition: all 0.2s; position: relative; }
.event-item:hover { background: rgba(255,255,255,0.05); border-color: var(--border-color); }
.event-item.active-now-event { background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), rgba(255,255,255,0.02)); border-color: var(--gold); box-shadow: 0 0 15px rgba(245, 158, 11, 0.15); }
.active-badge { display: inline-block; width: 8px; height: 8px; background-color: var(--gold); border-radius: 50%; margin-right: 8px; animation: pulse-border 2s infinite; }
@keyframes pulse-border { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); } 70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
.event-item.past-event { opacity: 0.4; filter: grayscale(100%); }
.event-color-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; margin-right: 12px; flex-shrink: 0; }
.event-content { flex: 1; }
.event-title { font-weight: 500; font-size: 1.05rem; color: var(--text-main); margin-bottom: 0.2rem; display: flex; align-items: center; }
.event-time { color: var(--text-muted); font-size: 0.85rem; }
.btn-edit { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 4px 8px; border-radius: 4px; }
.btn-edit:hover { background: rgba(245, 158, 11, 0.1); color: var(--gold); } 

/* MOKI FIT RINGE */
.fit-card { background: linear-gradient(145deg, var(--card-bg), #111318); border: 1px solid rgba(245, 158, 11, 0.15); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.fit-quick-actions { display: flex; gap: 8px; }
.btn-fit-action { background: rgba(245, 158, 11, 0.03); border: 1px solid rgba(245, 158, 11, 0.2); color: var(--gold); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-fit-action:hover { background: var(--gold); color: #000; box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }

.fit-ring-container { flex: 1 1 auto !important; min-height: 0 !important; position: relative !important; width: 100% !important; margin: 0 !important; display: flex !important; justify-content: center !important; align-items: center !important; }
.fit-rings-svg { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; aspect-ratio: 1 / 1 !important; transform: rotate(-90deg); pointer-events: none; }
.ring-bg { fill: none; stroke: rgba(245, 158, 11, 0.05); }
.ring-progress { fill: none; stroke-linecap: round; transition: stroke-dashoffset 0.8s ease-in-out; }
.ring-burn { stroke: url(#grad-burn); filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5)); }
.ring-food { stroke: url(#grad-food); filter: drop-shadow(0 0 4px rgba(254, 243, 199, 0.3)); }

.fit-center-clickable { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: clamp(90px, 45%, 150px); height: clamp(90px, 45%, 150px); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; z-index: 10; transition: background 0.3s, box-shadow 0.3s; background: transparent; border: 1px solid transparent; }
.fit-center-clickable:hover { background: rgba(255, 255, 255, 0.02); border-color: rgba(245, 158, 11, 0.15); box-shadow: 0 0 15px rgba(245, 158, 11, 0.1) inset; }

.fit-stat-top { font-size: 0.8rem; line-height: 1; margin-bottom: 2px; }
.fit-stat-mid { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; }
.fit-stat-main { line-height: 1; }
.fit-val-net { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.fit-val-net.pos { color: #fde68a; } 
.fit-val-net.neg { color: #fff; }    
.fit-stat-bot { font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.fit-footer-stats { flex-shrink: 0 !important; display: flex; justify-content: space-around; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.03); font-size: 0.8rem; color: var(--text-muted); }
.fit-foot-item strong { color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; margin-left: 4px; }

.ai-loader-overlay { position: absolute; inset: 0; background: rgba(11, 12, 16, 0.85); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 50; border-radius: 12px; }
.spinner { width: 28px; height: 28px; border: 2px solid rgba(245, 158, 11, 0.2); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
#ai-scan-text { font-size: 0.8rem; font-weight: 500; color: var(--gold); letter-spacing: 0.5px; }

/* WOCHENBILANZ */
.fit-weekly-card { display: flex; flex-direction: column; }
.weekly-stats { flex-shrink: 0 !important; display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--text-muted); }
.weekly-stats .stat-item span { font-weight: 700; color: var(--text-main); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.weekly-chart-container { flex: 1 1 auto !important; min-height: 0 !important; display: flex; align-items: flex-end; margin-top: 1.5rem; }
.weekly-chart-svg { width: 100%; height: 100%; max-height: 150px; overflow: visible; }
.chart-grid-line { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 8px rgba(245, 158, 11, 0.35)); }
.chart-dot { fill: var(--card-bg); stroke: var(--gold); stroke-width: 2.5; }
.chart-text { fill: rgba(255, 255, 255, 0.5); font-size: 0.75rem; font-family: 'Segoe UI', sans-serif; }

/* MODALS */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { background: var(--card-bg); padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; border: 1px solid var(--gold); }
.modal-content h2 { margin-top: 0; font-weight: 500; font-size: 1.4rem; color: var(--text-main); margin-bottom: 24px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.input-group input { width: 100%; padding: 12px 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; color: var(--text-main); }
.input-group input:focus { outline: none; border-color: var(--gold); }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.btn { padding: 10px 24px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.btn-save { background: var(--gold); color: #000; } 
.btn-save:hover { background: #d97706; }
.btn-cancel { background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); }
.btn-cancel:hover { background: rgba(245, 158, 11, 0.1); color: var(--gold); border-color: var(--gold); }
.btn-delete { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Color Dropdown */
.color-dropdown-wrapper { position: relative; user-select: none; }
.color-dropdown-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; }
.color-dropdown-list { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: 260px; overflow-y: auto; background: #1e2028; border: 1px solid var(--border-color); border-radius: 8px; margin-top: 6px; z-index: 1050; box-shadow: 0 10px 25px rgba(0,0,0,0.8); }
.color-dropdown-list.open { display: block; }
.color-dropdown-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); cursor: pointer; }
.color-item-left { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text-main); }
.color-checkmark { color: var(--text-main); font-weight: bold; opacity: 0; }
.color-dropdown-item.active .color-checkmark { opacity: 1; }
.color-swatch-box { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }

.subtle-toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(50px);
    background: rgba(30, 41, 59, 0.9); color: var(--text-muted); padding: 8px 18px;
    border-radius: 20px; font-size: 0.85rem; font-weight: 500; opacity: 0; pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease; z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.subtle-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ==========================================
   EINSTELLUNGEN SEITE (SPA VIEW)
========================================== */
.settings-view {
    animation: fadeIn 0.3s ease-in-out;
    padding-bottom: 40px;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.settings-header-banner {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid var(--gold);
}
.settings-header-banner h2 { margin: 0 0 8px 0; color: var(--text-main); font-weight: 500; font-size: 1.6rem; }
.settings-header-banner p { margin: 0; color: var(--text-muted); }

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    align-items: start;
}

.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.settings-card h3 { margin-top: 0; margin-bottom: 20px; font-weight: 500; color: var(--text-main); border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }

/* Theme Color Picker */
.theme-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.color-swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: #fff; box-shadow: 0 0 0 3px var(--gold); transform: scale(1.1); }

/* Dropdown (Select) Styling */
.moki-select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main);
    cursor: pointer;
    appearance: none;
}
.moki-select:focus { outline: none; border-color: var(--gold); }
.moki-select option { background: var(--card-bg); color: var(--text-main); }

/* ==========================================
   MOKI AI OS CHAT KACHEL
========================================== */
.chat-card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.chat-messages-container {
    flex: 1 1 auto !important;
    min-height: 250px !important;
    max-height: 450px;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px !important;
    margin-bottom: 12px;
}

.chat-msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 88%;
    word-wrap: break-word;
    animation: fadeIn 0.2s ease-in-out;
}

.user-msg {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.moki-msg {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.moki-msg strong {
    color: var(--gold);
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-input-bar {
    display: flex;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-input-bar input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.chat-input-bar input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.5);
}

.chat-input-bar button {
    padding: 0 18px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   CUSTOM MOKI TOKEN SLIDER
========================================== */
.moki-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 10px;
}

.moki-slider {
    -webkit-appearance: none;
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

/* Der "Anfasser" (Thumb) für Chrome/Safari/Edge */
.moki-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #8b5cf6; /* Token-Lila */
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.moki-slider::-webkit-slider-thumb:hover {
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(139, 92, 246, 1);
    background: #a78bfa; /* Etwas helleres Lila beim Hovern */
}

/* Der "Anfasser" (Thumb) für Firefox */
.moki-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #8b5cf6;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.moki-slider::-moz-range-thumb:hover {
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(139, 92, 246, 1);
    background: #a78bfa;
}