/* ISM Dates Challenge 2026-27 — emerald, gold and coral theme. Mobile first. */

.dc-body {
  --dc-emerald-900: #032a22;
  --dc-emerald-800: #053b2f;
  --dc-emerald-700: #07513f;
  --dc-emerald-600: #0b6b55;
  --dc-teal-500: #0f9d8a;
  --dc-gold-300: #ffe08a;
  --dc-gold-400: #f9c74f;
  --dc-gold-500: #f2a91d;
  --dc-gold-600: #c98410;
  --dc-coral-500: #ff6b4a;
  --dc-coral-600: #e8502f;
  --dc-cream: #fff8ea;
  --dc-ink: #10241f;
  --dc-muted: #5b6f69;
  --dc-line: rgba(7, 81, 63, 0.14);
  --dc-radius-lg: 24px;
  --dc-radius: 16px;
  --dc-shadow: 0 18px 40px -18px rgba(3, 42, 34, 0.45);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(249, 199, 79, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(15, 157, 138, 0.16), transparent 60%),
    linear-gradient(180deg, #fbf4e4 0%, #f3efe2 100%);
  color: var(--dc-ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.dc-body .ml,
.dc-body .ml * {
  font-family: "Manjari", "Noto Sans Malayalam", "Poppins", sans-serif;
}

.dc-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 14px 110px;
  box-sizing: border-box;
}

.dc-body [hidden] {
  display: none !important;
}

.dc-page *,
.dc-sticky *,
.dc-receipt-modal * {
  box-sizing: border-box;
}

.dc-page-foot {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.dc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--dc-emerald-700);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 6px 16px -10px rgba(3, 42, 34, 0.5);
}

/* ---------- Hero ---------- */
.dc-hero {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px 18px 18px;
  border-radius: var(--dc-radius-lg);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(500px 300px at 85% 0%, rgba(249, 199, 79, 0.35), transparent 70%),
    radial-gradient(500px 360px at 0% 100%, rgba(15, 157, 138, 0.45), transparent 70%),
    linear-gradient(140deg, var(--dc-emerald-900) 0%, var(--dc-emerald-700) 55%, var(--dc-emerald-600) 100%);
  box-shadow: var(--dc-shadow);
  isolation: isolate;
}

.dc-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image:
    linear-gradient(45deg, var(--dc-gold-400) 1px, transparent 1px),
    linear-gradient(-45deg, var(--dc-gold-400) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}

.dc-hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

.dc-chip img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.dc-hero__kicker {
  align-self: stretch;
  margin: 14px 0 2px;
  font-size: 1.05rem;
  color: var(--dc-gold-300);
  text-align: left;
}

.dc-hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 4.4rem);
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.dc-hero__title span {
  display: block;
  background: linear-gradient(180deg, var(--dc-gold-300) 0%, var(--dc-gold-500) 70%, var(--dc-gold-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dc-hero__subtitle {
  margin: 10px 0 16px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
}

.dc-hero__subtitle--note {
  font-style: italic;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.dc-hero__price {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(249, 199, 79, 0.5);
}

.dc-hero__price-unit {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.dc-hero__price strong {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--dc-gold-400);
  color: var(--dc-emerald-900);
  font-size: 1.15rem;
  font-weight: 800;
}

.dc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.dc-hero__media {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  border: 3px solid rgba(249, 199, 79, 0.55);
}

.dc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dc-hero__badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.45), transparent 42%),
    linear-gradient(145deg, #ff8a3d 0%, var(--dc-coral-500) 45%, #d63a5a 100%);
  border: 4px solid var(--dc-gold-400);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.85),
    0 0 0 7px rgba(249, 199, 79, 0.55),
    0 14px 30px -8px rgba(214, 58, 90, 0.7);
  text-align: center;
  line-height: 1;
  animation: dc-float 4s ease-in-out infinite;
}

.dc-hero__badge::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.dc-hero__badge span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--dc-emerald-800);
  color: var(--dc-gold-300);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.dc-hero__badge strong {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-shadow:
    0 2px 0 rgba(150, 30, 40, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.25);
}

@keyframes dc-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

