:root {
  --gold: #F5A623; --gold-light: #FFD166;
  --red: #E8425A; --green: #2ECC71;
  --dark: #0A0A0F; --dark2: #13131A; --dark3: #1C1C26;
  --border: rgba(255,255,255,0.08); --text: #F0EDE8; --muted: #6B6878;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; background: var(--dark); }
.app { max-width: 430px; margin: 0 auto; height: 100dvh; overflow: hidden; position: relative; font-family: 'DM Sans', sans-serif; color: var(--text); }
.page { height: 100dvh; overflow-y: auto; overflow-x: hidden; }
.page::-webkit-scrollbar { width: 0; }
.display { font-family: 'Playfair Display', serif; }
.screen { display: none; height: 100vh; }
.screen.active { display: block; }
.flex-screen { display: none; height: 100vh; flex-direction: column; }
.flex-screen.active { display: flex; }

/* GLASS */
.glass { background: rgba(255,255,255,0.06); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); }

/* BUTTONS */
.btn-gold { background: linear-gradient(135deg,#F5A623,#FFD166); color: #0A0A0F; font-weight: 700; border: none; border-radius: 16px; padding: 16px 24px; font-size: 15px; font-family: 'DM Sans',sans-serif; cursor: pointer; width: 100%; transition: all 0.2s; box-shadow: 0 8px 24px rgba(245,166,35,0.3); }
.btn-gold:active { transform: scale(0.98); }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid rgba(245,166,35,0.4); border-radius: 16px; padding: 15px 24px; font-size: 15px; font-family: 'DM Sans',sans-serif; font-weight: 600; cursor: pointer; width: 100%; transition: all 0.2s; }
.btn-ghost { background: transparent; color: var(--gold); border: none; font-size: 14px; font-family: 'DM Sans',sans-serif; font-weight: 500; cursor: pointer; padding: 10px 0; }

/* INPUTS */
.input-label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 7px; }
.input { background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 14px 16px; color: var(--text); width: 100%; font-family: 'DM Sans',sans-serif; font-size: 15px; transition: border-color 0.2s; }
.input:focus { outline: none; border-color: rgba(245,166,35,0.5); }
.input::placeholder { color: var(--muted); }

/* CARD */
.card { background: var(--dark3); border: 1px solid var(--border); border-radius: 20px; }

/* BOTTOM NAV */
.bottom-tabs { 
  position: absolute; bottom: 0; left: 0; right: 0; 
  background: rgba(10,10,15,0.97); 
  backdrop-filter: blur(20px); 
  border-top: 1px solid rgba(255,255,255,0.08); 
  padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px)); 
  display: flex; 
  z-index: 100;
  /* Verhindert dass Browser-Chrome die Leiste versteckt */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; padding: 6px 0; border: none; background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; font-family: 'DM Sans',sans-serif; letter-spacing: 0.5px; transition: color 0.2s; }
.tab-item.active { color: var(--gold); }
.tab-item .ico { font-size: 20px; }

/* TOAST */
#toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-90px); width: calc(100% - 32px); max-width: 398px; z-index: 9999; border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; cursor: pointer; box-shadow: 0 12px 40px rgba(0,0,0,0.6); transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
#toast.show { transform: translateX(-50%) translateY(0); }

/* WAIT PILL */
.wait-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* TOGGLE */
.toggle { width: 52px; height: 30px; border-radius: 15px; cursor: pointer; position: relative; transition: background 0.3s; flex-shrink: 0; }
.toggle-thumb { width: 24px; height: 24px; border-radius: 50%; background: white; position: absolute; top: 3px; transition: left 0.3s; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }

/* CHIP */
.chip { padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1.5px solid transparent; transition: all 0.15s; font-family: 'DM Sans',sans-serif; }

/* MODAL */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 500; display: none; align-items: flex-end; justify-content: center; }
.modal-bg.show { display: flex; }
.modal { background: var(--dark2); border: 1px solid var(--border); border-radius: 24px 24px 0 0; padding: 24px; width: 100%; max-width: 430px; max-height: 85vh; overflow-y: auto; animation: slideUp 0.3s ease; }
@keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }

/* ANIMATIONS */
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes glow { 0%,100%{box-shadow:0 0 20px rgba(245,166,35,0.15)} 50%{box-shadow:0 0 40px rgba(245,166,35,0.4)} }
@keyframes spin { to{transform:rotate(360deg)} }
@keyframes countdown { from{stroke-dashoffset:0} to{stroke-dashoffset:283} }

.fadeUp { animation: fadeUp 0.35s ease forwards; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(0,0,0,0.2); border-top: 2px solid currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
