/* =========================================================================
   BLM48 Membership — Glassmorphism design system
   Shared across all pages via <link rel="stylesheet" href="assets/css/glassmorphism.css">.
   Keeps the app's existing pink/gold brand palette, reworked into frosted-glass
   surfaces floating over a soft gradient-blob backdrop.

   Usage:
   - Add class="glass-mesh-bg" to <body> to get the colorful blurred backdrop
     that glass surfaces need to actually read as translucent.
   - Apply .glass-panel / .glass-panel-strong to cards, containers, modals.
   - Apply .glass-nav to top bars / bottom tab bars.
   - Apply .glass-input to text inputs, selects, textareas.
   - Apply .glass-chip for small pills/badges/tags.
   Per-page <style> blocks may still override specific selectors — that's
   expected, this file only supplies the shared tokens + reusable classes.
   ========================================================================= */

:root {
  /* Brand colors (kept identical to the app's existing pink/gold palette) */
  --glass-pink: #ff85a2;
  --glass-pink-soft: #ffb3c6;
  --glass-gold: #ffd700;
  --glass-gold-soft: #ffeb9c;

  /* Glass surface tokens
     Tuned to mirror the "ambient glass" reference (edge-to-edge panels, near-
     invisible borders, deep blur) while keeping the app's light cream/gold
     palette instead of the reference's dark theme. */
  --glass-blur: 26px;
  --glass-blur-sm: 14px;
  --glass-blur-lg: 42px;

  --glass-bg: rgba(255, 255, 255, 0.28);
  --glass-bg-strong: rgba(255, 255, 255, 0.46);
  --glass-bg-soft: rgba(255, 255, 255, 0.16);
  --glass-bg-dark: rgba(74, 44, 54, 0.28);

  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-border-soft: rgba(255, 255, 255, 0.22);

  --glass-shadow: 0 8px 32px rgba(120, 90, 60, 0.10), 0 1px 0 rgba(255, 255, 255, 0.45) inset;
  --glass-shadow-sm: 0 4px 16px rgba(120, 90, 60, 0.08);
  --glass-shadow-lg: 0 20px 60px rgba(120, 90, 60, 0.14), 0 1px 0 rgba(255, 255, 255, 0.5) inset;

  --glass-radius: 24px;
  --glass-radius-sm: 16px;
  --glass-radius-lg: 32px;
}

/* Site-wide zoom lockout (every page loads this file). Blocks pinch-zoom and
   double-tap-zoom at the browser/compositor level, ahead of (and more
   reliable than) the JS preventDefault guard in common.js / the inline
   copies in login.html/chamgift.html/ticket.html — keep both, this is
   belt-and-suspenders since some mobile browsers can still win the race
   against JS-only prevention. pan-x/pan-y is kept (not "none") so normal
   scrolling still works everywhere. */
html, body {
  touch-action: pan-x pan-y;
}

/* -------------------------------------------------------------------------
   Backdrop — a fixed, softly-blurred gradient mesh in the brand colors.
   Everything glass sits on top of this so translucency actually shows.
   Uses radial-gradients (naturally soft-edged) instead of filter:blur, since
   filter:blur on a background-image is unreliable across browsers.
   ------------------------------------------------------------------------- */
body.glass-mesh-bg {
  background-color: #fffdf6;
  background-attachment: fixed;
  background-image:
    radial-gradient(circle at 12% 15%, rgba(255, 215, 0, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 88% 10%, rgba(255, 235, 156, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(255, 215, 0, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 12% 88%, rgba(255, 235, 156, 0.45) 0%, transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #fffbf0 45%, #fff5d9 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

/* 🤍 หน้าอื่นๆ ทั้งหมด (ยกเว้น index.html ที่ยังใช้พื้นหลังไล่สีทอง-ครีมด้านบน) ขอพื้นหลังขาวล้วนแทน
   เพิ่ม class="force-white-bg" ต่อจาก glass-mesh-bg บน <body> เพื่อทับ background ด้านบนนี้
   (ยังคง class glass-mesh-bg ไว้เผื่อ markup/JS อื่นอ้างอิงอยู่ แค่ทับสีพื้นหลังเฉยๆ) */
body.glass-mesh-bg.force-white-bg {
  background-color: #ffffff;
  background-image: none;
}

/* -------------------------------------------------------------------------
   Core glass surfaces
   ------------------------------------------------------------------------- */
.glass-panel {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
}

.glass-panel-strong {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
}

.glass-panel-soft {
  background: var(--glass-bg-soft);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm));
  backdrop-filter: blur(var(--glass-blur-sm));
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--glass-radius-sm);
  box-shadow: var(--glass-shadow-sm);
}

/* Nav / top bars / bottom tab bars */
.glass-nav {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-lg));
  backdrop-filter: blur(var(--glass-blur-lg));
  border: 1px solid var(--glass-border);
  box-shadow: 0 -4px 24px rgba(255, 133, 162, 0.16);
}

