.admin-body {
  min-height: 100vh;
  background: #1c1e22;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #16181c;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.admin-back {
  color: var(--muted);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
}

.admin-back:hover {
  color: #fff;
}

.admin-tabs {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #16181c;
  position: sticky;
  top: 65px;
  z-index: 9;
}

.admin-tabs a {
  white-space: nowrap;
  padding: 0.7rem 0.35rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #b7bdc7;
  font-weight: 700;
  font-size: 0.92rem;
}

.admin-tabs a.is-active,
.admin-tabs a:hover {
  color: #fff;
  border-bottom-color: #9fe7c2;
  background: transparent;
}

.admin-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem;
  display: grid;
  gap: 1.25rem;
}

.admin-panel[hidden] {
  display: none;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  padding: 0.5rem 0;
}

.admin-row-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-row-card:last-child {
  border-bottom: 0;
}

.admin-row-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-check {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  grid-template-columns: none !important;
}

.admin-check input {
  width: auto;
  min-height: auto;
}

.banner-upload {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.banner-upload strong {
  color: #fff;
  font-size: 1rem;
}

.banner-upload p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.banner-preview {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  border: 1px dashed rgba(0, 223, 255, 0.45);
  background: #12122b;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
}

.banner-preview.has-image {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.1);
}

.banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  background: var(--pink);
  color: #fff !important;
  font-weight: 800;
  cursor: pointer;
  grid-template-columns: none !important;
}

.banner-upload .btn-danger {
  width: fit-content;
}

.product-image-upload {
  display: grid;
  gap: 0.65rem;
}

.product-image-upload > strong {
  color: #fff;
}

.product-image-upload > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.product-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
}

.product-image-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px dashed rgba(0, 223, 255, 0.45);
  background:
    radial-gradient(circle at 25% 30%, rgba(0, 223, 255, 0.18), transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(0, 230, 118, 0.12), transparent 42%),
    #12122b;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
}

.product-image-preview.has-image {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.12);
}

.product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-preview .img-remove {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  font-size: 0.75rem;
  padding: 0.3rem;
}

.product-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.product-image-actions .file-btn {
  width: auto;
  min-width: 130px;
  padding-inline: 1rem;
}

.admin-card {
  background: #1a1a36;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-card-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.admin-card-head .btn-pink {
  width: auto;
  min-width: 120px;
  padding-inline: 1rem;
}

.admin-list {
  display: grid;
  gap: 1rem;
}

.admin-product {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.admin-product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-product label,
.admin-settings label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.admin-product input,
.admin-product select,
.admin-settings input {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #12122b;
  color: #fff;
  padding: 0.55rem 0.75rem;
  font: inherit;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.btn-danger {
  border: 1px solid rgba(255, 80, 100, 0.45);
  color: #ff6b8a;
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
}

.admin-settings {
  display: grid;
  gap: 0.85rem;
}

.admin-hint {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.prod-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.prod-view {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #2a2e35;
  color: #d5dbe3;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.prod-section-wrap {
  position: relative;
}

.prod-section-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  inset-inline-start: 0;
  z-index: 20;
  width: 240px;
  max-height: 360px;
  overflow: auto;
  padding: 0.4rem;
  border-radius: 12px;
  background: #2a2e35;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.prod-section-menu[hidden] {
  display: none;
}

.prod-section-menu p {
  margin: 0.55rem 0.45rem 0.2rem;
  color: #8d939e;
  font-size: 0.78rem;
  font-weight: 800;
}

.prod-section-menu button {
  width: 100%;
  text-align: right;
  border: 0;
  background: transparent;
  color: #e8edf3;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.prod-section-menu button:hover,
.prod-section-menu button.is-on {
  background: rgba(159, 231, 194, 0.14);
  color: #9fe7c2;
}

.prod-board {
  background: #2a2e35;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  min-height: 520px;
}

.prod-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.85rem;
  background: #2a2e35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prod-view-icons {
  display: flex;
  gap: 0.35rem;
}

.prod-view-icons button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #23262c;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 7px;
  cursor: pointer;
}

.prod-view-icons button:first-child {
  grid-template-columns: 1fr;
}

.prod-view-icons i {
  display: block;
  background: #8b939e;
  border-radius: 1px;
}

.prod-view-icons button.is-on {
  border-color: rgba(159, 231, 194, 0.7);
}

.prod-view-icons button.is-on i {
  background: #9fe7c2;
}

.prod-add {
  border: 0;
  border-radius: 999px;
  background: #9fe7c2;
  color: #163126;
  font: inherit;
  font-weight: 800;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
}

.prod-add:hover {
  background: #b7f0d2;
}

.prod-search input {
  width: min(320px, 50vw);
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #262a31;
  color: #fff;
  padding: 0.4rem 0.75rem;
  font: inherit;
}

.prod-search input::placeholder {
  color: #9aa0aa;
}

.prod-table-wrap {
  overflow-x: auto;
}

.prod-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.prod-table th,
.prod-table td {
  padding: 0.85rem 1rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.prod-table th {
  color: #c5cad3;
  font-size: 0.86rem;
  font-weight: 700;
  background: #2f343c;
}

.prod-table tbody tr {
  cursor: pointer;
}

.prod-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.prod-name {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.prod-name img,
.prod-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #1c2026;
  flex: 0 0 auto;
}

.prod-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.prod-status.is-on {
  color: #9fe7c2;
  background: rgba(159, 231, 194, 0.12);
}

.prod-status.is-off {
  color: #ffb4c2;
  background: rgba(255, 107, 138, 0.12);
}

.prod-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.prod-card {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #23262c;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.prod-card img,
.prod-card .prod-thumb {
  width: 100%;
  height: 110px;
}

.prod-card span {
  color: #9fe7c2;
  font-weight: 800;
}

.prod-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  text-align: center;
  color: #c5cad3;
  padding: 2rem 1rem;
}

.prod-empty p {
  margin: 0;
  color: #8d939e;
}

.prod-empty-icon {
  width: 54px;
  height: 64px;
  margin-bottom: 0.4rem;
  border: 2px solid #9fe7c2;
  border-radius: 8px;
  position: relative;
}

.prod-empty-icon::before,
.prod-empty-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #9fe7c2;
}

.prod-empty-icon::before {
  top: 18px;
}

.prod-empty-icon::after {
  top: 30px;
}

.prod-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
}

