.page { padding: 56px 0 80px; }
.section-compact { padding: 28px 0; }
.library-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.library-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(13, 24, 33, 0.04);
}
.library-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}
.library-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.library-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #243648;
  font-weight: 600;
}
.library-list li:before {
  content: "▣";
  color: #ff7a00;
  font-size: 14px;
}
.library-badge {
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(255, 122, 0, 0.1);
  color: #b95a00;
  border: 1px solid rgba(255, 122, 0, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.library-cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.brand-card {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 18px rgba(15, 26, 34, 0.03);
}
.brand-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,122,0,0.12);
  color: #a35000;
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 16px;
}
.brand-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.brand-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
  color: #415264;
}
.brand-card li::before {
  content: "•";
  color: #ff7a00;
  margin-right: 8px;
}
.form-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.panel-card {
  background: linear-gradient(180deg, #fff, #fafcff);
  border: 1px solid #e7edf3;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 20px rgba(15,26,34,0.03);
}
.panel-badge {
  display: inline-block;
  background: rgba(255,122,0,0.08);
  color: #a55200;
  border: 1px solid rgba(255,122,0,0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.panel-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.panel-card p {
  color: #5e6b76;
  line-height: 1.7;
}
.panel-card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #233343;
  font-weight: 600;
}
.panel-card li::before {
  content: "▣";
  color: #ff7a00;
  margin-right: 8px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.tool-card {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 18px rgba(15, 26, 34, 0.03);
}
.tool-card span {
  display: inline-grid;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  place-items: center;
  background: rgba(255,122,0,0.1);
  font-size: 24px;
  margin-bottom: 12px;
}
.tool-card h4 {
  margin: 0 0 8px;
  font-size: 20px;
}
.tool-card p {
  margin: 0;
  color: #60707d;
  line-height: 1.7;
}
.section-tag {
  margin: 0 0 10px;
  color: #ff7a00;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-visual {
  position: relative;
  min-height: 420px;
}
.tech-card {
  position: absolute;
  right: 0;
  width: min(100%, 420px);
  background: rgba(13, 26, 37, 0.9);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(17, 25, 35, 0.08);
}
.main-card {
  top: 18px;
  padding: 28px 28px 22px;
}
.tech-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #fbbf7a;
  font-weight: 800;
  margin-bottom: 18px;
}
.main-card h3 {
  font-size: 28px;
  margin-bottom: 16px;
}
.main-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,0.8);
}
.main-card li::before {
  content: "•";
  color: #ff7a00;
  margin-right: 8px;
  font-size: 22px;
}
.tech-mini {
  position: absolute;
  right: 20px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255, 122, 0, 0.18);
  border: 1px solid rgba(255, 122, 0, 0.4);
  color: #ffd9b0;
}
.mini-top { top: 0; }
.mini-bottom { bottom: 22px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.category-library-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}
.legacy-library-shell { display: none; }
.category-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.category-admin-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.category-admin-card img,
.category-image-empty {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  background: #eef1f3;
}
.category-image-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.category-admin-card form { display: grid; gap: 12px; }
.category-admin-card input[type="file"] { max-width: 100%; }

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-top: 30px;
}
.payment-card {
  border: 1px solid #e4e8ec;
  border-radius: 18px;
  padding: 28px;
  background: #fff;
}
.payment-card h2 { color: #ff7a00; }
.payment-details { margin: 0; }
.payment-details div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid #edf0f2; }
.payment-details dt { color: #68737d; }
.payment-details dd { margin: 0; font-weight: 800; word-break: break-word; }
.transfer-note { color: #b95a00; font-size: 20px; }
.qr-card { display: grid; place-items: center; text-align: center; }
.qr-card img { max-width: 100%; height: auto; }
.cad-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 900px) {
  .library-shell, .library-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .payment-grid { grid-template-columns: 1fr; }
  .cad-actions { justify-content: flex-start; }
}
