/* ==========================================================================
   SC-PRA  |  theme.css  —  ระบบดีไซน์กลาง (ดำอุ่น + ทองเก่า)
   ใช้ร่วมกับ Bootstrap 5.3 (data-bs-theme="dark")
   โทนสีอ้างอิงจากแบนเนอร์หัวเว็บเดิม: ทองเก่า วัดโบราณ ดำอุ่น
   ========================================================================== */

:root {
  --ink: #0f0d0a;          /* พื้นหลังหลัก */
  --surface: #17130e;      /* พื้นการ์ด/แผง */
  --raised: #211b14;       /* พื้นเมื่อ hover / ส่วนยก */
  --line: #3a3127;         /* เส้นขอบหลัก */
  --line-soft: #2a231b;    /* เส้นแบ่งรอง */
  --ivory: #f2ebdc;        /* ข้อความหลัก */
  --muted: #aaa08c;        /* ข้อความรอง */
  --gold: #d9a93a;         /* ทองเก่า: ลิงก์ / ขอบเน้น */
  --gold-bright: #ebb93c;  /* ทองสว่าง: ปุ่มหลัก / ราคาที่มีผู้เคาะ */
  --gold-deep: #a97f1f;    /* ทองเข้ม: เส้นขอบเน้น */
  --on-gold: #1a1304;      /* ตัวอักษรบนพื้นทอง */
  --cinnabar: #ee6a55;     /* สีชาด: ใกล้หมดเวลา / ข้อผิดพลาด */
  --jade: #6dbe95;         /* เขียวหยก: เวลายังเหลือ */

  --font-head: 'Kanit', 'Sarabun', system-ui, sans-serif;
  --font-body: 'Sarabun', 'Kanit', system-ui, sans-serif;

  --r-lg: 12px;
  --r-md: 8px;
  --r-sm: 6px;
  --topbar-h: 60px;
}

/* ---------- Bootstrap dark: ผูกตัวแปรกับสีของเรา ---------- */
[data-bs-theme="dark"] {
  --bs-body-bg: var(--ink);
  --bs-body-color: var(--ivory);
  --bs-body-font-family: var(--font-body);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line);
  --bs-emphasis-color: var(--ivory);
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;           /* ภาษาไทยต้องการระยะบรรทัดมากกว่าภาษาอังกฤษ */
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ivory);
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; }
.text-muted, .text-secondary { color: var(--muted) !important; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
.dd-skip {
  position: absolute; left: -999px; top: 8px; z-index: 2000;
  background: var(--gold-bright); color: var(--on-gold);
  padding: .5rem 1rem; border-radius: var(--r-sm); font-family: var(--font-head);
}
.dd-skip:focus { left: 8px; color: var(--on-gold); }

.dd-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }

/* ---------- ปุ่ม ---------- */
.btn {
  min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 500;
  border-radius: var(--r-sm);
}
.btn-sm { min-height: 36px; }
.btn-lg { min-height: 48px; font-size: 1.05rem; }
.btn-gold {
  --bs-btn-color: var(--on-gold);
  --bs-btn-bg: var(--gold-bright);
  --bs-btn-border-color: var(--gold-bright);
  --bs-btn-hover-color: var(--on-gold);
  --bs-btn-hover-bg: #f7cb55;
  --bs-btn-hover-border-color: #f7cb55;
  --bs-btn-active-color: var(--on-gold);
  --bs-btn-active-bg: #d9a93a;
  --bs-btn-active-border-color: #d9a93a;
  --bs-btn-disabled-color: var(--on-gold);
  --bs-btn-disabled-bg: var(--gold-deep);
  --bs-btn-disabled-border-color: var(--gold-deep);
  --bs-btn-focus-shadow-rgb: 235, 185, 60;
  font-weight: 600;
}
.btn-ghost {
  --bs-btn-color: var(--ivory);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-color: var(--gold-bright);
  --bs-btn-hover-bg: var(--raised);
  --bs-btn-hover-border-color: var(--gold-deep);
  --bs-btn-active-color: var(--gold-bright);
  --bs-btn-active-bg: var(--raised);
  --bs-btn-active-border-color: var(--gold);
  --bs-btn-focus-shadow-rgb: 235, 185, 60;
}

