:root {
  --bg: #eef3f8;
  --panel: #ffffff;
  --panel-2: #f7fafc;
  --line: #d8e1ec;
  --text: #122033;
  --muted: #60748b;
  --accent: #0e7490;
  --accent-2: #155e75;
  --warn: #a16207;
  --danger: #991b1b;
  --ok: #166534;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(14, 116, 144, 0.08), transparent 24%),
    linear-gradient(180deg, #f4f8fb, var(--bg));
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.shell {
  width: min(1400px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.topbar, .panel, .hero-panel, .login-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 24px;
  margin-bottom: 18px;
}

.topbar h1, .section-head h2, .login-panel h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.topbar-actions, .card-actions, .toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.flash-success { border-color: rgba(22, 101, 52, 0.25); }
.flash-error { border-color: rgba(153, 27, 27, 0.25); }

.login-layout {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(520px, 100%);
  border-radius: 28px;
  padding: 28px;
}

.login-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-grid, .detail-grid {
  display: grid;
  gap: 18px;
}

.hero-panel {
  border-radius: 26px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hero-panel-control {
  grid-template-columns: repeat(6, 1fr);
}

.stat {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, var(--panel-2));
  border: 1px solid var(--line);
}

.stat span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat strong {
  font-size: 34px;
}

.panel {
  border-radius: 26px;
  padding: 20px;
}

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

.section-head-inline {
  align-items: center;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide {
  grid-column: 1 / -1;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

input, select, textarea, button {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.primary-btn, .ghost-btn, .warn-btn, .danger-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
}

.ghost-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.warn-btn {
  background: rgba(161, 98, 7, 0.12);
  color: var(--warn);
  border: 1px solid rgba(161, 98, 7, 0.18);
}

.danger-btn {
  background: rgba(153, 27, 27, 0.10);
  color: var(--danger);
  border: 1px solid rgba(153, 27, 27, 0.18);
}

.search-form {
  display: flex;
  gap: 10px;
  width: min(420px, 100%);
}

.client-list, .audit-list, .payments-table {
  display: grid;
  gap: 12px;
}

.request-list {
  display: grid;
  gap: 12px;
}

.cards-grid,
.entity-grid {
  display: grid;
  gap: 18px;
}

.cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entity-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--panel-2));
}

.entity-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.entity-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.request-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--panel-2));
}

.request-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.request-meta {
  margin: 10px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.client-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--panel-2));
}

.client-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.client-name {
  font-size: 20px;
  font-weight: 700;
}

.client-meta, .client-submeta, .note-line, .empty-state, .audit-row, .payment-row {
  color: var(--muted);
}

