.btn {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 122, 255, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 16px 28px rgba(0, 122, 255, 0.24);
}

.btn-soft {
  background: rgba(0, 122, 255, 0.08);
  color: var(--primary);
  border-color: rgba(0, 122, 255, 0.12);
}

.btn-soft:hover {
  background: rgba(0, 122, 255, 0.12);
}

.btn-light {
  background: var(--card-solid);
  color: var(--text-main);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .btn-light:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  background: rgba(255, 59, 48, 0.1);
  color: var(--danger);
  border-color: rgba(255, 59, 48, 0.14);
}

.btn-danger:hover {
  background: rgba(255, 59, 48, 0.16);
}

.btn-success {
  background: rgba(52, 199, 89, 0.1);
  color: var(--success);
  border-color: rgba(52, 199, 89, 0.14);
}

.btn-success:hover {
  background: rgba(52, 199, 89, 0.16);
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-solid);
  color: var(--text-main);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.form-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-row > * {
  flex: 1;
  min-width: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.field-hint {
  color: var(--text-sec);
  font-size: 0.82rem;
  line-height: 1.8;
}

.input,
.select,
.textarea,
.form-control {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-main);
  transition: var(--transition);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .input,
[data-theme="dark"] .select,
[data-theme="dark"] .textarea,
[data-theme="dark"] .form-control {
  background: rgba(255, 255, 255, 0.02);
}

.input:focus,
.select:focus,
.textarea:focus,
.form-control:focus {
  border-color: rgba(0, 122, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 35%),
    linear-gradient(135deg, #007aff, #5b5ff7 60%, #5ac8fa);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  filter: blur(10px);
}

.hero-card > * {
  position: relative;
  z-index: 2;
}

.hero-card h1,
.hero-card h2,
.hero-card h3 {
  font-weight: 900;
  line-height: 1.2;
}

.hero-card p {
  margin-top: 8px;
  opacity: 0.96;
  line-height: 1.9;
}

.stat-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.stat-label {
  color: var(--text-sec);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.stat-value {
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
}

.stat-foot {
  margin-top: 10px;
  color: var(--text-light);
  font-size: 0.82rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-card {
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 122, 255, 0.16);
}

.quick-card .quick-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 122, 255, 0.08);
  color: var(--primary);
  font-size: 1.3rem;
}

.quick-card h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.quick-card p {
  color: var(--text-sec);
  font-size: 0.85rem;
  line-height: 1.8;
}

.list-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.list-stack {
  display: grid;
  gap: 14px;
}

.item-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  transition: var(--transition);
}

[data-theme="dark"] .item-card {
  background: rgba(255, 255, 255, 0.02);
}

.item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.item-title {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.item-meta {
  color: var(--text-sec);
  line-height: 1.8;
  font-size: 0.9rem;
}

.item-date {
  color: var(--text-light);
  font-size: 0.82rem;
  margin-top: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.pending {
  color: #9a6700;
  background: rgba(255, 159, 10, 0.12);
}

.status-pill.processing {
  color: #0054b8;
  background: rgba(0, 122, 255, 0.1);
}

.status-pill.delivered,
.status-pill.success {
  color: #0f8f3e;
  background: rgba(52, 199, 89, 0.12);
}

.status-pill.rejected,
.status-pill.danger {
  color: #b00020;
  background: rgba(255, 59, 48, 0.12);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: right;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 900;
  background: rgba(0, 122, 255, 0.03);
}

.table td {
  color: var(--text-main);
  font-size: 0.94rem;
}

.table tr:last-child td {
  border-bottom: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-panel {
  width: min(92vw, 620px);
  padding: 24px;
  border-radius: 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.modal-text {
  color: var(--text-sec);
  line-height: 1.9;
  margin-bottom: 16px;
}

.close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--card-solid);
  color: var(--text-main);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.close-btn:hover {
  background: var(--danger);
  color: #fff;
}

.alert {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  line-height: 1.8;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.alert.show {
  display: block;
}

.alert.info {
  color: var(--primary);
  background: rgba(0, 122, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.14);
}

.alert.success {
  color: var(--success);
  background: rgba(52, 199, 89, 0.08);
  border-color: rgba(52, 199, 89, 0.14);
}

.alert.error {
  color: var(--danger);
  background: rgba(255, 59, 48, 0.08);
  border-color: rgba(255, 59, 48, 0.14);
}

.empty-state {
  padding: 28px 18px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px dashed var(--line-strong);
  color: var(--text-sec);
}

.empty-state i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 28px;
  border-radius: 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.auth-card h1,
.auth-card h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.auth-card p {
  color: var(--text-sec);
  line-height: 1.9;
  margin-bottom: 18px;
}

.sidebar-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-theme="dark"] .sidebar {
  background: rgba(9, 12, 20, 0.76);
}

.sidebar-panel {
  height: 100%;
  border-radius: 28px;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.sidebar-brand img {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
}

.sidebar-brand div strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

.sidebar-brand div span {
  color: var(--text-sec);
  font-size: 0.83rem;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-sec);
  font-weight: 800;
  transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(0, 122, 255, 0.08);
  color: var(--primary);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
}

.dashboard-content {
  padding: 24px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.toast-root {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
}

.toast-item {
  display: grid;
  grid-template-columns: 40px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  color: var(--text-main);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(-10px) scale(.98);
  opacity: 0;
  transition: 0.26s ease;
}

[data-theme="dark"] .toast-item {
  background: rgba(15,18,25,0.92);
}

.toast-item.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-item.hide {
  transform: translateY(-8px) scale(.98);
  opacity: 0;
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.toast-text {
  font-size: 0.92rem;
  line-height: 1.7;
  font-weight: 800;
}

.toast-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-sec);
  border-radius: 10px;
  cursor: pointer;
}

.toast-success .toast-icon {
  background: rgba(22,163,74,0.12);
  color: #16a34a;
}

.toast-error .toast-icon {
  background: rgba(239,68,68,0.12);
  color: #dc2626;
}

.toast-warning .toast-icon {
  background: rgba(245,158,11,0.12);
  color: #d97706;
}

.toast-info .toast-icon {
  background: rgba(0,122,255,0.12);
  color: var(--primary);
}

@media (max-width: 640px) {
  .toast-root {
    top: 12px;
    left: 12px;
    right: 12px;
    width: auto;
  }
}
.empty-state {
  min-height: 190px;
  padding: 26px 22px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-sec);
  border: 1px dashed var(--line-strong);
  background: rgba(255,255,255,0.52);
}

[data-theme="dark"] .empty-state {
  background: rgba(255,255,255,0.02);
}

.empty-state-inner {
  max-width: 320px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,122,255,0.10);
  color: var(--primary);
  font-size: 1.35rem;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text-main);
}