/* Modals / overlays */
.glass-modal-overlay {
  background: rgba(74, 44, 54, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.glass-modal {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-lg));
  backdrop-filter: blur(var(--glass-blur-lg));
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius-lg);
  box-shadow: var(--glass-shadow-lg);
}

/* Inputs */
.glass-input {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm));
  backdrop-filter: blur(var(--glass-blur-sm));
  border: 1.5px solid var(--glass-border);
  border-radius: var(--glass-radius-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.glass-input:focus {
  border-color: var(--glass-pink);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 18px rgba(255, 133, 162, 0.18);
  outline: none;
}

/* Chips / badges / pills */
.glass-chip {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm));
  backdrop-filter: blur(var(--glass-blur-sm));
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--glass-shadow-sm);
}

/* Buttons — primary CTAs stay solid/vivid for contrast & tap affordance;
   this class is for secondary/ghost actions that should read as glass. */
.glass-btn-ghost {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm));
  backdrop-filter: blur(var(--glass-blur-sm));
  border: 1.5px solid var(--glass-border);
  border-radius: 999px;
  color: var(--glass-pink);
  transition: transform 0.2s ease, background 0.2s ease;
}

.glass-btn-ghost:active {
  transform: scale(0.96);
}

/* Divider that reads well over glass */
.glass-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  border: none;
}

/* -------------------------------------------------------------------------
   SweetAlert2 (Swal.fire) — alerts / confirm dialogs / toasts used across
   every page. Overridden globally here so every popup looks the same
   without each page needing its own copy. Uses !important because
   SweetAlert2 injects its own stylesheet at runtime, often after this one.
   ------------------------------------------------------------------------- */
.swal2-popup {
  background: #ffffff !important;
  border: 1px solid #ffeef2 !important;
  border-radius: var(--glass-radius) !important;
  box-shadow: var(--glass-shadow-lg) !important;
  font-family: 'Quicksand', 'Kanit', sans-serif !important;
}

.swal2-title {
  color: #4a4a4a !important;
  font-weight: 700 !important;
}

.swal2-html-container {
  color: #6b6b6b !important;
}

/* Dim the page behind the popup with a plain dark scrim (no blur - see note below).
   z-index forced above every custom modal/overlay in the app (gift modal,
   gacha modal, sidebar, etc. all sit at 1999-9999) so Swal always renders
   on top instead of behind them, which otherwise tints its white background
   through the modal's translucent scrim. */
.swal2-container {
  z-index: 20000 !important;
}
/* Toasts (Swal.fire({toast:true,...})) reuse this same container but sized/positioned to just
   their corner (e.g. top-end), not the full viewport - SweetAlert2 still toggles the show/hide
   backdrop classes on it regardless, so without this exclusion the toast's own little container
   picks up the dark tint below and renders as a stray tinted block behind the toast.

   ⚡ No backdrop-filter here on purpose: this is a full-viewport layer that toggles on/off with
   every single Swal.fire() across the whole app (buy/vote/gift/confirm/delete...), animating in
   with a scale+fade. Blurring the whole screen behind it every time - especially stacked on top
   of pages that already have their own large-radius glass blur (nav bars use 42px) - was the
   main cause of the alert/confirm lag reported 2026-09-16; a plain dark scrim costs the compositor
   almost nothing by comparison, and the popup card itself keeps its glass look regardless. */
.swal2-container.swal2-backdrop-show:not(:has(.swal2-toast)),
.swal2-container.swal2-backdrop-hide:not(:has(.swal2-toast)) {
  background: rgba(74, 44, 54, 0.32) !important;
}

/* Primary action stays solid/vivid per the app's CTA rule */
.swal2-confirm {
  background: linear-gradient(90deg, var(--glass-pink), var(--glass-pink-soft)) !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 18px rgba(255, 133, 162, 0.35) !important;
}