/* ---------- ฟอร์ม ---------- */
.form-label { font-weight: 600; margin-bottom: .35rem; }
.form-control, .form-select {
  background-color: var(--ink);
  border: 1px solid var(--line);
  color: var(--ivory);
  min-height: 46px;
  border-radius: var(--r-sm);
}
textarea.form-control { min-height: 0; }
.form-control::placeholder { color: #7d7464; }
.form-control:focus, .form-select:focus {
  background-color: var(--ink);
  color: var(--ivory);
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(217, 169, 58, .22);
}
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--cinnabar); background-image: none; padding-right: .75rem; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 .2rem rgba(238, 106, 85, .22); }
.form-text { color: var(--muted); font-size: .875rem; }
.invalid-feedback { color: var(--cinnabar); font-size: .9rem; }
.form-check-input { background-color: var(--ink); border-color: var(--gold-deep); }
.form-check-input:checked { background-color: var(--gold-bright); border-color: var(--gold-bright); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(217, 169, 58, .22); border-color: var(--gold); }
input[type="file"].form-control::file-selector-button {
  background: var(--raised); color: var(--ivory); border: 0; border-right: 1px solid var(--line);
  padding: .6rem 1rem; margin-right: .9rem;
}

.alert { border-radius: var(--r-md); border-width: 1px; }
.alert-danger  { --bs-alert-bg: rgba(238,106,85,.10); --bs-alert-border-color: rgba(238,106,85,.5); --bs-alert-color: #ffb3a7; }
.alert-success { --bs-alert-bg: rgba(109,190,149,.10); --bs-alert-border-color: rgba(109,190,149,.5); --bs-alert-color: #a9e0c4; }
.alert-secondary { --bs-alert-bg: var(--surface); --bs-alert-border-color: var(--line); --bs-alert-color: var(--muted); }

/* ==========================================================================
   แถบนำทางด้านบน
   ========================================================================== */
.dd-topbar {
  position: sticky; top: 0; z-index: 1030;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.dd-topbar__in { display: flex; align-items: center; gap: 12px; min-height: var(--topbar-h); }
.dd-brand {
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  color: var(--gold); white-space: nowrap; line-height: 1;
}
.dd-brand:hover { color: var(--gold-bright); }
.dd-brand span { color: var(--ivory); font-weight: 400; font-size: .8em; }

.dd-burger {
  width: 42px; height: 42px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.dd-burger:hover { border-color: var(--gold-deep); color: var(--gold-bright); }

.dd-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.dd-nav a {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .85rem; border-radius: var(--r-sm);
  color: var(--ivory); font-family: var(--font-head); font-size: .95rem;
}
.dd-nav a:hover { background: var(--raised); color: var(--gold-bright); }
.dd-nav a[aria-current="page"] { color: var(--gold-bright); box-shadow: inset 0 -2px 0 var(--gold); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.dd-nav i { color: var(--gold-deep); width: 1.1em; text-align: center; }

.dd-offcanvas { --bs-offcanvas-width: 290px; --bs-offcanvas-bg: var(--surface); --bs-offcanvas-border-color: var(--line); }
.dd-offcanvas .dd-nav { flex-direction: column; gap: 0; }
.dd-offcanvas .dd-nav a { padding: .9rem .5rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1.05rem; }
.dd-offcanvas .dd-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: .9rem; border-radius: 0; }

.dd-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.dd-userchip {
  display: flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ivory);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 14px 3px 3px; min-height: 42px;
  font-family: var(--font-head); font-size: .95rem;
}
.dd-userchip:hover, .dd-userchip.show { border-color: var(--gold-deep); color: var(--gold-bright); }
.dd-userchip::after { margin-left: .2rem; }
.dd-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: var(--raised); }

.dd-account__menu {
  --bs-dropdown-bg: var(--surface);
  --bs-dropdown-border-color: var(--line);
  --bs-dropdown-border-radius: var(--r-lg);
  --bs-dropdown-link-hover-bg: var(--raised);
  width: 310px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden;
}
.dd-account__head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line-soft); }
.dd-account__head .dd-avatar { width: 52px; height: 52px; }
.dd-account__name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.3; word-break: break-word; }
.dd-role { display: inline-block; font-size: .8rem; padding: 0 .55rem; border-radius: 999px; border: 1px solid var(--gold-deep); color: var(--gold); }
.dd-role.is-vip { background: var(--gold-bright); color: var(--on-gold); border-color: var(--gold-bright); font-weight: 600; }
.dd-role.is-admin { border-color: var(--cinnabar); color: var(--cinnabar); }