/* ---------- Buttons ---------- */
.dc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.dc-btn:hover { transform: translateY(-1px); }
.dc-btn:active { transform: translateY(1px); }
.dc-btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.dc-btn--gold {
  background: linear-gradient(180deg, var(--dc-gold-300) 0%, var(--dc-gold-500) 100%);
  color: var(--dc-emerald-900);
  box-shadow: 0 10px 22px -10px rgba(201, 132, 16, 0.9), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.dc-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.dc-btn--teal {
  background: linear-gradient(180deg, var(--dc-teal-500), var(--dc-emerald-600));
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(11, 107, 85, 0.9);
}

.dc-btn--soft {
  background: #eef6f2;
  color: var(--dc-emerald-700);
}

.dc-btn--block { width: 100%; }

/* ---------- Stats ---------- */
.dc-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.dc-stat--amount {
  grid-column: 1 / -1;
}

.dc-stat {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  padding: 14px 12px;
  border-radius: var(--dc-radius);
  background: #fff;
  box-shadow: 0 12px 26px -18px rgba(3, 42, 34, 0.55);
  overflow: hidden;
}

.dc-stat::after {
  content: "";
  position: absolute;
  inset: auto -20px -30px auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.16;
}

.dc-stat i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 0;
}

.dc-stat--amount i, .dc-stat--amount::after { background: linear-gradient(135deg, var(--dc-gold-400), var(--dc-gold-600)); }
.dc-stat--boxes i, .dc-stat--boxes::after { background: linear-gradient(135deg, var(--dc-coral-500), var(--dc-coral-600)); }
.dc-stat--people i, .dc-stat--people::after { background: linear-gradient(135deg, var(--dc-teal-500), var(--dc-emerald-700)); }

.dc-stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dc-muted);
}

.dc-stat__value {
  grid-column: 1 / -1;
  text-align: center;
  font-size: clamp(1.1rem, 4.6vw, 1.9rem);
  font-weight: 800;
  color: var(--dc-emerald-800);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Banner (payment result) ---------- */
.dc-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--dc-radius);
  font-weight: 600;
}

.dc-banner i { font-size: 1.6rem; }
.dc-banner p { margin: 0; flex: 1 1 200px; }

.dc-banner--success {
  background: linear-gradient(135deg, #e5fbef, #fff6d8);
  color: var(--dc-emerald-800);
  border: 1px solid rgba(15, 157, 138, 0.35);
}

.dc-banner--failed {
  background: #fff0ec;
  color: #8a2a14;
  border: 1px solid rgba(232, 80, 47, 0.35);
}

/* ---------- Layout grid & cards ---------- */
.dc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.dc-grid > * {
  min-width: 0;
}

.dc-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
}

.dc-card {
  padding: 18px;
  border-radius: var(--dc-radius-lg);
  background: #fff;
  box-shadow: var(--dc-shadow);
  border: 1px solid var(--dc-line);
  scroll-margin-top: 16px;
}

.dc-card--form {
  border-top: 5px solid var(--dc-gold-500);
}

.dc-card--board {
  border-top: 5px solid var(--dc-coral-500);
}

.dc-card--lookup {
  border-top: 5px solid var(--dc-teal-500);
}

.dc-card--contact {
  border-top: 5px solid var(--dc-emerald-600);
}

.dc-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dc-card__head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dc-emerald-800);
}

.dc-card__head p {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--dc-muted);
}

.dc-card__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 1.1rem;
}

.dc-card__icon--gold { background: linear-gradient(135deg, var(--dc-gold-400), var(--dc-gold-600)); }
.dc-card__icon--coral { background: linear-gradient(135deg, var(--dc-coral-500), var(--dc-coral-600)); }
.dc-card__icon--teal { background: linear-gradient(135deg, var(--dc-teal-500), var(--dc-emerald-600)); }
.dc-card__icon--green { background: linear-gradient(135deg, var(--dc-emerald-600), var(--dc-emerald-900)); }

/* ---------- Form ---------- */
.dc-form {
  display: grid;
  gap: 14px;
}

.dc-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dc-field-row {
  display: grid;
  gap: 14px;
}

.dc-field label,
.dc-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dc-emerald-700);
}

