:root {
  --bg-primary: #050505;
  --bg-secondary: #0d0d0d;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-elevated: #1a1a1a;
  --bg-input: #141414;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-tertiary: #555555;
  --border: #1e1e1e;
  --border-light: #2a2a2a;
  --accent: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.07);
  --success: #00d26a;
  --danger: #ff4757;
  --warning: #ffa502;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --transition: 0.2s var(--ease);
  --transition-slow: 0.35s var(--ease);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
}

body {
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

.skeleton {
  background: linear-gradient(110deg, #151515 30%, #1f1f1f 50%, #151515 70%);
  background-size: 300% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.5px;
}

.header-logo {
  display: flex;
  align-items: center;
  opacity: 0.9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  opacity: 0.8;
}

.header-btn:hover {
  opacity: 1;
  background: var(--accent-dim);
}

.search-bar {
  position: sticky;
  top: 53px;
  z-index: 99;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s var(--ease);
  opacity: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
}

.search-bar.active {
  max-height: 60px;
  padding: 0 20px 12px;
  opacity: 1;
}

.search-bar input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}

.search-bar input:focus {
  border-color: var(--border-light);
}

.search-bar input::placeholder {
  color: var(--text-tertiary);
}

.main-content {
  padding-bottom: calc(80px + var(--safe-bottom));
  min-height: calc(100vh - 54px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.page {
  padding: 16px 16px 24px;
  animation: pageIn 0.3s var(--ease);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + var(--safe-bottom));
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  position: relative;
}

.nav-item span {
  font-size: 10px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-item svg {
  transition: all var(--transition);
}

.nav-item.active {
  color: var(--text-primary);
}

.nav-item.active svg {
  transform: scale(1.1);
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-icon-wrapper {
  position: relative;
  display: flex;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 9px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badgePop 0.3s var(--ease);
}

@keyframes badgePop {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.chip.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.chip:active {
  transform: scale(0.95);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  animation: cardIn 0.35s var(--ease) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.product-card:active {
  transform: scale(0.98);
}

.product-card.out-of-stock {
  opacity: 0.5;
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  opacity: 0.4;
}

.out-of-stock-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
}

.currency {
  font-weight: 400;
  opacity: 0.6;
  font-size: 13px;
}

.add-to-cart-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.add-to-cart-btn:active {
  transform: scale(0.85);
}

.add-to-cart-btn.added {
  background: var(--success);
  color: #fff;
}

.product-detail-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 1;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-detail-category {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.product-detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-detail-price {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

.detail-qty-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.detail-qty-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-input);
  border-radius: 100px;
  padding: 6px 16px;
}

.detail-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.detail-qty-btn:active {
  transform: scale(0.9);
  background: var(--border-light);
}

.detail-qty-value {
  font-size: 18px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s var(--ease);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  animation: slideUp 0.35s var(--ease);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.toast-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  animation: toastIn 0.35s var(--ease);
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: var(--danger);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  gap: 8px;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty-icon {
  margin-bottom: 16px;
  color: var(--text-tertiary);
  opacity: 0.5;
}

.cart-empty-icon svg {
  width: 48px;
  height: 48px;
}

.cart-empty-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-empty-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

@keyframes itemSlideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  transition: all var(--transition);
}

.cart-item-image {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.qty-btn:active {
  transform: scale(0.9);
  background: var(--bg-elevated);
}

.qty-value {
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.cart-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-discount {
  color: var(--success);
  font-weight: 600;
}

.promo-input-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.promo-input-group input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  text-transform: uppercase;
  transition: border-color var(--transition);
}

.promo-input-group input:focus {
  border-color: var(--border-light);
}

.promo-apply-btn {
  padding: 10px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.promo-apply-btn:hover {
  background: var(--border-light);
}

.profile-card {
  text-align: center;
  padding: 40px 20px 32px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  transition: all var(--transition);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-tertiary);
}

.profile-avatar-placeholder svg {
  width: 36px;
  height: 36px;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-username {
  font-size: 14px;
  color: var(--text-secondary);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-subtitle {
  font-weight: 400;
  opacity: 0.6;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 8px;
}

.order-card:hover {
  border-color: var(--border-light);
}

.order-card:active {
  transform: scale(0.98);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-number {
  font-weight: 600;
  font-size: 14px;
}

.order-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-status.status-pending {
  background: rgba(255, 165, 2, 0.15);
  color: var(--warning);
}

.order-status.status-completed {
  background: rgba(0, 210, 106, 0.15);
  color: var(--success);
}

.order-status.status-cancelled {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
}

.order-details {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.order-date {
  color: var(--text-secondary);
}

.order-total {
  font-weight: 600;
}

.order-promo {
  font-size: 12px;
  color: var(--success);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-detail-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.order-detail-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
}

.order-detail-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.order-items-list {
  margin-bottom: 16px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.order-item-name {
  flex: 1;
  font-size: 14px;
}

.order-item-qty {
  font-size: 13px;
  color: var(--text-secondary);
}

.order-item-price {
  font-size: 14px;
  font-weight: 600;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.order-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.admin-tab svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.admin-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tab.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.admin-tab:active {
  transform: scale(0.97);
}

.admin-fade-in {
  animation: adminFade 0.3s var(--ease);
}

@keyframes adminFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--border-light);
}

.stat-icon {
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.stats-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.stats-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.stats-section-title svg {
  width: 16px;
  height: 16px;
}

.stats-table {
  display: flex;
  flex-direction: column;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.stats-row:last-child {
  border-bottom: none;
}

.stats-row-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.stats-row-value {
  font-size: 13px;
  font-weight: 600;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: all var(--transition);
}

.admin-list-item.dragging {
  opacity: 0.5;
  border-color: var(--border-light);
}

.admin-list-item.drag-over {
  border-color: var(--text-primary);
  background: var(--bg-card-hover);
}

.drag-handle {
  cursor: grab;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color var(--transition);
}

.drag-handle:hover {
  color: var(--text-secondary);
}

.drag-handle:active {
  cursor: grabbing;
}

.item-content {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
}

.item-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.item-actions {
  display: flex;
  gap: 4px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.icon-btn:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.icon-btn:active {
  transform: scale(0.9);
}

.icon-btn.danger:hover {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
}

.admin-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}

.admin-add-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--accent-dim);
}

.admin-add-btn:active {
  transform: scale(0.98);
}

.admin-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
  transition: all var(--transition);
}

.admin-product-card:hover {
  border-color: var(--border-light);
}

.admin-product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-info {
  flex: 1;
  min-width: 0;
}

.admin-product-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-product-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.admin-product-price {
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.admin-product-actions {
  display: flex;
  gap: 4px;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: all var(--transition);
}

.promo-card:hover {
  border-color: var(--border-light);
}

.promo-card.inactive {
  opacity: 0.5;
}

.promo-code-display {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 6px;
}

.promo-discount {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 2px;
}

.promo-uses {
  font-size: 11px;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-help {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

.form-help code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  font-size: 11px;
  color: var(--accent);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--border-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--text-primary);
  cursor: pointer;
}

.form-check-label {
  font-size: 14px;
}

.image-upload-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.image-upload-tab {
  flex: 1;
  padding: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}

.image-upload-tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.image-upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.image-upload-area:hover {
  border-color: var(--text-secondary);
  background: var(--accent-dim);
}

.image-upload-area.has-image {
  padding: 0;
  border-style: solid;
  max-height: 200px;
  overflow: hidden;
}

.image-upload-area.has-image img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
}

.image-upload-icon {
  margin-bottom: 8px;
  color: var(--text-tertiary);
}

.image-upload-text {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.image-upload-sub {
  font-size: 11px;
  color: var(--text-tertiary);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
}

.empty-state-full {
  text-align: center;
  padding: 80px 20px;
  width: 100%;
}

.empty-state-icon {
  margin-bottom: 16px;
  color: var(--text-tertiary);
  opacity: 0.4;
}

.empty-state-icon svg {
  width: 48px;
  height: 48px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 520px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .modal-content {
    border-radius: 24px;
    margin: auto 16px;
    max-height: 85vh;
  }
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

.admin-badge svg {
  width: 12px;
  height: 12px;
}

.admin-badge.super {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.3);
}

.order-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 8px;
  transition: all var(--transition);
}

.order-admin-card:hover {
  border-color: var(--border-light);
}

.order-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.order-admin-number {
  font-size: 14px;
  font-weight: 700;
}

.order-admin-customer {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.order-admin-customer svg {
  width: 14px;
  height: 14px;
}

.order-admin-items {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.order-admin-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.order-admin-date {
  color: var(--text-secondary);
}

.order-admin-total {
  font-weight: 700;
  flex: 1;
}

.order-admin-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.icon-btn.success {
  color: var(--success);
}

.icon-btn.success:hover {
  background: rgba(0, 210, 106, 0.15);
}

.admin-add-admin-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.broadcast-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.bc-tool-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.bc-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.bc-tool-btn:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.92);
}

.bc-tool-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

.broadcast-toolbar+.form-textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.bc-emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.bc-emoji-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
}

.bc-emoji-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.2);
}

.bc-preview-wrapper {
  background: #0e1621;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  min-height: 80px;
}

.bc-preview-empty {
  color: #555;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.bc-msg-bubble {
  background: #182533;
  border-radius: 4px 12px 12px 12px;
  max-width: 85%;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bc-msg-photo img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  border-radius: 4px 12px 0 0;
  background: #0a0f16;
}

.bc-msg-text {
  padding: 8px 12px 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #e8e8e8;
  word-break: break-word;
}

.bc-msg-text b {
  font-weight: 700;
}

.bc-msg-text i {
  font-style: italic;
}

.bc-msg-text u {
  text-decoration: underline;
}

.bc-msg-text s {
  text-decoration: line-through;
  color: #aaa;
}

.bc-msg-text code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
}

.bc-msg-text a {
  color: #5ebbf7;
  text-decoration: none;
}

.bc-remove-photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: #f44;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.bc-remove-photo-btn:hover {
  background: rgba(255, 68, 68, 0.2);
}

.bc-remove-photo-btn svg {
  width: 14px;
  height: 14px;
}

.bc-format-hint {
  font-size: 11px;
  color: #555;
  margin-top: 6px;
  line-height: 1.6;
}

.bc-textarea {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}


.case-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.case-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.case-card:active {
  transform: scale(0.98);
}

.case-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.case-card:hover .case-image img {
  transform: scale(1.05);
}

.case-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  opacity: 0.4;
}

.case-image-placeholder svg {
  width: 48px;
  height: 48px;
}

.case-info {
  padding: 12px;
}

.case-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.case-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.case-price {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stars-icon {
  font-size: 14px;
}

.case-items-count {
  font-size: 11px;
  color: var(--text-secondary);
}

.case-detail {
  display: flex;
  flex-direction: column;
}

.case-detail-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.case-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.case-detail-price {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.case-items-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.case-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.case-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.case-item-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.case-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  opacity: 0.4;
}

.case-item-info {
  flex: 1;
  min-width: 0;
}

.case-item-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-item-chance {
  font-size: 12px;
  color: var(--success);
  margin-top: 2px;
}

.case-opening-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.case-opening-roulette {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 150px;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 2px solid var(--border-light);
}

.roulette-items {
  display: flex;
  gap: 10px;
  position: absolute;
  left: 0;
  top: 50%;
  will-change: transform;
}

.roulette-item {
  flex-shrink: 0;
  width: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.roulette-indicator {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.roulette-item-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.roulette-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roulette-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  opacity: 0.4;
}

.roulette-item-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roulette-item-winner {
  border-color: var(--accent, #fff);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.case-opening-spinner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.5s ease infinite;
  margin-bottom: 24px;
}

.case-opening-icon {
  font-size: 48px;
  animation: rotate 2s linear infinite;
}

.case-opening-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.won-item-container {
  text-align: center;
  padding: 20px 0;
}

.won-item-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  animation: wonItemPop 0.5s var(--ease);
}

.won-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.won-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

.won-item-placeholder svg {
  width: 80px;
  height: 80px;
}

.won-item-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.won-item-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.won-item-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--border-light);
}

.btn-secondary:active {
  transform: scale(0.98);
}

@keyframes wonItemPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.inventory-balance-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 200, 55, 0.1), rgba(255, 180, 0, 0.05));
  border: 1px solid rgba(255, 200, 55, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.inventory-balance-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.inventory-balance-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inventory-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: all var(--transition);
}

.inventory-item:hover {
  border-color: var(--border-light);
}

.inventory-item-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.inventory-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  opacity: 0.4;
}

