/* NeonReply Design System */
:root {
  --neon: #00E5FF;
  --neon-glow: rgba(0,229,255,0.15);
  --amber: #FFB800;
  --dark: #060A14;
  --surface: #0D1321;
  --surface-2: #141C2E;
  --surface-3: #1A2540;
  --text: #E8ECF4;
  --text-muted: #8892A8;
  --green: #00E676;
  --red: #FF5252;
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--neon);
  color: #060A14;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: #33ECFF; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--surface-3); text-decoration: none; }

.btn-danger {
  background: rgba(255,82,82,0.15);
  color: var(--red);
  border: 1px solid rgba(255,82,82,0.3);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.btn-danger:hover { background: rgba(255,82,82,0.25); }

.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.field .optional { font-weight: 400; }

.field input, .field select, .field textarea {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-glow);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { margin-bottom: 16px; }

.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 12px;
}
.form-msg.success { background: rgba(0,230,118,0.1); border: 1px solid rgba(0,230,118,0.3); color: var(--green); }
.form-msg.error { background: rgba(255,82,82,0.1); border: 1px solid rgba(255,82,82,0.3); color: var(--red); }

/* =========================
   LANDING PAGE
   ========================= */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/generated-images/company_36499/24a40b2f-5db5-4508-bc55-e67dc6e3e5a1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,229,255,0.08) 0%, transparent 70%),
              linear-gradient(to bottom, rgba(6,10,20,0) 0%, var(--dark) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
  max-width: 760px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--neon-glow);
  border: 1px solid rgba(0,229,255,0.3);
  color: var(--neon);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #b8f0f5 50%, var(--neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-glow {
  display: inline-block;
  background: var(--neon);
  color: #060A14;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,229,255,0.35);
  text-decoration: none;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--surface-3);
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--neon); color: var(--text); text-decoration: none; }
.hero-compare {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-compare strong { color: var(--text); }
.hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--surface-3);
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
}
.hero-pill svg { flex-shrink: 0; }

/* =========================
   INQUIRY PAGE
   ========================= */
.inquiry-nav {
  padding: 24px;
  display: flex;
  align-items: center;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--neon);
  text-decoration: none;
}
.logo span { color: var(--text); }
.logo:hover { text-decoration: none; }

.inquiry-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.inquiry-hero { margin-bottom: 40px; }
.inquiry-hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 12px; background: linear-gradient(135deg, #fff 0%, var(--neon) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.inquiry-hero p { color: var(--text-muted); font-size: 17px; }

.inquiry-form { display: flex; flex-direction: column; gap: 16px; }

.inquiry-form .form-row { grid-template-columns: 1fr 1fr; }

/* =========================
   DASHBOARD SHELL
   ========================= */
.dash-shell { display: flex; min-height: 100vh; }

.dash-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--surface-3);
  display: flex;
  flex-direction: column;
  padding: 28px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.dash-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--neon);
  padding: 0 24px 28px;
}
.dash-logo span { color: var(--text); }

.dash-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; flex: 1; }

.nav-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--neon-glow); color: var(--neon); }
.nav-item.muted { color: var(--text-muted); opacity: 0.6; }

.dash-sidebar-footer { padding: 16px 24px 0; border-top: 1px solid var(--surface-3); }

.dash-main { flex: 1; padding: 32px 40px; overflow: auto; }

.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.dash-header h1 { font-size: 1.8rem; font-weight: 700; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stat-card.stat-green .stat-value { color: var(--green); }
.stat-card.stat-red .stat-value { color: var(--red); }

.dash-section {
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.dash-section h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 { margin-bottom: 0; }

.dash-form { display: flex; flex-direction: column; gap: 16px; }
.dash-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.services-list { display: flex; flex-direction: column; gap: 12px; }

.service-card {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: border-color 0.15s;
}
.service-card:hover { border-color: var(--neon); }
.service-name { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.service-price { color: var(--neon); font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.service-meta { font-size: 12px; color: var(--text-muted); }
.service-desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-3);
}
.service-info { flex: 1; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.service-price-tag { background: var(--neon-glow); color: var(--neon); padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.service-meta-tag { background: var(--surface-3); padding: 2px 8px; border-radius: 20px; font-size: 12px; }

/* Inquiry table */
.inquiry-table { width: 100%; border-collapse: collapse; }
.inquiry-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 8px 12px; border-bottom: 1px solid var(--surface-3); }
.inquiry-table td { padding: 12px; border-bottom: 1px solid var(--surface-2); font-size: 14px; vertical-align: top; }
.inquiry-table tr:last-child td { border-bottom: none; }
.inquiry-table tr:hover td { background: var(--surface-2); }

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}
.status-pending { background: rgba(255,184,0,0.15); color: var(--amber); }
.status-generating { background: rgba(0,229,255,0.1); color: var(--neon); }
.status-sent { background: rgba(0,230,118,0.1); color: var(--green); }
.status-failed { background: rgba(255,82,82,0.1); color: var(--red); }

.service-tag { background: var(--surface-3); padding: 2px 8px; border-radius: 20px; font-size: 12px; }

.muted { color: var(--text-muted); }
.empty-state { color: var(--text-muted); padding: 20px 0; }

/* Inquiry detail cards */
.inquiry-list { display: flex; flex-direction: column; gap: 16px; }
.inquiry-card {
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  overflow: hidden;
}
.inquiry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--surface-3);
  gap: 16px;
  flex-wrap: wrap;
}
.inquiry-meta { display: flex; align-items: center; gap: 8px; }
.inquiry-desc { padding: 16px 24px; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--surface-2); }
.inquiry-response { padding: 20px 24px; background: var(--surface-2); }
.response-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 8px; }
.response-text { font-size: 14px; line-height: 1.7; }
.response-meta { font-size: 12px; margin-top: 8px; }

/* Dashboard login */
.dash-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.dash-card { background: var(--surface); border: 1px solid var(--surface-3); border-radius: var(--radius); padding: 48px; width: 100%; max-width: 400px; }
.dash-card .dash-logo { font-size: 1.6rem; padding: 0 0 24px; text-align: center; }
.dash-card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.dash-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

/* =========================
   CHAT WIDGET
   ========================= */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--neon);
  color: #060A14;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,229,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,229,255,0.55);
}
.chat-bubble-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  opacity: 0.4;
  animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.1; }
}

.chat-window {
  width: 360px;
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--surface-3);
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--neon-glow);
  border: 2px solid var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-avatar-icon { color: var(--neon); font-size: 18px; }
.chat-header-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.chat-status-text { color: var(--green); font-size: 12px; }
.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.chat-close:hover { background: var(--surface-3); color: var(--text); }

.chat-messages {
  height: 340px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

.chat-msg { display: flex; flex-direction: column; gap: 4px; }
.chat-msg-user { align-items: flex-end; }
.chat-msg-ai { align-items: flex-start; }
.chat-msg-meta { font-size: 11px; color: var(--text-muted); }
.chat-msg-body {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.chat-msg-user .chat-msg-body {
  background: var(--neon);
  color: #060A14;
  border-bottom-right-radius: 4px;
}
.chat-msg-ai .chat-msg-body {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-bottom-left-radius: 4px;
}

.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  animation: chatDotBounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDotBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--surface-3);
  background: var(--surface);
}
.chat-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.chat-input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-glow);
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neon);
  color: #060A14;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.15s;
}
.chat-send:hover { transform: scale(1.05); background: #33ECFF; }
.chat-send:active { transform: scale(0.95); }

@media (max-width: 768px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-window { width: calc(100vw - 32px); }
}
