/* index.css — Pulse Login mit Weiß/Grau Theme */

/* ===== Theme Tokens (Weiß/Grau Luxury) ===== */
:root{
  --bg:#0a0a0f;
  --muted:rgba(233,230,255,0.7);
  --border:rgba(255,255,255,0.22);
  --glass:rgba(18,18,26,.68);
  --glass-2:rgba(18,18,26,.52);
  --accent:#e0e0e0;
  --accentSoft:#f5f5f5;
  --green:#22c55e;
  --yellow:#eab308;
  --red:#ef4444;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:#e6e0ff;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  display:flex; align-items:center; justify-content:center; padding:24px;
  position:relative;
}

/* Subtiler weiß/grau Hintergrund-Glow */
body::before{
  content:''; position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,.16), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.12), transparent 50%);
  pointer-events:none; mix-blend-mode:screen; opacity:.7;
}

/* === Card === */
.card{
  width:min(720px,92vw); border-radius:16px; padding:22px;
  background:linear-gradient(180deg,var(--glass),var(--glass-2));
  border:1px solid var(--border);
  box-shadow:0 24px 64px rgba(0,0,0,.65), 0 0 32px rgba(255,255,255,.14);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  position:relative; z-index:1;
  overflow:visible;
}
.card::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.08),transparent);
  pointer-events:none; border-radius:inherit;
}

/* Top links */
.link-top{
  position:absolute; top:14px; right:14px; font-size:12px; color:var(--muted);
  text-decoration:none; transition:color .2s;
}
.link-top:hover{ color:var(--accentSoft); }

/* ===== HEADER BUTTONS – NEBENEINANDER, SORTIERT ===== */
.header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  flex-wrap: wrap;
}

.header-controls .btn {
  min-width: 100px;
  justify-content: center;
}

/* ===== HEADER BUTTONS – EXAKT WIE IM SCREENSHOT ===== */
#headerContainer {
  padding: 16px 20px 8px 20px !important;
  gap: 0 !important;
}

/* Alle Buttons im Header */
#headerContainer .btn,
#headerContainer button {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.25s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Back Button – kompakt */
#btnBack {
  width: 44px !important;
  padding: 0 !important;
  font-size: 1rem !important;
  color: var(--muted) !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}

#btnBack:hover {
  background: rgba(255,255,255,0.12) !important;
  transform: translateY(-1px);
}

/* ===== STATUS BUTTON – KEIN RAHMEN, KEIN OUTLINE, KEIN GLOW ===== */
.status-btn {
  background: #343841 !important;
  color: white !important;
  border: 0 !important; /* KEIN RAHMEN */
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
  min-width: 100px !important;
  padding: 0 12px !important;
  gap: 6px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  outline: none !important;
  box-shadow: none !important;
}

.status-btn i {
  font-size: 1.1rem !important;
}

/* Status-Farben nur im Hintergrund (kein border) */
.status-btn.status-green { background: #1a3a2a !important; } /* dunkler Grünton */
.status-btn.status-yellow { background: #3d2f00 !important; }
.status-btn.status-red { background: #3a1a1a !important; }
.status-btn.status-blue { background: #1a2a3a !important; }

/* Icon-Farbe bleibt erhalten */
.status-btn.status-green i { color: var(--green) !important; }
.status-btn.status-yellow i { color: var(--yellow) !important; }
.status-btn.status-red i { color: var(--red) !important; }
.status-btn.status-blue i { color: #60a5fa !important; }

/* Keine Pseudo-Elemente */
.status-btn::before,
.status-btn::after {
  display: none !important;
}

/* Fokus: komplett sauber */
.status-btn:focus,
.status-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* ===== GHOST BUTTONS (Ticket, Admin, etc.) ===== */
.btn-ghost {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: #e5e7eb !important;
  font-size: 0.875rem !important;
  gap: 6px !important;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.4) !important;
  transform: translateY(-1px) !important;
}

.btn-ghost i {
  font-size: 1rem !important;
}

/* SUPPORT & MY TICKETS – NEBEN STATUS */
#openTicketModal, #openMyTickets {
  display: inline-flex;
}

#openMyTickets {
  display: none !important;
}

.support-active #openMyTickets {
  display: inline-flex !important;
}

/* ===== GLASSMORPHISM INPUTS ===== */
input, textarea, select {
  background: var(--glass-2);
  border: 1px solid var(--border);
  color: white;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

input::placeholder, textarea::placeholder {
  color: #9ca3af;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 224, 224, 0.2);
  border-color: var(--accent);
  background: var(--glass);
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.55);
  background: linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,.10));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(255,255,255,.3),transparent);
  opacity: 0; transition: opacity .3s; border-radius: inherit;
}

