:root {
  --yeeldr-bg: #06111c;
  --yeeldr-bg-2: #081523;
  --yeeldr-surface: #0d1726;
  --yeeldr-surface-2: #101c2d;
  --yeeldr-border: rgba(118, 146, 190, 0.20);
  --yeeldr-text: #f5f7fb;
  --yeeldr-muted: #9aaccc;
  --yeeldr-blue: #4c7eff;
  --yeeldr-blue-2: #6d96ff;
  --yeeldr-green: #66d9a8;
  --yeeldr-shell-width: 1320px;
}

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

body.yeeldr-shell {
  margin: 0;
  color: var(--yeeldr-text);
  background:
    radial-gradient(circle at 18% 10%, rgba(76,126,255,0.10), transparent 22%),
    radial-gradient(circle at 78% 12%, rgba(76,126,255,0.08), transparent 22%),
    linear-gradient(180deg, var(--yeeldr-bg) 0%, var(--yeeldr-bg-2) 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.yeeldr-shell a { color: inherit; }

.yeeldr-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--yeeldr-border);
  background: rgba(6, 17, 28, 0.86);
  backdrop-filter: blur(18px);
}

.yeeldr-topbar.is-scrolled {
  box-shadow: 0 16px 44px rgba(0,0,0,0.26);
}

.yeeldr-nav {
  width: min(calc(100% - 32px), var(--yeeldr-shell-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.yeeldr-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--yeeldr-text);
}

.yeeldr-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-left: -4px;
}

.yeeldr-brand span {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0;
}

.yeeldr-nav-links,
.yeeldr-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yeeldr-nav-links a,
.yeeldr-login-link,
.yeeldr-upgrade-link {
  color: rgba(245, 247, 251, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 8px;
}

.yeeldr-nav-links a:hover,
.yeeldr-nav-links a.active,
.yeeldr-login-link:hover,
.yeeldr-upgrade-link:hover {
  color: var(--yeeldr-text);
  background: rgba(255,255,255,0.055);
}

.yeeldr-primary-link,
.yeeldr-account-button {
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid rgba(109,150,255,0.40);
}

.yeeldr-primary-link {
  padding: 0 16px;
  color: white;
  background: linear-gradient(180deg, #6a92f5 0%, #5d88ee 100%);
}

.yeeldr-account-button {
  padding: 0 12px;
  color: var(--yeeldr-text);
  background: rgba(255,255,255,0.055);
}

.yeeldr-account-button:hover,
.yeeldr-account-button:focus {
  border-color: rgba(109,150,255,0.65);
  background: rgba(109,150,255,0.14);
}

.yeeldr-plan-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  border: 1px solid rgba(102,217,168,0.28);
  background: rgba(102,217,168,0.10);
  color: #b8f3d7;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.yeeldr-dropdown {
  --bs-dropdown-bg: #101c2d;
  --bs-dropdown-border-color: rgba(118,146,190,0.25);
  --bs-dropdown-link-color: #f5f7fb;
  --bs-dropdown-link-hover-bg: rgba(109,150,255,0.14);
  --bs-dropdown-link-hover-color: #ffffff;
  --bs-dropdown-divider-bg: rgba(118,146,190,0.20);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

.yeeldr-main {
  width: min(calc(100% - 32px), var(--yeeldr-shell-width));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.yeeldr-message-stack { margin-bottom: 18px; }
.yeeldr-shell .container { max-width: var(--yeeldr-shell-width); }

.yeeldr-shell .card {
  background: linear-gradient(180deg, rgba(16, 28, 45, 0.98), rgba(13, 23, 38, 0.98));
  border: 1px solid var(--yeeldr-border);
  border-radius: 8px;
  color: var(--yeeldr-text);
}

.yeeldr-shell .text-muted,
.yeeldr-shell .text-secondary {
  color: var(--yeeldr-muted) !important;
}

.yeeldr-shell .form-control,
.yeeldr-shell .form-select {
  color: var(--yeeldr-text);
  background-color: rgba(8, 16, 28, 0.68);
  border-color: var(--yeeldr-border);
  border-radius: 8px;
}

.yeeldr-shell .form-control:focus,
.yeeldr-shell .form-select:focus {
  color: var(--yeeldr-text);
  background-color: rgba(8, 16, 28, 0.86);
  border-color: rgba(109,150,255,0.70);
  box-shadow: 0 0 0 3px rgba(76,126,255,0.18);
}

.yeeldr-shell .btn {
  border-radius: 8px;
  font-weight: 700;
}

.yeeldr-shell .btn-primary {
  border-color: rgba(109,150,255,0.40);
  background: linear-gradient(180deg, #6a92f5 0%, #5d88ee 100%);
}

.yeeldr-shell .btn-outline-secondary,
.yeeldr-shell .btn-outline-primary {
  color: #c8d7ff;
  border-color: rgba(109,150,255,0.32);
  background: rgba(255,255,255,0.035);
}

.yeeldr-shell .btn-outline-secondary:hover,
.yeeldr-shell .btn-outline-primary:hover {
  color: white;
  background: rgba(109,150,255,0.16);
  border-color: rgba(109,150,255,0.58);
}

.yeeldr-shell .table {
  --bs-table-color: var(--yeeldr-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(118,146,190,0.18);
  --bs-table-hover-bg: rgba(255,255,255,0.035);
}

.yeeldr-auth-main {
  width: min(calc(100% - 32px), 1040px);
  min-height: calc(100vh - 73px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 48px;
  padding: 48px 0;
}

.yeeldr-kicker {
  margin: 0 0 12px;
  color: var(--yeeldr-blue-2);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.yeeldr-auth-copy h1 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: 0;
}

.yeeldr-auth-copy p:not(.yeeldr-kicker) {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--yeeldr-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.yeeldr-auth-panel {
  border: 1px solid var(--yeeldr-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 28, 45, 0.98), rgba(13, 23, 38, 0.98));
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.yeeldr-inline-link {
  color: #c8d7ff;
  font-size: 0.9rem;
  text-decoration: none;
}

.yeeldr-inline-link:hover {
  color: white;
}

.yeeldr-auth-submit {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(109,150,255,0.40);
  border-radius: 8px;
  background: linear-gradient(180deg, #6a92f5 0%, #5d88ee 100%);
  color: white;
  font-weight: 800;
}

.yeeldr-auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  border-color: rgba(118,146,190,0.22);
  background: rgba(118,146,190,0.14);
}

.yeeldr-auth-note {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  color: var(--yeeldr-text);
  font-size: 0.92rem;
}

.yeeldr-auth-note span {
  color: var(--yeeldr-muted);
  font-size: 0.86rem;
}

.yeeldr-choice-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.yeeldr-choice {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(118,146,190,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: rgba(245,247,251,0.88);
  font-weight: 600;
}

.yeeldr-choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--yeeldr-blue);
}

.yeeldr-field-feedback {
  min-height: 20px;
  margin-top: 6px;
  color: var(--yeeldr-muted);
  font-size: 0.82rem;
}

.yeeldr-field-feedback.is-valid {
  color: var(--yeeldr-green);
}

.yeeldr-field-feedback.is-invalid {
  color: #ff9aa8;
}

.yeeldr-password-rules {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.yeeldr-password-rules span {
  position: relative;
  padding-left: 18px;
  color: var(--yeeldr-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.yeeldr-password-rules span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(118, 146, 190, 0.42);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}

.yeeldr-password-rules span.is-valid {
  color: var(--yeeldr-green);
}

.yeeldr-password-rules span.is-valid::before {
  border-color: rgba(102,217,168,0.70);
  background: var(--yeeldr-green);
}

.yeeldr-password-rules span.is-invalid {
  color: #ffb3bd;
}

.yeeldr-password-rules span.is-invalid::before {
  border-color: rgba(255,154,168,0.70);
  background: rgba(255,154,168,0.26);
}

.yeeldr-auth-secondary {
  margin: 16px 0 0;
  color: var(--yeeldr-muted);
  font-size: 0.92rem;
  text-align: center;
}

.yeeldr-auth-secondary a {
  color: #c8d7ff;
  font-weight: 700;
  text-decoration: none;
}

.yeeldr-auth-secondary a:hover {
  color: white;
}

@media (max-width: 980px) {
  .yeeldr-nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .yeeldr-nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 640px) {
  .yeeldr-nav,
  .yeeldr-main {
    width: min(calc(100% - 20px), var(--yeeldr-shell-width));
  }

  .yeeldr-brand span {
    font-size: 1.35rem;
  }

  .yeeldr-nav-actions {
    margin-left: auto;
  }

  .yeeldr-plan-pill,
  .yeeldr-upgrade-link {
    display: none;
  }
}

@media (max-width: 860px) {
  .yeeldr-auth-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 0;
  }

  .yeeldr-auth-copy h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }
}
