/* ===================================================================
   ClearTunnel — Design System
   Typography: Sora (headings), DM Sans (body)
   Palette:
     Dark: #0c0e1a (hero bg)
     Light: #f7f5f0 (surface)
     Teal: #0d9488, #14b8a6
     Coral: #e11d48, #f43f5e (CTA)
     Slate: #94a3b8, #64748b, #1e293b
   =================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #f7f5f0;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================================
   Navigation
   ============================================================ */
.ct-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.ct-nav--dashboard { background: rgba(12,14,26,0.95); backdrop-filter: blur(12px); }

.ct-nav.scrolled {
  background: rgba(12,14,26,0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.ct-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ct-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.ct-logo-icon { color: #14b8a6; flex-shrink: 0; }
.ct-logo-text { letter-spacing: -0.02em; }
.ct-logo-highlight { color: #14b8a6; }

.ct-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
}

.ct-nav-links a { transition: color 0.2s ease; }
.ct-nav-links a:hover { color: #fff; }

.ct-nav-link-accent {
  color: #94a3b8 !important;
  border: 1px solid #334155;
  padding: 6px 16px;
  border-radius: 100px;
  transition: all 0.2s ease !important;
}
.ct-nav-link-accent:hover {
  border-color: #14b8a6 !important;
  color: #fff !important;
}

.ct-nav-link-accent-slim {
  color: #94a3b8 !important;
}
.ct-nav-link-accent-slim:hover { color: #fff !important; }

.ct-nav-cta {
  background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.ct-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(13,148,136,0.35);
}

.ct-nav-user {
  color: #64748b;
  font-size: 13px;
}

.ct-btn-ghost-sm {
  background: none;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ct-btn-ghost-sm:hover { border-color: #e11d48; color: #f43f5e; }

/* Hamburger */
.ct-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ct-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================================
   Buttons
   ============================================================ */
.ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.ct-btn:active { transform: scale(0.97); }

.ct-btn-primary {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  box-shadow: 0 2px 12px rgba(13,148,136,0.25);
}
.ct-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13,148,136,0.4);
}

.ct-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  border: 1px solid #334155;
}
.ct-btn-secondary:hover { background: rgba(255,255,255,0.14); border-color: #475569; }

.ct-btn-danger {
  background: rgba(225,29,72,0.12);
  color: #f43f5e;
  border: 1px solid rgba(225,29,72,0.25);
}
.ct-btn-danger:hover { background: rgba(225,29,72,0.22); }

.ct-btn-ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #334155;
}
.ct-btn-ghost:hover { border-color: #475569; background: rgba(255,255,255,0.04); }

.ct-btn-lg { padding: 16px 36px; font-size: 16px; gap: 10px; }
.ct-btn-sm { padding: 8px 18px; font-size: 12px; gap: 6px; }
.ct-btn-full { width: 100%; justify-content: center; }

/* ============================================================
   Hero Section
   ============================================================ */
.ct-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c0e1a;
  overflow: hidden;
  padding: 80px 20px 40px;
}

.ct-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(13,148,136,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(20,184,166,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.ct-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
}

.ct-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ct-hero-text { max-width: 560px; }

.ct-badge {
  display: inline-block;
  background: rgba(13,148,136,0.12);
  border: 1px solid rgba(13,148,136,0.2);
  color: #5eead4;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.ct-hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease;
}

.ct-gradient-text {
  background: linear-gradient(135deg, #14b8a6, #0d9488, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ct-hero-sub {
  color: #94a3b8;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.ct-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.2s both;
}

.ct-hero-note {
  color: #475569;
  font-size: 12px;
  margin-top: 20px;
  animation: fadeUp 0.8s ease 0.3s both;
}

.ct-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 11px;
  animation: bounce 2s infinite;
}

/* Hero Visual / Card */
.ct-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInScale 0.9s ease 0.15s both;
}

.ct-hero-card {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.ct-hero-card-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at 50% 50%, rgba(13,148,136,0.15), transparent 70%);
  border-radius: 24px;
  filter: blur(30px);
}

.ct-hero-card-inner {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.ct-hc-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.ct-hc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #334155;
}
.ct-hc-dot:first-child { background: #f43f5e; }
.ct-hc-dot:nth-child(2) { background: #f59e0b; }
.ct-hc-dot:nth-child(3) { background: #22c55e; }

.ct-hc-body { display: flex; flex-direction: column; gap: 16px; }

.ct-hc-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 500;
}

.ct-hc-led {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}
.ct-hc-led--green { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.5); }

.ct-hc-ip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
}
.ct-hc-label { color: #64748b; font-size: 12px; }
.ct-hc-value { color: #e2e8f0; font-size: 14px; font-family: monospace; font-weight: 500; }

.ct-hc-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ct-hc-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.ct-hc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  border-radius: 3px;
  transition: width 1s ease;
}
.ct-hc-bar-label { color: #14b8a6; font-size: 11px; font-weight: 600; }

/* ============================================================
   Sections
   ============================================================ */
.ct-section {
  padding: 100px 24px;
  position: relative;
}
.ct-section--dark {
  background: #0c0e1a;
  color: #e2e8f0;
}
.ct-section--dark .ct-section-sub { color: #94a3b8; }

.ct-section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.ct-section-label {
  display: inline-block;
  font-family: "Sora", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 12px;
}

.ct-section-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.ct-section-sub {
  color: #64748b;
  font-size: 16px;
  max-width: 600px;
  margin-bottom: 48px;
}

/* Steps */
.ct-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 16px;
  margin-top: 48px;
}

.ct-step {
  text-align: center;
  padding: 32px 20px;
}

.ct-step-number {
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #14b8a6;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.ct-step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,148,136,0.08);
  border-radius: 16px;
  color: #14b8a6;
}

.ct-step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ct-step-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.ct-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  color: #334155;
}

/* Features */
.ct-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.ct-feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s ease;
}
.ct-feature-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(13,148,136,0.2);
  transform: translateY(-4px);
}

.ct-feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,148,136,0.1);
  border-radius: 14px;
  color: #14b8a6;
  margin-bottom: 20px;
}

