:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --danger: #ef4444;
    --accent: #fbbf24;
    --nav-bg: rgba(30, 41, 59, 0.95);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { background-color: var(--bg-color); }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top); /* Notch-Schutz */
}

.app-shell { min-height: 100vh; padding-bottom: 100px; }

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 15px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

input, select, button {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    font-family: inherit;
    border-radius: 12px;
}

input, select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px;
    font-size: 16px;
    margin-bottom: 12px;
}

button {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 15px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}

.lotto-numbers { display: flex; justify-content: center; gap: 8px; margin: 15px 0; flex-wrap: wrap; }
.number-circle {
    width: 38px; height: 38px; background: #fff; color: #000;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
}

.tab-bar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 600px;
    background: var(--nav-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: flex; justify-content: space-around;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.tab-item { text-decoration: none; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.tab-item.active { color: var(--accent); }
.tab-icon { font-size: 20px; }

.badge { padding: 4px 10px; border-radius: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; display: inline-block; }

/* Profil-Dropdown */
.profile-container { position: relative; }
.user-avatar { 
    width: 42px; height: 42px; background: var(--accent); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    color: #000; font-weight: 900; cursor: pointer; border: none;
}
.profile-dropdown {
    position: absolute; right: 0; top: 55px; background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 15px;
    width: 150px; display: none; z-index: 2000; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 10px;
}
.profile-dropdown.show { display: block; }
.dropdown-item { padding: 12px; color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }