/* View Bots page */
.view-bots-page {
  padding: 0 0 5rem;
  max-width: 100%;
  margin: 0 auto;
}

/* ============================================================
   HERO — full-width, dark gradient
============================================================ */
.bots-hero {
  position: relative;
  text-align: center;
  padding: 5.5rem 1.5rem 5rem;
  color: #fff;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(165deg, #0c1222 0%, #1a1f3a 35%, #1e293b 70%, #0f172a 100%);
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.35);
}

.bots-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% -20%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 40% at 80% 60%, rgba(59, 130, 246, 0.12), transparent 50%);
  pointer-events: none;
}

.bots-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.bots-hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin: 0 0 0.75rem;
}

.bots-hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.bots-hero-intro {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
}

.bots-hero-intro strong {
  color: #fbbf24;
  font-weight: 700;
}

.bots-hero-link {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 197, 253, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bots-hero-link:hover {
  color: #bfdbfe;
  border-bottom-color: #bfdbfe;
}

/* ============================================================
   ADMIN NOTICE — want admin? Contact us (connects to hero)
============================================================ */
.bots-admin-notice {
  /* Match hero container; tight to hero so they feel like one flow (override section + section) */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.25rem;
  margin-bottom: 3rem;
  padding: 3.5rem 1.5rem;
  border-radius: 28px 28px 28px 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(253, 230, 138, 0.5);
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 45%, #fefce8 100%);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02) inset;
  box-sizing: border-box;
}

.bots-admin-notice-inner {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}

.bots-admin-notice-title {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #92400e;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.bots-admin-notice-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #78350f;
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

.btn-contact-admin {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: #92400e;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 10px rgba(146, 64, 14, 0.35);
}

.btn-contact-admin:hover {
  background: #b45309;
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 4px 14px rgba(146, 64, 14, 0.4);
}

/* ============================================================
   CONTENT — bot cards
============================================================ */
.view-bots-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem 0;
}

.view-bots-page .inline-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.view-bots-page .inline-link:hover {
  text-decoration: underline;
}

.view-bots-list {
  display: grid;
  gap: 1.75rem;
}

.view-bots-page .bot-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 120px;
}

.view-bots-page .bot-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.view-bots-page .bot-card-main {
  flex: 1;
  min-width: 0;
}

.view-bots-page .bot-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.view-bots-page .bot-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.view-bots-page .bot-status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

.view-bots-page .bot-card h2 {
  font-size: 1.2rem;
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}

.view-bots-page .bot-card p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

.view-bots-page .bot-card-action {
  flex-shrink: 0;
}

.view-bots-page .bot-card .btn-connect {
  padding: 0.65rem 1.35rem;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.view-bots-page .bot-card .btn-connect:hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ============================================================
   MORE / EXPLORE SECTION — after bot cards
============================================================ */
.bots-more-section {
  max-width: 900px;
  margin: 4rem auto 0;
  padding: 3.5rem 2rem 4rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.bots-more-inner {
  max-width: 720px;
  margin: 0 auto;
}

.bots-more-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  margin: 0 0 0.5rem;
}

.bots-more-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bots-more-lead {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.bots-more-list {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
}

.bots-more-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

.bots-more-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
}

.bots-more-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.bots-more-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bots-more-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.bots-more-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.25rem;
}

.bots-more-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.bots-more-card-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .bots-more-section {
    padding: 2.5rem 1.25rem 3rem;
  }
  .bots-more-actions {
    grid-template-columns: 1fr;
  }
}

/* Restricted (admin-only) modal */
.view-bots-page .restricted-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.view-bots-page .restricted-overlay.is-open,
.restricted-overlay.is-open {
  display: flex;
}

.restricted-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.restricted-modal {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.restricted-modal h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #1e293b;
}

.restricted-modal p {
  margin: 0 0 1rem;
  color: #64748b;
  line-height: 1.5;
  font-size: 0.95rem;
}

.restricted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.restricted-modal .btn-login {
  padding: 0.65rem 1.35rem;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.restricted-modal .btn-login:hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  color: #fff;
}

.restricted-modal .btn-close {
  min-width: 5.5rem;
  padding: 0.65rem 1.35rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.restricted-modal .btn-close:hover {
  background: #e2e8f0;
  color: #334155;
  border-color: #cbd5e1;
}
