/* Mobile nav toggle overrides */
.menu-toggle {
  width: 42px;
  height: 42px;
  padding: 6px;
  border-radius: 10px;
  border: none;
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: none;
}

.menu-toggle .x-icon {
  display: none;
}

body.nav-open .menu-toggle {
  background-image: none !important;
}

body.nav-open .menu-toggle .x-icon {
  display: block;
}
:root {
  --bg: #0f172a;
  --panel: #0b1020;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.12), transparent 25%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.container {
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-header {
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
}

.site-header .container {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.nav-right {
  margin-left: auto;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.nav a:hover {
  background: rgba(56, 189, 248, 0.1);
}

.nav .pill {
  background: var(--accent);
  color: #0b1020;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.menu-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.menu-toggle .x-icon {
  display: none;
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
}

.nav-backdrop {
  display: none;
}

@media (max-width: 768px) {
  .container {
    width: min(100vw, 96vw);
    padding: 16px 0 24px;
  }

  .site-header .container {
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    z-index: 1100;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(280px, 80vw);
    height: 100vh;
    background: rgba(11, 16, 32, 0.98);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 20px 24px;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 1000;
  }

  .nav a {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    background: rgba(148, 163, 184, 0.08);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 900;
  }

  body.nav-open .nav {
    transform: translateX(0);
  }

  body.nav-open .nav-backdrop {
    display: block;
  }

  body.nav-open .menu-toggle .x-icon {
    display: block;
  }

  body.nav-open .menu-toggle img {
    display: none;
  }
}

.panel {
  background: linear-gradient(145deg, rgba(11, 16, 32, 0.95), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.35);
}

.panel.hero {
  display: grid;
  gap: 18px;
  grid-template-columns: 2fr 1fr;
  align-items: center;
}

.hero-text h2 {
  margin: 6px 0 8px;
  font-size: 30px;
  line-height: 1.25;
}

.hero-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--text);
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.stat-value {
  font-weight: 700;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 28px;
}

.panel p {
  color: var(--muted);
  line-height: 1.6;
}

.cta {
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.field-row .field {
  flex: 1 1 200px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
}

.field span {
  font-size: 14px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(56, 189, 248, 0.5);
  border-color: rgba(56, 189, 248, 0.5);
}

.pretty-url input {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

input[type="email"],
input[type="password"],
input[type="text"],
textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: var(--text);
  padding: 12px;
  font-size: 15px;
  width: 100%;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(56, 189, 248, 0.5);
  border-color: rgba(56, 189, 248, 0.5);
}

textarea {
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #0b1020;
  border-color: var(--accent);
}

.btn.full {
  width: 100%;
}

.btn:hover {
  opacity: 0.9;
}

.muted {
  color: var(--muted);
}

.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.flash {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.flash.success {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.1);
}

.flash.error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 12px 0;
}

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

@media (min-width: 600px) {
  .links-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (min-width: 769px) {
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card.soft {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  min-width: 0; /* Allow flex items to shrink below content size */
  overflow: hidden; /* Prevent content from extending past card */
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.card-right {
  margin-left: auto;
  max-width: 460px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox input {
  width: auto;
}

.creator-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(148, 163, 184, 0.3);
}

.avatar.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(99, 102, 241, 0.5));
  color: #0b1020;
  font-weight: 800;
  font-size: 22px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.social-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.social-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.social-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.05);
  transform: translateY(-1px);
}

.icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0b1020;
}

.icon.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.icon.snapchat { background: #fffc00; color: #000; }
.icon.facebook { background: #1877f2; color: #fff; }
.icon.twitch { background: #9146ff; color: #fff; }
.icon.tiktok { background: linear-gradient(135deg, #69c9d0, #ee1d52); color: #fff; }
.icon.link { background: rgba(148, 163, 184, 0.4); color: #0b1020; }

.favicon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.social-meta .label {
  margin: 0;
  font-weight: 700;
}

.muted.small {
  font-size: 12px;
}

.social-actions .btn {
  padding: 8px 10px;
  font-size: 14px;
}

@media (max-width: 800px) {
  .panel.hero {
    grid-template-columns: 1fr;
  }
}