.prod-modal[hidden] {
  display: none;
}

.prod-modal-card {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #1a1a36;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
}

.prod-editor-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.prod-editor-actions .btn-pink,
.prod-editor-actions .btn-danger {
  width: auto;
  min-width: 120px;
}

.orders-board {
  display: grid;
  gap: 0.75rem;
}

.orders-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.orders-search {
  flex: 1;
}

.orders-search input {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #2a2e35;
  color: #fff;
  padding: 0.45rem 0.85rem;
  font: inherit;
}

.orders-search input::placeholder {
  color: #8d939e;
}

.orders-filter {
  border: 1px solid rgba(159, 231, 194, 0.45);
  background: transparent;
  color: #9fe7c2;
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.orders-layout {
  display: grid;
  grid-template-columns: 250px minmax(240px, 320px) 1fr;
  gap: 0.75rem;
  min-height: 560px;
}

.orders-side,
.orders-results,
.orders-detail {
  background: #2a2e35;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  min-height: 560px;
}

.orders-side {
  padding: 0.45rem;
  overflow: auto;
}

.orders-status {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: #e8edf3;
  border-radius: 8px;
  padding: 0.48rem 0.55rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.orders-status span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.orders-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.orders-status b {
  color: #9aa3af;
  font-weight: 700;
}

.orders-status.is-on,
.orders-status:hover {
  background: rgba(255, 255, 255, 0.05);
}

.orders-results,
.orders-detail {
  padding: 0.75rem;
}

.orders-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  text-align: center;
  color: #d5dbe3;
  padding: 2rem 1rem;
}

.orders-empty p {
  margin: 0;
  max-width: 240px;
  color: #8d939e;
  font-size: 0.86rem;
}

.orders-row {
  width: 100%;
  display: grid;
  gap: 0.15rem;
  text-align: right;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #fff;
  padding: 0.75rem 0.35rem;
  font: inherit;
  cursor: pointer;
}

.orders-row em {
  color: #9fe7c2;
  font-style: normal;
  font-size: 0.82rem;
}

.orders-row.is-on,
.orders-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.customer-board {
  display: grid;
  gap: 0.75rem;
}

.customer-card {
  background: #2a2e35;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  min-height: 220px;
  padding: 1.4rem 1.5rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.customer-card h2,
.customer-card p {
  margin: 0;
}

.customer-card h2 {
  font-size: 1.45rem;
}

.customer-card p {
  color: #b7bdc7;
}

.customer-card-empty {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.orders-detail-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.4rem;
}

.orders-detail-card h2,
.orders-detail-card p {
  margin: 0;
}

.orders-detail-card p {
  color: #b7bdc7;
}

.orders-detail-card label {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.6rem;
  color: #8d939e;
  font-weight: 700;
}

.orders-detail-card select {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c1e22;
  color: #fff;
  padding: 0.4rem 0.7rem;
  font: inherit;
}

@media (max-width: 980px) {
  .orders-layout {
    grid-template-columns: 1fr;
  }

  .orders-side,
  .orders-results,
  .orders-detail {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .admin-header {
    flex-wrap: wrap;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .prod-actions,
  .prod-toolbar {
    display: grid;
  }

  .prod-search input {
    width: 100%;
  }
}
