.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(26, 107, 76, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(45, 138, 102, 0.12), transparent 28%),
    #f7faf8;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247, 250, 248, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-logo {
  width: 42px;
  height: 42px;
  border-radius: 0.6rem;
  object-fit: contain;
}

.admin-brand h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.admin-brand p {
  color: #64748b;
  font-size: 0.85rem;
}

.admin-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-nav {
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  border-radius: 0.6rem;
}

.admin-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.admin-stack {
  display: grid;
  gap: 1.5rem;
}

.admin-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgb(15 23 42 / 0.06);
}

.admin-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.admin-card-copy {
  color: #64748b;
  margin-bottom: 1.25rem;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

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

.admin-input-group {
  display: grid;
  gap: 0.45rem;
}

.admin-input-group label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}

.admin-input-group input,
.admin-input-group textarea,
.admin-input-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #d7e2dc;
  background: #ffffff;
  color: #0f172a;
}

.admin-input-group textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-input-group input:focus,
.admin-input-group textarea:focus,
.admin-input-group select:focus {
  outline: none;
  border-color: #1a6b4c;
  box-shadow: 0 0 0 4px rgb(26 107 76 / 0.1);
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-message {
  min-height: 1.25rem;
  font-size: 0.92rem;
  color: #1a6b4c;
}

.admin-service-list,
.admin-request-list,
.admin-newsletter-list {
  display: grid;
  gap: 0.9rem;
}

.admin-service-item,
.admin-request-item,
.admin-newsletter-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #f8fbf9;
  border: 1px solid #e1ebe5;
}

.admin-service-item strong,
.admin-request-item strong,
.admin-newsletter-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.admin-meta {
  color: #64748b;
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: #e8f5f0;
  color: #1a6b4c;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-inline-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid #d7e2dc;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
}

.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.btn-warning {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde68a;
}

.service-na {
  opacity: 0.6;
}

.btn-ghost:hover {
  transform: translateY(-1px);
}

.admin-attachment {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #d7e2dc;
}

.admin-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-weight: 600;
  color: #1a6b4c;
}

.admin-card-full {
  margin-top: 1.5rem;
}

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

.admin-softcopy-table-wrap {
  overflow-x: auto;
  margin-top: 1.25rem;
}

.admin-softcopy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-softcopy-table th {
  text-align: left;
  padding: 0.7rem 0.8rem;
  background: #f1f5f2;
  border-bottom: 2px solid #d7e2dc;
  font-weight: 700;
  font-size: 0.82rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.admin-softcopy-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #e1ebe5;
  vertical-align: middle;
}

.admin-softcopy-table tbody tr:hover {
  background: #f8fbf9;
}

.softcopy-qr-md {
  width: 90px;
  height: 90px;
  border-radius: 0.6rem;
  border: 1px solid #d7e2dc;
  background: #fff;
}

.softcopy-preview {
  width: 70px;
  height: 70px;
  border-radius: 0.5rem;
  border: 1px solid #d7e2dc;
  object-fit: cover;
  background: #f1f5f2;
}

.btn-sm {
  padding: 0.35rem 0.55rem;
  font-size: 0.76rem;
  border-radius: 0.5rem;
}

.softcopy-code {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(26, 107, 76, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(10, 22, 40, 0.16), transparent 28%),
    #f5f9f7;
}

.login-card {
  width: min(100%, 520px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 30px 60px rgb(15 23 42 / 0.12);
  position: relative;
  z-index: 2;
}

.login-panel-copy {
  color: #64748b;
  margin-bottom: 1rem;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.56);
  backdrop-filter: blur(10px);
}

.admin-modal-dialog {
  position: relative;
  width: min(100%, 560px);
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 30px 60px rgb(15 23 42 / 0.16);
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.admin-modal-dialog h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
}

.admin-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.4rem;
  line-height: 1;
}

.login-card h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.login-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.login-help {
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.shutter-loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(10, 22, 40, 0.34);
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.shutter-loader.is-hidden {
  opacity: 0;
}

.shutter-loader-core {
  position: relative;
  width: 220px;
  height: 220px;
}

.shutter-blade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a1628 0%, #1a6b4c 100%);
  clip-path: polygon(50% 50%, 100% 0, 100% 50%);
  transform-origin: center;
  animation: shutterPulse 1.6s ease-in-out infinite;
}

.shutter-blade:nth-child(1) { transform: rotate(0deg); animation-delay: 0s; }
.shutter-blade:nth-child(2) { transform: rotate(60deg); animation-delay: 0.1s; }
.shutter-blade:nth-child(3) { transform: rotate(120deg); animation-delay: 0.2s; }
.shutter-blade:nth-child(4) { transform: rotate(180deg); animation-delay: 0.3s; }
.shutter-blade:nth-child(5) { transform: rotate(240deg); animation-delay: 0.4s; }
.shutter-blade:nth-child(6) { transform: rotate(300deg); animation-delay: 0.5s; }

.shutter-center {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: #f8fbf9;
  box-shadow: inset 0 0 0 16px #0a1628;
}

@keyframes shutterPulse {
  0%, 100% { transform: scale(1) rotate(var(--rot, 0deg)); opacity: 0.98; }
  50% { transform: scale(0.74) rotate(calc(var(--rot, 0deg) + 12deg)); opacity: 0.74; }
}

.shutter-blade:nth-child(1) { --rot: 0deg; }
.shutter-blade:nth-child(2) { --rot: 60deg; }
.shutter-blade:nth-child(3) { --rot: 120deg; }
.shutter-blade:nth-child(4) { --rot: 180deg; }
.shutter-blade:nth-child(5) { --rot: 240deg; }
.shutter-blade:nth-child(6) { --rot: 300deg; }

.softcopy-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(26, 107, 76, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(10, 22, 40, 0.1), transparent 28%),
    #f5f9f7;
}

.softcopy-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  gap: 1.5rem;
}

.softcopy-hero {
  max-width: 760px;
}

.softcopy-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.softcopy-hero p {
  color: #64748b;
  font-size: 1.05rem;
}

.softcopy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.softcopy-scan-box {
  display: grid;
  gap: 0.8rem;
}

.softcopy-video {
  width: 100%;
  min-height: 260px;
  border-radius: 1.25rem;
  background: #0f172a;
  object-fit: cover;
}

.softcopy-result-card {
  display: none;
}

.softcopy-result-card.is-visible {
  display: block;
}

.softcopy-result-inner {
  display: grid;
  gap: 0.8rem;
}

.softcopy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: #1a6b4c;
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 960px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .admin-form-row-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-topbar-inner {
    flex-wrap: wrap;
  }
  .admin-nav {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .softcopy-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-row,
  .admin-form-row-4 {
    grid-template-columns: 1fr;
  }

  .admin-service-item,
  .admin-request-item,
  .admin-newsletter-item,
  .admin-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-inline-actions,
  .admin-actions {
    width: 100%;
  }

  .admin-softcopy-table {
    font-size: 0.78rem;
  }
}