.btn:hover::before { opacity: 1; }
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accentSoft);
  box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.18);
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-ghost {
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.06));
  color: var(--accentSoft);
}

.btn-green {
  background: var(--green);
  color: white;
  border: none;
}

.btn-green:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

/* ===== HEADLINE – SHIMMER ===== */
.headline{
  margin:6px 0 2px 0; text-align:center; font-weight:900; letter-spacing:.02em; font-size:30px;
  background:linear-gradient(90deg,var(--accent),var(--accentSoft),#ffffff,var(--accentSoft),var(--accent));
  background-size:200% 100%;
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  text-shadow:0 0 10px rgba(255,255,255,.18);
  animation: shimmer 7s linear infinite, pulseText 3.6s ease-in-out infinite;
}
.sub{ text-align:center; color:var(--muted); margin-bottom:18px; }

/* ===== SEGMENTED CONTROL ===== */
.seg{display:flex; gap:10px}
.seg .opt{
  flex:1 1 0; padding:10px 14px; border-radius:10px; border:1px solid var(--border);
  background:rgba(15,17,19,.6); font-weight:800; cursor:pointer; text-align:center;
  transition:border .15s, box-shadow .15s, background .15s, color .15s, transform .12s;
}
.seg .opt:hover{ transform:translateY(-1px) }
.seg .opt.active{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(255,255,255,.22) inset, 0 8px 24px rgba(255,255,255,.18);
  color:#fff;
  background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.12));
}

/* ===== NOTE & INPUT ===== */
.note{
  border:1px solid var(--border);
  background:rgba(13,15,18,.6);
  border-radius:12px;
  padding:14px;
  color:var(--muted);
}
.inp{
  width:100%; padding:14px 16px; border-radius:12px; color:#e6e0ff;
  background:rgba(15,17,19,.7); border:1px solid var(--border);
  outline:none; transition:border .15s, box-shadow .15s;
}
.inp:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(255,255,255,.22);
}

/* ===== ERROR ===== */
.error{
  display:none; margin-top:12px; border:1px solid #ef4444;
  background:rgba(239,68,68,.18); color:#fca5a5;
  padding:10px 12px; border-radius:10px; font-size:14px;
}
.error.show{ display:block; }

/* ===== MODAL ===== */
.modal{
  position:fixed; inset:0; background:rgba(0,0,0,.72);
  display:none; place-items:center; z-index:50;
}
.modal.show{ display:grid; }
.modal-card{
  width:min(920px,96vw);
  background:linear-gradient(180deg,var(--glass),var(--glass-2));
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 24px 64px rgba(0,0,0,.7);
  padding:22px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.track{
  height:6px; border-radius:999px;
  background:rgba(255,255,255,.15);
  overflow:hidden;
}
.fill{
  height:100%; width:0;
  background:linear-gradient(90deg,var(--accent),var(--accentSoft));
  box-shadow:0 0 8px rgba(255,255,255,.4);
}

/* ===== GENERATING BAR ===== */
.gen{ display:none; flex-direction:column; gap:12px; }
.gen.show{ display:flex; }
.bar{
  width:100%; height:14px; border-radius:8px;
  background:rgba(27,29,33,.75); overflow:hidden;
  border:1px solid var(--border);
}
.bar-fill{
  height:100%; width:0%; background:var(--accent);
  color:#000; font-size:12px; text-align:center; line-height:14px;
  box-shadow:0 0 10px rgba(255,255,255,.5);
}

/* ===== STATUS CIRCLES ===== */
.status-circle{
  width:10px; height:10px; border-radius:999px;
  display:inline-block; margin-right:8px;
}
.status-green{ background:var(--green); }
.status-yellow{ background:var(--yellow); }
.status-red{ background:var(--red); }
.status-blue{ background:#60a5fa; }

/* ===== CHECKLIST – LUXURY EMOJI EDITION ===== */
.checklist{
  margin:0; padding-left:0; list-style:none;
  display:grid; gap:11px;
}
.checklist li{ 
  display:flex; gap:14px; line-height:1.5; padding:4px 0;
  transition: all 0.22s ease; border-radius:10px; padding-left:6px;
}
.checklist li:hover {
  background: rgba(255,255,255,0.04);
  transform: translateX(3px);
  padding-left: 8px;
}
.checklist li .tick{
  flex:0 0 auto; width:24px; height:24px; border-radius:10px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
  border: 1.8px solid var(--accent);
  font-size: 15px; color: #fff; font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 12px rgba(255,255,255,.18) inset;
  transition: all 0.25s ease;
}
.checklist li:hover .tick {
  background: linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,.16));
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 16px rgba(255,255,255,.4), 0 4px 12px rgba(0,0,0,.3);
  border-color: var(--accentSoft);
}

