* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #0d0d0d;
  background-image: radial-gradient(ellipse at center, #1a1a1a 0%, #0d0d0d 60%);
  color: #e8e8e8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 16px 60px;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  width: 100%;
  max-width: 460px;
  margin: auto 0;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-logo svg {
  width: 28px;
  height: 28px;
  color: #0d0d0d;
}
.brand-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1;
}
.brand-sub {
  color: #888;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  max-width: 380px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.streams-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 380px;
  margin: 0 auto 16px;
  padding: 7px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  color: #eee;
  transition: all .2s;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}
.streams-ad:hover {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 12px rgba(255,255,255,.08);
}

.streams-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.streams-text {
  font-size: 11.5px;
  line-height: 1.25;
  text-align: left;
  font-weight: 500;
}
.streams-click {
  font-size: 10px;
  font-weight: 700;
  color: #000;
  background: #fff;
  padding: 3px 7px;
  border-radius: 5px;
  margin-left: 2px;
  white-space: nowrap;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.types {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
.type-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all .15s;
}
.type-btn.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.section { margin-bottom: 18px; }
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-row label {
  font-size: 14px;
  font-weight: 500;
  color: #ddd;
  min-width: 80px;
}
input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #1a1a1a;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.length-value {
  width: 48px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 8px;
  padding: 6px 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.toggles {
  display: flex;
  gap: 24px;
  margin-top: 14px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #ddd;
}
.switch {
  position: relative;
  width: 44px;
  height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 26px;
  transition: .2s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
input:checked + .slider { background: #fff; }
input:checked + .slider:before { transform: translateX(18px); background: #1a1a1a; }
.password-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-all;
  margin-bottom: 16px;
}
.source-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #888;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.source-link:hover {
  color: #fff;
}
.source-link svg {
  width: 16px;
  height: 16px;
}
.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.btn-primary {
  background: #fff;
  color: #0d0d0d;
}
.btn-primary:hover { background: #eee; }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); }
.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.copied {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 100;
  border: 1px solid rgba(255,255,255,0.15);
}
.info {
  width: 100%;
  max-width: 460px;
  margin-top: 60px;
  color: #e8e8e8;
}
.info .section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}
.info h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.15;
}
.info .powered {
  color: #888;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
  max-width: 520px;
}
.info h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 10px;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.info-card {
  background: rgba(22,22,22,.6);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  min-height: 148px;
}
.info-card .bg-icon {
  position: absolute;
  right: -8px;
  bottom: -12px;
  width: 90px;
  height: 90px;
  opacity: 0.06;
  color: #fff;
  pointer-events: none;
  transform: rotate(-12deg);
}
.info-card .bg-icon svg {
  width: 100%;
  height: 100%;
}
.card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #fff;
}
.card-icon svg {
  width: 18px;
  height: 18px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.card-desc {
  font-size: 12px;
  line-height: 1.35;
  color: #888;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.step {
  background: #121212;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 20px 16px 28px;
  position: relative;
  overflow: hidden;
}
.step-num {
  position: absolute;
  bottom: -10px;
  right: 6px;
  font-size: 80px;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -2px;
}
.step-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: #fff;
}
.step-icon svg {
  width: 22px;
  height: 22px;
}
.step-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.step-desc {
  font-size: 12px;
  line-height: 1.35;
  color: #888;
}
.info p {
  font-size: 15px;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 14px;
}
.info strong {
  color: #fff;
  font-weight: 600;
}

.footer {
  width: 100%;
  max-width: 460px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}
.footer-logo {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo svg {
  width: 22px;
  height: 22px;
  color: #0d0d0d;
}
.footer-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.footer-tagline {
  color: #888;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 16px 0 14px;
  flex-wrap: wrap;
}
.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #888;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.footer-links svg { 
  width: 16px; 
  height: 16px; 
  color: inherit;
}
.footer-copy {
  color: #555;
  font-size: 13px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px 20px;
  position: relative;
}
.modal h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.modal p, .modal li {
  font-size: 14px;
  line-height: 1.55;
  color: #ccc;
  margin-bottom: 10px;
}
.modal ul {
  padding-left: 18px;
  margin-bottom: 12px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #888;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #fff; }
@media (max-width: 480px) {
  .card { padding: 20px 16px 16px; }
  .password-box { font-size: 16px; }
  .info { margin-top: 48px; }
  .info h1 { font-size: 24px; }
}