/* Secondary actions stay solid to match the white popup background */
.swal2-cancel,
.swal2-deny {
  background: #f0f0f0 !important;
  border: 1.5px solid #e6e6e6 !important;
  color: #8a8a8a !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* Compact toast notifications (Swal.fire({toast:true, ...})) */
.swal2-toast {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid #ffeef2 !important;
  box-shadow: var(--glass-shadow-sm) !important;
}

/* Thin scrollbars that suit a glass UI (WebKit only; harmless elsewhere) */
.glass-scroll::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.glass-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 133, 162, 0.35);
  border-radius: 999px;
}

/* =========================================================================
   📰 โพสต์ในฟีด (index / member / fanpost / postdetail): ไม่มีกล่องขาวครอบทีละโพสต์
   เต็มขอบจอ คั่นแต่ละโพสต์ด้วยแถบเทาหนาแบบแอป iAM48 - การ์ดใช้ inline style เลยต้อง !important
   (ลบระยะ 12px ของคอนเทนเนอร์ด้วย margin ติดลบ ให้โพสต์ชนขอบจอซ้าย-ขวา)
   ========================================================================= */
.post-card {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: 8px solid #f2f2f4 !important;
  margin: 0 -12px !important;
  padding: 16px 12px !important;
}
/* โพสต์ขอบคุณของ Champ: เลิกกรอบทองรอบกล่อง เหลือเส้นทองด้านบน + พื้นไล่สีเดิม + ป้ายมุมเดิม */
.post-card.champ-special-post {
  border: none !important;
  border-top: 3px solid #d4af37 !important;
  border-bottom: 8px solid #f2f2f4 !important;
  box-shadow: none !important;
}

/* 🌟 โพสต์ขอบคุณของ Champ แบบ iAM48 "SPECIAL FANS DAY": พื้นครีมทั้งโพสต์, ป้ายสี่เหลี่ยมเหลืองส้มตัวหนาด้านบนซ้าย,
   ไอคอนดาวในวงกลมด้านบนขวา, ฟองคอมเมนต์สีครีมเข้ม (ทับ CSS เดิมของแต่ละหน้าที่ยังเป็นริบบอนมุมซ้าย) */
.post-card.champ-special-post {
  background: #fdf3e4 !important;
  border: none !important;
  border-bottom: 8px solid #f2f2f4 !important;
}
.post-card.champ-special-post .champ-post-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-card.champ-special-post .champ-post-badge {
  position: static !important;
  display: inline-block !important;
  background: #f7c46a !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  line-height: 1.25;
  padding: 3px 9px !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}
