* { box-sizing: border-box; }

:root {
  --blue-950: #071f35;
  --blue-900: #092f4c;
  --blue-700: #0b5d8b;
  --green: #25d366;
  --green-dark: #0b8f54;
  --orange: #ff9b25;
  --paper: #f3f7fb;
  --card: #ffffff;
  --ink: #102132;
  --muted: #637489;
  --line: #dbe7ef;
  --danger: #dc3545;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.gd-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.gd-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 31, 53, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.gd-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gd-brand {
  display: inline-flex;
  align-items: baseline;
  color: #fff;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -1.8px;
}

.gd-brand-get { color: var(--green); }
.gd-brand-desk { color: var(--orange); }
.gd-brand-bot { margin-left: 7px; font-size: .78rem; color: #fff; letter-spacing: 0; }

.gd-top-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gd-top-links a,
.gd-pill-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: rgba(255,255,255,.88);
  background: transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
}

.gd-top-links a:hover,
.gd-pill-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

.gd-pill-btn {
  color: #07361d;
  background: var(--green);
}
.gd-pill-muted { color: #fff; background: rgba(255,255,255,.12); }

.gd-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 70px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(37,211,102,.22), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(255,155,37,.2), transparent 28%),
    linear-gradient(130deg, var(--blue-950), var(--blue-900) 52%, #087f75);
}

.gd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .65fr);
  align-items: center;
  gap: 54px;
}

.gd-eyebrow {
  display: inline-flex;
  color: #85f5ad;
  letter-spacing: .15em;
  font-size: .72rem;
  font-weight: 950;
}
.gd-eyebrow-dark { color: #0b8f6f; }

.gd-hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(2.55rem, 5vw, 4.9rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.gd-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 1.12rem;
  line-height: 1.7;
}

.gd-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.gd-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 18px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.gd-btn:hover { transform: translateY(-1px); }
.gd-btn-primary { color: #07361d; background: var(--green); box-shadow: 0 12px 28px rgba(37,211,102,.2); }
.gd-btn-primary:hover { background: #4be17f; }
.gd-btn-ghost { color: #fff; border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.08); }
.gd-btn-light { color: var(--blue-900); background: #fff; border-color: var(--line); }
.gd-btn-danger { color: #fff; background: var(--danger); }
.gd-btn-small { min-height: 38px; padding: 8px 12px; border-radius: 11px; font-size: .86rem; }

.gd-hero-card {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  background: rgba(255,255,255,.1);
  box-shadow: 0 30px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}

.gd-chat-preview {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: #f7fbfd;
}

.gd-chat-bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 17px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 25px rgba(15,47,68,.08);
  line-height: 1.42;
}
.gd-chat-bubble.customer {
  justify-self: end;
  color: #07361d;
  background: #d9f8e6;
}
.gd-chat-bubble.assistant { border-top-left-radius: 6px; }

.gd-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.gd-proof-row span {
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(255,255,255,.13);
  font-size: .78rem;
  font-weight: 850;
}

.gd-app-shell { padding: 44px 0 80px; }

.gd-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.gd-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--blue-900);
  background: #fff;
  font-weight: 900;
}
.gd-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), #088b79);
  border-color: transparent;
}

.gd-view { display: none; }
.gd-view.active { display: block; }

.gd-panel {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17,50,72,.07);
}

.gd-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.gd-panel h2 {
  margin: 7px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.gd-session-label { color: var(--muted); font-size: .9rem; font-weight: 750; }

.gd-filter-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr .45fr .8fr auto;
  align-items: end;
  gap: 12px;
}

.gd-filter-grid label,
.gd-form label {
  display: grid;
  gap: 6px;
  color: var(--blue-900);
  font-size: .84rem;
  font-weight: 900;
}

.gd-filter-grid input,
.gd-filter-grid select,
.gd-form input,
.gd-form select,
.gd-chat-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fbfdff;
  outline: none;
}

.gd-filter-grid input:focus,
.gd-filter-grid select:focus,
.gd-form input:focus,
.gd-chat-form input:focus {
  border-color: #60bdd7;
  box-shadow: 0 0 0 4px rgba(11,93,139,.1);
}

