* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
  min-width: 0;
  -webkit-text-size-adjust: 100%;
}

button, input, select, textarea, .btn { touch-action: manipulation; }

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

.logo-img {
  height: 48px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
}

.logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
}

.summary-qty {
  align-items: center;
}

.summary-qty input {
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 1rem;
}

.summary-qty input:focus {
  outline: none;
  border-color: #2563eb;
}

h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.logo {
  color: #2563eb;
}

.tagline {
  color: #6b7280;
  font-size: 1rem;
}

.portal-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto 22px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
}

.portal-entry strong,
.portal-entry span { display: block; }
.portal-entry strong { color: #1e3a8a; }
.portal-entry span { margin-top: 2px; color: #64748b; font-size: .88rem; }
.btn-portal { flex: 0 0 auto; color: white; background: #0f766e; }
.btn-portal:hover { background: #115e59; }

.retrieve-link {
  text-align: center;
  margin-bottom: 24px;
}

.retrieve-link a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.retrieve-link a:hover {
  text-decoration: underline;
}

.stock-info {
  text-align: center;
  margin-bottom: 10px;
}

.stock-badge {
  background: #dcfce7;
  color: #166534;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.error-box {
  background: #fee2e2;
  color: #99171b;
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.success-box {
  background: #dcfce7;
  color: #166534;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.packages h2,
.recent-orders h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #1f2937;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.package-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid #e5e7eb;
  transition: transform 0.2s, border-color 0.2s;
}

.package-card:hover {
  transform: translateY(-2px);
  border-color: #2563eb;
}

.package-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.package-duration {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.package-price {
  font-size: 1.2rem;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  min-height: 44px;
  line-height: 24px;
  text-align: center;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  margin-top: 12px;
  text-align: center;
}

.btn-whatsapp:hover {
  background: #1da851;
}

.payment-fallback {
  display: block;
  margin: 8px 0 20px;
  color: #6b7280;
  font-size: 0.8rem;
  text-align: center;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-block {
  display: block;
  width: 100%;
}

.checkout-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: 0 auto;
}

.admin-login-card h2 { margin-bottom: 4px; }
.login-intro { color: #6b7280; margin-bottom: 24px; }
.back-link { display: block; margin-top: 20px; color: #2563eb; text-align: center; text-decoration: none; }
.logout-form { margin-top: 12px; }

.package-summary {
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.price {
  color: #2563eb;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  min-height: 48px;
}

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  font: inherit;
}

.form-group textarea {
  resize: vertical;
  font-family: 'Courier New', monospace;
}

.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.admin-section {
  margin-bottom: 30px;
}

.admin-section > h2,
.section-heading h2 {
  color: #1f2937;
}

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

.section-heading p {
  color: #6b7280;
}

.import-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.import-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.stock-count {
  display: inline-block;
  min-width: 32px;
  padding: 2px 8px;
  border-radius: 999px;
  text-align: center;
  color: #166534;
  background: #dcfce7;
  font-weight: 700;
}

.stock-count.stock-empty {
  color: #991b1b;
  background: #fee2e2;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.8rem;
}

.voucher-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  margin-bottom: 20px;
  color: #10b981;
}

.voucher-display {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 32px;
  margin: 30px 0;
}

.voucher-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 12px;
}

.voucher-code {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #1f2937;
  margin-bottom: 12px;
  word-break: break-all;
}

.voucher-value {
  font-size: 1.1rem;
  color: #2563eb;
  font-weight: 600;
}

.voucher-instructions {
  text-align: left;
  background: #eff6ff;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}

.voucher-instructions h3 {
  margin-bottom: 12px;
  color: #1e40af;
}

.voucher-instructions ol {
  padding-left: 20px;
}

.voucher-instructions li {
  margin-bottom: 8px;
  color: #374151;
}

.email-confirmation {
  background: #dcfce7;
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
}

.email-confirmation p {
  color: #166534;
  font-weight: 500;
}

.delivery-card { max-width: 560px; }
.delivery-card .success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #dcfce7; font-size: 1.8rem; font-weight: 800; }
.delivery-intro { margin: 6px 0 22px; color: #6b7280; }
.copy-details { display: grid; gap: 10px; margin: 22px 0; text-align: left; }
.copy-detail { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f8fafc; }
.copy-detail > div { min-width: 0; }
.copy-detail span { display: block; color: #6b7280; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.copy-detail strong { display: block; margin-top: 3px; color: #111827; overflow-wrap: anywhere; }
.copy-button { flex: 0 0 auto; min-width: 72px; min-height: 44px; padding: 8px 12px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font: inherit; font-weight: 700; cursor: pointer; }
.copy-button.copied, .copy-all-button.copied { background: #dcfce7; border-color: #86efac; color: #166534; }
.copy-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.portal-button { color: white; background: #2563eb; border-color: #2563eb; }
.portal-button:hover { background: #1d4ed8; }
.copy-all-button { margin-top: 14px; }
.privacy-note { margin-top: 14px; color: #6b7280; font-size: .82rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
}

.stat-label {
  color: #6b7280;
  margin-top: 4px;
}

.table-container {
  overflow-x: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  background: #f9fafb;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.orders-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.status-pending {
  color: #d97706;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.status-completed {
  color: #059669;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.status-failed {
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.status-expired, .status-used { color: #6b7280; background: #e5e7eb; padding: 2px 8px; border-radius: 4px; font-size: .85rem; }
.status-available { color: #059669; background: #dcfce7; padding: 2px 8px; border-radius: 4px; font-size: .85rem; }
.status-reserved { color: #d97706; background: #fef3c7; padding: 2px 8px; border-radius: 4px; font-size: .85rem; }
.status-sold { color: #2563eb; background: #dbeafe; padding: 2px 8px; border-radius: 4px; font-size: .85rem; }

.admin-body { background: #f3f4f6; }
.admin-shell { min-height: 100vh; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; display: flex; flex-direction: column; padding: 24px 16px; background: #111827; color: white; z-index: 10; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 24px; color: white; text-decoration: none; border-bottom: 1px solid #374151; }
.admin-brand .logo-img { height: 40px; margin: 0; }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { font-size: 1.1rem; }
.admin-brand small { color: #9ca3af; font-size: .75rem; }
.admin-nav { display: flex; flex-direction: column; gap: 5px; margin-top: 22px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; color: #d1d5db; text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.admin-nav a span { width: 18px; text-align: center; color: #93c5fd; }
.admin-nav a:hover { color: white; background: #1f2937; }
.admin-nav a.active { color: white; background: #2563eb; }
.admin-body .admin-main > .stats-grid,
.admin-body .admin-main > .admin-section,
.admin-body .admin-main > .sync-section { display: none; }
.admin-page-overview #overview { display: grid; }
.admin-page-whatsapp #whatsapp,
.admin-page-stock #stock,
.admin-page-import #import,
.admin-page-orders #orders,
.admin-page-vouchers #vouchers,
.admin-page-finance #finance,
.admin-page-system #system,
.admin-page-system .system-integration-section,
.admin-page-audit #audit { display: block; }
.sidebar-logout { margin-top: auto; }
.sidebar-logout button { width: 100%; padding: 10px; color: #fecaca; background: transparent; border: 1px solid #4b5563; border-radius: 8px; cursor: pointer; }
.sidebar-logout button:hover { background: #7f1d1d; color: white; }
.admin-main { margin-left: 250px; padding: 28px 32px; max-width: 1500px; }
.admin-page-header { display: flex; justify-content: space-between; align-items: center; text-align: left; margin-bottom: 28px; }
.admin-page-header h1 { color: #111827; margin: 0; }
.admin-page-header p { color: #6b7280; }
.eyebrow { color: #2563eb !important; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; }
.live-indicator { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: white; border-radius: 999px; color: #374151; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.live-indicator span { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }

@media (max-width: 850px) {
  .admin-sidebar { position: sticky; inset: 0 auto auto 0; width: auto; padding: 14px; max-width: 100vw; }
  .admin-brand { padding-bottom: 12px; }
  .admin-nav { flex-direction: row; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
  .admin-nav a { white-space: nowrap; }
  .sidebar-logout { position: absolute; top: 18px; right: 14px; }
  .sidebar-logout button { padding: 7px 10px; }
  .admin-main { margin-left: 0; padding: 20px 14px; }
  .admin-page-header { align-items: flex-start; }
  .live-indicator { display: none; }
}
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar input, .filter-bar select { min-width: 180px; flex: 1; padding: 10px; border: 2px solid #e5e7eb; border-radius: 8px; background: white; }
.warning-text { color: #b45309; margin-left: 5px; white-space: nowrap; }
.request-count { color: #92400e; background: #fef3c7; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.action-group { display: flex; gap: 6px; flex-wrap: wrap; }
.action-group form { margin: 0; }
.btn-small { padding: 6px 10px; font-size: .8rem; white-space: nowrap; margin-top: 0; }
.status-new { color: #b45309; background: #fef3c7; padding: 2px 8px; border-radius: 4px; font-size: .85rem; }
.status-released { color: #166534; background: #dcfce7; padding: 2px 8px; border-radius: 4px; font-size: .85rem; }
.status-paid { color: #166534; background: #dcfce7; padding: 2px 8px; border-radius: 4px; font-size: .85rem; }
.status-unpaid { color: #991b1b; background: #fee2e2; padding: 2px 8px; border-radius: 4px; font-size: .85rem; }
.status-hidden { color: #4b5563; background: #e5e7eb; padding: 2px 8px; border-radius: 4px; font-size: .85rem; }
.btn-paid { color: white; background: #059669; }
.btn-paid:hover { background: #047857; }
.payment-time { display: block; color: #6b7280; margin-top: 5px; white-space: nowrap; }
.released-code { margin-top: 6px; color: #1f2937; word-break: break-all; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; color: #6b7280; }
.pagination a { color: #2563eb; text-decoration: none; font-weight: 600; }
.action-row td { background: #f9fafb; padding-top: 6px; padding-bottom: 6px; }
.inline-admin-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.inline-admin-form input, .inline-admin-form select { padding: 8px; border: 1px solid #d1d5db; border-radius: 6px; }
.admin-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.admin-two-column .import-section { margin: 0; }
.admin-two-column h3 { margin-bottom: 16px; }
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(140px,1fr)); gap: 14px; margin-bottom: 18px; }
.health-value { font-size: 1.3rem; font-weight: 700; text-transform: capitalize; }
.health-good { color: #059669; }
.health-bad { color: #dc2626; }
.system-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

@media (max-width: 850px) {
  .admin-two-column, .health-grid { grid-template-columns: 1fr; }
}

.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.no-data {
  text-align: center;
  color: #6b7280;
  padding: 40px;
}

footer {
  text-align: center;
  margin-top: 30px;
  color: #9ca3af;
  font-size: 0.85rem;
}

footer code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

.sync-section {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
}

.sync-section h2 {
  margin-bottom: 12px;
}

.sync-section p {
  color: #6b7280;
  margin-bottom: 12px;
}

.sync-stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.sync-stats-table th,
.sync-stats-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.sync-stats-table th {
  background: #f3f4f6;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #374151;
}

@media (max-width: 600px) {
  .container {
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  header { margin-bottom: 20px; }
  header h1 { display: flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.15; }

  h1 {
    font-size: 1.5rem;
  }

  .logo-img { height: 38px; margin-right: 0; flex: 0 0 auto; }
  .logo-text { max-width: calc(100vw - 86px); font-size: clamp(1rem, 5vw, 1.35rem); text-align: left; overflow-wrap: anywhere; }
  .tagline { margin-top: 8px; font-size: .9rem; }
  .portal-entry { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; text-align: center; }
  .portal-entry .btn { width: 100%; min-height: 48px; padding: 12px 14px; }
  .retrieve-link { display: flex; justify-content: center; gap: 8px 14px; flex-wrap: wrap; margin: 16px 0 22px; line-height: 1.35; }
  .stock-badge { display: inline-block; padding: 6px 12px; }
  .packages h2, .recent-orders h2 { font-size: 1.25rem; margin-bottom: 14px; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
  .package-card { display: flex; flex-direction: column; padding: 16px 12px; border-radius: 10px; }
  .package-card:hover { transform: none; }
  .package-value { font-size: 1.25rem; }
  .package-duration { flex: 1; margin-bottom: 8px; line-height: 1.35; }
  .package-price { font-size: 1rem; margin-bottom: 12px; }
  .package-card .btn { width: 100%; padding: 10px 8px; }

  .checkout-card {
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
  }

  .package-summary { margin-bottom: 20px; }
  .package-summary h2 { font-size: 1.25rem; margin-bottom: 14px; }
  .summary-row { align-items: flex-start; gap: 14px; margin-bottom: 10px; font-size: .96rem; }
  .summary-row > span { flex: 1 1 48%; color: #6b7280; }
  .summary-row > strong, .summary-row > input { flex: 0 1 52%; min-width: 0; text-align: right; }
  .summary-qty input { width: 72px !important; min-height: 44px; font-size: 16px; }
  .form-group { margin-bottom: 18px; }
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
  .btn-block { min-height: 48px; padding: 12px 14px; }
  .payment-fallback { padding: 0 8px; line-height: 1.4; }

  .voucher-card {
    padding: 22px 16px;
  }

  .voucher-code {
    font-size: clamp(1.05rem, 6vw, 1.5rem);
    letter-spacing: 2px;
  }

  .voucher-display { padding: 20px 12px; margin: 22px 0; }
  .voucher-instructions { padding: 16px; }
  .delivery-card { padding: 22px 14px; }
  .copy-detail { padding: 12px; }
  .copy-detail strong { font-size: .9rem; }
  .copy-detail { align-items: stretch; flex-direction: column; }
  .copy-actions { display: grid; grid-template-columns: 1fr; }
  .copy-actions .copy-button { width: 100%; }

  .import-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-sidebar { padding: 10px 10px 8px; box-shadow: 0 4px 16px rgba(17, 24, 39, .18); }
  .admin-brand { min-height: 42px; padding: 0 78px 8px 4px; border-bottom: 0; }
  .admin-brand .logo-img { height: 34px; }
  .admin-brand strong { font-size: 1rem; }
  .admin-brand small { font-size: .68rem; }
  .sidebar-logout { top: 12px; right: 10px; }
  .sidebar-logout button { min-height: 38px; }
  .admin-nav { gap: 6px; margin-top: 0; padding: 2px 0 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav a { min-height: 42px; padding: 8px 10px; font-size: .82rem; scroll-snap-align: center; }
  .admin-nav a span { width: 16px; }
  .admin-main { padding: 18px 12px 28px; }
  .admin-page-header { margin-bottom: 18px; }
  .admin-page-header h1 { font-size: 1.45rem; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 16px 10px; }
  .stat-value { font-size: 1.35rem; }
  .stat-label { font-size: .82rem; line-height: 1.35; }
  .admin-body .table-container { margin: 0; overflow: visible; background: transparent; border-radius: 0; box-shadow: none; }
  .admin-body .orders-table, .admin-body .sync-stats-table { display: block; min-width: 0; }
  .admin-body .orders-table thead, .admin-body .sync-stats-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .admin-body .orders-table tbody, .admin-body .sync-stats-table tbody { display: grid; gap: 12px; }
  .admin-body .orders-table tr, .admin-body .sync-stats-table tr { display: block; padding: 8px 0; background: white; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
  .admin-body .orders-table td, .admin-body .sync-stats-table td { display: grid; grid-template-columns: minmax(92px, 38%) minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 12px; border: 0; text-align: right; overflow-wrap: anywhere; }
  .admin-body .orders-table td::before, .admin-body .sync-stats-table td::before { content: attr(data-label); color: #64748b; font-size: .75rem; font-weight: 700; letter-spacing: .04em; line-height: 1.45; text-align: left; text-transform: uppercase; }
  .admin-body .orders-table td[colspan], .admin-body .sync-stats-table td[colspan] { display: block; text-align: left; }
  .admin-body .orders-table td[colspan]::before, .admin-body .sync-stats-table td[colspan]::before { display: none; }
  .admin-body .orders-table tr.action-row { margin-top: -13px; padding: 0; border-top: 0; border-radius: 0 0 12px 12px; background: #f8fafc; box-shadow: 0 3px 8px rgba(15, 23, 42, .05); }
  .admin-body .orders-table tr.action-row td { padding: 10px 12px; }
  .admin-body .orders-table details summary { min-height: 40px; padding: 8px 0; cursor: pointer; font-weight: 600; color: #2563eb; }
  .admin-body .no-data { padding: 28px 16px !important; text-align: center !important; }
  .admin-body .mono { font-size: .8rem; }
  .filter-bar { display: grid; grid-template-columns: 1fr; }
  .filter-bar input, .filter-bar select { width: 100%; min-width: 0; min-height: 46px; font-size: 16px; }
  .filter-bar .btn { width: 100%; min-height: 46px; }
  .import-section, .sync-section { padding: 18px 14px; }
  .inline-admin-form { align-items: stretch; }
  .inline-admin-form input, .inline-admin-form select, .inline-admin-form .btn { width: 100%; min-height: 44px; }
  .action-group { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .action-group form { width: 100%; }
  .action-group .btn { width: 100%; min-height: 44px; white-space: normal; }
  .action-group > :only-child { grid-column: 1 / -1; }
  .section-heading > .btn, .import-section > .btn { width: 100%; }
  .system-actions, .system-actions form { width: 100%; }
  .system-actions .btn { width: 100%; min-height: 48px; }
  .request-count { align-self: stretch; text-align: center; }
  .pagination { justify-content: space-between; gap: 8px; }
  .pagination a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; background: white; border-radius: 8px; }
  footer { margin-top: 20px; padding-bottom: env(safe-area-inset-bottom); }
}

@media (max-width: 360px) {
  .package-grid, .stats-grid { grid-template-columns: 1fr; }
  .summary-row { gap: 8px; }
}
