* { box-sizing: border-box; }

/* Browser Reset */
button {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body { margin:0; padding:0; background:#080808; color:#fff; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; min-height:100vh; }

body::before {
  content:""; position:fixed; inset:0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(0,122,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(52,199,89,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(255,59,48,0.08) 0%, transparent 50%);
  z-index:0; pointer-events:none;
}

.page { display:flex; position:relative; z-index:1; min-height:100vh; align-items:flex-start; justify-content:center; padding:20px 0 60px; }

.card {
  background:rgba(255,255,255,0.045);
  border:1px solid rgba(255,255,255,0.09);
  backdrop-filter:blur(30px); -webkit-backdrop-filter:blur(30px);
  border-radius:32px; padding:30px 26px;
  max-width:380px; width:calc(100vw - 32px);
  text-align:center;
  box-shadow:0 12px 48px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.06) inset;
  margin-top:20px;
}

.icon { font-size:54px; margin-bottom:14px; display:block; filter:drop-shadow(0 0 24px rgba(0,170,255,0.55)); }

h1 {
  font-size:23px; font-weight:800; margin:0 0 6px;
  background:linear-gradient(135deg,#ffffff,rgba(255,255,255,0.65));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  letter-spacing:-0.3px;
}
.subtitle { font-size:13px; opacity:0.45; margin:0 0 24px; line-height:1.6; }

/* Nav */
.nav { display:flex; gap:5px; margin-bottom:24px; flex-wrap:wrap; }
.nav-btn {
  flex:1; min-width:58px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:13px; padding:9px 4px;
  background:rgba(255,255,255,0.03);
  color:rgba(255,255,255,0.4);
  font-size:11px; font-weight:600;
  cursor:pointer; transition:all 0.2s;
  text-decoration:none; display:flex; align-items:center; justify-content:center;
}
.nav-btn:hover { background:rgba(255,255,255,0.07); color:rgba(255,255,255,0.7); border-color:rgba(255,255,255,0.14); }
.nav-btn.active-nav { background:rgba(0,122,255,0.18); border-color:rgba(0,122,255,0.45); color:#4da6ff; }

/* Inputs */
.input-group { margin-bottom:12px; text-align:left; }
.input-group label { font-size:11px; opacity:0.5; display:block; margin-bottom:6px; font-weight:700; letter-spacing:0.6px; text-transform:uppercase; }
.input-group input, .input-group select {
  width:100%; border:1px solid rgba(255,255,255,0.1);
  border-radius:13px; padding:13px 16px;
  background:rgba(255,255,255,0.05); color:#fff;
  font-size:15px; outline:none; transition:all 0.2s;
  appearance:none;
}
.input-group input:focus, .input-group select:focus {
  border-color:rgba(0,122,255,0.7);
  background:rgba(0,122,255,0.09);
  box-shadow:0 0 0 3px rgba(0,122,255,0.12);
}
.input-group input::placeholder { opacity:0.25; color:#fff; }
.input-group select option { background:#141420; color:#fff; }

/* Select außerhalb input-group */
select {
  border:1px solid rgba(255,255,255,0.1);
  border-radius:13px; padding:10px 16px;
  background:rgba(255,255,255,0.05);
  color:#fff; font-size:14px; outline:none;
  transition:all 0.2s; appearance:none;
  width:100%; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:36px;
}
select:focus {
  border-color:rgba(0,122,255,0.6);
  background-color:rgba(0,122,255,0.09);
  box-shadow:0 0 0 3px rgba(0,122,255,0.12);
}
select option { background:#141420; color:#fff; }

/* Slider */
.slider-group { margin-bottom:18px; text-align:left; }
.slider-group label { font-size:11px; opacity:0.5; display:flex; justify-content:space-between; margin-bottom:10px; font-weight:700; letter-spacing:0.6px; text-transform:uppercase; }
input[type=range] { width:100%; height:5px; border-radius:3px; background:rgba(255,255,255,0.1); outline:none; -webkit-appearance:none; cursor:pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:22px; height:22px; border-radius:50%; background:linear-gradient(135deg,#007AFF,#0055FF); box-shadow:0 2px 10px rgba(0,122,255,0.5); transition:transform 0.15s; }
input[type=range]::-webkit-slider-thumb:hover { transform:scale(1.15); }

/* Buttons */
.btn-primary {
  width:100%; border:0; border-radius:15px; padding:16px;
  font-size:16px; font-weight:700; cursor:pointer; color:white; margin-bottom:10px;
  background:linear-gradient(135deg,#007AFF,#0044ee);
  box-shadow:0 4px 24px rgba(0,122,255,0.4);
  transition:all 0.2s; letter-spacing:0.2px;
}
.btn-primary:hover { box-shadow:0 6px 28px rgba(0,122,255,0.55); transform:translateY(-1px); }
.btn-primary:active { transform:scale(0.97) translateY(0); box-shadow:0 2px 12px rgba(0,122,255,0.3); }
.btn-primary.green { background:linear-gradient(135deg,#34C759,#22a843); box-shadow:0 4px 24px rgba(52,199,89,0.4); }
.btn-primary.green:hover { box-shadow:0 6px 28px rgba(52,199,89,0.55); }
.btn-primary.red { background:linear-gradient(135deg,#FF3B30,#cc1f15); box-shadow:0 4px 24px rgba(255,59,48,0.4); }

.btn-secondary {
  width:100%; border:1px solid rgba(255,255,255,0.1);
  border-radius:15px; padding:13px; font-size:14px; font-weight:600;
  cursor:pointer; background:rgba(255,255,255,0.05);
  color:rgba(255,255,255,0.65); transition:all 0.2s; margin-bottom:10px;
}
.btn-secondary:hover { background:rgba(255,255,255,0.09); border-color:rgba(255,255,255,0.18); color:rgba(255,255,255,0.9); transform:translateY(-1px); }
.btn-secondary:active { transform:scale(0.97); }

.btn-add {
  width:100%; border:1px dashed rgba(0,122,255,0.35);
  border-radius:15px; padding:13px; font-size:14px; font-weight:600;
  cursor:pointer; background:rgba(0,122,255,0.05);
  color:rgba(0,122,255,0.75); transition:all 0.2s; margin-bottom:14px;
}
.btn-add:hover { background:rgba(0,122,255,0.11); border-color:rgba(0,122,255,0.6); color:#007AFF; transform:translateY(-1px); }

.btn-sm {
  border:1px solid rgba(255,255,255,0.1);
  border-radius:9px;
  padding:7px 13px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  background:rgba(255,255,255,0.06);
  color:rgba(255,255,255,0.65);
  transition:all 0.2s;
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.btn-sm:hover { background:rgba(255,255,255,0.11); color:#fff; border-color:rgba(255,255,255,0.18); }
.btn-sm.danger { border-color:rgba(255,59,48,0.35); color:rgba(255,59,48,0.8); }
.btn-sm.danger:hover { background:rgba(255,59,48,0.1); color:#FF3B30; }

.btn-group { display:flex; gap:8px; margin-bottom:16px; align-items:center; }

/* Badge */
.badge {
  display:inline-flex; align-items:center; gap:7px;
  padding:7px 16px; border-radius:20px;
  font-size:13px; font-weight:600; margin-bottom:24px;
  transition:all 0.4s;
  background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.1);
  color:rgba(255,255,255,0.55);
}
.badge.active { background:rgba(52,199,89,0.18); border-color:rgba(52,199,89,0.4); color:#4ddb6e; box-shadow:0 0 20px rgba(52,199,89,0.15); }
.badge.warning { background:rgba(255,149,0,0.18); border-color:rgba(255,149,0,0.4); color:#ffaa33; }
.badge.error { background:rgba(255,59,48,0.18); border-color:rgba(255,59,48,0.4); color:#ff5f54; }
.badge-dot { width:7px; height:7px; border-radius:50%; background:currentColor; flex-shrink:0; }
.badge.active .badge-dot { animation:pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

/* ── Sources ──────────────────────────────────────────────────────── */
.source-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 13px;
  margin-bottom: 10px;
}
.source-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.source-num {
  flex: 1;
  min-width: 0;
  max-width: unset;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: text;
  outline: none;
  background: rgba(0,122,255,0.25);
  color: #fff;
  transition: background 0.2s;
  /* Badge-Styles aus style.css überschreiben */
  display: block;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
}
.source-num:focus {
  background: rgba(0,122,255,0.45);
  overflow: visible;
  white-space: normal;
}
.source-num:empty:before {
  content: "Name";
  color: rgba(255,255,255,0.3);
  font-weight: 400;
}
.source-delete {
  flex-shrink: 0;
  color: rgba(255,59,48,0.7);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.source-delete:hover {
  color: #FF3B30;
  background: rgba(255,59,48,0.1);
}
.source-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 2px 0;
}
.url-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  padding: 2px 0;
  border-radius: 0;
}
.url-input::placeholder { color: rgba(255,255,255,0.2); }

/* Status Dots */
.status-dot { width:8px; height:8px; border-radius:50%; display:inline-block; margin-left:6px; flex-shrink:0; }
.status-dot.ok { background:#34C759; box-shadow:0 0 8px rgba(52,199,89,0.7); }
.status-dot.err { background:#FF3B30; box-shadow:0 0 8px rgba(255,59,48,0.7); }
.status-dot.checking { background:#FF9500; animation:pulse 1s infinite; }

/* Profile Cards */
.profile-card {
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07);
  border-radius:15px; padding:15px 16px; margin-bottom:10px;
  display:flex; align-items:center; justify-content:space-between;
  cursor:pointer; transition:all 0.2s;
}
.profile-card:hover { background:rgba(255,255,255,0.07); border-color:rgba(255,255,255,0.13); transform:translateY(-1px); }
.profile-card.active-profile { background:rgba(0,122,255,0.12); border-color:rgba(0,122,255,0.4); box-shadow:0 4px 16px rgba(0,122,255,0.15); }
.profile-name { font-size:15px; font-weight:600; }
.profile-count { font-size:12px; opacity:0.45; margin-top:3px; }

/* Alert Log */
.log-item {
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07);
  border-radius:13px; padding:13px 15px; margin-bottom:8px; text-align:left;
  transition:transform 0.15s;
}
.log-item:hover { transform:translateX(2px); }
.log-item.donation { border-color:rgba(52,199,89,0.3); background:rgba(52,199,89,0.06); }
.log-item.sub { border-color:rgba(0,122,255,0.3); background:rgba(0,122,255,0.06); }
.log-item.follow { border-color:rgba(255,149,0,0.3); background:rgba(255,149,0,0.06); }
.log-item.test { border-color:rgba(255,149,0,0.3); background:rgba(255,149,0,0.06); }
.log-type { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; }
.log-message { font-size:14px; font-weight:600; margin:5px 0 3px; line-height:1.4; }
.log-time { font-size:11px; opacity:0.35; }
.log-amount { font-size:13px; color:#4ddb6e; font-weight:700; }

/* Misc */
.divider { border:none; border-top:1px solid rgba(255,255,255,0.06); margin:18px 0; }
.error { color:#ff5f54; font-size:13px; margin-bottom:12px; display:none; text-align:left; padding:10px 14px; background:rgba(255,59,48,0.08); border:1px solid rgba(255,59,48,0.2); border-radius:10px; }
.hint { font-size:11px; opacity:0.28; line-height:1.6; }
.section-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; opacity:0.4; text-align:left; margin:18px 0 10px; }
.empty-state { opacity:0.35; font-size:13px; margin:24px 0; }
iframe { width:1px; height:1px; opacity:0; pointer-events:none; position:fixed; top:0; left:0; border:0; z-index:-1; }