.ct-feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ct-feature-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
}

/* Server grid (shared between landing and dashboard) */
.ct-server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.ct-server-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.25s ease;
}
.ct-section--dark .ct-server-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}
.ct-server-card:hover {
  border-color: #0d9488;
  box-shadow: 0 4px 20px rgba(13,148,136,0.08);
}
.ct-server-card--selectable { cursor: default; }

.ct-server-flag { font-size: 32px; line-height: 1; flex-shrink: 0; }

.ct-server-info { flex: 1; min-width: 0; }

.ct-server-name {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ct-section--dark .ct-server-name { color: #fff; }

.ct-server-location {
  font-size: 12px;
  color: #64748b;
}

.ct-server-load {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ct-server-load-text { font-size: 11px; color: #94a3b8; }
.ct-load-bar {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  max-width: 100px;
}
.ct-section--dark .ct-load-bar { background: #1e293b; }
.ct-load-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.ct-server-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.ct-server-status--online { background: rgba(34,197,94,0.1); color: #22c55e; }
.ct-server-status--full { background: rgba(100,116,139,0.1); color: #64748b; }

/* FAQ */
.ct-faq-list {
  max-width: 700px;
  margin: 32px auto 0;
}

.ct-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
}
.ct-section:not(.ct-section--dark) .ct-faq-item {
  border-color: #e2e8f0;
}

.ct-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: color 0.2s;
}
.ct-faq-q::-webkit-details-marker { display: none; }
.ct-faq-q:hover { color: #14b8a6; }
.ct-faq-q svg { flex-shrink: 0; transition: transform 0.3s ease; }
details[open] .ct-faq-q svg { transform: rotate(180deg); }

.ct-faq-a {
  padding: 0 0 20px;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
}
.ct-section:not(.ct-section--dark) .ct-faq-a { color: #475569; }
.ct-faq-a a { color: #14b8a6; font-weight: 500; }
.ct-faq-a a:hover { text-decoration: underline; }

/* CTA final */
.ct-cta-final { padding: 80px 24px; background: #0c0e1a; }

.ct-cta-box {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(145deg, rgba(13,148,136,0.06), rgba(13,148,136,0.02));
  border: 1px solid rgba(13,148,136,0.12);
  border-radius: 32px;
  overflow: hidden;
}

.ct-cta-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 50%, rgba(13,148,136,0.04), transparent 60%);
  pointer-events: none;
}

.ct-cta-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.ct-cta-sub {
  color: #94a3b8;
  font-size: 16px;
  margin-bottom: 32px;
  position: relative;
}

.ct-cta-box .ct-btn {
  position: relative;
  margin: 0 6px 10px;
}

/* ============================================================
   Footer
   ============================================================ */
.ct-footer {
  background: #0c0e1a;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 56px 24px 0;
  color: #94a3b8;
}

.ct-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}

.ct-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
}
.ct-footer-logo svg { color: #14b8a6; }

.ct-footer-desc {
  font-size: 13px;
  line-height: 1.6;
  max-width: 300px;
}

.ct-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ct-footer-col h4 {
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.ct-footer-col a {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.2s;
}
.ct-footer-col a:hover { color: #14b8a6; }

.ct-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
}

/* ============================================================
   Auth Pages
   ============================================================ */
.auth-page, .dashboard-page, .subpage { padding-top: 0 !important; }

.ct-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0c0e1a;
  position: relative;
}
.ct-auth-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(13,148,136,0.06), transparent);
}

.ct-auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px 36px;
  backdrop-filter: blur(10px);
}

.ct-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}
.ct-auth-logo svg { color: #14b8a6; }

.ct-auth-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 6px;
}

.ct-auth-sub {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 32px;
}

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

.ct-field { display: flex; flex-direction: column; gap: 6px; }

.ct-field label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  padding: 12px 14px;
  background: rgba(0,0,0,0.2);
  border: 1px solid #334155;
  border-radius: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #e2e8f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.ct-field input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 4px rgba(13,148,136,0.1);
}
.ct-field input::placeholder { color: #475569; }

.ct-field-errors p {
  color: #f43f5e;
  font-size: 12px;
  margin-top: 2px;
}

.ct-field-help {
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

.ct-form-error {
  background: rgba(225,29,72,0.1);
  border: 1px solid rgba(225,29,72,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f43f5e;
  font-size: 13px;
}

.ct-auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: #64748b;
}
.ct-auth-switch a { color: #14b8a6; font-weight: 600; transition: color 0.2s; }
.ct-auth-switch a:hover { text-decoration: underline; }

/* ============================================================
   Dashboard
   ============================================================ */
.ct-dashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.ct-dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.ct-dash-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  color: #fff;
}

.ct-dash-sub {
  font-size: 14px;
  color: #64748b;
  margin-top: 4px;
}

.ct-dash-badge {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.ct-dash-badge--free {
  background: rgba(13,148,136,0.1);
  color: #14b8a6;
  border: 1px solid rgba(13,148,136,0.15);
}

/* Messages */
.ct-messages { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.ct-message {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.ct-message--success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.15); color: #4ade80; }
.ct-message--error { background: rgba(225,29,72,0.08); border: 1px solid rgba(225,29,72,0.15); color: #f43f5e; }
.ct-message--info { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15); color: #60a5fa; }

/* Connected card */
.ct-dash-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 40px;
}

.ct-dash-card--connected {
  border-color: rgba(34,197,94,0.15);
  border-width: 1.5px;
}

.ct-dash-connected-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ct-dash-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.ct-dash-led {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.ct-dash-led--green { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.5); animation: pulse 2s infinite; }

.ct-dash-server-badge {
  background: rgba(13,148,136,0.1);
  border: 1px solid rgba(13,148,136,0.15);
  color: #5eead4;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.ct-dash-connected-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.ct-dash-detail { display: flex; flex-direction: column; gap: 2px; }
.ct-dash-detail-label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.ct-dash-detail-value { font-size: 14px; color: #e2e8f0; font-weight: 500; }

.ct-dash-connected-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Dashboard sections */
.ct-dash-section {
  margin-bottom: 40px;
}

.ct-dash-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.ct-dash-section-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.ct-dash-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.ct-dash-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}

.ct-dash-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,148,136,0.1);
  border-radius: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #14b8a6;
}

.ct-dash-step strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 2px;
}

.ct-dash-step p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.ct-dash-step a { color: #14b8a6; font-weight: 500; }
.ct-dash-step code {
  background: rgba(0,0,0,0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #e2e8f0;
}

.ct-empty-servers {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #64748b;
}

/* ============================================================
   Legal Pages
   ============================================================ */
.ct-legal h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.ct-legal h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-top: 32px;
  margin-bottom: 12px;
}
.ct-legal p, .ct-legal li {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 8px;
}
.ct-legal ul { padding-left: 20px; margin-bottom: 12px; }
.ct-legal li { list-style: disc; }
.ct-legal strong { color: #e2e8f0; }
.ct-legal .ct-legal-disclaimer {
  margin-top: 40px;
  padding: 16px 20px;
  background: rgba(225,29,72,0.06);
  border: 1px solid rgba(225,29,72,0.12);
  border-radius: 12px;
  font-size: 13px;
  color: #f43f5e;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .ct-hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .ct-hero-text { max-width: 100%; }
  .ct-hero-sub { max-width: 100%; }
  .ct-hero-actions { justify-content: center; }
  .ct-hero-visual { display: none; }

  .ct-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ct-step-arrow { display: none; padding: 0; }
  .ct-step { padding: 24px 16px; }

  .ct-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .ct-footer-links { grid-template-columns: repeat(3, 1fr); }

  .ct-dash-header { flex-direction: column; }
  .ct-dash-connected-details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ct-nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(12,14,26,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 16px;
    align-items: flex-start;
  }
  .ct-nav-links.open { display: flex; }
  .ct-nav-toggle { display: flex; }

  .ct-hero { padding: 100px 20px 60px; }
  .ct-section { padding: 60px 20px; }

  .ct-server-grid { grid-template-columns: 1fr; }
  .ct-features { grid-template-columns: 1fr; }

  .ct-footer-links { grid-template-columns: 1fr 1fr; }
  .ct-dash-connected-details { grid-template-columns: 1fr; }
  .ct-auth-card { padding: 28px 20px; }
}