.empty-state p {
  line-height: 1.9;
  font-size: 0.92rem;
  color: var(--text-sec);
}

.toolbar-search {
  position: relative;
  min-width: 250px;
  flex: 1;
}

.toolbar-search i {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-sec);
  pointer-events: none;
}

.toolbar-search input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--text-main);
  padding: 0 42px 0 14px;
  outline: none;
  font-size: 0.94rem;
}

.toolbar-search input:focus {
  border-color: rgba(0,122,255,0.24);
  box-shadow: 0 0 0 4px rgba(0,122,255,0.08);
}

.skeleton-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 150px;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
}

[data-theme="dark"] .skeleton-card {
  background: rgba(255,255,255,0.03);
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.40),
    transparent
  );
  animation: skeletonShimmer 1.3s infinite;
}

[data-theme="dark"] .skeleton-card::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
}

.skeleton-lines {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: rgba(148,163,184,0.18);
}

.skeleton-line.lg {
  height: 18px;
  width: 55%;
}

.skeleton-line.md {
  width: 78%;
}

.skeleton-line.sm {
  width: 42%;
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}
/* =========================
   GLOBAL MOBILE FIXES
========================= */
@media (max-width: 992px) {
  .container,
  .topbar-inner {
    width: min(100% - 24px, 1200px);
  }

  .app-topbar {
    padding: 10px 0;
  }

  .topbar-inner {
    gap: 10px;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-text strong,
  .brand-text span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }

  .topbar-actions .btn,
  .topbar-actions .icon-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 768px) {
  .btn,
  .btn-light,
  .btn-danger,
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .icon-btn {
    width: 42px;
    height: 42px;
  }

  .form-control,
  .input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px; /* يمنع الزوم في iPhone */
  }

  textarea.form-control {
    min-height: 110px;
  }

  .modal,
  .order-modal,
  .admin-modal {
    padding: 14px;
  }

  .modal-panel,
  .order-modal-panel,
  .admin-modal-panel,
  .product-modal-panel {
    width: 100%;
    max-height: calc(100vh - 28px);
    border-radius: 20px;
    padding: 18px;
  }

  .close-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .container,
  .topbar-inner {
    width: calc(100% - 16px);
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text span {
    font-size: 0.75rem;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions .icon-btn {
    flex: unset;
    width: 100%;
  }

  .topbar-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* =========================
   HOME / STORE
========================= */
@media (max-width: 992px) {
  .store-hero {
    padding: 24px;
    border-radius: 26px;
  }

  .hero-stats-strip-compact {
    grid-template-columns: 1fr;
  }

  .store-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .store-hero h1 {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .store-hero p {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .hero-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-stat-card {
    min-height: 74px;
    padding: 12px;
    border-radius: 18px;
  }

  .hero-stat-text strong {
    font-size: 0.95rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-body {
    padding: 14px;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn-card {
    width: 100%;
  }

  .home-slider-wrap,
  .home-slider-track,
  .slide-item img,
  .slider-empty {
    min-height: 180px;
  }

  .slide-item img {
    height: 180px;
  }

  .product-modal-image-wrap,
  .product-modal-image-wrap img {
    min-height: 220px;
  }

  .product-modal-content h3 {
    font-size: 1.2rem;
  }

  .product-modal-price {
    font-size: 1.35rem;
  }

  .product-modal-meta {
    grid-template-columns: 1fr;
  }
}
/* =========================
   ACCOUNT
========================= */
@media (max-width: 992px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .account-hero,
  .account-quick-panel,
  .account-main-panel,
  .account-side-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .account-user {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .account-info h2 {
    font-size: 1.25rem;
  }

  .account-badges {
    width: 100%;
  }

  .account-badge {
    width: fit-content;
  }

  .account-stats {
    flex-direction: column;
  }

  .quick-actions-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .quick-action-card {
    padding: 14px;
    border-radius: 18px;
  }
}
/* =========================
   ORDERS / NOTIFICATIONS / WALLET / DEPOSIT
========================= */
@media (max-width: 992px) {
  .orders-hero-grid,
  .notifications-hero-grid,
  .wallet-hero-grid,
  .deposit-hero-grid,
  .deposit-layout {
    grid-template-columns: 1fr;
  }

  .orders-hero-stats,
  .notifications-stats,
  .wallet-hero-stats,
  .deposit-hero-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orders-toolbar,
  .notifications-toolbar,
  .wallet-toolbar {
    width: 100%;
  }

  .order-info-grid,
  .wallet-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .orders-hero,
  .orders-panel,
  .notifications-hero,
  .notifications-panel,
  .wallet-hero,
  .wallet-panel,
  .deposit-hero,
  .deposit-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .orders-hero-stats,
  .notifications-stats,
  .wallet-hero-stats,
  .deposit-hero-card {
    grid-template-columns: 1fr;
  }

  .orders-toolbar,
  .notifications-toolbar,
  .wallet-toolbar,
  .orders-toolbar > *,
  .notifications-toolbar > *,
  .wallet-toolbar > * {
    width: 100%;
  }

  .order-info-grid,
  .wallet-item-grid {
    grid-template-columns: 1fr;
  }

  .order-card,
  .notification-card,
  .wallet-item {
    padding: 14px;
    border-radius: 18px;
  }

  .order-card-top,
  .notification-top,
  .notification-footer,
  .wallet-item-top {
    flex-direction: column;
    align-items: stretch;
  }

  .order-actions,
  .notification-actions,
  .notification-side,
  .wallet-item-side {
    width: 100%;
  }

  .order-actions .btn,
  .notification-actions .btn {
    width: 100%;
  }

  .payment-field-top,
  .delivery-field-top {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-btn,
  .copy-btn-inline {
    width: 100%;
  }
}
/* =========================
   ADMIN
========================= */
@media (max-width: 1200px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
  }

  .admin-sidebar-panel {
    position: static;
    max-height: unset;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-sidebar-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 992px) {
  .admin-dashboard-grid,
  .admin-overview-strip {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-topbar-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .admin-topbar-actions .btn,
  .admin-topbar-actions .icon-btn {
    flex: 1 1 auto;
  }

  .admin-form-grid,
  .admin-form-row,
  .compact-grid {
    grid-template-columns: 1fr !important;
    display: grid;
  }

  .admin-panel-head-split {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-inline-stats {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-search-wrap,
  .toolbar-select {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .admin-content {
    padding: 12px;
  }

  .admin-sidebar-panel,
  .admin-panel,
  .dash-stat-card,
  .overview-card {
    padding: 16px;
    border-radius: 20px;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .admin-sidebar-footer {
    grid-template-columns: 1fr;
  }

  .admin-inline-stats {
    grid-template-columns: 1fr;
  }

  .admin-table-wrap {
    overflow-x: auto;
  }

  .admin-table {
    min-width: 700px;
  }

  .admin-users-grid,
  .admin-list-grid {
    grid-template-columns: 1fr !important;
  }

  .user-card-top,
  .user-actions-row,
  .admin-list-top,
  .admin-list-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-actions-row .btn,
  .admin-list-actions .btn {
    width: 100%;
  }
}
/* =========================
   FOOTER
========================= */
@media (max-width: 640px) {
  .site-footer {
    padding: 20px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-branding,
  .footer-credit {
    width: 100%;
  }
}
/* =========================
   BLOCKED ACCOUNT OVERLAY
========================= */
html.blocked-mode,
body.blocked-mode {
  overflow: hidden !important;
}

#blocked-account-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  margin: 0 !important;
}

#blocked-account-overlay .blocked-overlay-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at top right, rgba(255, 59, 48, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(0, 122, 255, 0.14), transparent 24%),
    rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

#blocked-account-overlay .blocked-overlay-card {
  position: relative !important;
  z-index: 2 !important;
  width: min(560px, 100%) !important;
  max-width: 560px !important;
  padding: 28px !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(255,255,255,0.93)) !important;
  border: 1px solid rgba(255,255,255,0.75) !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26) !important;
  text-align: center !important;
  overflow: hidden !important;
  animation: blockedCardIn .45s ease !important;
}

[data-theme="dark"] #blocked-account-overlay .blocked-overlay-card {
  background: linear-gradient(135deg, rgba(18,18,24,0.96), rgba(28,28,34,0.92)) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

@keyframes blockedCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#blocked-account-overlay .blocked-overlay-orb {
  position: absolute !important;
  border-radius: 50% !important;
  filter: blur(18px) !important;
  opacity: .22 !important;
  pointer-events: none !important;
}

#blocked-account-overlay .blocked-orb-1 {
  width: 140px !important;
  height: 140px !important;
  top: -34px !important;
  right: -28px !important;
  background: #ff3b30 !important;
}

#blocked-account-overlay .blocked-orb-2 {
  width: 120px !important;
  height: 120px !important;
  bottom: -30px !important;
  left: -18px !important;
  background: #007aff !important;
}

#blocked-account-overlay .blocked-overlay-icon {
  width: 84px !important;
  height: 84px !important;
  margin: 0 auto 16px !important;
  border-radius: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 59, 48, 0.10) !important;
  color: #ff3b30 !important;
  font-size: 2rem !important;
  animation: blockedPulse 2s ease-in-out infinite !important;
}

@keyframes blockedPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.18);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 14px rgba(255, 59, 48, 0);
  }
}

#blocked-account-overlay .blocked-overlay-card h2 {
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  margin-bottom: 10px !important;
  color: var(--text-main) !important;
}

#blocked-account-overlay .blocked-overlay-card p {
  color: var(--text-sec) !important;
  line-height: 2 !important;
  font-size: 0.96rem !important;
  margin-bottom: 18px !important;
}

