.agency-logo-tag {
  opacity: 0.7;
  font-size: 0.7em;
  font-weight: 500;
}

.agency-landing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.agency-landing__inner {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Split Hero Section */
.agency-hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .agency-hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
}

.agency-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.agency-hero__badge {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.agency-hero__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 40%, #c4f7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.agency-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.agency-hero__lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.agency-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .agency-hero__cta {
    justify-content: center;
  }

  .agency-hero__signin {
    width: 100%;
    text-align: center;
  }
}

/* Social proof band */
.agency-proof {
  margin: 0;
}

.agency-proof__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(52, 211, 153, 0.03));
}

@media (min-width: 768px) {
  .agency-proof__inner {
    grid-template-columns: minmax(10rem, auto) 1fr auto;
    align-items: center;
    gap: 1.5rem 2rem;
  }
}

.agency-proof__stat {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.agency-proof__stat strong {
  color: var(--cyan);
  font-size: 1.15rem;
}

.agency-proof__quote {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  border-left: 2px solid rgba(0, 229, 255, 0.35);
  padding-left: 1rem;
}

.agency-proof__quote p {
  margin: 0 0 0.25rem;
}

.agency-proof__quote cite {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.agency-proof__demo {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
}

.agency-proof__demo:hover {
  text-decoration: underline;
}

/* Sticky pricing CTA */
.agency-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(6, 10, 16, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.agency-sticky-cta__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.agency-sticky-cta__label strong {
  color: var(--cyan);
}

.agency-sticky-cta__btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

body.agency-page--sticky {
  padding-bottom: 4.25rem;
}

/* Plan comparison table */
.agency-plan-compare {
  margin-bottom: 2rem;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.agency-plan-compare__table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.agency-plan-compare__table th,
.agency-plan-compare__table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.agency-plan-compare__table thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
}

.agency-plan-compare__table tbody th[scope='row'] {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.agency-plan-compare__table td {
  color: rgba(255, 255, 255, 0.75);
}

.agency-plan-compare__table tr:last-child th,
.agency-plan-compare__table tr:last-child td {
  border-bottom: none;
}

.agency-plan-compare__table td[colspan='2'] {
  text-align: center;
  color: var(--cyan);
}

@media (max-width: 900px) {
  .agency-hero__cta {
    justify-content: center;
  }
}

/* Dashboard Mockup Widget */
.agency-hero-mockup {
  perspective: 1000px;
}

.mockup-window {
  background: rgba(11, 14, 18, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.08);
  overflow: hidden;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.agency-hero-mockup:hover .mockup-window {
  transform: rotateY(-2deg) rotateX(1deg) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 229, 255, 0.15);
}

.mockup-header {
  background: rgba(5, 6, 8, 0.8);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dots {
  display: flex;
  gap: 0.35rem;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

.mockup-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0 auto;
  transform: translateX(-12px);
}

/* Aligned CommandCenter Mockup Layout */
.mockup-toolbar {
  background: rgba(5, 6, 8, 0.9);
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-tb-left {
  display: flex;
  flex-direction: column;
}

.mockup-tb-eyebrow {
  font-size: 0.48rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-tb-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}

.mockup-tb-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mockup-tb-select {
  font-size: 0.5rem;
  padding: 0.2rem 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-secondary);
}

.mockup-tb-btn {
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  background: var(--cyan);
  color: var(--black-stealth);
  border-radius: 4px;
  box-shadow: 0 0 8px var(--cyan-glow);
}

.mockup-cc-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0.6rem;
  padding: 0.75rem;
  background: rgba(5, 6, 8, 0.3);
}

.mockup-cc-left,
.mockup-cc-right {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mockup-cc-card {
  background: rgba(11, 14, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mockup-cc-card-hdr {
  font-size: 0.52rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cyan);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.2rem;
}

.mockup-cc-score-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.mockup-cc-score-val {
  font-size: 1.15rem;
  font-weight: 700;
}

.mockup-cc-score-lbl {
  font-size: 0.52rem;
  color: var(--text-secondary);
}

.mockup-cc-stats-mini {
  display: flex;
  gap: 0.5rem;
  font-size: 0.48rem;
  color: var(--text-muted);
}

.mockup-cc-actions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mockup-cc-act-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.48rem;
  color: var(--text-primary);
}

.mockup-cc-act-item--done {
  text-decoration: line-through;
  opacity: 0.55;
}

.mockup-cc-chk {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.4rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.mockup-cc-act-item--done .mockup-cc-chk {
  background: var(--cyan);
  color: var(--black-stealth);
}

.mockup-map-container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 8, 0.6);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.mockup-cc-rivals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.48rem;
  color: var(--text-secondary);
}

.mockup-cc-rivals li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-cc-rivals strong {
  color: #fff;
  font-family: var(--font-mono);
}

.mockup-grid-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 72px;
}

.mockup-node {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.42rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 3px;
  color: #fff;
}

.mockup-node.rank-1,
.mockup-node.rank-2,
.mockup-node.rank-3 {
  background: rgba(74, 222, 128, 0.35);
  border: 1px solid rgba(74, 222, 128, 0.5);
}

.mockup-node.rank-4,
.mockup-node.rank-5 {
  background: rgba(255, 217, 64, 0.25);
  border: 1px solid rgba(255, 217, 64, 0.45);
}

.mockup-node.rank-8,
.mockup-node.rank-12,
.mockup-node.rank-14 {
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.5);
}

/* ── Value proposition block (benefits + proof + steps) ── */
.agency-value {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.agency-value__header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.agency-value__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.agency-value__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.agency-value__sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Bento Benefits Grid */
.agency-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .agency-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.agency-benefits__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.12);
  background: linear-gradient(145deg, rgba(11, 14, 18, 0.9) 0%, rgba(5, 6, 8, 0.95) 100%);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.agency-benefits__item:hover {
  border-color: rgba(0, 229, 255, 0.32);
  transform: translateY(-2px);
}

.agency-benefits__icon {
  grid-row: 1 / span 2;
  align-self: start;
  background: rgba(0, 229, 255, 0.08);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 229, 255, 0.2);
  margin-bottom: 0;
}

.agency-benefits__item strong {
  grid-column: 2;
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
}

.agency-benefits__item .agency-benefits__text {
  grid-column: 2;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(220, 235, 248, 0.78);
}

.benefit-svg {
  color: var(--cyan);
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 4px var(--cyan-glow));
}