/* K-Tag Styling */
.k {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255,255,255,.09);
  font-size: 0.78em;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== HOLD BUTTON FEEDBACK ===== */
#next.holding{
  box-shadow:0 0 0 6px rgba(255,255,255,.25), 0 8px 24px rgba(255,255,255,.18);
}

/* ===== MODAL BACKDROP BLUR ===== */
#ticketModal, #yourTicketsModal, #myTicketsModal, #safety {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== MODAL CARD STYLES ===== */
.card-modal {
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  box-shadow: 0 24px 64px rgba(0,0,0,.65), 0 0 32px rgba(255,255,255,.14);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.card-modal::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent);
  pointer-events: none; border-radius: inherit;
}

/* SUCCESS CARD ANIMATION */
.card-success {
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== SEGEMENTED TABS – MODERN ===== */
.seg-tabs .opt {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.25s ease;
}

.seg-tabs .opt:first-child {
  border-top-left-radius: 1rem !important;
}
.seg-tabs .opt:last-child {
  border-top-right-radius: 1rem !important;
}

.seg-tabs .opt:hover {
  background: rgba(255,255,255,0.06) !important;
  color: white;
}

.seg-tabs .opt.active {
  color: white;
  background: rgba(255,255,255,0.08) !important;
  border-bottom: 3px solid var(--accent) !important;
  box-shadow: 0 -2px 8px rgba(255,255,255,0.12) inset;
}

/* Accent Button */
.btn-accent {
  background: var(--accent);
  color: #000;
  border: none;
  font-weight: 600;
}
.btn-accent:hover {
  background: var(--accentSoft);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 4px rgba(255,255,255,.2);
}

/* Responsive Tabs */
@media (max-width: 640px) {
  .seg-tabs {
    flex-direction: column;
  }
  .seg-tabs .opt {
    border-radius: 1rem !important;
    margin: 4px 8px;
    text-align: center;
  }
  .seg-tabs .opt:first-child,
  .seg-tabs .opt:last-child {
    border-radius: 1rem !important;
  }
  .seg-tabs .opt.active {
    border-bottom: 3px solid var(--accent) !important;
  }
}

/* ===== SCROLLBAR FÜR MY TICKETS ===== */
#myTicketsTab {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

#myTicketsList {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(255,255,255,0.1);
}

#myTicketsList::-webkit-scrollbar {
  width: 8px;
}
#myTicketsList::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
#myTicketsList::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
#myTicketsList::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.7);
}

/* ===== ANIMATIONS ===== */
@keyframes shimmer{
  0%{ background-position:0% 50%; }
  100%{ background-position:200% 50%; }
}
@keyframes pulseText{
  0%,100%{ text-shadow:0 0 8px rgba(255,255,255,.12), 0 0 18px rgba(255,255,255,.08); }
  50%{ text-shadow:0 0 12px rgba(255,255,255,.22), 0 0 26px rgba(255,255,255,.14); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .headline{ animation:none !important; }
}