.agency-shell {
  padding: 32px 0 8px;
}

.agency-shell__body {
  display: grid;
  gap: 26px;
}

.agency-shell__hero,
.agency-shell__surface,
.agency-shell__owner-tools,
.agency-shell__flash {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(10, 12, 16, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.agency-shell__hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
  gap: 28px;
  padding: 28px;
  overflow: hidden;
}

.agency-shell__hero-media {
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(73, 180, 255, 0.3), transparent 58%),
    linear-gradient(160deg, rgba(24, 30, 44, 0.96), rgba(8, 10, 15, 0.96));
}

.agency-shell__hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.agency-shell__hero-placeholder {
  height: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.agency-shell__hero-body {
  display: grid;
  gap: 24px;
  align-content: start;
}

.agency-shell__eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.agency-shell__eyebrow,
.agency-shell__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agency-shell__status--private {
  background: rgba(209, 71, 102, 0.18);
  color: #ff9bb4;
}

.agency-shell__title {
  margin: 0;
  color: #f7f8fb;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.04;
}

.agency-shell__summary {
  margin: 10px 0 0;
  max-width: 60ch;
  color: rgba(232, 235, 242, 0.78);
  font-size: 1.02rem;
  line-height: 1.72;
}

.agency-shell__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.agency-shell__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(76, 167, 255, 0.28);
  background: linear-gradient(135deg, rgba(59, 138, 229, 0.28), rgba(27, 92, 179, 0.16));
  color: #f7fbff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.agency-shell__button:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 193, 255, 0.5);
  background: linear-gradient(135deg, rgba(74, 163, 255, 0.34), rgba(34, 108, 201, 0.2));
}

.agency-shell__button--secondary,
.agency-shell__button--ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 247, 250, 0.92);
}

.agency-shell__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.agency-shell__stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.agency-shell__stat-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(208, 214, 223, 0.72);
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agency-shell__stat-value {
  color: #f9fafc;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.1;
}

.agency-shell__flash {
  padding: 18px 22px;
  color: #eff4ff;
}

.agency-shell__flash--error {
  border-color: rgba(217, 88, 113, 0.28);
  background: linear-gradient(180deg, rgba(217, 88, 113, 0.14), rgba(24, 10, 14, 0.9));
}

.agency-shell__flash--success {
  border-color: rgba(64, 184, 138, 0.28);
  background: linear-gradient(180deg, rgba(64, 184, 138, 0.14), rgba(10, 24, 18, 0.9));
}

.agency-shell__owner-tools,
.agency-shell__surface {
  padding: 26px;
}

.agency-shell__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 24px;
}

.agency-shell__sidebar {
  display: grid;
  gap: 24px;
  align-content: start;
}

.agency-shell__surface--compact {
  padding: 22px;
}

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

.agency-shell__section-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #d0a85f;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agency-shell__section-title {
  margin: 0;
  color: #f7f8fb;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.15;
}

.agency-shell__content {
  color: rgba(228, 232, 240, 0.82);
  line-height: 1.8;
}

.agency-shell__content p:last-child {
  margin-bottom: 0;
}

.agency-shell__meta-footer {
  margin-top: 18px;
  color: rgba(208, 214, 223, 0.64);
}

.agency-shell__details {
  display: grid;
  gap: 16px;
  margin: 0;
}

.agency-shell__details div {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.agency-shell__details div:first-child {
  padding-top: 0;
  border-top: 0;
}

.agency-shell__details dt {
  margin-bottom: 6px;
  color: rgba(208, 214, 223, 0.68);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agency-shell__details dd {
  margin: 0;
  color: #f3f6fb;
  line-height: 1.6;
  word-break: break-word;
}

.agency-shell__details a {
  color: #8ecbff;
}

.agency-shell__tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.agency-shell__tool-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
}

.agency-shell__tool-card .icon {
  color: #8ecbff;
  font-size: 1.05rem;
}

.agency-shell__tool-card strong {
  color: #f8f9fc;
  font-size: 1rem;
}

.agency-shell__tool-card span:last-child {
  color: rgba(228, 232, 240, 0.72);
  line-height: 1.6;
}

.agency-shell__admin-panel {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(142, 203, 255, 0.22);
  background: linear-gradient(180deg, rgba(20, 35, 54, 0.92), rgba(12, 23, 38, 0.98));
}

.agency-shell__admin-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.agency-shell__admin-summary strong {
  display: block;
  margin-bottom: 6px;
  color: #f7fbff;
}

.agency-shell__admin-summary p,
.agency-shell__manager-note {
  margin: 0;
  color: rgba(223, 230, 239, 0.8);
  line-height: 1.7;
}

.agency-shell__admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.agency-shell__admin-field {
  display: grid;
  gap: 8px;
}

.agency-shell__admin-field label {
  color: rgba(223, 230, 239, 0.82);
  font-size: 0.88rem;
}

.agency-shell__admin-field input,
.agency-shell__admin-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 10, 18, 0.58);
  color: #f7fbff;
}

.agency-shell__admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.agency-shell__admin-actions form {
  margin: 0;
}

.agency-shell__button--danger {
  border-color: rgba(255, 112, 112, 0.4);
  background: rgba(122, 18, 18, 0.28);
  color: #ffd5d5;
}

.agency-shell__status--active {
  background: rgba(70, 177, 117, 0.16);
  color: #a6efbf;
}

.agency-shell__manager-note {
  margin-bottom: 18px;
}

.agency-shell__roster .girl {
  margin-bottom: 18px;
}

.agency-shell__review-form {
  margin-bottom: 24px;
}

.agency-shell__review-list {
  display: grid;
  gap: 18px;
}

.agency-shell__review-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.agency-shell__review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.agency-shell__review-meta {
  display: grid;
  gap: 4px;
  color: rgba(211, 216, 226, 0.72);
  font-size: 0.92rem;
  text-align: right;
}

.agency-shell__review-copy {
  color: rgba(234, 237, 243, 0.82);
  line-height: 1.75;
}

@media (max-width: 1080px) {
  .agency-shell__hero,
  .agency-shell__grid {
    grid-template-columns: 1fr;
  }

  .agency-shell__hero-media,
  .agency-shell__hero-placeholder {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  .agency-shell__admin-summary {
    flex-direction: column;
  }

  .agency-shell__admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .agency-shell__admin-actions form,
  .agency-shell__admin-actions .agency-shell__button {
    width: 100%;
  }

  .agency-shell {
    padding-top: 22px;
  }

  .agency-shell__hero,
  .agency-shell__surface,
  .agency-shell__owner-tools {
    padding: 20px;
    border-radius: 22px;
  }

  .agency-shell__stats {
    grid-template-columns: 1fr;
  }

  .agency-shell__section-head,
  .agency-shell__review-head {
    flex-direction: column;
  }

  .agency-shell__review-meta {
    text-align: left;
  }

  .agency-shell__button {
    width: 100%;
  }
}