/* How it works */
.agency-steps-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.agency-steps-wrap__header {
  text-align: center;
}

.agency-steps-wrap__header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: #fff;
}

.agency-steps-wrap__header p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.agency-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 8, 0.55);
  overflow: hidden;
}

@media (min-width: 768px) {
  .agency-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .agency-steps {
    gap: 0;
  }
}

.agency-steps__item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.25rem;
  position: relative;
}

@media (min-width: 768px) {
  .agency-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 767px) {
  .agency-steps__item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.step-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.step-content strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.step-content p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Pricing Section */
.agency-pricing h2,
.agency-signin h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.agency-pricing__sub,
.agency-signin__sub {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.agency-pricing__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.agency-plan-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.25rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.12);
  background: linear-gradient(145deg, rgba(11, 14, 18, 0.95), rgba(5, 6, 8, 0.98));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agency-plan-card:hover {
  transform: translateY(-2px);
}

.agency-plan-card--featured {
  border-color: var(--cyan);
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.12);
  position: relative;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.03), rgba(11, 14, 18, 0.98));
}

.agency-plan-card--soon {
  opacity: 0.9;
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.35);
}

.agency-plan-card__badge--soon {
  background: rgba(148, 163, 184, 0.2);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.agency-plan-card__soon-copy {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.agency-plan-card--soon .btn-ghost {
  width: 100%;
  opacity: 0.7;
  cursor: not-allowed;
}

.agency-plan-card__badge {
  align-self: flex-start;
  margin: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: var(--cyan);
  color: var(--black-stealth);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 0 0 10px var(--cyan-glow);
}

.agency-plan-card__name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}

.agency-plan-card__price {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.agency-plan-card__price small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.agency-plan-card__clients {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.agency-plan-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.agency-plan-card__features li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.agency-plan-card__features li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--cyan);
  font-weight: bold;
}

.agency-plan-card__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.agency-plan-card__form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.agency-plan-card__form input {
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 8, 0.7);
  color: #fff;
  font-size: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.agency-plan-card__form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
  outline: none;
}

.agency-signin {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 12, 20, 0.6);
  max-width: 420px;
}

