/**
 * My CashClaims Dashboard + claim detail styles.
 */

.cashclaim-claims-page,
.cashclaim-claim-detail-page {
  min-height: calc(100vh - var(--dk-bottom-clearance, 68px));
  padding-bottom: calc(var(--dk-bottom-clearance, 68px) + 24px);
  box-sizing: border-box;
  color: #1c1917;
  background:
    radial-gradient(ellipse 90% 45% at 50% -8%, rgba(16, 185, 129, 0.1), transparent 58%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.cc-claims-app,
.cc-claims-detail-app {
  max-width: 560px;
  margin: 0 auto;
  min-height: inherit;
  display: flex;
  flex-direction: column;
}

.cc-claims-root,
.cc-claims-detail-root {
  flex: 1;
  padding: 0 clamp(14px, 3.5vw, 20px) 24px;
}

/* —— My Claims CTA on home —— */
.cashclaim-my-claims-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #047857, #059669);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.28);
  transition: transform 0.15s ease;
}

.cashclaim-my-claims-btn:active {
  transform: scale(0.98);
}

.cashclaim-claims-home__link {
  border: none;
  background: transparent;
  color: #059669;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.cc-claims-pull {
  font-size: 0.6875rem;
  color: #78716c;
  transition: transform 0.15s ease;
}

.cc-claims-pull--visible {
  opacity: 1;
}

/* —— Toolbar —— */
.cc-claims-toolbar {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-claims-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.cc-claims-search i {
  color: #78716c;
  font-size: 0.875rem;
}

.cc-claims-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  color: #1c1917;
  outline: none;
}

.cc-claims-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.cc-claims-filters::-webkit-scrollbar {
  display: none;
}

.cc-claims-filter {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #57534e;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cc-claims-filter--active {
  background: #ecfdf5;
  border-color: #86efac;
  color: #047857;
}

/* —— Status badges —— */
.cc-claims-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cc-claims-badge--yellow {
  color: #a16207;
  background: #fef9c3;
  border: 1px solid #fde047;
}

.cc-claims-badge--blue {
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.cc-claims-badge--orange {
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.cc-claims-badge--green {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.cc-claims-badge--red {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.cc-claims-badge--purple {
  color: #7e22ce;
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
}

.cc-claims-status-desc {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #78716c;
}

/* —— Claim cards —— */
.cc-claims-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cc-claims-card {
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cc-claims-card__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #f5f5f4;
  flex-shrink: 0;
}

.cc-claims-card__hero--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #a8a29e;
  min-height: 140px;
}

.cc-claims-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  min-width: 0;
}

.cc-claims-card__head {
  margin-bottom: 8px;
}

.cc-claims-card__name {
  margin: 0 0 12px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1c1917;
}

.cc-claims-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0 0 14px;
}

.cc-claims-card__grid-wide {
  grid-column: 1 / -1;
}

.cc-claims-card__grid dt {
  margin: 0 0 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #78716c;
}

.cc-claims-card__grid > div,
.cc-claims-detail-grid > div {
  min-width: 0;
}

.cc-claims-card__grid dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1c1917;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cc-claims-card__mono {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem !important;
  word-break: break-all;
}

/* Combined claim — store order IDs (full-width stack) */
.cc-store-order-id-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-store-order-id-list__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.cc-store-order-id-list__name {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1c1917;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-store-order-id-list__code {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #047857;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.cc-claims-card--compact .cc-claims-card__hero {
  aspect-ratio: 16 / 7;
}

.cc-claims-card--compact {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.cc-claims-card--compact:active {
  transform: scale(0.99);
}

.cc-claims-payout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.cc-claims-payout-btn--compact {
  width: auto;
  min-height: 38px;
  font-size: 0.8125rem;
}

.cc-claims-payout-btn:disabled,
.cc-claims-payout-btn--busy {
  opacity: 0.65;
  cursor: not-allowed;
}

.cc-claims-payout {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.cc-claims-payout--pending {
  background: #fef3c7;
  color: #92400e;
}

.cc-claims-payout--paid {
  background: #ecfdf5;
  color: #047857;
}

.cc-claims-detail-alert .cc-claims-payout-btn {
  margin-top: 14px;
}

.cc-claims-card__details {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #047857, #059669);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.28);
}

/* —— Timeline —— */
.cc-claims-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-claims-timeline__step {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  position: relative;
}

.cc-claims-timeline__step:last-child {
  padding-bottom: 0;
}

.cc-claims-timeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: rgba(148, 163, 184, 0.35);
}

.cc-claims-timeline__step--done:not(:last-child)::after {
  background: rgba(16, 185, 129, 0.45);
}

.cc-claims-timeline__dot {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.cc-claims-timeline__step--done .cc-claims-timeline__dot {
  background: #dcfce7;
  color: #059669;
  border: 2px solid #86efac;
}

.cc-claims-timeline__step--current .cc-claims-timeline__dot {
  background: #dbeafe;
  color: #1d4ed8;
  border: 2px solid #93c5fd;
  animation: ccClaimsPulse 1.6s ease-in-out infinite;
}

.cc-claims-timeline__step--future .cc-claims-timeline__dot {
  background: #f5f5f4;
  color: #a8a29e;
  border: 2px solid #e7e5e4;
}

.cc-claims-timeline__step--rejected .cc-claims-timeline__dot {
  background: #fee2e2;
  color: #dc2626;
  border: 2px solid #fca5a5;
}

.cc-claims-timeline__step strong {
  display: block;
  font-size: 0.8125rem;
  color: #1c1917;
}

.cc-claims-timeline__step--future strong {
  color: #78716c;
}

.cc-claims-timeline--compact {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.cc-claims-timeline--compact .cc-claims-timeline__step {
  padding-bottom: 10px;
}

.cc-claims-timeline--compact .cc-claims-timeline__step strong {
  font-size: 0.75rem;
}

@keyframes ccClaimsPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
  }
}

/* —— Empty / error —— */
.cc-claims-empty,
.cc-claims-error {
  text-align: center;
  padding: 36px 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px dashed rgba(148, 163, 184, 0.35);
}

.cc-claims-empty__illus {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #059669;
}

.cc-claims-empty__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.35);
  animation: ccClaimsSpin 12s linear infinite;
}

@keyframes ccClaimsSpin {
  to {
    transform: rotate(360deg);
  }
}

.cc-claims-empty__title {
  margin: 0 0 8px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1c1917;
}

.cc-claims-empty__hint {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #78716c;
}

.cc-claims-empty__cta,
.cc-claims-error__retry {
  min-height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #047857, #059669);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.cc-claims-error__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fef2f2;
  color: #dc2626;
}

.cc-claims-error__title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
}

/* —— Skeleton —— */
.cc-claims-skeleton__card,
.cc-claims-detail-skeleton__hero,
.cc-claims-detail-skeleton__line,
.cc-claims-detail-skeleton__card {
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.12) 0%,
    rgba(148, 163, 184, 0.22) 50%,
    rgba(148, 163, 184, 0.12) 100%
  );
  background-size: 200% 100%;
  animation: ccDetailShimmer 1.2s ease-in-out infinite;
}