.dc-form input,
.dc-form select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid #d9e4df;
  border-radius: 12px;
  background-color: #fbfdfc;
  color: var(--dc-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Mobile browsers (iOS Safari especially) ignore min-height on native selects. */
.dc-form select {
  height: 48px;
  line-height: 1.2;
  padding-right: 36px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2307513f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.dc-form input {
  height: 48px;
}

.dc-form input:focus,
.dc-form select:focus {
  outline: none;
  border-color: var(--dc-teal-500);
  box-shadow: 0 0 0 4px rgba(15, 157, 138, 0.15);
  background-color: #fff;
}

.dc-form select:disabled {
  background-color: #f1f4f3;
  opacity: 1;
  color: #8a9a95;
}

.dc-form .is-invalid {
  border-color: var(--dc-coral-600);
  box-shadow: 0 0 0 4px rgba(232, 80, 47, 0.12);
}

.dc-phone {
  display: flex;
  gap: 8px;
}

.dc-phone select {
  flex: 0 0 112px;
  padding: 0 28px 0 10px;
  background-position: right 10px center;
}

.dc-phone input {
  flex: 1 1 auto;
  min-width: 0;
}

.dc-packs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dc-pack {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 12px;
  border: 2px solid #e3ebe7;
  border-radius: 14px;
  background: #fff;
  color: var(--dc-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.dc-pack__title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.dc-pack i {
  flex: 0 0 auto;
  color: var(--dc-gold-600);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.dc-pack__name {
  font-size: clamp(0.68rem, 2.5vw, 0.82rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dc-muted);
  white-space: nowrap;
}

.dc-pack strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dc-emerald-800);
}

.dc-pack small {
  font-size: 0.74rem;
  color: var(--dc-muted);
}

.dc-pack:hover { border-color: var(--dc-gold-400); }

.dc-pack.is-active {
  border-color: var(--dc-gold-500);
  background: linear-gradient(160deg, #fffaf0 0%, #ffefc2 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -16px rgba(201, 132, 16, 0.9);
}

.dc-qty {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.dc-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dc-stepper__btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: #fff4d4;
  color: var(--dc-gold-600);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(201, 132, 16, 0.25);
}

.dc-stepper__btn:hover { background: #ffe8a8; }

.dc-form .dc-stepper input {
  width: 86px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 0 4px;
  -moz-appearance: textfield;
}

.dc-stepper input::-webkit-outer-spin-button,
.dc-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dc-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 107, 74, 0.1), rgba(249, 199, 79, 0.18)),
    #fff;
  border: 1.5px dashed rgba(232, 80, 47, 0.45);
}

.dc-total span {
  font-weight: 600;
  color: var(--dc-muted);
}

.dc-total strong {
  grid-row: span 2;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--dc-coral-600);
  font-variant-numeric: tabular-nums;
}

.dc-total small {
  color: var(--dc-muted);
  font-size: 0.8rem;
}

.dc-total.is-bump strong {
  animation: dc-bump 0.3s ease;
}

@keyframes dc-bump {
  50% { transform: scale(1.08); }
}

.dc-form__note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--dc-muted);
  text-align: center;
}

/* ---------- Leaderboard ---------- */
.dc-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #f1f6f4;
  overflow-x: auto;
  scrollbar-width: none;
}

.dc-tabs::-webkit-scrollbar { display: none; }

.dc-tab {
  flex: 1 0 auto;
  width: auto;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--dc-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.dc-tab.is-active {
  background: #fff;
  color: var(--dc-coral-600);
  box-shadow: 0 6px 14px -10px rgba(3, 42, 34, 0.6);
}

.dc-board {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.dc-board__row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fafcfb;
  border: 1px solid #edf2f0;
  animation: dc-rise 0.35s ease both;
}

@keyframes dc-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.dc-board__rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8efec;
  color: var(--dc-emerald-700);
  font-weight: 800;
  font-size: 0.9rem;
}

