#admin-ui {
  display: flex;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
}
.admin-sidebar {
  width: 240px;
  background: var(--espresso);
  color: var(--white);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: fixed;
  height: 100dvh;
  z-index: 1200;
}
.admin-logo {
  padding: 1.5rem 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  letter-spacing: -0.02em;
}
.admin-logo span {
  color: var(--accent);
  font-weight: 300;
}
.admin-menu {
  list-style: none;
  padding-top: 0.75rem;
  flex-grow: 1;
}
.admin-menu li {
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.55;
  touch-action: manipulation;
  font-weight: 500;
  font-size: 0.875rem;
}
.admin-menu li:hover,
.admin-menu li.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
}
.back-to-store {
  margin-top: auto;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
  font-weight: 500;
  font-size: 0.85rem;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.back-to-store:hover {
  background: rgba(255, 255, 255, 0.1);
}
.admin-main {
  flex-grow: 1;
  margin-left: 240px;
  padding: 2rem 2.5rem;
  width: calc(100% - 240px);
  transition: var(--transition);
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(44, 36, 32, 0.06);
  padding-bottom: 1rem;
}
.admin-header h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.5rem;
}
.admin-mobile-toggle {
  display: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--espresso-muted);
  padding: 0.25rem;
  touch-action: manipulation;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(44, 36, 32, 0.04);
}
.stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
}
.stat-info h4 {
  color: var(--warm-gray);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.stat-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--espresso);
}
.admin-panel {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  animation: fadeIn 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  border: 1px solid rgba(44, 36, 32, 0.04);
}
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  min-width: 550px;
  border-collapse: collapse;
  margin-top: 0.75rem;
}
th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(44, 36, 32, 0.04);
}
th {
  color: var(--warm-gray);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
td img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  vertical-align: middle;
  margin-right: 0.5rem;
}
.action-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.status {
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(90, 143, 106, 0.08);
  color: var(--success);
}
@media (max-width: 992px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.active { transform: translateX(0); }
  .admin-main { margin-left: 0; width: 100%; padding: 1.5rem; }
  .admin-mobile-toggle { display: block; }
}
@media (max-width: 768px) {
  .admin-panel { padding: 1.25rem; }
  .table-wrapper { overflow-x: visible; }
  table, thead, tbody, th, td, tr { display: block; }
  table { min-width: 100%; }
  thead tr { position: absolute; top: -9999px; left: -9999px; }
  tbody tr {
    background: var(--cream);
    border: 1px solid rgba(44, 36, 32, 0.04);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
  }
  td {
    border: none;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
  }
  td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 1rem;
  }
  td:first-child { border-bottom: 1px dashed rgba(44, 36, 32, 0.04); padding-bottom: 0.75rem; margin-bottom: 0.5rem; }
  td:last-child { padding-top: 0.75rem; border-top: 1px dashed rgba(44, 36, 32, 0.04); margin-top: 0.5rem; }
  .action-btn { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
}
