/* ═══════════════════════════════════════════════════════════════════════════════
   THE DIGITAL VAULT — SKELETON SCREEN SYSTEM
   Animated, pulsing grey placeholders mapping out exact shapes of cards, text,
   badges, meters, images, and tables. Zero layout shift (CLS = 0).
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Base Pulsing & Shimmer Animations ── */
@keyframes skeletonPulse {
  0% {
    opacity: 0.55;
    background-color: rgba(180, 186, 200, 0.22);
  }
  50% {
    opacity: 1;
    background-color: rgba(150, 158, 175, 0.42);
  }
  100% {
    opacity: 0.55;
    background-color: rgba(180, 186, 200, 0.22);
  }
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.sk-pulse {
  background: linear-gradient(
    90deg,
    rgba(180, 186, 200, 0.22) 0%,
    rgba(210, 215, 228, 0.48) 50%,
    rgba(180, 186, 200, 0.22) 100%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 1.8s ease-in-out infinite, skeletonShimmer 2.2s linear infinite;
  border-radius: 8px;
  display: block;
}

body:not(.white) .sk-pulse {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 1.8s ease-in-out infinite, skeletonShimmer 2.2s linear infinite;
}

/* ── Product Card Skeleton ── */
.pc-skeleton {
  pointer-events: none;
  user-select: none;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(197, 160, 89, 0.16) !important;
  background: var(--bg-card, #ffffff) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03) !important;
}

.pc-skeleton .sk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pc-skeleton .sk-chip {
  width: 72px;
  height: 20px;
  border-radius: 99px;
}

.pc-skeleton .sk-badge {
  width: 88px;
  height: 22px;
  border-radius: 99px;
}

.pc-skeleton .sk-title {
  width: 88%;
  height: 20px;
  margin-bottom: 8px;
  border-radius: 6px;
}

.pc-skeleton .sk-title-sub {
  width: 60%;
  height: 18px;
  margin-bottom: 16px;
  border-radius: 6px;
}

.pc-skeleton .sk-mid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  margin-bottom: 14px;
}

.pc-skeleton .sk-price {
  width: 80px;
  height: 28px;
  border-radius: 8px;
}

.pc-skeleton .sk-dur {
  width: 64px;
  height: 15px;
  border-radius: 6px;
}

.pc-skeleton .sk-meter {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.pc-skeleton .sk-btn {
  width: 100%;
  height: 42px;
  border-radius: 12px;
}

/* ── Category Card Skeleton ── */
.cc-skeleton {
  pointer-events: none;
  user-select: none;
  min-height: 240px;
  border: 1px solid rgba(197, 160, 89, 0.16) !important;
  background: var(--bg-card, #ffffff) !important;
  display: flex;
  flex-direction: column;
}

.cc-skeleton .sk-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.cc-skeleton .sk-title {
  width: 70%;
  height: 22px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.cc-skeleton .sk-desc-line1 {
  width: 95%;
  height: 14px;
  border-radius: 5px;
  margin-bottom: 8px;
}

.cc-skeleton .sk-desc-line2 {
  width: 65%;
  height: 14px;
  border-radius: 5px;
  margin-bottom: 22px;
}

.cc-skeleton .sk-meta-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cc-skeleton .sk-meta {
  width: 120px;
  height: 16px;
  border-radius: 6px;
}

.cc-skeleton .sk-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* ── Live Order Feed Skeleton ── */
.order-skeleton {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.12);
  margin-bottom: 10px;
}

.order-skeleton .sk-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.order-skeleton .sk-content {
  flex: 1;
  display: grid;
  gap: 6px;
}

.order-skeleton .sk-line1 {
  width: 65%;
  height: 15px;
  border-radius: 5px;
}

.order-skeleton .sk-line2 {
  width: 40%;
  height: 12px;
  border-radius: 5px;
}

.order-skeleton .sk-status {
  width: 80px;
  height: 24px;
  border-radius: 99px;
  flex-shrink: 0;
}

/* ── Review Card Skeleton ── */
.rev-skeleton {
  padding: 22px;
  border-radius: 20px;
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(197, 160, 89, 0.16);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rev-skeleton .sk-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rev-skeleton .sk-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.rev-skeleton .sk-user-wrap {
  flex: 1;
  display: grid;
  gap: 6px;
}

.rev-skeleton .sk-username {
  width: 90px;
  height: 14px;
  border-radius: 5px;
}

.rev-skeleton .sk-stars {
  width: 75px;
  height: 14px;
  border-radius: 5px;
}

.rev-skeleton .sk-text-1 {
  width: 96%;
  height: 14px;
  border-radius: 5px;
}

.rev-skeleton .sk-text-2 {
  width: 88%;
  height: 14px;
  border-radius: 5px;
}

.rev-skeleton .sk-text-3 {
  width: 55%;
  height: 14px;
  border-radius: 5px;
}

.rev-skeleton .sk-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.rev-skeleton .sk-foot-date {
  width: 70px;
  height: 12px;
  border-radius: 5px;
}

.rev-skeleton .sk-verified {
  width: 80px;
  height: 20px;
  border-radius: 99px;
}

/* ── Admin Table Skeleton Rows ── */
.tr-skeleton td {
  padding: 16px 14px !important;
}

.tr-skeleton .sk-cell {
  height: 22px;
  border-radius: 6px;
  width: 100%;
}

.tr-skeleton .sk-btn-cell {
  height: 32px;
  border-radius: 8px;
  width: 80px;
}