.dc-board__row--1 { background: linear-gradient(135deg, #fff8df, #fff); border-color: #f6dc8a; }
.dc-board__row--2 { background: linear-gradient(135deg, #f3f5f7, #fff); border-color: #d7dde3; }
.dc-board__row--3 { background: linear-gradient(135deg, #fbefe6, #fff); border-color: #ecc8ab; }

.dc-board__row--1 .dc-board__rank { background: linear-gradient(135deg, #ffd65a, #e9a90e); color: #fff; }
.dc-board__row--2 .dc-board__rank { background: linear-gradient(135deg, #cfd6de, #98a3ae); color: #fff; }
.dc-board__row--3 .dc-board__rank { background: linear-gradient(135deg, #e7a877, #b9703a); color: #fff; }

.dc-board__main { min-width: 0; }

.dc-board__name {
  display: block;
  font-weight: 700;
  color: var(--dc-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-board__meta {
  display: block;
  font-size: 0.76rem;
  color: var(--dc-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-board__bar {
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: #e9efed;
  overflow: hidden;
}

.dc-board__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dc-gold-400), var(--dc-coral-500));
  transition: width 0.6s ease;
}

.dc-board__score {
  text-align: right;
  line-height: 1.1;
}

.dc-board__score strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dc-emerald-800);
}

.dc-board__score small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--dc-muted);
}

.dc-empty {
  margin: 8px 0 12px;
  padding: 22px 12px;
  border-radius: 14px;
  background: #f7faf9;
  text-align: center;
  color: var(--dc-muted);
  font-weight: 600;
}

.dc-empty i { color: var(--dc-teal-500); margin-right: 6px; }
.dc-skeleton {
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef3f1 25%, #f8fbfa 50%, #eef3f1 75%);
  background-size: 200% 100%;
  animation: dc-shimmer 1.2s infinite;
}

@keyframes dc-shimmer {
  to { background-position: -200% 0; }
}

/* ---------- Lookup ---------- */
.dc-orders {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dc-order {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7fbfa;
  border: 1px solid #e3eeea;
}

.dc-order__title { font-weight: 700; }
.dc-order__meta { font-size: 0.78rem; color: var(--dc-muted); }

.dc-order__status {
  align-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #eef1f0;
  color: var(--dc-muted);
}

.dc-order__status--success { background: #dcf7ea; color: #0b7a4b; }
.dc-order__status--failed,
.dc-order__status--cancelled { background: #ffe5de; color: #b23a1e; }
.dc-order__status--initiated { background: #fff3cf; color: #8a6200; }

.dc-order .dc-btn {
  grid-column: 1 / -1;
  min-height: 40px;
  font-size: 0.88rem;
}

/* ---------- Contact ---------- */
.dc-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dc-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eef6f2;
  color: var(--dc-emerald-800);
  font-weight: 700;
  text-decoration: none;
}

.dc-contact__item--wa { background: #25d366; color: #fff; }

.dc-contact__addr {
  margin: 14px 0;
  font-size: 0.86rem;
  color: var(--dc-muted);
}

.dc-poster {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  max-height: 240px;
  text-decoration: none;
}

.dc-poster img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.dc-poster span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(3, 42, 34, 0.9));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Sticky mobile pay bar ---------- */
.dc-sticky {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--dc-emerald-900), var(--dc-emerald-700));
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(3, 42, 34, 0.8);
  transform: translateY(140%);
  transition: transform 0.25s ease;
}

.dc-sticky.is-visible { transform: none; }

.dc-sticky__total small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.dc-sticky__total strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dc-gold-300);
}

/* ---------- Receipt dialog ---------- */
.dc-receipt-modal {
  width: min(460px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.dc-receipt-modal::backdrop {
  background: rgba(3, 42, 34, 0.6);
  backdrop-filter: blur(3px);
}

.dc-receipt {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(249, 199, 79, 0.16), transparent 140px),
    #fff;
}

.dc-receipt__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #e6ece9;
}

.dc-receipt__head img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.dc-receipt__head h3 {
  margin: 0;
  color: var(--dc-emerald-800);
}

.dc-receipt__head p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--dc-muted);
}

.dc-receipt__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 14px 0;
  font-size: 0.92rem;
}

.dc-receipt__body dt { color: var(--dc-muted); }
.dc-receipt__body dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }

.dc-receipt__body .dc-receipt__amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dc-coral-600);
}

.dc-receipt__thanks {
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  background: #eef8f4;
  text-align: center;
  color: var(--dc-emerald-700);
  font-weight: 700;
}

.dc-receipt__actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

.dc-receipt__actions .dc-btn { flex: 1; }

/* ---------- Tablet & desktop ---------- */
@media (min-width: 640px) {
  .dc-page { padding: 20px 20px 60px; }
  .dc-hero { padding: 28px; }
  .dc-field-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .dc-stat--amount { grid-column: auto; }
  .dc-stat { padding: 18px; }
  .dc-card { padding: 24px; }
  .dc-tab { padding: 0 14px; font-size: 0.88rem; }
}

@media (min-width: 960px) {
  .dc-hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 40px;
  }
  .dc-hero__badge { width: 132px; height: 132px; right: 22px; bottom: 22px; }
  .dc-hero__badge span { font-size: 0.95rem; }
  .dc-hero__badge strong { font-size: 1.75rem; }
  .dc-stats { margin: 22px 0; }
  .dc-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
  .dc-sticky { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dc-body *,
  .dc-body *::before,
  .dc-body *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body.dc-printing > *:not(.dc-receipt-modal) { display: none !important; }
  body.dc-printing .dc-receipt-modal {
    position: static;
    display: block;
    box-shadow: none;
    width: 100%;
  }
  body.dc-printing .dc-receipt__actions { display: none; }
}