.agency-signin__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.agency-signin__form label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.agency-signin__optional {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

.agency-signin__form input {
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
}

.agency-page .agency-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

.agency-auth-loading {
  max-width: 1280px;
  margin: 4rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.agency-auth-loading[hidden] {
  display: none !important;
}

.agency-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .agency-layout {
    grid-template-columns: 280px 1fr;
  }
}

.agency-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agency-page {
  color: var(--text-primary);
}

.agency-page .share-report__muted {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.agency-main {
  color: var(--text-primary);
}

.agency-card {
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--black-panel);
  color: var(--text-primary);
}

.agency-card h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

#agency-title {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-primary);
}

#agency-plan {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.agency-detail h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
}

.agency-client-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.agency-client-list button {
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
}

.agency-client-list button.is-active {
  border-color: var(--cyan);
  background: var(--cyan-muted);
}

.agency-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.agency-detail__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agency-report-mount {
  margin-top: 1.25rem;
}

.agency-detail .cc-report-embed .cc-layout {
  gap: 1rem;
}

.agency-detail .cc-map-canvas {
  min-height: 280px;
  border-radius: 8px;
}

@media (min-width: 1100px) {
  .agency-detail .cc-report-embed .cc-layout {
    grid-template-columns: minmax(260px, 320px) 1fr;
  }
}

.agency-form-grid {
  display: grid;
  gap: 0.85rem;
}

.agency-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.agency-field__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.agency-field__optional {
  font-weight: 400;
  color: var(--text-muted);
}

.agency-form-grid label.agency-field input,
.agency-form-grid input {
  padding: 0.62rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.agency-form-grid input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.agency-form-grid input:focus {
  border-color: #00e5ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.18);
}

.agency-form-grid input.is-selected {
  border-color: #4ade80;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35);
}

.gs-places-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.gs-places-hint--warn {
  color: #ffd940;
}

.gs-places-hint--ok {
  color: #6ee7b7;
}

.gs-places-loading {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #5ee9ff;
}

.gs-streetview__label {
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5ee9ff;
  background: rgba(0, 0, 0, 0.35);
}

.agency-form-status {
  margin: 0;
  font-size: 0.875rem;
  color: #ff8a8a;
}

.agency-form-status--ok {
  color: #6ee7b7;
}

.agency-streetview {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.agency-streetview img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Div modal — native <dialog> hides Google Places dropdown in the top layer */
.agency-modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 9999 !important;
  display: grid;
  place-items: center;
  padding: 1rem;
  box-sizing: border-box;
  margin: 0;
}

.agency-modal[hidden] {
  display: none !important;
}

.agency-modal.agency-modal--open {
  display: grid !important;
}

.agency-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.78);
}

.agency-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

body.agency-modal-open {
  overflow: hidden;
}

.gs-places-loading[hidden] {
  display: none !important;
}

.agency-dialog {
  border: none;
  padding: 0;
  margin: auto;
  max-width: 32rem;
  width: calc(100% - 2rem);
  background: transparent;
  color: var(--text-primary);
}

.agency-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.agency-dialog__panel {
  padding: 1.35rem 1.5rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: #0b1522;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.agency-dialog__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: #fff;
}

.agency-dialog__hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(210, 228, 242, 0.8);
}

.agency-dialog__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.agency-wl-form label {
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.4;
}

.agency-wl-form input[type='text'],
.agency-wl-form input[type='url'] {
  margin-top: 0.25rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.agency-keys-list input,
.agency-webhook-form input[type='url'] {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Google Places suggestions above modals (must exceed .agency-modal z-index) */
.pac-container {
  z-index: 10000 !important;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  font-family: var(--font-sans);
}

.pac-item {
  color: #1a2332;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

.agency-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.agency-share-box {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.06);
  font-size: 0.8rem;
  word-break: break-all;
}

.agency-wl-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.agency-wl-form.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

/* ── API keys ───────────────────────────────────────────────────────────── */
.agency-keys-list,
.agency-webhooks-list {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.agency-key-row,
.agency-webhook-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
}

.agency-key-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.agency-webhook-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.agency-key-reveal {
  margin-top: 0.4rem;
  padding: 0.5rem;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  word-break: break-all;
  color: var(--cyan);
}

.btn-danger {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
  background: rgba(255, 107, 107, 0.12);
}

/* ── Webhook form ───────────────────────────────────────────────────────── */
.agency-webhook-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.agency-webhook-form input[type="url"] {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: inherit;
  font-size: 0.8rem;
}

.agency-webhook-events {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