.cc-claims-skeleton__card {
  height: 280px;
  border-radius: 18px;
  margin-bottom: 12px;
}

.cc-claims-detail-skeleton__hero {
  height: 180px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.cc-claims-detail-skeleton__line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.cc-claims-detail-skeleton__line--lg {
  height: 18px;
  width: 70%;
}

.cc-claims-detail-skeleton__card {
  height: 120px;
  border-radius: 16px;
  margin-top: 14px;
}

/* —— Detail page —— */
.cc-claims-detail-summary {
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cc-claims-detail-hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.cc-claims-detail-hero--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  font-size: 2.5rem;
  color: #a8a29e;
  background: #f5f5f4;
}

.cc-claims-detail-summary__body {
  padding: 18px;
  flex: 1;
  min-width: 0;
}

.cc-claims-detail-name {
  margin: 10px 0 14px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c1917;
}

.cc-claims-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}

.cc-claims-detail-grid__wide {
  grid-column: 1 / -1;
}

.cc-claims-detail-grid dt {
  margin: 0 0 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #78716c;
}

.cc-claims-detail-grid dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1c1917;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cc-claims-detail-mono {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem !important;
  word-break: break-all;
}

.cc-claims-detail-mono .cc-store-order-id-list {
  margin-top: 4px;
}

