/* ThisDecal — CSS chung 3 trang dịch vụ (Views/Services/):
   Dán PPF (Ppf.cshtml), Dán đổi màu (ColorChange.cshtml), Thiết kế theo yêu cầu (CustomDesign.cshtml) */

/* --------------------------------------------------------------------------
   Kicker dịch vụ (gạch ngang 34px + chữ Oswald vàng)
   -------------------------------------------------------------------------- */
.td-svc-kicker { display: flex; align-items: center; gap: 12px; }
.td-svc-kicker__bar { width: 34px; height: 2px; background: var(--td-accent); }
.td-svc-kicker__text {
  font-family: var(--td-font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--td-accent-text);
}

/* --------------------------------------------------------------------------
   Hero dịch vụ
   -------------------------------------------------------------------------- */
.td-svc-hero {
  position: relative;
  background: #0d0d0d;
  border-bottom: 1px solid #222;
  overflow: hidden;
  /* Band tối trên theme sáng: re-declare token chữ sáng trong scope */
  --td-text: #fff;
  --td-text-soft: #d4d4d4;
  --td-muted: #a0a0a0;
  --td-dim: #6d6d6d;
  --td-border: #2a2a2a;
  --td-accent-text: #fcb915;
  color: var(--td-text);
}
.td-svc-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.td-svc-hero__glow {
  position: absolute;
  right: -120px;
  top: -40%;
  width: 420px;
  height: 180%;
  background: radial-gradient(circle, rgba(252, 185, 21, .09), transparent 65%);
  pointer-events: none;
}

.td-svc-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 56px;
}

.td-svc-hero__breadcrumb { font-size: 14px; color: var(--td-muted); margin-bottom: 18px; }
.td-svc-hero__breadcrumb a { color: var(--td-muted); }
.td-svc-hero__breadcrumb a:hover { color: var(--td-accent-text); }
.td-svc-hero__breadcrumb-sep { color: var(--td-dim); margin: 0 6px; }
.td-svc-hero__breadcrumb-current { color: var(--td-text); }

.td-svc-hero__title {
  margin: 22px 0 0;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.3;
  color: var(--td-text);
}
.td-svc-hero__highlight {
  display: inline-block;
  padding: 2px 18px 8px;
  background: var(--td-accent);
  color: var(--td-ink);
  line-height: 1.3;
  transform: skewX(-8deg);
  box-shadow: 6px 6px 0 rgba(252, 185, 21, .18);
}
.td-svc-hero__highlight > span { display: inline-block; transform: skewX(8deg); }

.td-svc-hero__lead {
  margin: 22px 0 0;
  max-width: 460px;
  font-size: 16px;
  color: #a8a8a8;
}

.td-svc-hero__actions { margin-top: 30px; }

.td-svc-hero__stats {
  margin-top: 40px;
  display: flex;
  border-top: 1px solid var(--td-border);
  padding-top: 22px;
}
.td-svc-hero__stat { padding-inline: 28px; }
.td-svc-hero__stat:first-child { padding-left: 0; }
.td-svc-hero__stat + .td-svc-hero__stat { border-left: 1px solid var(--td-border); }
.td-svc-hero__stat-num {
  font-family: var(--td-font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--td-text);
  line-height: 1;
}
.td-svc-hero__stat-num span { color: var(--td-accent-text); }
.td-svc-hero__stat-label {
  font-size: 12.5px;
  color: #8a8a8a;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.td-svc-hero__visual { position: relative; z-index: 1; min-height: 460px; }

/* Sticker vàng xoay nghiêng (badge nổi trong hero) */
.td-svc-sticker {
  position: absolute;
  z-index: 3;
  background: var(--td-accent);
  color: var(--td-ink);
  border: 3px solid var(--td-ink);
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 0 2px var(--td-accent);
}
.td-svc-sticker__label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}
.td-svc-sticker__value {
  display: block;
  font-family: var(--td-font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
}

/* Chip trạng thái (chấm xanh + chữ) đặt trong panel visual */
.td-svc-chip {
  position: absolute;
  top: 14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(13, 13, 13, .8);
  border: 1px solid var(--td-border);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.td-svc-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--td-success); }