.inventory-item-info {
  flex: 1;
  min-width: 0;
}

.inventory-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.inventory-item-case {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.inventory-item-price {
  font-size: 12px;
  color: var(--text-secondary);
}

.inventory-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-inventory {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.btn-inventory.claim {
  background: var(--success);
  color: #fff;
}

.btn-inventory.claim:hover {
  opacity: 0.9;
}

.btn-inventory.claim:active {
  transform: scale(0.95);
}

.btn-inventory.sell {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-inventory.sell:hover {
  background: var(--border-light);
}

.btn-inventory.sell:active {
  transform: scale(0.95);
}


.admin-case-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.admin-case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-admin-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.case-admin-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.case-admin-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.empty-state-full {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.empty-state-full .empty-state-icon {
  margin-bottom: 16px;
  color: var(--text-tertiary);
  opacity: 0.4;
  display: flex;
  justify-content: center;
}

.empty-state-full .empty-state-icon svg {
  width: 48px;
  height: 48px;
}

.empty-state-full .empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cases-balance-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
}

.cases-balance-display .star-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.cases-balance-display .star-icon-fallback {
  font-size: 14px;
}

.cases-balance-display .balance-amount {
  color: var(--text-primary);
}

.loading-spinner-small {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner-small .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.stars-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.stars-icon-inline {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px;
}

.case-price .stars-icon-img {
  width: 14px;
  height: 14px;
}

.case-detail-price .stars-icon-img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

.inventory-balance-card .stars-icon-img {
  width: 18px;
  height: 18px;
}

.settings-seller-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.current-seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 12px;
}

.current-seller-card .item-content {
  flex: 1;
  min-width: 0;
}

.seller-selected {
  background: rgba(0, 210, 106, 0.05);
  border-color: rgba(0, 210, 106, 0.2);
}

.seller-selected:hover {
  background: rgba(0, 210, 106, 0.08);
}