.client-submeta {
  margin: 10px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.note-line {
  margin: 0 0 12px;
  line-height: 1.6;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(14, 116, 144, 0.10);
  color: var(--accent);
}

.status-expired .status-pill,
.status-disabled .status-pill {
  background: rgba(153, 27, 27, 0.10);
  color: var(--danger);
}

.status-suspended .status-pill,
.status-pending .status-pill {
  background: rgba(161, 98, 7, 0.10);
  color: var(--warn);
}

.detail-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-detail {
  grid-column: 1 / -1;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 8px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: auto;
}

.audit-row, .payment-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.7fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.payment-row {
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 1fr 1.4fr;
}

.ok { color: var(--ok); }
.bad { color: var(--danger); }

.landing-shell {
  display: grid;
  gap: 26px;
}

.site-header,
.hero-stage,
.pricing-section,
.architecture-section,
.compliance-strip,
.request-panel-landing {
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid #e4ddd3;
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-radius: 26px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #0f5e77, #15435a);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.brand-name {
  font-size: 24px;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #124c67;
}

.site-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a,
.header-link,
.section-link {
  color: var(--text);
  text-decoration: none;
}

.site-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.header-btn {
  min-width: 180px;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 22px;
  border-radius: 34px;
  padding: 28px;
  background:
    radial-gradient(circle at 15% 12%, rgba(18, 76, 103, 0.05), transparent 22%),
    radial-gradient(circle at 82% 35%, rgba(187, 157, 124, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.97), rgba(249, 245, 238, 0.94));
  position: relative;
  overflow: hidden;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(188, 160, 132, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 22% 35%, rgba(188, 160, 132, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 48% 18%, rgba(188, 160, 132, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 60% 48%, rgba(188, 160, 132, 0.1) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 24%, rgba(188, 160, 132, 0.09) 24.3%, transparent 24.8%),
    linear-gradient(65deg, transparent 0 60%, rgba(188, 160, 132, 0.08) 60.3%, transparent 60.8%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-left,
.trust-card {
  position: relative;
  z-index: 1;
}

.section-kicker {
  color: #b3936f;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.hero-title {
  margin: 18px 0 0;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.93;
  font-weight: 500;
  color: #124c67;
}

.hero-title span {
  display: block;
}

.hero-accent {
  color: #b3936f;
}

.hero-description {
  max-width: 720px;
  margin: 24px 0 0;
  color: #5f6f80;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-btn {
  min-width: 220px;
  min-height: 56px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.mini-feature {
  display: flex;
  gap: 14px;
  align-items: start;
}

.mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #d9c7b2;
  color: #b3936f;
  background: rgba(255,255,255,0.55);
}

.mini-feature strong {
  display: block;
  margin-bottom: 8px;
}

.mini-feature p {
  margin: 0;
  color: #667788;
  line-height: 1.55;
}

.trust-card {
  border-radius: 28px;
  padding: 28px;
  background: rgba(255,255,255,0.66);
  border: 1px solid #dfd5c9;
  backdrop-filter: blur(3px);
}

.trust-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(188, 160, 132, 0.15);
  color: #124c67;
  font-size: 24px;
}

.trust-card h2,
.landing-head h2 {
  margin: 22px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 500;
  color: #163f58;
}

.trust-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.trust-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0f5e77;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
}

.trust-item p,
.trust-footer span,
.pricing-note,
.pricing-features,
.network-side ul,
.compliance-lead p {
  color: #677887;
  line-height: 1.6;
}

.trust-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e6ddd2;
}

.trust-brands {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #9aa5b1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}

.pricing-section,
.architecture-section {
  border-radius: 30px;
  padding: 28px;
}

.landing-head {
  align-items: center;
}

.section-link {
  color: #0f5e77;
  font-weight: 600;
}

.pricing-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.pricing-tile {
  position: relative;
  border-radius: 22px;
  border: 1px solid #e3d8ca;
  background: rgba(255,255,255,0.82);
  padding: 24px;
}

.pricing-tile-featured {
  border-color: #d9b98f;
  background:
    radial-gradient(circle at top right, rgba(188, 160, 132, 0.12), transparent 34%),
    rgba(255,255,255,0.94);
}

.pricing-ribbon {
  position: absolute;
  left: 20px;
  right: 20px;
  top: -10px;
  padding: 8px 14px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #e8d1b4, #d9b58b);
  color: #7f6545;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.pricing-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  color: #163f58;
}

.pricing-value {
  margin-top: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  color: #163f58;
}

.pricing-value span {
  font-size: 22px;
  color: #7f8d9b;
}

.pricing-features {
  margin: 20px 0 0;
  padding-left: 18px;
}

.pricing-features li + li {
  margin-top: 10px;
}

.pricing-action {
  width: 100%;
  margin-top: 26px;
  min-height: 54px;
}

.architecture-stage {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.network-side,
.small-node {
  border-radius: 20px;
  border: 1px solid #dfd5c8;
  background: rgba(255,255,255,0.85);
}

.network-side {
  padding: 22px;
}

.network-side strong {
  display: block;
  margin-bottom: 14px;
  color: #163f58;
}

.network-side ul {
  margin: 0;
  padding-left: 18px;
}

.network-side li + li {
  margin-top: 10px;
}

.small-node {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #5a6a79;
  padding: 10px;
}

.network-core {
  display: grid;
  place-items: center;
}

.core-sphere {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.96), rgba(235,242,246,0.92)),
    linear-gradient(180deg, #fff, #f0f6f9);
  border: 1px solid #d8dfe4;
  box-shadow: inset 0 0 0 16px rgba(18, 76, 103, 0.03);
}

.core-sphere strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  color: #163f58;
}

.core-sphere p {
  margin: 10px 0 0;
  color: #6b7c8b;
}

.compliance-strip {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
  border-radius: 28px;
  padding: 24px 28px;
}

.compliance-lead strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  color: #163f58;
}

.compliance-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.compliance-item {
  text-align: center;
  padding: 12px;
}

.compliance-item span {
  display: block;
  margin-bottom: 8px;
  color: #b3936f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.compliance-item small {
  color: #6e7f8e;
  line-height: 1.5;
}

.request-panel {
  padding: 24px;
}

.request-panel-landing {
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,251,245,0.96), rgba(247,243,236,0.98));
}

@media (max-width: 1100px) {
  .hero-panel,
  .hero-panel-control,
  .detail-grid,
  .detail-meta-grid,
  .form-grid-2,
  .marketing-hero,
  .value-strip,
  .pricing-grid,
  .notes-grid,
  .cards-grid,
  .entity-grid,
  .landing-hero,
  .landing-strip,
  .architecture-grid,
  .tariff-grid,
  .landing-details,
  .hero-points,
  .pricing-board,
  .architecture-stage,
  .compliance-strip,
  .compliance-items,
  .landing-shell,
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-nav,
  .site-actions {
    display: grid;
  }

  .hero-title {
    font-size: clamp(38px, 10vw, 58px);
  }

  .pricing-value {
    font-size: 42px;
  }

  .core-sphere {
    width: 220px;
    height: 220px;
  }
}