.td-svc-chip__text { font-size: 12px; font-weight: 700; color: var(--td-text-soft); letter-spacing: .4px; }

/* --------------------------------------------------------------------------
   Băng CTA vàng cuối trang
   -------------------------------------------------------------------------- */
.td-svc-cta {
  position: relative;
  margin-top: 64px;
  background: var(--td-accent);
  overflow: hidden;
}
.td-svc-cta .td-container { padding-block: 38px; }
.td-svc-cta__stripe {
  position: absolute;
  top: -30%;
  height: 160%;
  background: #141414;
  transform: skewX(-18deg);
}
.td-svc-cta__stripe--1 { right: 6%; width: 16px; }
.td-svc-cta__stripe--2 { right: 10%; width: 8px; }
.td-svc-cta__title { font-size: clamp(22px, 3vw, 32px); color: var(--td-ink); margin: 0; }
.td-svc-cta__sub {
  margin: 6px 0 0;
  color: #2b2b2b;
  font-weight: 600;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Card lợi ích ("Vì sao nên dán PPF?")
   -------------------------------------------------------------------------- */
.td-benefit-card {
  height: 100%;
  padding: 24px 20px;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 10px;
}
.td-benefit-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--td-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.td-benefit-card__title { font-weight: 700; font-size: 15.5px; }
.td-benefit-card__sub { font-size: 13.5px; color: var(--td-muted); margin-top: 5px; }

/* --------------------------------------------------------------------------
   Card bảng giá (gói PPF)
   -------------------------------------------------------------------------- */
.td-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 14px;
}
.td-price-card--featured {
  border: 2px solid var(--td-accent);
  box-shadow: 0 18px 50px rgba(252, 185, 21, .12);
}
.td-price-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--td-accent);
  color: var(--td-ink);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  border-radius: 20px;
  white-space: nowrap;
}
.td-price-card__name {
  font-family: var(--td-font-heading);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--td-text);
}
.td-price-card__sub { font-size: 13px; color: var(--td-muted); margin-top: 4px; }
.td-price-card__price {
  margin: 18px 0 6px;
  font-family: var(--td-font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--td-accent-text);
  line-height: 1.15;
}
.td-price-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
  color: #c9c9c9;
}
.td-price-card__features span { display: flex; gap: 9px; }
.td-price-card__check { color: var(--td-accent-text); flex: 0 0 auto; }
.td-price-card__cta { margin-top: auto; padding-top: 22px; }

/* --------------------------------------------------------------------------
   Trang Dán PPF — visual hero (lớp sơn + lớp phim)
   -------------------------------------------------------------------------- */