#blocked-account-overlay .blocked-overlay-note {
  padding: 14px !important;
  border-radius: 18px !important;
  background: rgba(0,122,255,0.07) !important;
  border: 1px solid rgba(0,122,255,0.12) !important;
  display: grid !important;
  gap: 6px !important;
  margin-bottom: 18px !important;
}

#blocked-account-overlay .blocked-overlay-note strong {
  font-size: 1rem !important;
  font-weight: 900 !important;
  color: var(--text-main) !important;
}

#blocked-account-overlay .blocked-overlay-note span {
  color: var(--text-sec) !important;
  font-size: 0.9rem !important;
}

#blocked-account-overlay .blocked-contact-grid {
  display: grid !important;
  gap: 10px !important;
}

#blocked-account-overlay .blocked-contact-link {
  min-height: 52px !important;
  padding: 12px 16px !important;
  border-radius: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-weight: 900 !important;
  border: 1px solid var(--line) !important;
  transition: .22s ease !important;
  background: rgba(255,255,255,0.72) !important;
}

[data-theme="dark"] #blocked-account-overlay .blocked-contact-link {
  background: rgba(255,255,255,0.04) !important;
}

#blocked-account-overlay .blocked-contact-link:hover {
  transform: translateY(-2px) !important;
}

#blocked-account-overlay .blocked-contact-link.whatsapp {
  color: #25d366 !important;
}