.cc-claims-detail-card {
  padding: 18px;
  border-radius: 18px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.cc-claims-detail-card__title {
  margin: 0 0 12px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1c1917;
}

.cc-claims-detail-empty,
.cc-claims-detail-notes {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #57534e;
}

.cc-claims-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cc-claims-proof {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.cc-claims-proof img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-claims-proof--pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fef2f2;
  color: #dc2626;
  text-decoration: none;
  font-size: 0.75rem;
}

.cc-claims-admin-notice {
  margin: 10px 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.cc-claims-admin-notice strong {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.cc-claims-admin-notice p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.cc-claims-admin-notice--green {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.cc-claims-admin-notice--orange {
  background: #ffedd5;
  border-color: #fdba74;
  color: #c2410c;
}

.cc-claims-admin-notice--red {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.cc-claims-detail-alert {
  padding: 16px 18px;
  border-radius: 16px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.cc-claims-detail-alert h2 {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.cc-claims-detail-alert p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.cc-claims-detail-alert--orange {
  background: #ffedd5;
  border-color: #fdba74;
  color: #9a3412;
}

.cc-claims-detail-alert--red {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.cc-claims-detail-alert--green {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.cc-claims-detail-alert--purple {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #6b21a8;
}

.cc-claims-detail-approved-amt {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.125rem !important;
  font-weight: 800 !important;
}

.cc-claims-detail-paid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cc-claims-detail-paid dt {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.8;
}

.cc-claims-detail-paid dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.cc-claims-detail-action {
  margin-top: 12px;
  min-height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.12);
  color: #78716c;
  font-weight: 600;
  cursor: not-allowed;
}

/* Dark-mode overrides removed — My Claims stays light on all phones. */

.cc-animate-in {
  animation: ccDetailFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* —— Paid success card —— */
.cc-claims-detail-content--paid .cc-claims-detail-action,
.cc-claims-detail-content--paid .cc-claims-payout-btn {
  display: none !important;
}

.cc-paid-success {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 22px 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 55%, #f0fdf4 100%);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.14);
}

.cc-paid-success__glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.35), transparent 70%);
  pointer-events: none;
}

.cc-paid-success__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.cc-paid-success__title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #065f46;
}

.cc-paid-success__subtitle {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #047857;
}

.cc-paid-success__lead {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #334155;
}

.cc-paid-success__product {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.cc-paid-success__img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cc-paid-success__img--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 1.5rem;
}

.cc-paid-success__product-body h3 {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: #0f172a;
}

.cc-paid-success__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
}

.cc-paid-success__grid dt {
  margin: 0;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.cc-paid-success__grid dd {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
}

.cc-paid-success__mono {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  word-break: break-all;
}

.cc-paid-success__status {
  color: #047857;
}

.cc-paid-success__thanks {
  margin: 16px 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #475569;
  text-align: center;
}

.cc-paid-success__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.cc-paid-success__btn {
  min-height: 44px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.cc-paid-success__btn--primary {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
}

.cc-paid-success__btn--ghost {
  background: #fff;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.cc-profile-stats-empty {
  padding: 14px 0 4px;
  text-align: center;
}

.cc-profile-stats-empty__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #0f172a;
}

.cc-profile-stats-empty__hint {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .cc-paid-success__product {
    grid-template-columns: 1fr;
  }

  .cc-paid-success__actions {
    grid-template-columns: 1fr;
  }
}

/* —— Force light theme on all phones (dark-mode was black-screening My Claims) —— */
.cashclaim-claims-page,
.cashclaim-claim-detail-page {
  background:
    radial-gradient(ellipse 70% 40% at 50% -5%, rgba(16, 185, 129, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
  color: #1c1917 !important;
}

.cashclaim-claims-page .cc-detail-topbar__title,
.cashclaim-claim-detail-page .cc-detail-topbar__title,
.cashclaim-claims-page .cc-claims-empty__title,
.cashclaim-claims-page .cc-claims-error__title,
.cashclaim-claims-page .cc-claims-card__name,
.cashclaim-claims-page h1,
.cashclaim-claims-page h2,
.cashclaim-claims-page h3,
.cashclaim-claim-detail-page h1,
.cashclaim-claim-detail-page h2,
.cashclaim-claim-detail-page h3,
.cashclaim-claim-detail-page .cc-claims-detail-name,
.cashclaim-claim-detail-page .cc-claims-detail-grid dd,
.cashclaim-claim-detail-page .cc-claims-detail-card__title {
  color: #1c1917 !important;
}

.cashclaim-claims-page .cc-detail-topbar__subtitle,
.cashclaim-claim-detail-page .cc-detail-topbar__subtitle,
.cashclaim-claims-page .cc-claims-empty__hint,
.cashclaim-claims-page .cc-claims-status-desc,
.cashclaim-claims-page .cc-claims-card__grid dt {
  color: #78716c !important;
}

.cashclaim-claims-page .cc-detail-back,
.cashclaim-claim-detail-page .cc-detail-back {
  background: #ffffff !important;
  color: #1c1917 !important;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.cashclaim-claims-page .cc-claims-search,
.cashclaim-claim-detail-page .cc-claims-search {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.cashclaim-claims-page .cc-claims-search input {
  color: #1c1917 !important;
}

.cashclaim-claims-page .cc-claims-filter {
  background: #ffffff !important;
  color: #57534e !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

.cashclaim-claims-page .cc-claims-filter--active {
  background: #ecfdf5 !important;
  border-color: #86efac !important;
  color: #047857 !important;
}

.cashclaim-claims-page .cc-claims-empty,
.cashclaim-claims-page .cc-claims-error,
.cashclaim-claims-page .cc-claims-card,
.cashclaim-claim-detail-page .cc-claims-detail-summary,
.cashclaim-claim-detail-page .cc-claims-detail-card {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

.cashclaim-claims-page .cc-claims-card__grid dd {
  color: #1c1917 !important;
}

@media (min-width: 769px) {
  .cashclaim-claims-page,
  .cashclaim-claim-detail-page {
    min-height: calc(100vh - 72px);
    padding-bottom: 40px;
  }

  .cc-claims-app,
  .cc-claims-detail-app {
    max-width: min(1180px, 96vw);
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 36px);
    box-sizing: border-box;
  }

  .cc-claims-root,
  .cc-claims-detail-root {
    padding: 0 0 28px;
  }

  .cc-detail-topbar {
    padding: 24px 0 18px;
    align-items: center;
  }

  .cc-detail-topbar__title {
    font-size: clamp(1.65rem, 2.4vw, 2rem);
  }

  .cc-detail-topbar__subtitle {
    font-size: 0.9375rem;
    max-width: none;
  }

  .cc-detail-back {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  }

  .cc-claims-toolbar {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
  }

  .cc-claims-search {
    flex: 1 1 320px;
    min-height: 48px;
  }

  .cc-claims-search input {
    font-size: 1rem;
  }

  .cc-claims-filters {
    flex: 1 1 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 10px;
  }

  /* Full-width horizontal claim cards on tablet/desktop */
  .cc-claims-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .cc-claims-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 220px;
  }

  .cc-claims-card__hero,
  .cc-claims-card__hero--fallback {
    flex: 0 0 clamp(200px, 28vw, 300px);
    width: clamp(200px, 28vw, 300px);
    max-width: 36%;
    aspect-ratio: auto;
    min-height: 220px;
    height: auto;
    align-self: stretch;
    object-fit: cover;
  }

  .cc-claims-card__body {
    padding: 20px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
  }

  .cc-claims-card__grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px 20px;
  }

  .cc-claims-card__grid-wide {
    grid-column: 1 / -1;
  }

  .cc-claims-card__name {
    font-size: 1.2rem;
  }

  /* Detail summary: image left, meta right — full page width */
  .cc-claims-detail-summary {
    flex-direction: row;
    align-items: stretch;
    min-height: 280px;
    width: 100%;
  }

  .cc-claims-detail-hero,
  .cc-claims-detail-hero--fallback {
    flex: 0 0 clamp(220px, 30vw, 360px);
    width: clamp(220px, 30vw, 360px);
    max-width: 38%;
    aspect-ratio: auto;
    min-height: 280px;
    height: auto;
    align-self: stretch;
    object-fit: cover;
  }

  .cc-claims-detail-summary__body {
    padding: 22px 26px 24px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .cc-claims-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px 22px;
  }

  .cc-claims-detail-grid__wide {
    grid-column: 1 / -1;
  }

  .cc-store-order-id-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cc-claims-empty,
  .cc-claims-error {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 32px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  }
}

@media (min-width: 1100px) {
  .cc-claims-card__grid,
  .cc-claims-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cc-claims-card__grid,
  .cc-claims-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-store-order-id-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  body:has(#cashclaim-claims.page.active) .bottom-nav,
  body:has(#cashclaim-claim-detail.page.active) .bottom-nav {
    display: none !important;
  }

  .cashclaim-claims-page,
  .cashclaim-claim-detail-page {
    padding-bottom: 48px;
  }
}
