:root{
  --bgA: #0b1020;
  --bgB: #0f1b35;
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.12);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);

  --primary: #7c3aed;
  --primary2: #4f46e5;

  --danger: #ff5a6b;
  --ok: #34d399;

  --radius: 20px;
  --radius2: 14px;

  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --shadow2: 0 12px 30px rgba(0,0,0,.25);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% 0%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(900px 700px at 90% 15%, rgba(79,70,229,.35), transparent 55%),
    linear-gradient(180deg, var(--bgA), var(--bgB));
}

/* Layout */
.container{
  width: min(980px, 92vw);
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10,15,30,.55);
  border-bottom: 1px solid var(--border);
}

.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand__logo{
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(79,70,229,.25));
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.logo-img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* falls transparentes Logo */
  padding: 6px;       /* etwas Luft */
}

.brand__title{
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.1;
}

.brand__sub{
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.chip{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

main{
  padding: 26px 0 56px;
}

/* Card */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 26px 75px rgba(0,0,0,.38);
}

.card__header{
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}

.card__header h1{
  margin: 0;
  font-size: 26px;
  letter-spacing: .2px;
}

.card__header p{
  margin: 6px 0 0;
  color: var(--muted);
}

/* Alerts */
.alert{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 14px 20px 0;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.alert--error{
  border-color: rgba(255,90,107,.35);
  background: rgba(255,90,107,.08);
}

.alert__icon{ margin-top: 1px; }
.alert__text{ color: rgba(255,255,255,.92); }

/* Form grid */
form{
  padding: 18px 20px 20px;
}

.grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid--inner{
  grid-template-columns: 1fr 1fr;
}

.field{ min-width: 0; }
.field--full{ grid-column: 1 / -1; }

/* Labels and inputs */
.label{
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
  margin-bottom: 7px;
  color: rgba(255,255,255,.86);
}

.label.req::after{
  content: " *";
  color: var(--danger);
  font-weight: 900;
}

.input, .textarea, select.input{
  width: 100%;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,16,32,.55);
  color: var(--text);
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease, background .12s ease;
}

.input::placeholder, .textarea::placeholder{
  color: rgba(255,255,255,.45);
}

.input:focus, .textarea:focus, select.input:focus{
  border-color: rgba(124,58,237,.65);
  box-shadow: 0 0 0 4px rgba(124,58,237,.22);
}

.textarea{
  min-height: 120px;
  resize: vertical;
}

.hint{
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

.status{
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted);
}
.status.bad{
  color: var(--danger);
  font-weight: 900;
}

/* Section blocks */
.section{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 14px;
}

.section__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(79,70,229,.12));
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
  font-size: 12.5px;
  font-weight: 900;
}

.meta{
  color: var(--muted);
  font-size: 12.5px;
}

.counter{
  float: right;
  margin-top: -22px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

/* Actions */
.actions{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.fineprint{
  color: var(--muted);
  font-size: 12.5px;
}

.btn{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: rgba(255,255,255,.22);
}

.btn:active{
  transform: translateY(1px);
}

.btn--primary{
  border-color: rgba(124,58,237,.65);
  background: linear-gradient(135deg, rgba(124,58,237,.92), rgba(79,70,229,.86));
  box-shadow: 0 12px 30px rgba(124,58,237,.22);
}

/* Honeypot */
.hp{
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Modal with animation */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.55);
  z-index: 9999;

  opacity: 0;
  transition: opacity .18s ease;
}

.modal.is-open{
  opacity: 1;
}

.modal__card{
  width: min(560px, 100%);
  background: rgba(10,12,25,.85);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(12px);

  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.modal.is-open .modal__card{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__icon{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.28);
  margin-bottom: 10px;
}

.modal__card h2{
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: .2px;
}

.modal__card p{
  margin: 0 0 10px;
  color: var(--muted);
}

.spam-tip{
  color: rgba(255,255,255,.72);
  font-size: 13px;
  margin-top: -2px;
}

.kv{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  padding: 10px 12px;
}

.kv > div{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,.10);
}

.kv > div:last-child{
  border-bottom: 0;
}

.k{
  color: rgba(255,255,255,.65);
}
.v{
  font-weight: 900;
  color: rgba(255,255,255,.92);
  text-align: right;
}

.modal__row{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 820px){
  .grid{ grid-template-columns: 1fr; }
  .grid--inner{ grid-template-columns: 1fr; }
  .counter{ float: none; margin: 6px 0 0; }
  .actions{ flex-direction: column; align-items: stretch; }
  .chip{ display: none; }
}