#blocked-account-overlay .blocked-contact-link.facebook {
  color: #1877f2 !important;
}

#blocked-account-overlay .blocked-contact-link.instagram {
  color: #e1306c !important;
}

#blocked-account-overlay .blocked-no-links {
  padding: 14px !important;
  border-radius: 16px !important;
  color: var(--text-sec) !important;
  background: rgba(255,255,255,0.52) !important;
  border: 1px dashed var(--line-strong) !important;
}

[data-theme="dark"] #blocked-account-overlay .blocked-no-links {
  background: rgba(255,255,255,0.03) !important;
}

@media (max-width: 640px) {
  #blocked-account-overlay .blocked-overlay-card {
    padding: 20px !important;
    border-radius: 24px !important;
  }

  #blocked-account-overlay .blocked-overlay-icon {
    width: 72px !important;
    height: 72px !important;
    border-radius: 22px !important;
    font-size: 1.7rem !important;
  }

  #blocked-account-overlay .blocked-overlay-card h2 {
    font-size: 1.3rem !important;
  }

  #blocked-account-overlay .blocked-overlay-card p {
    font-size: 0.9rem !important;
  }
}
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.toast.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.success-panel {
  text-align: center;
  padding: 30px;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: pop 0.5s ease;
}

@keyframes pop {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

/* Loader */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #fff;
  border-top-color: #007aff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}