.account-batch-panel {
  padding: 18px;
  overflow: hidden;
  border: 1px solid #272c37;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.055), transparent 34%), #11141b;
}

.account-batch-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 15px;
  border-bottom: 1px solid #252a35;
}

.account-batch-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: #f06464;
  background: rgba(239, 68, 68, 0.08);
}

.account-batch-heading-icon i {
  width: 18px;
  height: 18px;
}

.account-batch-heading-copy {
  min-width: 0;
}

.account-batch-heading-copy h3 {
  color: #f4f5f7;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-batch-heading-copy p {
  margin-top: 3px;
  color: #838d9b;
  font-size: 10px;
}

.account-batch-tag,
.account-batch-field label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 999px;
  color: #ef7777;
  background: rgba(239, 68, 68, 0.07);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
}

.account-batch-tag {
  min-height: 24px;
  margin-left: auto;
  padding: 0 9px;
}

.account-batch-grid {
  display: grid;
  grid-template-columns: minmax(300px, 2fr) minmax(170px, 1fr) minmax(150px, .9fr) auto;
  align-items: end;
  gap: 14px;
  padding-top: 16px;
}

.account-batch-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.account-batch-field label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 14px;
  color: #aab2bd;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .65px;
  text-transform: uppercase;
}

.account-batch-field label span {
  padding: 2px 6px;
  letter-spacing: 0;
}

.account-batch-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #2a303c;
  border-radius: 9px;
  outline: none;
  color: #f4f5f7;
  background: #0b0e14;
  font-family: Inter, sans-serif;
  font-size: 11px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.account-batch-input:focus {
  border-color: rgba(239, 68, 68, .72);
  background: #0e1118;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .09);
}

textarea.account-batch-input {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}

.account-batch-input::placeholder {
  color: #737e8d;
}

.account-batch-rank {
  color: #ff8585;
  font-weight: 600;
  cursor: pointer;
}

.account-batch-hint {
  color: #798493;
  font-size: 9px;
  line-height: 1.4;
}

.account-batch-action {
  display: flex;
  align-items: end;
}

.account-batch-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 176px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #ef4444;
  border-radius: 9px;
  color: #fff;
  background: #d92d32;
  box-shadow: 0 7px 18px rgba(220, 38, 38, .18);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.account-batch-submit:hover {
  transform: translateY(-1px);
  background: #eb3d43;
  box-shadow: 0 9px 22px rgba(220, 38, 38, .26);
}

.account-batch-submit i {
  width: 15px;
  height: 15px;
}

[data-theme="light"] .account-batch-panel {
  border-color: #d8dee7;
  background: linear-gradient(145deg, rgba(220, 38, 38, .045), transparent 38%), #f8fafc;
}

[data-theme="light"] .account-batch-heading {
  border-bottom-color: #e1e6ed;
}

[data-theme="light"] .account-batch-heading-copy h3 {
  color: #202630;
}

[data-theme="light"] .account-batch-heading-copy p,
[data-theme="light"] .account-batch-hint {
  color: #66717f;
}

[data-theme="light"] .account-batch-field label {
  color: #4c5867;
}

[data-theme="light"] .account-batch-input {
  border-color: #d6dde6;
  color: #202630;
  background: #fff;
}

[data-theme="light"] .account-batch-input:focus {
  background: #fff;
}

@media (max-width: 1100px) {
  .account-batch-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .account-batch-usernames {
    grid-column: 1 / -1;
  }

  .account-batch-action {
    grid-column: 1 / -1;
  }

  .account-batch-submit {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .account-batch-panel {
    padding: 14px;
  }

  .account-batch-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .account-batch-usernames,
  .account-batch-action {
    grid-column: auto;
  }

  .account-batch-tag {
    display: none;
  }
}

/* =========================================================
   RESPONSIVE GRID UNTUK MARKETPLACE DAN VAULT INVENTORY
========================================================= */
#product-grid,
#vault-inventory-grid,
#inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    align-items: stretch;
}

#product-grid > div,
#vault-inventory-grid > div,
#inventory-grid > div {
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
}

@media (max-width: 1280px) {
    #product-grid, #vault-inventory-grid, #inventory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    #product-grid, #vault-inventory-grid, #inventory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #product-grid, #vault-inventory-grid, #inventory-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
}

/* =========================================================
   RESPONSIVE CARD TABLE UNTUK LAYAR HP (< 768px)
   Mengubah tabel lebar jadi kartu vertikal yang mudah dibaca
========================================================= */
@media (max-width: 767px) {
  table.responsive-card-table {
    min-width: 0 !important;
    width: 100% !important;
  }

  table.responsive-card-table thead {
    display: none;
  }

  table.responsive-card-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  table.responsive-card-table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid #1e2230;
    border-radius: 14px;
    background: #131622;
  }

  table.responsive-card-table tbody tr td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 !important;
    border: 0 !important;
    text-align: right !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  table.responsive-card-table tbody tr td[colspan] {
    display: block;
    text-align: center !important;
    padding: 16px 8px !important;
  }

  table.responsive-card-table tbody tr td[data-label]::before {
    content: attr(data-label);
    flex-shrink: 0;
    color: #71717a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
  }

  [data-theme="light"] table.responsive-card-table tbody tr {
    border-color: #d0d7de;
    background: #ffffff;
  }
}

/* Eye toggle button pada input password */
.password-eye-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #778292;
  cursor: pointer;
}

.password-eye-btn:hover {
  color: #f3f4f6;
}

[data-theme="light"] .password-eye-btn:hover {
  color: #1f2328;
}
