/* Pyrk manageable footer */
.pyrk-footer {
  margin-top: 56px;
  color: #dbe8f7;
  background:
    radial-gradient(circle at 12% 20%, rgba(34, 197, 94, .24), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #16233a 50%, #0b1220 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -18px 48px rgba(15, 23, 42, .08);
}

.pyrk-footer-shell {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 32px;
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) minmax(180px, .7fr) minmax(210px, .8fr) minmax(190px, .7fr);
  gap: 28px;
}

.pyrk-footer-brand p,
.pyrk-footer-col span,
.pyrk-footer-col a,
.pyrk-footer-bottom,
.pyrk-footer-note {
  color: rgba(219, 232, 247, .82);
}

.pyrk-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pyrk-footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #16a34a, #059669);
  color: #fff;
  font-weight: 900;
  letter-spacing: .06em;
  box-shadow: 0 18px 34px rgba(5, 150, 105, .28);
}

.pyrk-footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.1;
}

.pyrk-footer-brand small {
  display: block;
  color: #94f0bd;
  margin-top: 4px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
}

.pyrk-footer-brand p {
  max-width: 620px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.pyrk-footer-note {
  border: 1px solid rgba(148, 240, 189, .18);
  background: rgba(255, 255, 255, .06);
  border-radius: 18px;
  padding: 12px 14px;
  font-weight: 700;
}

.pyrk-footer-col h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.pyrk-footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pyrk-footer-col a {
  text-decoration: none;
  font-weight: 750;
  transition: color .18s ease, transform .18s ease;
}

.pyrk-footer-col a:hover {
  color: #86efac;
  transform: translateX(3px);
}

.pyrk-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pyrk-footer-socials a,
.pyrk-footer-manage {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.06);
}

.pyrk-footer-manage {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  color: #bbf7d0 !important;
}

.pyrk-footer-bottom {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .92rem;
}

.footer-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: start;
}

.footer-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.footer-admin-form .full { grid-column: 1 / -1; }
.footer-admin-form label { display: grid; gap: 7px; font-weight: 800; color: #172033; }
.footer-admin-form input,
.footer-admin-form textarea {
  width: 100%;
}
.footer-admin-form textarea { min-height: 120px; resize: vertical; }

.footer-toggle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.footer-toggle-card {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  border: 1px solid #dbe4ef;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
}

.footer-preview-card {
  position: sticky;
  top: 94px;
  overflow: hidden;
}

.footer-preview-inner {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  background: #fff;
}

.footer-preview-inner .pyrk-footer {
  margin: 0;
  border-radius: 0;
}

.footer-preview-inner .pyrk-footer-shell,
.footer-preview-inner .pyrk-footer-bottom {
  width: calc(100% - 32px);
}

.footer-preview-inner .pyrk-footer-shell {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 26px 0 20px;
}

.footer-preview-inner .pyrk-footer-bottom {
  display: grid;
}

@media (max-width: 1080px) {
  .pyrk-footer-shell { grid-template-columns: 1fr 1fr; }
  .footer-admin-grid { grid-template-columns: 1fr; }
  .footer-preview-card { position: static; }
}

@media (max-width: 720px) {
  .pyrk-footer-shell,
  .pyrk-footer-bottom { width: min(100% - 28px, 1500px); }
  .pyrk-footer-shell { grid-template-columns: 1fr; padding-top: 32px; }
  .pyrk-footer-bottom { display: grid; }
  .footer-admin-form { grid-template-columns: 1fr; }
  .footer-toggle-grid { grid-template-columns: 1fr 1fr; }
}

/* Header branding management preview */
.brand-preview-box {
  border: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(180deg, rgba(248, 250, 252, .98), rgba(255, 255, 255, .98));
  border-radius: 20px;
  padding: 16px;
}
.brand-preview-title {
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #64748b;
  margin-bottom: 10px;
}
.brand-preview-row,
.header-preview-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-preview-mark,
.header-preview-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #16a34a, #059669);
  color: #fff;
  font-weight: 950;
  letter-spacing: .06em;
  box-shadow: 0 18px 34px rgba(5, 150, 105, .22);
}
.brand-preview-mark img,
.header-preview-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.brand-preview-row strong,
.header-preview-brand strong {
  display: block;
  color: #0f172a;
  line-height: 1.1;
}
.brand-preview-row small,
.header-preview-brand small {
  display: block;
  color: #64748b;
  margin-top: 3px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
}
.brand-remove-logo {
  margin-top: 14px;
}
.header-preview-card {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.header-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.header-preview-bar.client-preview {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.user-chip.mini {
  transform: scale(.86);
  transform-origin: right center;
}
@media (max-width: 760px) {
  .header-preview-bar { align-items: flex-start; flex-direction: column; }
}
