body { padding-bottom: 0; }

.jjs-admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(212, 167, 44, .13), transparent 26rem),
    var(--jjs-black);
}

.jjs-admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(14px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(212, 167, 44, .2);
  background: rgba(7, 7, 7, .95);
  backdrop-filter: blur(14px);
}

.jjs-admin-main { width: min(1180px, 100%); margin: 0 auto; padding: 20px 14px 40px; }
.jjs-admin-title h1 { margin: 0; font-size: clamp(24px, 5vw, 38px); }
.jjs-admin-title p { margin: 7px 0 0; color: var(--jjs-muted); font-size: 13px; }

.jjs-admin-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--jjs-line);
  border-radius: 18px;
  background: var(--jjs-panel);
}

.jjs-hidden { display: none !important; }

.jjs-login-card { width: min(470px, 100%); margin: 40px auto; }
.jjs-login-card h2 { margin-top: 0; }
.jjs-login-card p { color: var(--jjs-muted); font-size: 13px; line-height: 1.5; }
.jjs-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--jjs-muted); font-size: 11px; }
.jjs-divider::before, .jjs-divider::after { content: ""; flex: 1; height: 1px; background: var(--jjs-line); }

.jjs-form-grid { display: grid; gap: 12px; }
.jjs-form-grid.two { grid-template-columns: 1fr; }
.jjs-field label { display: block; margin-bottom: 6px; color: #ddd6c9; font-size: 11px; font-weight: 750; }
.jjs-field input, .jjs-field select, .jjs-field textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--jjs-line);
  border-radius: 11px;
  outline: none;
  background: #0d0d0d;
  color: var(--jjs-text);
}
.jjs-field textarea { min-height: 100px; resize: vertical; }
.jjs-field input:focus, .jjs-field select:focus, .jjs-field textarea:focus { border-color: var(--jjs-gold); box-shadow: 0 0 0 3px rgba(212,167,44,.1); }
.jjs-help { display: block; margin-top: 5px; color: var(--jjs-muted); font-size: 10px; }

.jjs-check-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.jjs-check { display: flex; align-items: center; gap: 8px; color: #ddd6c9; font-size: 12px; }
.jjs-check input { width: 18px; height: 18px; accent-color: var(--jjs-gold); }

.jjs-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jjs-full { width: 100%; }

.jjs-admin-tabs { display: flex; gap: 7px; overflow-x: auto; margin-top: 18px; padding-bottom: 3px; scrollbar-width: none; }
.jjs-admin-tabs::-webkit-scrollbar { display: none; }
.jjs-admin-tab { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--jjs-line); border-radius: 999px; background: var(--jjs-panel); color: var(--jjs-muted); font-size: 12px; font-weight: 750; }
.jjs-admin-tab.is-active { border-color: var(--jjs-gold); background: rgba(212,167,44,.12); color: var(--jjs-gold-light); }
.jjs-admin-section { display: none; }
.jjs-admin-section.is-active { display: block; }

.jjs-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 18px; }
.jjs-stat { padding: 14px; border: 1px solid var(--jjs-line); border-radius: 15px; background: var(--jjs-panel); }
.jjs-stat span { color: var(--jjs-muted); font-size: 10px; }
.jjs-stat strong { display: block; margin-top: 4px; color: var(--jjs-gold-light); font-size: 23px; }

.jjs-admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.jjs-admin-heading h2 { margin: 0; font-size: 19px; }
.jjs-admin-heading p { margin: 4px 0 0; color: var(--jjs-muted); font-size: 11px; }

.jjs-image-preview { width: 150px; aspect-ratio: 4 / 5; margin-top: 8px; overflow: hidden; display: grid; place-items: center; border: 1px dashed var(--jjs-line); border-radius: 13px; background: #0b0b0b; color: var(--jjs-muted); font-size: 11px; text-align: center; }
.jjs-image-preview img { width: 100%; height: 100%; object-fit: cover; }

.jjs-admin-product-list { display: grid; gap: 10px; }
.jjs-admin-product { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 11px; padding: 10px; border: 1px solid var(--jjs-line); border-radius: 15px; background: var(--jjs-panel); }
.jjs-admin-product img { width: 76px; height: 92px; object-fit: cover; border-radius: 10px; background: #222; }
.jjs-admin-product-main { min-width: 0; }
.jjs-admin-product-main h3 { margin: 0; font-size: 13px; }
.jjs-admin-product-main p { margin: 5px 0; color: var(--jjs-muted); font-size: 10px; }
.jjs-admin-product-price { color: var(--jjs-gold-light); font-weight: 900; }
.jjs-status-badge { display: inline-block; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 850; }
.jjs-status-badge.active { background: rgba(70,184,121,.15); color: #76d69d; }
.jjs-status-badge.inactive { background: rgba(229,87,87,.14); color: #ff9191; }
.jjs-admin-product-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 9px; border-top: 1px solid var(--jjs-line); }
.jjs-mini-button { min-height: 34px; padding: 7px 10px; border: 1px solid var(--jjs-line); border-radius: 9px; background: #0e0e0e; color: var(--jjs-text); font-size: 10px; font-weight: 750; }
.jjs-mini-button.gold { border-color: var(--jjs-gold); color: var(--jjs-gold-light); }
.jjs-mini-button.danger { border-color: rgba(229,87,87,.45); color: #ff8c8c; }

.jjs-access-list { display: grid; gap: 8px; margin-top: 14px; }
.jjs-access-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border: 1px solid var(--jjs-line); border-radius: 12px; background: #0d0d0d; }
.jjs-access-item strong { display: block; font-size: 12px; }
.jjs-access-item span { color: var(--jjs-muted); font-size: 10px; }

.jjs-notice { padding: 13px; border: 1px solid rgba(212,167,44,.35); border-radius: 13px; background: #151107; color: #ddd3bc; font-size: 12px; line-height: 1.5; }
.jjs-notice.error { border-color: rgba(229,87,87,.45); background: rgba(80,15,15,.25); }
.jjs-message { min-height: 20px; margin-top: 9px; font-size: 11px; font-weight: 750; }
.jjs-message.success { color: #75d39b; }
.jjs-message.error { color: #ff8e8e; }

@media (min-width: 700px) {
  .jjs-admin-main { padding-left: 22px; padding-right: 22px; }
  .jjs-form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .jjs-stats { grid-template-columns: repeat(4, 1fr); }
  .jjs-admin-product { grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; }
  .jjs-admin-product img { width: 90px; height: 108px; }
  .jjs-admin-product-actions { grid-column: auto; border-top: 0; padding-top: 0; flex-direction: column; }
}