.dd-stats { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.dd-stats dt { color: var(--muted); font-weight: 400; }
.dd-stats dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.dd-account__links a { display: flex; align-items: center; gap: .7rem; padding: .65rem 16px; color: var(--ivory); }
.dd-account__links a:hover { background: var(--raised); color: var(--gold-bright); }
.dd-account__links a i { width: 1.2em; text-align: center; color: var(--gold-deep); }
.dd-account__links a.is-vip { color: var(--gold-bright); }
.dd-account__links a.is-admin { color: var(--cinnabar); }
.dd-account__links a.is-out { border-top: 1px solid var(--line-soft); color: var(--muted); }
.dd-account__links a.is-out:hover { color: var(--cinnabar); }

/* ==========================================================================
   หน้าแรก
   ========================================================================== */
.dd-banner { margin-top: 16px; }
.dd-banner img {
  display: block; width: 100%;
  height: clamp(110px, 17.3vw, 236px);   /* สัดส่วนเดิม 1366x236; มือถือครอปด้านข้างแต่ยังเห็นข้อความกลางภาพ */
  object-fit: cover; object-position: center;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.dd-banner--text {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: clamp(110px, 17.3vw, 236px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.6rem); color: var(--gold); font-weight: 600;
}

.dd-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-block: 24px 56px; align-items: start; }
.dd-main > * + * { margin-top: 36px; }
.dd-main > .visually-hidden + * { margin-top: 0; }
.dd-rail { position: sticky; top: calc(var(--topbar-h) + 16px); display: grid; gap: 20px; }
@media (max-width: 991.98px) {
  .dd-shell { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .dd-rail { position: static; }
}

.dd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dd-h2 { font-size: 1.4rem; margin: 0; }
.dd-h3 { font-size: 1.1rem; margin: 26px 0 12px; color: var(--muted); font-weight: 500; }
.dd-head__more { font-family: var(--font-head); font-size: .95rem; white-space: nowrap; }

/* สไลด์ */
.dd-slides { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.dd-slides img { display: block; width: 100%; height: auto; aspect-ratio: var(--slide-ratio, 1030 / 315); object-fit: cover; }
.dd-slides .carousel-indicators { margin-bottom: .6rem; }
.dd-slides .carousel-indicators [data-bs-target] { width: 26px; height: 4px; border: 0; background-color: var(--ivory); }

/* ประกาศ */
.dd-notice { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.dd-notice li + li { border-top: 1px solid var(--line-soft); }
.dd-notice a { display: flex; align-items: center; gap: 14px; padding: .75rem 1rem; color: var(--ivory); }
.dd-notice a:hover { background: var(--raised); color: var(--gold-bright); }
.dd-notice__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-notice__pin { color: var(--gold); margin-right: .4rem; }
.dd-notice__meta { color: var(--muted); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* ราคาและเวลา */
.dd-price {
  font-family: var(--font-head); font-weight: 600; line-height: 1.25;
  font-variant-numeric: tabular-nums; color: var(--ivory);
}
.dd-price small { font-size: .62em; font-weight: 400; color: var(--muted); margin-left: .25em; }
.dd-price.has-bids { color: var(--gold-bright); }

.dd-count {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-size: .9rem; line-height: 1.5;
  font-variant-numeric: tabular-nums;
  padding: .1rem .65rem; border-radius: 999px;
  border: 1px solid rgba(109, 190, 149, .45); color: var(--jade);
}
.dd-count::before { content: "\f017"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .85em; }
.dd-count.is-soon { color: var(--cinnabar); border-color: var(--cinnabar); animation: dd-pulse 1.1s ease-in-out infinite alternate; }
.dd-count.is-closed { color: var(--muted); border: 1px dashed var(--line); animation: none; }
@keyframes dd-pulse { from { opacity: 1; } to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .dd-count.is-soon { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* อันดับ 1 */
.dd-lot {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--gold-deep); border-top: 3px solid var(--gold);
  border-radius: var(--r-lg); overflow: hidden;
}
.dd-lot__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #000; }
.dd-lot__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dd-lot__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold-bright); color: var(--on-gold);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .1rem .8rem; border-radius: 999px;
}
.dd-lot__body { padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.dd-lot__title { font-size: 1.55rem; margin: 0; word-break: break-word; }
.dd-lot__title a { color: var(--ivory); }
.dd-lot__title a:hover { color: var(--gold-bright); }
.dd-lot__seller { margin: 0; color: var(--muted); }
.dd-lot__seller b { color: var(--ivory); font-weight: 500; }
.dd-figures { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.dd-label { display: block; color: var(--muted); font-size: .85rem; }
.dd-lot .dd-price { font-size: 2.3rem; }
.dd-lot .dd-count { font-size: 1.25rem; padding: .15rem .95rem; }
.dd-lot .btn { align-self: flex-start; }
@media (max-width: 767.98px) {
  .dd-lot { grid-template-columns: minmax(0, 1fr); }
  .dd-lot__media { aspect-ratio: 4 / 3; }
  .dd-lot__body { padding: 18px; }
  .dd-lot__title { font-size: 1.3rem; }
  .dd-lot .dd-price { font-size: 2rem; }
  .dd-lot .btn { align-self: stretch; }
}

/* กริดรายการประมูล */
.dd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.dd-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.dd-card:hover, .dd-card:focus-within { border-color: var(--gold-deep); }
.dd-card__media { display: block; aspect-ratio: 1 / 1; background: #000; }
.dd-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dd-card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; }
.dd-card__title {
  font-size: 1rem; line-height: 1.5; margin: 0; min-height: 3em;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word;
}
.dd-card__title a { color: var(--ivory); }
.dd-card__title a::after { content: ""; position: absolute; inset: 0; }   /* คลิกได้ทั้งการ์ด */
.dd-card:hover .dd-card__title a { color: var(--gold-bright); }
.dd-card .dd-price { font-size: 1.3rem; }
.dd-card__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.dd-bids { color: var(--muted); font-size: .85rem; }
.dd-bids i { color: var(--gold-deep); }
@media (max-width: 575.98px) {
  .dd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dd-card__body { padding: 10px; }
  .dd-card__title { font-size: .95rem; }
  .dd-card .dd-price { font-size: 1.15rem; }
  .dd-count { font-size: .82rem; padding: .05rem .5rem; }
}

/* ผู้สนับสนุน */
.dd-sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.dd-sponsor { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; color: var(--ivory); }
.dd-sponsor:hover { border-color: var(--gold); color: var(--ivory); }
.dd-sponsor__name { background: var(--gold); color: var(--on-gold); font-family: var(--font-head); font-weight: 600; padding: .35rem .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-sponsor img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--raised); }
.dd-sponsor__code { padding: .4rem .8rem; border-top: 1px dashed var(--gold-deep); color: var(--gold-bright); font-size: .9rem; text-align: center; }

/* แถบข้าง */
.dd-rail__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.dd-rail__card h2 { font-size: 1.15rem; margin: 0 0 6px; }
.dd-rail__card p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.dd-rail__actions { display: grid; gap: 8px; }
.dd-news { display: grid; gap: 12px; }
.dd-news a { display: block; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--raised); }
.dd-news a:hover { border-color: var(--gold); }
.dd-news img { display: block; width: 100%; height: auto; }
@media (max-width: 991.98px) {
  .dd-news { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

.dd-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; text-align: center; color: var(--muted); font-size: .9rem; }
.dd-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dd-footer a:hover { color: var(--gold-bright); }

/* ==========================================================================
   หน้าเข้าสู่ระบบ / สมัครสมาชิก
   ========================================================================== */
.dd-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.dd-auth--top { align-items: flex-start; }
.dd-auth__card {
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--r-lg); padding: 32px 28px;
}
.dd-auth__card--wide { max-width: 780px; }
.dd-auth__brand { text-align: center; margin-bottom: 22px; }
.dd-auth__brand .dd-brand { font-size: 1.9rem; }
.dd-auth__brand p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.dd-auth__title { font-size: 1.45rem; text-align: center; margin: 0 0 4px; }
.dd-auth__lead { text-align: center; color: var(--muted); margin: 0 0 22px; }
.dd-auth__foot { margin-top: 22px; text-align: center; font-size: .95rem; }
.dd-auth__foot p { margin: 0 0 6px; }
.dd-auth__foot .dd-back { color: var(--muted); font-size: .9rem; }
.dd-auth__foot .dd-back:hover { color: var(--gold-bright); }

.dd-pw { position: relative; }
.dd-pw .form-control { padding-right: 48px; }
.dd-pw__toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 46px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--muted);
}
.dd-pw__toggle:hover { color: var(--gold-bright); }

/* สมัครสมาชิก: ส่วนต่าง ๆ เป็นลำดับขั้นจริง จึงใช้เลขกำกับ */
.dd-step { border: 0; padding: 0; margin: 0; }
.dd-step + .dd-step { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.dd-step__legend { display: flex; align-items: center; gap: 12px; float: none; width: auto; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 16px; padding: 0; }
.dd-step__no {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-bright); color: var(--on-gold); font-size: .95rem; font-weight: 700;
}
.dd-step__hint { color: var(--muted); font-size: .92rem; margin: -6px 0 16px; }
.dd-errsum { margin-bottom: 22px; }
.dd-errsum ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.dd-file-preview { display: none; align-items: center; gap: 12px; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.dd-file-preview.is-on { display: flex; }
.dd-file-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
@media (max-width: 575.98px) {
  .dd-auth__card { padding: 24px 18px; }
  .dd-auth { padding: 16px 12px; }
}

/* กล่องแทนรูปที่ไม่มีไฟล์ */
.dd-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 72px; color: var(--line); font-size: 1.6rem; background: var(--raised); }
.dd-sponsor .dd-ph { aspect-ratio: 16 / 9; height: auto; }
.dd-news .dd-ph { aspect-ratio: 2 / 1; height: auto; }