.gd-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gd-provider-card {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17,50,72,.07);
}

.gd-provider-top {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: start;
}

.gd-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--orange));
  font-size: 1.25rem;
  font-weight: 950;
}

.gd-provider-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.15; }
.gd-provider-meta { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.gd-provider-desc { margin: 0; color: var(--muted); line-height: 1.55; }
.gd-provider-rating { color: #bd7100; font-weight: 900; font-size: .9rem; }

.gd-favorite-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #65758a;
  background: #f7fbfd;
  font-size: 1.2rem;
}
.gd-favorite-btn.active { color: #d22651; background: #fff1f4; border-color: #ffd1dc; }

.gd-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.gd-tag {
  border-radius: 999px;
  padding: 5px 9px;
  color: #496172;
  background: #edf5f8;
  font-size: .74rem;
  font-weight: 800;
}

.gd-provider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.gd-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #b8cbd7;
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  text-align: center;
}

.gd-conversation-list { display: grid; gap: 12px; }
.gd-conversation-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(17,50,72,.06);
}
.gd-conversation-item h3 { margin: 0 0 5px; font-size: 1rem; }
.gd-conversation-item p { margin: 0; color: var(--muted); font-size: .9rem; }

.gd-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}
.gd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,18,31,.62);
  backdrop-filter: blur(4px);
}
.gd-modal-card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.gd-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  color: var(--blue-900);
  background: #eef5f8;
  font-size: 1.4rem;
}
.gd-modal-card h2 { margin: 0 42px 6px 0; letter-spacing: -.03em; }
.gd-muted { margin: 0 0 18px; color: var(--muted); }

.gd-auth-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #eef5f8;
}
.gd-auth-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}
.gd-auth-tabs button.active { color: #fff; background: var(--blue-700); }
.gd-form { display: grid; gap: 12px; }

.gd-chat-card { width: min(760px, 100%); padding: 0; overflow: hidden; }
.gd-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.gd-chat-head h2 { margin: 5px 42px 0 0; }
.gd-chat-messages {
  height: min(510px, 58vh);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 22px;
  background: #f4f8fb;
}
.gd-message {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 17px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 20px rgba(17,50,72,.06);
  white-space: pre-wrap;
  line-height: 1.42;
}
.gd-message.customer {
  align-self: flex-end;
  color: #07361d;
  background: #d9f8e6;
  border-bottom-right-radius: 5px;
}
.gd-message.assistant,
.gd-message.provider {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.gd-message.system {
  align-self: center;
  max-width: 90%;
  color: #596b7a;
  background: #eaf2f6;
  font-size: .86rem;
}
.gd-message-time {
  display: block;
  margin-top: 6px;
  color: rgba(16,33,50,.52);
  font-size: .72rem;
  font-weight: 750;
}
.gd-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.gd-reviews-card { width: min(680px, 100%); }
.gd-reviews-list { display: grid; gap: 12px; margin-top: 16px; }
.gd-review-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfdff;
}
.gd-review-item strong { display: block; color: #bd7100; }
.gd-review-item p { margin: 7px 0 0; color: var(--muted); }

.gd-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: var(--blue-900);
  box-shadow: 0 20px 45px rgba(0,0,0,.22);
  font-weight: 800;
}
.gd-toast.error { background: #8f1d2c; }
.gd-toast.success { background: #087f57; }

@media (max-width: 980px) {
  .gd-hero-grid,
  .gd-filter-grid,
  .gd-card-grid { grid-template-columns: 1fr; }
  .gd-panel-head { display: grid; }
  .gd-provider-actions .gd-btn { flex: 1; }
}

@media (max-width: 680px) {
  .gd-nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .gd-hero { padding-top: 58px; }
  .gd-hero-card { display: none; }
  .gd-provider-top { grid-template-columns: 48px 1fr auto; }
  .gd-chat-form { grid-template-columns: 1fr; }
  .gd-message { max-width: 92%; }
}