.post-card.champ-special-post .champ-post-star {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5e3ea;
  color: #e8b4c8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
/* ปุ่ม ... ให้อยู่ระดับเดียวกับหัวโพสต์ที่ถูกดันลงมาใต้แถวป้าย */
.post-card.champ-special-post .post-menu-container {
  top: 59px !important;
}
.post-card.champ-special-post .cmt-bubble {
  background: #fde7cb !important;
}

/* =========================================================================
   📱 iPad / แท็บเล็ต (600-1100px): โพสต์เต็มความกว้างจอแบบแอป iAM48
   คอนเทนเนอร์โพสต์ของแต่ละหน้าเดิมถูกจำกัดกว้าง (index/member 720px, fanpost 560px, postdetail 500px)
   -> ดึงเฉพาะรายการโพสต์ออกมาเต็มจอ (ส่วนอื่นของหน้ายังกว้างเท่าเดิม) เว้นขอบ 12px เท่ามือถือ
   คอมพิวเตอร์จอใหญ่กว่า 1100px ไม่โดนผล (คงความกว้างเดิมไว้ อ่านง่ายกว่า)
   ========================================================================= */
@media (min-width: 600px) and (max-width: 1100px) {
  #posts-container,
  #fanpost-feed,
  #post-detail-content {
    width: auto !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  /* กันแถบเลื่อนแนวนอนจาก 100vw บนเครื่องที่มี scrollbar */
  body:has(.post-card) { overflow-x: clip; }
}

/* =========================================================================
   💬 คอมเมนต์สไตล์ Instagram (index / member / fanpost / postdetail) - HTML มาจาก blm48CommentHtml ใน common.js
   รูปกลมซ้าย | ชื่อตัวหนา + เวลาสั้นสีเทา / ข้อความ / Reply | หัวใจ + ยอดไลก์ชิดขวา
   reply ย่อเข้าไป, "—— View 2 replies" / "Hide replies", @แท็กสีน้ำเงิน, คอมเมนต์ที่กำลังตอบอยู่ไฮไลต์ฟ้าอ่อน
   ========================================================================= */
.comment-item {
  display: block;
  text-align: left;
  font-size: 14px;
}
.comment-item.cmt-top { margin-bottom: 14px; }
.comment-item .cmt-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
  border-radius: 10px;
  transition: background-color 0.25s ease;
}
.comment-item.cmt-replying > .cmt-row {
  background: #e8f1fd;
  box-shadow: 0 0 0 6px #e8f1fd;
}
.comment-item .cmt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #ececec;
  cursor: pointer;
}
.comment-item .cmt-body { flex: 1; min-width: 0; }
/* ฟองข้อความสีเทาอ่อนพอดีข้อความ (ชื่อ + ข้อความ) */
.comment-item .cmt-bubble {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  background: #f2f2f4;
  border-radius: 16px;
  padding: 8px 12px;
}
.comment-item .cmt-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  line-height: 1.3;
}
.comment-item .cmt-name { color: #111; font-weight: 700; cursor: pointer; }
.comment-item .cmt-verified { width: 13px; height: 13px; fill: #0095f6; flex-shrink: 0; }
.comment-item .cmt-time { color: #8e8e8e; font-size: 12px; font-weight: 400; }
.comment-item .cmt-text {
  color: #111;
  margin-top: 2px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.comment-item .cmt-mention { color: #3a62e6; cursor: pointer; }
.comment-item .cmt-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding-left: 4px;
}
.comment-item .cmt-actions:empty { display: none; }
.comment-item .cmt-actions button {
  background: none;
  border: none;
  padding: 0;
  color: #8e8e8e;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.comment-item .cmt-like {
  background: none;
  border: none;
  padding: 6px 0 0;
  width: 28px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #8e8e8e;
  font-family: inherit;
  cursor: pointer;
}
/* หัวใจใช้สีส้มเดิมของระบบ (แบบปุ่ม Cheer) ทั้งตอนยังไม่กดและกดแล้ว */
.comment-item .cmt-like i { font-size: 15px; color: #f5a623; }
.comment-item .cmt-like-count { font-size: 11px; color: #f5a623; font-weight: 600; }
.comment-item .cmt-like-count[data-n="0"] { visibility: hidden; }
/* reply: ย่อเข้าไปใต้ชื่อคอมเมนต์แม่ รูปเล็กลง */
.comment-item .cmt-replies { margin-left: 48px; margin-top: 6px; }
.comment-item.cmt-reply { margin-bottom: 10px; }
.comment-item.cmt-reply .cmt-avatar { width: 28px; height: 28px; }
.comment-item .cmt-replies-toggle {
  align-items: center;
  gap: 12px;
  margin: 6px 0 0 48px;
  padding: 2px 0;
  background: none;
  border: none;
  color: #8e8e8e;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.comment-item .cmt-replies-line { width: 24px; height: 1px; background: #c7c7c7; }
/* ลิสต์คอมเมนต์ในการ์ดโพสต์ (index/member/fanpost) สูงขึ้นให้อ่านเป็นเธรดได้ */
.post-card [id^="comment-list-"][style*="max-height"] { max-height: 360px !important; }
/* แถบ "Replying to ชื่อ ×" เหนือช่องพิมพ์ */
.cmt-replying-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f0f1f4;
  color: #737373;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 14px;
  margin-bottom: 8px;
}
.cmt-replying-bar b { color: #555; font-weight: 600; }
.cmt-replying-bar button {
  background: none;
  border: none;
  color: #555;
  font-size: 15px;
  padding: 0 2px;
  cursor: pointer;
}

/* ช่องพิมพ์คอมเมนต์: ขอบเทามน + ปุ่มส่งเป็นไอคอนเครื่องบินกระดาษ */
.comment-input-box {
  align-items: center;
  gap: 10px !important;
}
.comment-input-box input,
.pd-comment-input {
  border: 1.5px solid #d6d6d6 !important;
  border-radius: 24px !important;
  padding: 10px 16px !important;
  font-size: 15px !important;
  background: #fff !important;
}
.comment-input-box input:focus,
.pd-comment-input:focus {
  border-color: #b5b5b5 !important;
}
.cmt-send-btn {
  background: none;
  border: none;
  color: #9e9e9e;
  font-size: 22px;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

/* =========================================================================
   📱 iPad / แท็บเล็ต (600-1100px): ทุกหน้าเต็มความกว้างจอ (ไม่บีบไว้ตรงกลาง)
   ปลดความกว้างสูงสุดของคอนเทนเนอร์ระดับหน้า (เดิม 500-950px) - ป๊อปอัป/ชีต/โมดัลยังกว้างเท่าเดิม
   ขอบซ้าย-ขวาให้เหลือ 12px เท่ามือถือ ในหน้าที่เดิมขยายขอบเป็น 24-40px บนแท็บเล็ต
   ========================================================================= */
@media (min-width: 600px) and (max-width: 1100px) {
  .page-wrapper,
  .page,
  .app-wrapper,
  .app-container,
  .profile-body,
  #blm48-feed,
  .noti-container,
  .post-container,
  #champ-thanks-card,
  .post-detail-container,
  .pd-comment-bar-inner,
  .pd-bottom-bar,
  .champ-list-container,
  .ranking-page-wrapper,
  .thanks-card-container,
  .user-profile-bar,
  .shop-quick-tiles,
  .monthly-tracker-container,
  .hero + .content {
    max-width: none !important;
  }
  /* หน้า campaign_detail/campaign_open (#page) และ campaign_supporters (มี .hero) เว้นขอบที่ส่วนย่อยเองอยู่แล้ว */
  .page-wrapper:not(#page):not(:has(> .hero)),
  .app-wrapper,
  .hero + .content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* =========================================================================
   🌟 Special Fans Day / นับวันของเดือน: สัปดาห์ปัจจุบันของเดือน (วันที่ผ่านแล้ว ✓, วันนี้ 🍪)
   ใช้ร่วมกัน index.html + specialfansday.html (markup จาก buildSpecialFansDaysHtml ใน common.js)
   ========================================================================= */
  .week-block {
    width: 100%;
  }

  .week-label {
    font-size: 13px;
    font-weight: bold;
    color: #ffa8b6;
    margin-bottom: 15px;
    text-align: center;
    width: max-content;
  }

  .days-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
  }
  .day-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;               /* 👈 เฉลี่ยให้ทุกวันกว้างเท่ากัน 7 ช่อง */
  position: relative;
  }

  /* เส้นเชื่อมทีละช่วง: จากขอบวงกลมวันก่อนหน้า -> ขอบวงกลมวันนี้
     ถึงวันนั้นแล้ว = เส้นชมพู, ยังไม่ถึง = เส้นตรงสีเทาทึบ */
  .day-item + .day-item::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(-50% + 19px);
  width: calc(100% - 38px);
  height: 3px;           /* ความหนาของเส้นเชื่อม */
  border-radius: 2px;
  background: #f5c57c; /* ถึงวันแล้ว = เส้นสีพีช */
  z-index: 0;
  }
  .day-item + .day-item.upcoming::before {
  background: #b3b3b3; /* ยังไม่ถึง = เส้นเทา */
  }

  .day-circle { position: relative; z-index: 1; }

  /* 🌟 2. เพิ่มคลาสสำหรับปรับแต่งตัวหนังสือวันที่ */
  .day-date {
  font-size: 11px;
  color: #a8a8a8;
  margin-top: 6px;
  font-weight: 600;
  text-align: center;
  }
  /* สีป้ายวันที่: ผ่านแล้ว = พีช, วันนี้ = ส้มตัวหนา, ยังไม่ถึง = เทา (ชุดสีเดียวทุกธีม ตามคำขอ) */
  .day-item.reached .day-date { color: #f5c57c; }
  .day-item:has(.day-circle.current) .day-date { color: #e39b4a; font-weight: 700; }
    
  .day-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s ease;
  }

  /* ผ่านแล้ว = วงกลมพีชทึบ ✓ ขาว + วงประรอบนอก */
  .day-circle.checked {
    background: #f5c57c;
    color: white;
  }
  .day-circle.checked::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px dashed #f5c57c;
    pointer-events: none;
  }

  /* วันนี้ = วงขาว ขอบส้มหนา ไอคอนส้ม */
  .day-circle.current {
    background: #ffffff;
    color: #e39b4a;
    border: 3px solid #e39b4a;
    box-sizing: border-box;
    transform: scale(1.12);
    z-index: 1;
  }

  /* ยังไม่ถึง = วงขาว ขอบประเทา ตัวเลขเทา */
  .day-circle.future {
  background: #ffffff;
  color: #a8a8a8;
  border: 2px dashed #b3b3b3;
  box-sizing: border-box;
  }