.td-ppf-visual__paint {
  position: absolute;
  top: 70px;
  left: 16%;
  right: 6%;
  bottom: 110px;
  border-radius: 12px;
  background: linear-gradient(145deg, #8a1f1f, #4a0d0d 60%, #701616);
  border: 1px solid var(--td-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .65);
}
.td-ppf-visual__film {
  position: absolute;
  top: 46px;
  left: 8%;
  right: 14%;
  bottom: 134px;
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .1));
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(1px);
}
.td-ppf-visual__shine {
  position: absolute;
  top: 0;
  left: 12%;
  width: 34%;
  height: 100%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
  pointer-events: none;
}
.td-ppf-visual__paint-label {
  position: absolute;
  left: 24%;
  bottom: 150px;
  font-family: var(--td-font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.td-ppf-visual__heal {
  position: absolute;
  left: 0;
  bottom: 46px;
  z-index: 3;
  width: 58%;
  /* Card sáng trong hero tối: reset token chữ tối */
  --td-text: #111;
  --td-muted: #565656;
  --td-dim: #9a9a9a;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .6);
}
.td-ppf-visual__heal-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--td-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.td-ppf-visual__heal-title { font-size: 13.5px; font-weight: 700; color: var(--td-text); }
.td-ppf-visual__bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: var(--td-bg);
  overflow: hidden;
}
.td-ppf-visual__bar-fill {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--td-accent), var(--td-accent-hover));
}
.td-ppf-visual__heal-note { margin-top: 7px; font-size: 12px; color: #8a8a8a; }
.td-ppf-visual .td-svc-sticker { right: 0; top: 16px; transform: rotate(4deg); }

/* --------------------------------------------------------------------------
   Trang Dán đổi màu — visual hero (3 tấm màu nghiêng)
   -------------------------------------------------------------------------- */
.td-cc-visual__panel {
  position: absolute;
  width: 30%;
  transform: skewX(-9deg);
  border-radius: 6px;
  border: 1px solid var(--td-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
}
.td-cc-visual__panel--matte { top: 56px; bottom: 56px; left: 6%; background: linear-gradient(145deg, #3a3f47, #22262c); }
.td-cc-visual__panel--gloss { top: 40px; bottom: 72px; left: 34%; background: linear-gradient(145deg, #8a1f1f, #4a0d0d 60%, #701616); }
.td-cc-visual__panel--chrome { top: 66px; bottom: 46px; left: 62%; background: linear-gradient(145deg, #cfd6e0, #77808d 55%, #aab3bf); }
.td-cc-visual__shine {
  position: absolute;
  top: 0;
  height: 100%;
  pointer-events: none;
}
.td-cc-visual__shine--gloss {
  left: 18%;
  width: 30%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
}
.td-cc-visual__shine--chrome {
  left: 22%;
  width: 26%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
}
.td-cc-visual__label {
  position: absolute;
  bottom: 24px;
  font-family: var(--td-font-heading);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.td-cc-visual__label--matte { left: 10%; }
.td-cc-visual__label--gloss { left: 42%; }
.td-cc-visual__label--chrome { left: 69%; }
.td-cc-visual .td-svc-sticker { right: 0; top: 12px; transform: rotate(4deg); }

/* --------------------------------------------------------------------------
   Trang Dán đổi màu — chọn chất liệu / hiệu ứng
   -------------------------------------------------------------------------- */
.td-swatch {
  display: block;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
}
.td-swatch--matte { background: linear-gradient(145deg, #3a3f47, #22262c); }
.td-swatch--gloss { background: linear-gradient(145deg, #8a1f1f, #4a0d0d 60%, #701616); }
.td-swatch--satin { background: linear-gradient(145deg, #5a6e5a, #2e3b2e); }
.td-swatch--chrome { background: linear-gradient(145deg, #cfd6e0, #77808d 55%, #aab3bf); }

.td-finish-btn {
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 20px;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.td-finish-btn .td-swatch { width: 100%; height: 84px; }
.td-finish-btn:hover { border-color: var(--td-border-light); }
.td-finish-btn.is-active { border-color: var(--td-accent-text); transform: translateY(-3px); }
.td-finish-btn__name { display: block; font-weight: 700; font-size: 15px; margin-top: 14px; color: var(--td-text); }
.td-finish-btn__desc { display: block; font-size: 12.5px; color: var(--td-muted); margin-top: 3px; }

.td-finish-picked {
  margin-top: 22px;
  padding: 20px 24px;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 12px;
}
.td-finish-picked .td-swatch { width: 64px; height: 64px; border-radius: 10px; flex: 0 0 auto; }
.td-finish-picked__info { min-width: 240px; }
.td-finish-picked__name { font-weight: 700; font-size: 16px; }
.td-finish-picked__desc { font-size: 13.5px; color: var(--td-muted); margin-top: 3px; }
.td-finish-picked__price-label {
  font-size: 12.5px;
  color: var(--td-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.td-finish-picked__price {
  font-family: var(--td-font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--td-accent-text);
}

/* Card gói dịch vụ đổi màu */
.td-svc-offer {
  height: 100%;
  padding: 26px 24px;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 12px;
}
.td-svc-offer__name {
  font-family: var(--td-font-heading);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--td-text);
}
.td-svc-offer__price {
  margin: 14px 0 4px;
  font-family: var(--td-font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--td-accent-text);
}
.td-svc-offer__desc { font-size: 13.5px; color: var(--td-muted); }

/* Ghi chú pháp lý */
.td-note {
  max-width: 900px;
  margin-inline: auto;
  padding: 24px 28px;
  background: rgba(252, 185, 21, .06);
  border: 1px solid rgba(252, 185, 21, .3);
  border-radius: 12px;
}
.td-note__icon { flex: 0 0 auto; color: var(--td-accent-text); }
.td-note__text { font-size: 14px; color: #c9c9c9; line-height: 1.7; }
.td-note__text strong { color: var(--td-text); }

/* --------------------------------------------------------------------------
   Trang Thiết kế — visual hero (mockup demo + chat designer)
   -------------------------------------------------------------------------- */
.td-design-visual { min-height: 500px; }
.td-design-visual__demo {
  position: absolute;
  top: 54px;
  right: 0;
  left: 14%;
  bottom: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #15161a;
  border: 1px solid var(--td-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .65);
}
.td-design-visual__demo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 88%;
}
.td-design-visual__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, .45), transparent 30%, transparent 62%, rgba(13, 13, 13, .55));
  pointer-events: none;
}
.td-design-visual__caption {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.td-design-visual__concept {
  font-family: var(--td-font-heading);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--td-text);
  letter-spacing: .5px;
}
.td-design-visual__dots { display: inline-flex; gap: 8px; }
.td-design-visual__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
}
.td-design-visual__dot--red { background: var(--td-price); border-color: rgba(255, 255, 255, .85); }
.td-design-visual__dot--white { background: #f4f4f4; }
.td-design-visual__dot--accent { background: var(--td-accent); }
.td-design-visual .td-svc-sticker { top: 22px; left: 6%; transform: rotate(-5deg); }
.td-design-visual .td-svc-sticker__value { font-size: 26px; }

.td-design-chat {
  position: absolute;
  left: 0;
  bottom: 36px;
  z-index: 3;
  /* Card sáng trong hero tối: reset token chữ tối */
  --td-text: #111;
  --td-text-soft: #333;
  --td-muted: #565656;
  --td-dim: #9a9a9a;
  --td-accent-text: #b97a10;
  width: 56%;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .6);
}
.td-design-chat__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #efefef;
  color: var(--td-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--td-font-heading);
  font-weight: 600;
  font-size: 14px;
}
.td-design-chat__name { font-size: 13.5px; font-weight: 700; color: var(--td-text); }
.td-design-chat__meta { font-size: 11.5px; color: #8a8a8a; }
.td-design-chat__bubble {
  margin-top: 12px;
  padding: 11px 14px;
  background: var(--td-bg);
  border: 1px solid var(--td-border);
  border-radius: 10px;
  border-top-left-radius: 2px;
  font-size: 13px;
  color: #444;
  line-height: 1.55;
}
.td-design-chat__actions { margin-top: 10px; display: flex; gap: 8px; }
.td-design-chat__btn {
  flex: 1;
  text-align: center;
  padding: 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.td-design-chat__btn--primary { background: var(--td-accent); color: var(--td-ink); }
.td-design-chat__btn--ghost { border: 1px solid var(--td-border-light); color: #444; }

/* --------------------------------------------------------------------------
   Trang Thiết kế — heading section, quy trình 4 bước
   -------------------------------------------------------------------------- */
.td-design-h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--td-text);
  line-height: 1.2;
}
.td-design-h2 span { color: var(--td-accent-text); }
.td-design-heading-note { font-size: 13.5px; color: #8a8a8a; padding-bottom: 8px; }

.td-design-count {
  font-family: var(--td-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--td-text);
  line-height: 1;
}
.td-design-count span { color: var(--td-accent-text); }
.td-design-count__label {
  font-size: 12.5px;
  color: #8a8a8a;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.td-step-card {
  position: relative;
  height: 100%;
  padding: 24px 22px 26px;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.td-step-card:hover { border-color: var(--td-accent-text); }
.td-step-card__num {
  position: absolute;
  top: -14px;
  right: 6px;
  font-family: var(--td-font-heading);
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  color: rgba(252, 185, 21, .09);
}
.td-step-card__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--td-accent-soft);
  align-items: center;
  justify-content: center;
}
.td-step-card__title {
  font-family: var(--td-font-body);
  text-transform: none;
  font-size: 16.5px;
  font-weight: 700;
  margin: 16px 0 6px;
  letter-spacing: 0;
}
.td-step-card__desc { color: var(--td-muted); font-size: 13.5px; margin: 0; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Trang Thiết kế — form gửi yêu cầu
   -------------------------------------------------------------------------- */
.td-design-form-wrap {
  border: 1px solid var(--td-border);
  border-radius: 14px;
  overflow: hidden;
}
.td-design-form { padding: 32px; background: var(--td-bg-alt); }
.td-design-form__title { font-size: 24px; color: var(--td-text); margin: 0 0 6px; }
.td-design-form__sub { color: var(--td-muted); font-size: 14px; margin: 0 0 22px; }

.td-design-form__upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 1.5px dashed var(--td-border-light);
  border-radius: 8px;
  color: var(--td-muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.td-design-form__upload:hover { border-color: var(--td-accent-text); color: var(--td-text-soft); }

.td-design-form__side { position: relative; background: #f4f4f4; min-height: 420px; }
.td-design-form__side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.td-design-form__side-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .85));
}
.td-design-form__side-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.td-design-form__side-title {
  font-family: var(--td-font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--td-text);
}
.td-design-form__side-sub { color: var(--td-text-soft); font-size: 13.5px; margin-top: 4px; }

/* --------------------------------------------------------------------------
   Trang Thiết kế — lookbook mẫu đã thực hiện
   -------------------------------------------------------------------------- */
.td-design-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 14px;
}
.td-design-gallery__tile {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f4f4;
  border: 1px solid var(--td-border);
  transition: border-color .25s ease;
}
.td-design-gallery__tile:hover { border-color: var(--td-accent-text); }
.td-design-gallery__tile--big { grid-column: span 2; grid-row: span 2; }
.td-design-gallery__tile--wide { grid-column: span 2; }
.td-design-gallery__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.td-design-gallery__tile:hover img { transform: scale(1.06); }
.td-design-gallery__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, .3), transparent 32%, transparent 56%, rgba(13, 13, 13, .9));
  pointer-events: none;
}
.td-design-gallery__num {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--td-font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.td-design-gallery__tag {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 3px 11px;
  background: rgba(252, 185, 21, .94);
  color: var(--td-ink);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  border-radius: 20px;
}
.td-design-gallery__caption { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.td-design-gallery__name {
  display: block;
  font-family: var(--td-font-heading);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--td-text);
  line-height: 1.25;
}
.td-design-gallery__sub { display: block; font-size: 12.5px; color: #c9c9c9; margin-top: 2px; }

/* Ô CTA vàng cuối grid */
.td-design-gallery__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: var(--td-accent);
  color: var(--td-ink);
  border-radius: 10px;
  overflow: hidden;
}
.td-design-gallery__cta:hover { color: var(--td-ink); }
.td-design-gallery__cta-stripe {
  position: absolute;
  top: -30%;
  height: 160%;
  background: #141414;
  transform: skewX(-18deg);
  opacity: .9;
}
.td-design-gallery__cta-stripe--1 { right: 14%; width: 12px; }
.td-design-gallery__cta-stripe--2 { right: 20%; width: 6px; }
.td-design-gallery__cta-num {
  position: relative;
  z-index: 1;
  font-family: var(--td-font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: rgba(17, 17, 17, .6);
}
.td-design-gallery__cta-title {
  position: relative;
  z-index: 1;
  font-family: var(--td-font-heading);
  font-size: 23px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}
.td-design-gallery__cta-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .td-design-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .td-svc-hero__stats { flex-wrap: wrap; row-gap: 18px; }
}
