.distribution-card {
  border-color: rgba(100, 116, 139, 0.45);
}

.distribution-card[data-category='booster_pack'],
.distribution-card[data-category='extra_booster'],
.distribution-card[data-category='premium_booster'] {
  border-color: rgba(245, 158, 11, 0.25);
}

.distribution-card[data-category='competition'] {
  border-color: rgba(96, 165, 250, 0.3);
}

.distribution-card[data-category='magazine'] {
  border-color: rgba(192, 132, 252, 0.3);
}

.distribution-card[data-category='promo'],
.distribution-card[data-category='promo_product'] {
  border-color: rgba(52, 211, 153, 0.25);
}

.auto-filled-field {
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.45);
  transition: box-shadow 0.3s ease;
}

.parallel-option,
.filter-field {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #334155;
  background: #0f172a;
}

.parallel-option:has(input:checked) {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
}

.filter-select {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  color: #f1f5f9;
}

.filter-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #f59e0b;
}

.filter-select-locked {
  opacity: 0.85;
  cursor: not-allowed;
  background: #172033;
  color: #cbd5e1;
}

.card-code-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .card-code-row {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.875rem;
  }
}

.card-code-field {
  flex: 1;
  min-width: 0;
}

.language-inline {
  width: 100%;
}

@media (min-width: 640px) {
  .language-inline {
    width: 9.5rem;
    flex-shrink: 0;
  }
}

.card-code-input,
.card-code-row .filter-select-compact {
  width: 100%;
  min-height: 2.875rem;
  box-sizing: border-box;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  color: #f1f5f9;
  font-size: 1rem;
  line-height: 1.25;
}

.card-code-input:focus,
.card-code-row .filter-select-compact:focus {
  outline: none;
  box-shadow: 0 0 0 2px #f59e0b;
}

.card-code-row .filter-select-compact {
  padding-right: 0.75rem;
  font-size: 0.9375rem;
}

.variant-badge-all {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.variant-badge-normal {
  background: #334155;
  color: #e2e8f0;
}

.variant-badge-parallel {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.variant-badge-sp {
  background: rgba(192, 132, 252, 0.2);
  color: #d8b4fe;
}

.variant-badge-manga {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.variant-badge-sec {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

.variant-badge-promo {
  background: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
}

.source-link {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.source-link:hover {
  color: #fde68a;
}

.variant-badge-graded {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

.variant-badge-ungraded {
  background: #334155;
  color: #e2e8f0;
}

.variant-badge-jp {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.card-image-frame {
  width: 11rem;
}

.card-image {
  width: 100%;
  aspect-ratio: 63 / 88;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 2px solid rgba(245, 158, 11, 0.35);
  background: #1e293b;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.zoomable-thumb {
  cursor: zoom-in;
}

.image-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.image-zoom-modal.hidden {
  display: none;
}

.image-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(4px);
}

.image-zoom-dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 52rem);
  width: 100%;
}

.image-zoom-img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.75rem;
  border: 2px solid rgba(245, 158, 11, 0.45);
  background: #1e293b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.image-zoom-caption {
  margin-top: 0.75rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

.image-zoom-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: #334155;
  color: #f8fafc;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.image-zoom-close:hover {
  background: #475569;
}

.facebook-tools-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  text-decoration: none;
}

.facebook-tools-btn:hover {
  background: #273449;
  border-color: rgba(147, 51, 234, 0.45);
  color: #f8fafc;
}

.facebook-login-btn {
  background: #1877f2;
  border: 1px solid #1877f2;
  color: #ffffff;
  text-decoration: none;
}

.facebook-login-btn:hover {
  background: #166fe5;
  border-color: #166fe5;
  color: #ffffff;
}

.file-input {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  color: #cbd5e1;
  font-size: 0.875rem;
}

.file-input::file-selector-button {
  margin-right: 0.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: #334155;
  color: #f8fafc;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.photos-drop-zone.is-dragover {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.05);
}

.photos-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.photo-preview-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #334155;
  background: #0f172a;
  aspect-ratio: 3 / 4;
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-preview-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
}

.photo-preview-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.2rem 0.35rem;
  font-size: 0.625rem;
  color: #e2e8f0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.92));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.labeled-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.75rem;
}

.labeled-photo-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.labeled-photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #1e293b;
}

.labeled-photo-save {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8fafc;
  background: #334155;
  border-radius: 0.5rem;
  padding: 0.45rem 0.5rem;
}

.labeled-photo-save:hover {
  background: #475569;
}

.post-template-output {
  width: 100%;
  box-sizing: border-box;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1rem;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
}

.admin-input {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  color: #f1f5f9;
}

.admin-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #f59e0b;
}

.admin-textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.45;
}

.source-badge-yuyu {
  background: #1d4ed8;
}

.source-badge-snkrdunk {
  background: #15803d;
}

.source-badge-facebook {
  background: #1e40af;
}

.grade-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  background: #334155;
  color: #e2e8f0;
}

.printing-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #334155;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.8125rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.printing-chip:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

.printing-chip-active {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}

.printing-chip-thumb {
  width: 1.75rem;
  height: 2.45rem;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #1e293b;
  cursor: zoom-in;
}
