/* ==========================================================================
   🔮 ระบบดูดวง — เปิดบาร์โค้ดชีวิต Style Sheet (V142.0.0)
   Multi-Discipline Navigation + Member Login & Account Profile Page
   ========================================================================== */
/* ⚡ Performance Optimization: @import removed to eliminate CSS font waterfall — loaded via <link rel="preconnect"> in HTML */

:root {
  --primary-gold: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-bright: #F1C40F;
  --gold-dark: #B8860B;
  --gold-gradient: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA7C11 100%);
  --bg-main: #0B0F19;
  --card-bg: rgba(17, 26, 41, 0.92);
  --dark-navy: #111A29;
  --dark-navy-card: #1C2833;
  --card-bg-elevated: rgba(26, 37, 54, 0.95);
  --card-bg-inner: rgba(255, 255, 255, 0.05);
  --card-border: rgba(212, 175, 55, 0.35);
  --card-border-subtle: rgba(212, 175, 55, 0.18);
  --text-dark: #F1F5F9;
  --text-primary: #F1F5F9;
  --text-heading: #F3E5AB;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;
  --text-light: #FFFFFF;
  --accent-green: #2ECC71;
  --accent-cyan: #38BDF8;
  --accent-purple: #C084FC;
  --accent-red: #F87171;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.3);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --header-height: 58px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Prompt', 'Sarabun', sans-serif;
  background: 
    radial-gradient(circle at 15% 15%, rgba(147, 51, 234, 0.22), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(212, 175, 55, 0.18), transparent 45%),
    radial-gradient(circle at 50% 45%, rgba(30, 58, 138, 0.28), transparent 60%),
    linear-gradient(180deg, #090D16 0%, #0F172A 50%, #0B0F19 100%);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(2px 2px at 40px 60px, #FFFFFF, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 180px 140px, #F3E5AB, rgba(0,0,0,0)),
    radial-gradient(2.5px 2.5px at 290px 220px, #FFFFFF, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 410px 80px, #F3E5AB, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 120px 380px, #FFFFFF, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 350px 480px, #D4AF37, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 480px 310px, #FFFFFF, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 230px 420px, #E2E8F0, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 550px 550px;
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
  animation: starTwinkle 4s infinite alternate ease-in-out;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(3px 3px at 90px 180px, rgba(243, 229, 171, 0.9), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 270px 40px, rgba(255, 255, 255, 0.8), rgba(0,0,0,0)),
    radial-gradient(3px 3px at 450px 260px, rgba(212, 175, 55, 0.85), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 150px 460px, rgba(255, 255, 255, 0.8), rgba(0,0,0,0)),
    radial-gradient(2.5px 2.5px at 380px 160px, rgba(243, 229, 171, 0.85), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 650px 650px;
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
  animation: starTwinkleSlow 7s infinite alternate ease-in-out;
}

@keyframes starTwinkleSlow {
  0% { opacity: 0.25; }
  50% { opacity: 0.8; }
  100% { opacity: 0.3; }
}

.app-container {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(11, 15, 25, 0.98) 100%);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.2);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 0;
  z-index: 1;
}


/* ==========================================
   🔑 Login Screen Style (Living Zodiac Magic Theme)
   ========================================== */
.login-wrapper {
  position: relative;
  padding: 16px 12px 36px 12px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  color: #FFFFFF;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

/* Living Cosmic Astrology Background */
.login-cosmic-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.login-bg-magic-wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  margin-top: -300px;
  margin-left: -300px;
  pointer-events: none;
  animation: magicZodiacRotate 120s linear infinite;
  opacity: 0.45;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.2));
}

@keyframes magicZodiacRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.login-constellation-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

/* Floating Twinkling Constellation Stars */
.login-star {
  position: absolute;
  border-radius: 50%;
  background: #FFF9E6;
  box-shadow: 0 0 8px #FDE68A, 0 0 16px rgba(212, 175, 55, 0.8);
  pointer-events: none;
  animation: starTwinkle 3s ease-in-out infinite alternate, starFloat 8s ease-in-out infinite alternate;
}

.login-star.star-1 { width: 3px; height: 3px; top: 12%; left: 15%; animation-delay: 0s, 0s; }
.login-star.star-2 { width: 4px; height: 4px; top: 22%; right: 18%; animation-delay: 0.8s, 1.2s; }
.login-star.star-3 { width: 2.5px; height: 2.5px; top: 68%; left: 12%; animation-delay: 1.5s, 0.5s; }
.login-star.star-4 { width: 3.5px; height: 3.5px; top: 78%; right: 14%; animation-delay: 2.1s, 2s; }
.login-star.star-5 { width: 2px; height: 2px; top: 40%; left: 8%; animation-delay: 1.1s, 1.7s; }
.login-star.star-6 { width: 3px; height: 3px; top: 48%; right: 9%; animation-delay: 2.5s, 0.8s; }
.login-star.star-7 { width: 2.5px; height: 2.5px; top: 8%; right: 35%; animation-delay: 1.8s, 2.3s; }
.login-star.star-8 { width: 3px; height: 3px; top: 88%; left: 42%; animation-delay: 0.4s, 1.1s; }

@keyframes starTwinkle {
  0% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

@keyframes starFloat {
  0% { transform: translateY(0px) translateX(0px); }
  100% { transform: translateY(-10px) translateX(5px); }
}

.login-card,
.login-card-single {
  position: relative;
  z-index: 1;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 24px 22px 20px 22px;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(212, 175, 55, 0.12), inset 0 1px 1px rgba(243, 229, 171, 0.15);
  max-width: 486px;
  margin: 0 auto;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.login-brand-header {
  text-align: center;
  margin-bottom: 14px;
}

.login-brand-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  margin: 0 auto 6px auto;
}

.login-brand-nebula-glow {
  position: absolute;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0.1) 50%, transparent 72%);
  pointer-events: none;
  z-index: 1;
}

.login-brand-halo-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 116px;
  height: 116px;
  pointer-events: none;
  animation: celestialZodiacSpin 90s linear infinite;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
  z-index: 2;
}

@keyframes celestialZodiacSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.login-brand-logo-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.45), 0 4px 14px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 3;
  display: block;
}

.field-prefix-icon {
  position: absolute;
  left: 9px;
  color: #D4AF37;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.login-brand-title {
  font-size: 21px;
  font-weight: 800;
  color: #F5E8C7;
  margin: 0;
  letter-spacing: 0.3px;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.login-brand-subtitle {
  font-size: 11.5px;
  color: #94A3B8;
  margin: 2px 0 6px 0;
}

.login-form-heading-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  color: #FDE68A;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 13px;
  letter-spacing: 0.2px;
}

.form-label-row-aligned {
  min-height: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 5px !important;
  line-height: 1 !important;
}

.form-label-row-aligned label {
  margin-bottom: 0 !important;
  font-size: 11.5px !important;
  color: #CBD5E1 !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
}

.btn-login-gold {
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #B8860B 100%);
  color: #080C14;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 8px;
}

.btn-login-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.form-group-dark {
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

.login-card-single .form-input-dark,
.login-card-single input[type="text"].form-input-dark,
.login-card-single input[type="time"].form-input-dark,
.login-card-single select.form-input-dark {
  min-height: 42px !important;
  height: 42px !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  border-radius: 9px !important;
}

.login-card-single .segmented-gender-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
}

.login-card-single .segmented-gender-btn {
  min-height: 42px !important;
  height: 42px !important;
  padding: 4px 4px !important;
  font-size: 11.5px !important;
  border-radius: 9px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}

.login-card label,
.form-group-dark label,
.form-col-item label {
  display: block !important;
  font-size: 11px !important;
  color: #CBD5E1 !important;
  margin-bottom: 4px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.2 !important;
}

.form-grid-2cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.form-col-item {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.form-input,
.form-input-dark,
input[type="date"].form-input-dark,
input[type="time"].form-input-dark,
input[type="text"].form-input-dark,
select.form-input-dark {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 9px 11px;
  background: rgba(11, 17, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 42px;
  line-height: 1.3;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-input-dark:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
  color: #FFFFFF;
}

.form-input::placeholder,
.form-input-dark::placeholder {
  color: #94A3B8;
  opacity: 0.85;
}

.form-input option,
.form-input-dark option {
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px;
}

select.form-input-dark {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 28px !important;
  cursor: pointer;
}

input[type="date"],
input[type="time"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(0.8) saturate(5) hue-rotate(5deg);
  cursor: pointer;
  padding: 2px;
  opacity: 0.8;
}

.btn-login {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 30px;
  background: var(--gold-gradient);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  margin-top: 10px;
  transition: transform 0.2s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
}

.member-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(241, 196, 15, 0.15);
  border: 1px dashed var(--gold-light);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 14px;
}

/* 🌟 Haute-Couture 3-Step Guided Onboarding Form Styles */
.login-zodiac-emblem {
  position: relative;
  display: inline-block;
  margin-bottom: 4px;
  text-align: center;
  width: 100%;
}
.login-zodiac-emblem svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
  animation: zodiacSlowSpin 120s linear infinite;
}
@keyframes zodiacSlowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Segmented Gender Pills */
.segmented-gender-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.segmented-gender-btn {
  background: rgba(11, 17, 29, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 6px;
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.22s ease;
  min-height: 44px;
  white-space: nowrap;
}
.segmented-gender-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.4);
}
.segmented-gender-btn.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--primary-gold);
  color: #FDE68A;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

/* Toggle Switch "ไม่ทราบเวลาเกิด" */
.unknown-time-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-top: 6px;
}
.toggle-switch-label {
  font-size: 11px;
  color: #94A3B8;
  cursor: pointer;
  user-select: none;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.18);
  transition: 0.3s;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #FFFFFF;
  transition: 0.3s;
  border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%);
  border-color: var(--primary-gold);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
  background-color: #080C14;
}

/* Location Search Dropdown & Chip */
.location-search-wrap {
  position: relative;
  width: 100%;
}
.location-input-box {
  position: relative;
  display: flex;
  align-items: center;
}
.location-input-icon {
  position: absolute;
  left: 12px;
  color: var(--primary-gold);
  font-size: 14px;
  pointer-events: none;
}
.location-search-input {
  padding-left: 36px !important;
  padding-right: 32px !important;
}
.location-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 16px rgba(212, 175, 55, 0.2);
  max-height: 210px;
  overflow-y: auto;
  z-index: 999;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.location-dropdown-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
  font-size: 12.5px;
}
.location-dropdown-item:last-child {
  border-bottom: none;
}
.location-dropdown-item:hover {
  background: rgba(212, 175, 55, 0.15);
}
.location-item-name {
  color: #FFFFFF;
  font-weight: 600;
}
.location-item-badge {
  font-size: 10px;
  color: #FDE68A;
  background: rgba(212, 175, 55, 0.2);
  padding: 2px 7px;
  border-radius: 8px;
}
.location-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #FDE68A;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.location-chip-remove {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  transition: background 0.2s;
}
.location-chip-remove::before {
  content: "";
  position: absolute;
  top: -11px;
  bottom: -11px;
  left: -11px;
  right: -11px;
  min-width: 42px;
  min-height: 42px;
}
.location-chip-remove:hover {
  background: #EF4444;
}

/* Responsive 3-Column Birth Date Dropdowns */
.form-grid-3cols {
  display: grid;
  grid-template-columns: 80px 1.2fr 100px;
  gap: 6px;
}
@media (max-width: 375px) {
  .form-grid-3cols {
    grid-template-columns: 56px 1fr 82px;
    gap: 4px;
  }
  .form-grid-3cols select.form-input-dark {
    padding-left: 5px !important;
    padding-right: 18px !important;
    background-position: right 4px center !important;
    background-size: 11px !important;
    font-size: 11.5px !important;
  }
}

/* Mini Preview Card in Step 3 */
.login-preview-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 12px;
}
.login-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.login-preview-row:last-child {
  border-bottom: none;
}
.login-preview-label {
  color: #94A3B8;
  font-size: 11px;
}
.login-preview-val {
  color: #FDE68A;
  font-weight: 700;
}

/* Step Action Buttons */
.step-nav-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn-step-prev {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}
.btn-step-prev:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-step-next {
  flex: 2;
  padding: 12px;
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #B8860B 100%);
  border: none;
  color: #090D14;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}
.btn-step-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}


/* ==========================================
   Header Bar & User Status
   ========================================== */
.header-bar {
  background: rgba(17, 26, 41, 0.96);
  backdrop-filter: blur(12px);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hamburger-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.hamburger-btn:active {
  transform: scale(0.92);
}

/* Slide-in Drawer Menu */
.drawer-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 99999 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: none !important;
  justify-content: flex-start !important;
}

.drawer-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Menu Categorized Sections */


.menu-cat-section {
  margin-bottom: 22px;
}

.menu-cat-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 2px;
  text-align: center;
}

.menu-cat-subtitle {
  font-size: 12px;
  color: #94A3B8;
  text-align: center;
  margin-bottom: 14px;
}

.menu-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.menu-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mobile-menu-card-lg {
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.9) 0%, rgba(17, 26, 41, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.mobile-menu-card-lg:hover, .mobile-menu-card-lg:active {
  border-color: var(--primary-gold);
  background: linear-gradient(135deg, rgba(35, 50, 72, 0.95) 0%, rgba(22, 33, 52, 0.98) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.card-lg-icon {
  font-size: 36px;
  margin-bottom: 6px;
  color: var(--gold-light);
}

.card-lg-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.card-lg-desc {
  font-size: 11px;
  color: #CBD5E1;
  line-height: 1.45;
}

.mobile-menu-card-sm {
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.9) 0%, rgba(17, 26, 41, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 155px;
}

.mobile-menu-card-sm:hover, .mobile-menu-card-sm:active {
  border-color: var(--primary-gold);
  background: linear-gradient(135deg, rgba(35, 50, 72, 0.95) 0%, rgba(22, 33, 52, 0.98) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.card-sm-icon {
  font-size: 32px;
  margin-bottom: 6px;
  color: var(--gold-light);
}

.card-sm-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.card-sm-desc {
  font-size: 10.5px;
  color: #CBD5E1;
  line-height: 1.4;
}

.mobile-menu-card-sm.coming-soon {
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.7) 0%, rgba(17, 26, 41, 0.8) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  opacity: 0.85;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-card-sm.coming-soon:hover {
  border-color: var(--primary-gold);
  background: linear-gradient(135deg, rgba(35, 50, 72, 0.85) 0%, rgba(22, 33, 52, 0.9) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.mobile-menu-card-sm .badge-coming-soon {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 8px;
  background: #FEF9E7;
  color: #B7950B;
  border: 1px solid #F5CBA7;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}

/* ฟรี 1 ครั้ง Badge — Premium Emerald Glow */
.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 2px 7px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00b894 0%, #00cec9 50%, #0984e3 100%);
  color: #FFFFFF;
  border: 1px solid rgba(0, 184, 148, 0.5);
  box-shadow: 0 0 6px rgba(0, 206, 201, 0.4), 0 1px 3px rgba(0,0,0,0.12);
  vertical-align: middle;
  white-space: nowrap;
  animation: badgeFreePulse 2.5s ease-in-out infinite;
  position: relative;
}

.badge-free::before {
  content: '🎁';
  font-size: 9px;
}

/* Card title inline badge */
.card-sm-title .badge-free {
  margin-left: 3px;
}

/* Absolute position badge on card corner */
.mobile-menu-card-sm .badge-free-corner {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 2;
}

.mobile-menu-card-sm {
  position: relative;
  overflow: visible;
}

/* Drawer item badge */
.drawer-item .badge-free {
  margin-left: auto;
  font-size: 8px;
  padding: 1.5px 6px;
  animation: badgeFreePulse 3s ease-in-out infinite;
}

/* Badge used state */
.badge-free.used {
  background: linear-gradient(135deg, #636e72 0%, #b2bec3 100%);
  border-color: rgba(99, 110, 114, 0.4);
  box-shadow: none;
  animation: none;
  opacity: 0.7;
}

.badge-free.used::before {
  content: '✓';
  font-size: 8px;
}

@keyframes badgeFreePulse {
  0%, 100% { 
    box-shadow: 0 0 6px rgba(0, 206, 201, 0.4), 0 1px 3px rgba(0,0,0,0.12); 
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 12px rgba(0, 206, 201, 0.7), 0 0 20px rgba(0, 184, 148, 0.3); 
    transform: scale(1.05);
  }
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  width: 82%;
  max-width: 340px;
  height: 100%;
  background: linear-gradient(180deg, #111A24 0%, #1A252F 100%);
  color: #FFFFFF;
  box-shadow: 4px 0 25px rgba(0,0,0,0.5);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.drawer-overlay.active .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px;
  background: #1C2833;
  border-bottom: 1.5px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 22px;
  cursor: pointer;
}

.drawer-menu-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #E5E7E9;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.drawer-item:hover, .drawer-item.active {
  background: rgba(241, 196, 15, 0.15);
  color: var(--gold-light);
  border-color: var(--primary-gold);
  font-weight: 600;
}

.drawer-item-icon {
  font-size: 20px;
}

.header-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.user-text-info {
  font-size: 12px;
}

.user-member-id {
  font-weight: 700;
  color: var(--primary-gold);
}

.btn-account-pill {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--primary-gold);
  color: var(--gold-light);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================
   🌟 Unified Top Navigation Bar (Hidden / Purged as requested)
   ========================================== */
.unified-top-nav-bar {
  display: none !important;
}

.nav-pill-item {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #E2E8F0;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}


.nav-pill-item:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.6);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.nav-pill-item:active {
  transform: scale(0.96);
}

.nav-pill-item.active {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #B8860B 100%) !important;
  color: #090D14 !important;
  border: 1.5px solid #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.45) !important;
}

.nav-pill-icon {
  font-size: 14px;
  line-height: 1;
}

#currentPageTitleBar {
  display: none !important;
}



/* ==========================================

   Page View Panels
   ========================================== */
.view-panel {
  display: none;
  animation: fadeIn 0.3s ease;
  padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}


.view-panel.active {
  display: block;
}

/* Account Page Specific Styles */
.account-card {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #111A29 0%, #172437 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 1.5px solid var(--primary-gold);
  color: #FFFFFF;
}

.account-header-box {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 16px;
}

.account-avatar-large {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 10px auto;
  box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}

.account-name-title {
  font-size: 18px;
  font-weight: 800;
  color: #FEF9E7;
}

.account-code-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.18);
  border: 1.5px solid var(--primary-gold);
  color: #FDE68A;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 16px;
  margin-top: 6px;
}

.account-stats-row {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr 1fr;
  align-items: center;
  margin: 16px 0;
  padding: 12px 6px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.stat-col {
  text-align: center;
  padding: 0 4px;
}

.stat-col-divider {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item-num {
  font-size: 14.5px;
  font-weight: 800;
  color: #FDE68A;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.stat-active-days {
  color: #4ADE80 !important;
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.stat-tier-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
}

.stat-item-label {
  font-size: 10.5px;
  color: #94A3B8;
  margin-top: 4px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.account-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-section-heading {
  font-size: 13px;
  font-weight: 800;
  color: #FDE68A;
  margin: 16px 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #131D2D 0%, #1A2638 100%) !important;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  color: #F1F5F9 !important;
  cursor: pointer;
  border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.2s ease;
}

.account-menu-item span {
  color: #F1F5F9 !important;
}

.account-menu-item:hover {
  background: linear-gradient(135deg, #1A2638 0%, #223249 100%) !important;
  border-color: var(--primary-gold) !important;
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25) !important;
}

.account-menu-item.coming-soon {
  background: linear-gradient(135deg, #131D2D 0%, #1A2638 100%) !important;
  color: #F1F5F9 !important;
  border: 1.5px solid rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.account-menu-item.coming-soon:hover {
  background: linear-gradient(135deg, #1A2638 0%, #223249 100%) !important;
  border-color: var(--primary-gold) !important;
  transform: translateX(3px);
}

.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(212, 175, 55, 0.18) !important;
  color: #F3E5AB !important;
  border: 1.5px solid var(--primary-gold) !important;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-active-feature {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(46, 204, 113, 0.18) !important;
  color: #2ECC71 !important;
  border: 1.5px solid #2ECC71 !important;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}

/* User profile card inside main dashboard (2026 Modern Dark Luxury Glassmorphism) */
.user-profile-card {
  margin: 14px 0 16px 0;
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.95) 0%, rgba(13, 18, 30, 0.98) 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.profile-greeting {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.profile-phone-tag {
  font-size: 11.5px;
  letter-spacing: 0.3px;
  color: #CBD5E1;
  margin-bottom: 12px;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  color: #F1F5F9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.detail-item strong {
  color: var(--gold-light);
}


/* Wheel Section */
.wheel-section {
  margin: 16px;
  padding: 20px 16px;
  background: linear-gradient(180deg, #252D3A 0%, #171E28 100%);
  border: 1px solid rgba(197, 155, 63, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  color: #FFFFFF;
}

.wheel-title {
  font-size: 18px;
  font-weight: 700;
  color: #FDE68A;
  margin-bottom: 4px;
}

.wheel-subtitle {
  font-size: 12px;
  color: #CBD5E1;
  margin-bottom: 16px;
}

.wheel-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.wheel-svg-wrapper {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto;
  position: relative;
}

/* 🪐 Living Celestial Gyroscope Engine (Division 3 Haute-Couture Motion) */
.celestial-drift-ring {
  transform-origin: 200px 200px;
  animation: celestialOrbitDrift 180s linear infinite;
  will-change: transform;
}
@keyframes celestialOrbitDrift {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 10-Planet Elemental Breathing Halos */
.planet-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: planetBreathingPulse 4s ease-in-out infinite alternate;
  will-change: transform, opacity;
  pointer-events: none;
}
.planet-halo.element-fire { animation-duration: 3.0s; filter: drop-shadow(0 0 6px #EF4444); }
.planet-halo.element-water { animation-duration: 4.6s; filter: drop-shadow(0 0 6px #38BDF8); }
.planet-halo.element-earth { animation-duration: 5.2s; filter: drop-shadow(0 0 6px #F59E0B); }
.planet-halo.element-wind { animation-duration: 3.8s; filter: drop-shadow(0 0 6px #10B981); }
.planet-halo.element-spirit { animation-duration: 2.6s; filter: drop-shadow(0 0 7px #FDE047); }

@keyframes planetBreathingPulse {
  0% { transform: scale(0.90); opacity: 0.35; }
  100% { transform: scale(1.25); opacity: 0.95; }
}

/* Retrograde Warning Flash */
.retro-pulsing {
  animation: retroWarningPulse 1.8s ease-in-out infinite alternate;
}
@keyframes retroWarningPulse {
  0% { fill: #EF4444; opacity: 0.7; }
  100% { fill: #F87171; opacity: 1; filter: drop-shadow(0 0 4px #EF4444); }
}

/* Aspect Energy Streams (Dual-Layer Aspects) */
.aspect-energy-stream {
  stroke-dasharray: 8 14;
  animation: aspectEnergyPulse 6s linear infinite;
}
.aspect-energy-stream.challenging {
  stroke-dasharray: 4 10;
  animation-duration: 3.5s;
}
@keyframes aspectEnergyPulse {
  to { stroke-dashoffset: -200; }
}

/* Golden Vortex Shockwave Ripple from AC Core */
.asc-shockwave {
  fill: none;
  stroke: #FDE047;
  stroke-width: 1.5;
  transform-origin: 200px 200px;
  animation: goldenShockwave 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  pointer-events: none;
}
.asc-shockwave.wave-2 { animation-delay: 1.5s; }
.asc-shockwave.wave-3 { animation-delay: 3.0s; }

@keyframes goldenShockwave {
  0% { r: 38px; opacity: 0.85; stroke-width: 2px; }
  70% { opacity: 0.25; stroke-width: 1px; }
  100% { r: 115px; opacity: 0; stroke-width: 0.5px; }
}

/* Twinkling Stardust Field */
.stardust-point {
  animation: stardustTwinkle 3.2s ease-in-out infinite alternate;
  pointer-events: none;
}
.stardust-point.group-a { animation-duration: 2.1s; animation-delay: 0.3s; }
.stardust-point.group-b { animation-duration: 3.5s; animation-delay: 1.2s; }
.stardust-point.group-c { animation-duration: 4.8s; animation-delay: 0.7s; }

@keyframes stardustTwinkle {
  0% { opacity: 0.15; transform: scale(0.8); }
  100% { opacity: 0.95; transform: scale(1.3); }
}

/* Time-Travel Transit Control Bar (Dark Slate Obsidian) */
.transit-time-travel-panel {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}
.transit-time-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 8px;
}
.transit-status-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.transit-clock-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 6px #FDE047);
}
.transit-status-text {
  font-size: 12px;
  font-weight: 700;
  color: #F8FAFC;
}
.transit-ingress-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: #FDE047;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}
.transit-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.transit-time-btn {
  min-height: 44px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Prompt', sans-serif;
  color: #E2E8F0;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  touch-action: manipulation;
}
.transit-time-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
  color: #FFFFFF;
}
.transit-time-btn.active {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  border-color: #FDE047;
  color: #0F172A;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}
.transit-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.transit-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(51, 65, 85, 0.8);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.transit-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDE047 0%, #D4AF37 100%);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.transit-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}
.transit-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDE047 0%, #D4AF37 100%);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
  cursor: pointer;
}
.transit-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #94A3B8;
  font-weight: 600;
  padding: 0 2px;
}

/* A11y Accessibility Prefers-Reduced-Motion */
@media (prefers-reduced-motion: reduce) {
  .celestial-drift-ring, .planet-halo, .aspect-energy-stream, .asc-shockwave, .stardust-point, .retro-pulsing {
    animation: none !important;
  }
}

/* Gauges Section (2026 Dark Luxury Glassmorphism) */
.graph-section {
  margin: 0 16px 16px 16px;
  padding: 14px 14px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
  box-sizing: border-box;
}

.section-heading {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(253, 230, 138, 0.3);
}

/* 🌟 2-Row x 2-Column Luxury Life Graph Grid (Readable & Ultra-Clear) */
.compact-gauge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.compact-gauge-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 11px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.compact-gauge-card:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 224, 71, 0.55);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(212, 175, 55, 0.2);
}

.compact-gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  min-width: 0;
}

.compact-gauge-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.compact-gauge-score {
  font-size: 14.5px;
  font-weight: 900;
  color: #4ADE80;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.compact-gauge-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 7px;
  box-sizing: border-box;
}

.compact-gauge-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.compact-gauge-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.compact-gauge-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.compact-gauge-desc {
  color: #E2E8F0;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  min-width: 0;
  flex: 1;
}


.btn-daily-sinseh-ask:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.6) !important;
}



.btn-daily-sinseh-ask:active {
  transform: translateY(1px);
}

.gauge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}



.gauge-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-top: 3.5px solid #2ECC71;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  position: relative;
  color: #FFFFFF;
}
.gauge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.25);
  border-color: rgba(46, 204, 113, 0.6);
}

.gauge-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.gauge-meter-wrapper {
  position: relative;
  width: 104px;
  height: 56px;
  margin: 0 auto 4px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gauge-svg {
  width: 104px;
  height: 56px;
  overflow: visible;
}

.gauge-bg-path {
  stroke: rgba(255, 255, 255, 0.15);
  transition: stroke 0.3s ease;
}

.gauge-fill-path {
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.gauge-score {
  font-size: 22px;
  font-weight: 800;
  color: #2ECC71;
  margin-top: -24px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 2;
}

.gauge-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(46, 204, 113, 0.2);
  color: #2ECC71;
  border: 1px solid rgba(46, 204, 113, 0.4);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 4px;
}

.gauge-desc {
  font-size: 11.5px;
  color: #CBD5E1;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 4px;
}

/* Color Swatches & Calendar (Minimalist Sleek Dark Mode) */
.color-section {
  margin: 14px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.92) 0%, rgba(17, 26, 41, 0.96) 100%);
  border-radius: 16px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
}

.calendar-section {
  margin: 14px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.92) 0%, rgba(17, 26, 41, 0.96) 100%);
  border-radius: 16px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
}

.color-swatches-grid {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.cal-header-day {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
  padding-bottom: 4px;
}

.cal-day-cell {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 2px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-day-cell:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--primary-gold);
  transform: scale(1.05);
}

.cal-day-cell.today {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #B8860B 100%);
  color: #090D14;
  font-weight: 900;
  border-color: #FFFFFF;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.7);
}

.cal-day-cell.buddhist {
  border-color: #F59E0B;
  color: #FDE68A;
  background: rgba(245, 158, 11, 0.12);
}

.cal-day-cell.lucky {
  border-color: #10B981;
  color: #A7F3D0;
  background: rgba(16, 185, 129, 0.12);
}

.color-swatch-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swatch-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 4px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.swatch-circle:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
}


.swatch-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.swatch-text {
  font-size: 9px;
  font-weight: 600;
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 2px;
  line-height: 1.2;
}

/* Lucky Numbers */
.lucky-num-card {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.92) 0%, rgba(17, 26, 41, 0.96) 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  text-align: center;
  box-shadow: var(--shadow-card);
  color: #FFFFFF;
}

.lucky-digits-box {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 14px 0;
}

.digit-badge {
  width: 62px;
  height: 72px;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  color: #FDE047;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.6);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.15), inset 0 -2px 6px rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  transition: all 0.2s ease;
}

/* ==========================================================================
   🎰 Haute-Couture Luxury Gold Lucky Draw Modal (V134.8.20 Expanded Edition)
   Expanded vertical breathing room with clean, border-free Classical Serif digits
   ========================================================================== */
.lucky-slot-modal-card {
  width: 95%;
  max-width: 446px;
  background: linear-gradient(180deg, #0D1322 0%, #0F172A 45%, #070B14 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 26px;
  padding: 22px 18px 18px;
  color: #FFFFFF;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.92), 0 0 40px rgba(212, 175, 55, 0.2), inset 0 1px 1px rgba(254, 240, 138, 0.3);
  max-height: 94vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: slotModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slotModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.lucky-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}
.lucky-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #EF4444;
  color: #FFF;
  transform: rotate(90deg);
}

/* 🏅 Medallion & Header */
.lucky-modal-medallion-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.lucky-modal-medallion {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(15, 23, 42, 0.85) 70%);
  border: 1.5px solid #D4AF37;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
}
.lucky-medallion-icon {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}
.lucky-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #FDE047;
  text-align: center;
  margin: 0 0 3px;
  letter-spacing: 0.3px;
  line-height: 1.3;
  text-shadow: 0 0 12px rgba(253, 224, 71, 0.3);
}
.lucky-modal-subtitle {
  font-size: 10.5px;
  color: #94A3B8;
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 🏛️ Cabinet */
.lucky-slot-cabinet {
  background: rgba(13, 20, 36, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  padding: 10px 12px 12px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}
.lucky-cabinet-marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.lucky-marquee-star {
  font-size: 9px;
  color: #D4AF37;
  letter-spacing: 1px;
  opacity: 0.85;
}
.lucky-marquee-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FDE047;
  text-shadow: 0 0 6px rgba(253, 224, 71, 0.5);
}

/* 3-Reel Display */
.slot-reels-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.slot-reel-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slot-reel-label {
  font-size: 11px;
  color: #D4AF37;
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}
.slot-reel-sep {
  color: #D4AF37;
  font-size: 12px;
  opacity: 0.7;
  flex-shrink: 0;
  padding-top: 18px;
}
.slot-reel-window {
  width: 100%;
  height: 76px;
  background: radial-gradient(circle at 50% 35%, #182640 0%, #080C14 100%);
  border-radius: 12px;
  border: 1.2px solid rgba(212, 175, 55, 0.45);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.9), inset 0 -3px 8px rgba(0, 0, 0, 0.85), 0 4px 14px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Clean, border-free Classical Serif digits */
.slot-digit-card {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-size: 42px !important;
  font-weight: 700 !important;
  font-family: 'Cinzel', 'Playfair Display', 'Times New Roman', Georgia, serif !important;
  color: #FDE047 !important;
  text-shadow: 0 0 16px rgba(253, 224, 71, 0.8), 0 2px 6px rgba(0, 0, 0, 0.95) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  line-height: 1;
}
.slot-digit-card.rolling {
  animation: slotReelFastSpin 0.07s infinite linear !important;
  filter: blur(1px);
  color: #38BDF8 !important;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.9) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@keyframes slotReelFastSpin {
  0% { transform: translateY(-12px) scale(0.92); opacity: 0.7; }
  50% { transform: translateY(0px) scale(1.04); opacity: 1; }
  100% { transform: translateY(12px) scale(0.92); opacity: 0.7; }
}

.slot-digit-card.locked {
  animation: slotDigitLockSlam 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  color: #FFFFFF !important;
  text-shadow: 0 0 18px #FDE047, 0 0 30px #EAB308, 0 2px 6px #000 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@keyframes slotDigitLockSlam {
  0% { transform: translateY(-16px) scale(1.2); opacity: 0.4; }
  60% { transform: translateY(3px) scale(0.96); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Neutralize legacy digit-badge styles inside reel windows */
.slot-reel-window .digit-badge,
.slot-reel-window .digit-badge.locked,
.slot-reel-window .digit-badge.rolling {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  height: 100% !important;
}

/* Action Bar */
.slot-action-bar {
  margin-top: 12px;
}
.slot-spin-btn {
  width: 100%;
  padding: 10px 16px;
  min-height: 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #FFE89C 0%, #D4AF37 40%, #AA7C11 80%, #785203 100%);
  color: #070B12;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4), inset 0 1px 1px #FFF;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot-spin-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}
.slot-spin-btn[disabled],
#btnDailyLuckyDraw:disabled {
  min-height: 34px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  margin-top: 8px !important;
  border-radius: 999px !important;
  background: rgba(16, 24, 39, 0.85) !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  box-shadow: none !important;
}
.slot-btn-done {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #E2E8F0;
}
.slot-done-check {
  color: #22C55E;
  font-weight: 800;
}
.slot-done-num {
  color: #4ADE80;
  font-weight: 800;
  letter-spacing: 1px;
}
.slot-subtext {
  text-align: center;
  font-size: 10.5px;
  color: #94A3B8;
  margin-top: 7px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.slot-subtext-icon {
  font-size: 11px;
}

/* 🌟 Meaning Section */
.slot-meaning-card {
  background: rgba(13, 20, 36, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  animation: slotMeaningSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slotMeaningSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.slot-meaning-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.slot-meaning-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #FDE047;
}
.slot-copy-btn {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #FDE68A;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}
.slot-copy-btn:hover {
  background: #D4AF37;
  color: #080C14;
}

/* Meaning Grid & Symmetrical Micro-Pills */
.lucky-meaning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.lucky-meaning-pill {
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 64px;
}
.lucky-pill-label {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
}
.lucky-pill-val {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
.lucky-pill-val.gold { color: #FDE68A; }
.lucky-pill-val.cyan { color: #38BDF8; }
.lucky-sub-planet {
  font-size: 9.5px;
  font-weight: 600;
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.lucky-guidance-pill {
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  margin-bottom: 8px;
}
.lucky-guidance-head {
  font-weight: 700;
  color: #F59E0B;
  font-size: 11px;
  margin-bottom: 2px;
}
.lucky-guidance-desc {
  color: #CBD5E1;
  font-size: 10.5px;
  line-height: 1.45;
}

/* Proportional Flexible Chips Row — No text blocked */
.lucky-chips-row {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}
.lucky-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 10px;
  color: #94A3B8;
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.lucky-chip:nth-child(1) {
  flex: 0 0 auto;
}
.lucky-chip:nth-child(2) {
  flex: 0 0 auto;
}
.lucky-chip:nth-child(3) {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-val.green { color: #4ADE80; font-weight: 700; }
.chip-val.pink { color: #F472B6; font-weight: 700; }
.chip-val.yellow { color: #FBBF24; font-weight: 700; }

/* 🛡️ Single-Line Balanced Capsule Disclaimer */
.lucky-disclaimer-pill {
  background: rgba(13, 20, 36, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.lucky-disclaimer-icon {
  font-size: 12px;
  opacity: 0.85;
  flex-shrink: 0;
}
.lucky-disclaimer-text {
  font-size: 9.5px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1;
}
.lucky-bottom-star {
  text-align: center;
  color: #D4AF37;
  font-size: 11px;
  opacity: 0.5;
  margin-top: 6px;
  line-height: 1;
}


/* Daily Lucky Randomizer Animation & Pulse */
.btn-lucky-draw-pulse {
  animation: luckyGoldPulse 2s infinite ease-in-out;
}

@keyframes luckyGoldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(212, 175, 55, 0.85);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
    transform: scale(1);
  }
}

.digit-badge.rolling {
  animation: digitRollFast 0.08s infinite linear;
  color: #FBBF24 !important;
  border-color: #FBBF24 !important;
  background: rgba(251, 191, 36, 0.2) !important;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

@keyframes digitRollFast {
  0% { transform: translateY(-4px) scale(0.95); opacity: 0.8; }
  50% { transform: translateY(0px) scale(1.05); opacity: 1; }
  100% { transform: translateY(4px) scale(0.95); opacity: 0.8; }
}

.digit-badge.locked {
  animation: digitPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-color: #D4AF37 !important;
  background: linear-gradient(135deg, rgba(212,175,55,0.25) 0%, rgba(170,124,17,0.15) 100%) !important;
  color: #FFF !important;
  box-shadow: 0 0 16px rgba(212,175,55,0.5) !important;
}

@keyframes digitPopIn {
  0% { transform: scale(0.5); opacity: 0.3; }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Tarot Cards */
.tarot-section {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(18,28,46,0.92) 0%, rgba(24,38,60,0.88) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  color: #FFFFFF;
}

.tarot-cards-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tarot-card-wrapper {
  perspective: 1000px;
  width: 105px;
  height: 165px;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0 auto;
}

.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.tarot-card-wrapper.flipped .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
}

.tarot-card-front {
  background: linear-gradient(135deg, #1C2833 0%, #34495E 100%);
  color: var(--gold-light);
  border: 1.5px solid var(--primary-gold);
}

.tarot-card-wrapper:not(.flipped) .tarot-card-front {
  animation: tarotCardPulse 2s infinite ease-in-out;
}

@keyframes tarotCardPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4), inset 0 0 8px rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
  }
  50% {
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.85), inset 0 0 14px rgba(212, 175, 55, 0.5);
    border-color: #FFE680;
  }
}

.tarot-card-back {
  background: var(--card-bg-elevated);
  color: var(--text-body);
  border: 1.5px solid var(--primary-gold);
  transform: rotateY(180deg);
}

.tarot-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.tarot-card-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
  color: var(--text-heading);
}

.tarot-pos-tag {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Categories 9 Grid */
.categories-section {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.92) 0%, rgba(17, 26, 41, 0.96) 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  color: #FFFFFF;
}

.categories-section .section-heading {
  color: var(--gold-light);
  font-size: 16px;
  font-weight: 700;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.cat-card {
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.9) 0%, rgba(17, 26, 41, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 145px;
  color: #FFFFFF;
}

.cat-card:hover, .cat-card:active {
  border-color: var(--primary-gold);
  background: linear-gradient(135deg, rgba(35, 50, 72, 0.95) 0%, rgba(22, 33, 52, 0.98) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.cat-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.cat-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.cat-desc {
  font-size: 10px;
  color: #CBD5E1;
  line-height: 1.35;
}

/* Calendar */
.calendar-section {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(18,28,46,0.92) 0%, rgba(24,38,60,0.88) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  color: #FFFFFF;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
}

.cal-header-day {
  font-weight: 800;
  color: var(--gold-light);
  padding: 4px 0;
}

.cal-day-cell {
  padding: 8px 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.cal-day-cell:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--primary-gold);
  transform: scale(1.06);
  color: #FFFFFF;
}

.cal-day-cell.buddhist {
  background: rgba(245, 158, 11, 0.2);
  color: #FDE68A;
  border: 1.5px solid #F59E0B;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.cal-day-cell.lucky {
  background: rgba(34, 197, 94, 0.2);
  color: #86EFAC;
  border: 1.5px solid #22C55E;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.cal-day-cell.today {
  background: rgba(239, 68, 68, 0.25);
  border: 2.5px solid #EF4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
  font-weight: 900;
  color: #FCA5A5;
}

/* Compatibility */
.compat-section {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(18,28,46,0.92) 0%, rgba(24,38,60,0.88) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  color: #FFFFFF;
}

/* Modal Dialog */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}


.modal-content {
  width: 90%;
  max-width: 440px;
  background: linear-gradient(135deg, #111A29 0%, #172437 100%) !important;
  border: 1.5px solid var(--primary-gold) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.25) !important;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  color: #FFFFFF !important;
}

.modal-content h2, 
.modal-content h3, 
.modal-content h4, 
.modal-content #modalTitle {
  color: var(--gold-light) !important;
  font-weight: 700;
}

.modal-content p, 
.modal-content span, 
.modal-content div, 
.modal-content #modalBody {
  color: #E2E8F0;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--primary-gold);
  color: #FFFFFF;
}

/* Compact Square House Grid & Mini Transit Table */
.compact-house-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.compact-house-cell {
  background: #111A24;
  color: #FFFFFF;
  border: 1px solid rgba(212, 172, 13, 0.5);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 85px;
}

.compact-house-cell-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.compact-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.mini-transit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
}

.mini-transit-table th {
  background: #1A252F;
  color: var(--gold-light);
  padding: 6px 8px;
  font-weight: 700;
  border-bottom: 1px solid var(--primary-gold);
}

.mini-transit-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* 🔮 Kau Cim 28 Fortune Stick Shaking Animations */
@keyframes kauCimShake {
  0% { transform: translateY(0) rotate(0deg); }
  15% { transform: translateY(-12px) rotate(-15deg); }
  30% { transform: translateY(-6px) rotate(15deg); }
  45% { transform: translateY(-14px) rotate(-18deg); }
  60% { transform: translateY(-4px) rotate(12deg); }
  75% { transform: translateY(-10px) rotate(-8deg); }
  90% { transform: translateY(-2px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.kau-cim-tube-shaking {
  animation: kauCimShake 0.4s ease-in-out infinite;
  display: inline-block;
  transform-origin: center bottom;
}

@keyframes kauCimStickDrop {
  0% { opacity: 0; transform: translateY(-35px) scale(0.7) rotate(-10deg); }
  60% { opacity: 1; transform: translateY(6px) scale(1.04) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

.kau-cim-result-animated {
  animation: kauCimStickDrop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ==========================================
   📜 Seamsi Master Poem Box (Large, Prominent, Clear Alignment)
   ========================================== */
.seamsi-poem-banner {
  background: linear-gradient(145deg, rgba(28, 20, 10, 0.95) 0%, rgba(13, 20, 32, 0.98) 100%);
  border: 1.5px solid var(--primary-gold);
  border-radius: 14px;
  padding: 16px 14px 14px 14px;
  margin: 12px 0 14px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(212, 175, 55, 0.15);
  position: relative;
  text-align: center;
}

.seamsi-poem-header {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 3px 14px;
  border-radius: 12px;
}

.seamsi-poem-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.seamsi-poem-line {
  font-size: 17.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.85;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(243, 229, 171, 0.4);
  text-align: center;
  max-width: 95%;
  word-break: break-word;
}

@media (max-width: 480px) {
  .seamsi-poem-line {
    font-size: 15.5px;
    line-height: 1.75;
  }
}

/* 🔮 Sticky Floating Round Button (ลอยสวยงามเหนือมุมซ้ายของแท็บบาร์ล่างสุด ไม่ทับบาร์) */
.floating-daily-btn {
  position: absolute !important;
  bottom: calc(100% + 12px) !important;
  left: 6px !important;
  top: auto !important;
  z-index: 10000 !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA7C11 100%) !important;
  color: #090D14 !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.75), 0 3px 12px rgba(0, 0, 0, 0.6) !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  animation: ambientGoldGlow 3s ease-in-out infinite !important;
}

.floating-daily-btn:hover {
  transform: scale(1.08) translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.9) !important;
}

.floating-daily-btn:active {
  transform: scale(0.94) !important;
}

/* 🌟 5 Micro-Interactions Animations (60 FPS Pure CSS) */
@keyframes ambientGoldGlow {
  0% { box-shadow: 0 4px 15px rgba(212,175,55,0.25); border-color: rgba(212,175,55,0.4); }
  50% { box-shadow: 0 6px 25px rgba(241,196,15,0.55); border-color: rgba(241,196,15,0.85); }
  100% { box-shadow: 0 4px 15px rgba(212,175,55,0.25); border-color: rgba(212,175,55,0.4); }
}

.ambient-gold-pulse {
  animation: ambientGoldGlow 4s ease-in-out infinite;
}

@keyframes gentleFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

.gentle-float {
  animation: gentleFloat 3.5s ease-in-out infinite;
}

@keyframes shimmerSweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-btn {
  background-size: 200% 100% !important;
  background-image: linear-gradient(120deg, #D4AF37 0%, #FFF 50%, #AA7C11 100%) !important;
  animation: shimmerSweep 3s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.slow-zodiac-spin {
  animation: slowSpin 60s linear infinite;
  transform-origin: center center;
}

@keyframes flameFlicker {
  0% { opacity: 0.8; filter: drop-shadow(0 0 4px rgba(243, 156, 18, 0.6)); }
  50% { opacity: 1; filter: drop-shadow(0 0 10px rgba(241, 196, 15, 0.9)); }
  100% { opacity: 0.8; filter: drop-shadow(0 0 4px rgba(243, 156, 18, 0.6)); }
}

.flame-flicker {
  animation: flameFlicker 2.5s ease-in-out infinite alternate;
}

/* 🔽 Collapsible Tables & Lists */
.collapsible-table-box:not(.expanded) tbody tr:nth-child(n+5) {
  display: none;
}

/* ==========================================================================
   📜 Prom Chat 8-Day & 🛕 Auspicious Deities & 🛡️ Remedy Engine Styles
   ========================================================================== */

/* Day selector bar */
.promchat-days-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 4px 12px 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.promchat-day-btn {
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.promchat-day-btn:hover {
  border-color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.2);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.promchat-day-btn.active {
  background: linear-gradient(135deg, #D4AF37 0%, #AA7C11 100%);
  color: #090D14;
  font-weight: 800;
  border-color: var(--primary-gold);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

.promchat-day-btn.is-user-day {
  border-color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
}

.promchat-day-btn.is-user-day.active {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA7C11 100%);
  color: #090D14;
  font-weight: 800;
}

/* 14 Dimension Cards (อ่านง่าย คมชัด สไตล์พรีเมียม สบายตา) */
.promchat-dim-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.promchat-dim-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.promchat-dim-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

.promchat-dim-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.promchat-dim-value {
  font-size: 13px;
  font-weight: 600;
  color: #F1F5F9;
  line-height: 1.65;
}

/* Deities Filter Bar */
.deity-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  scrollbar-width: none;
}

.deity-filter-bar::-webkit-scrollbar {
  display: none;
}

.deity-filter-chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.deity-filter-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-gold);
  color: #FFFFFF;
}

.deity-filter-chip.active {
  background: var(--primary-gold);
  color: #111A29;
  font-weight: 700;
  border-color: var(--gold-light);
  box-shadow: 0 2px 10px rgba(212, 172, 13, 0.4);
}

/* Deity Cards Grid */
.deity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.deity-card-item {
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.9) 0%, rgba(17, 26, 41, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
}

.deity-card-item:hover, .deity-card-item:active {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
  background: linear-gradient(135deg, rgba(35, 50, 72, 0.95) 0%, rgba(22, 33, 52, 0.98) 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.deity-card-item .tradition-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 600;
}

.tradition-tag.hindu {
  background: rgba(212, 175, 55, 0.2);
  color: #FDE68A;
  border: 1px solid var(--primary-gold);
  font-weight: 700;
}

.tradition-tag.chinese {
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border: 1px solid #EF4444;
  font-weight: 700;
}

.tradition-tag.thai {
  background: rgba(46, 204, 113, 0.2);
  color: #86EFAC;
  border: 1px solid #2ECC71;
  font-weight: 700;
}

/* Today Worship Highlight Card (Dark Luxury Theme) */
.today-worship-card {
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.95) 0%, rgba(17, 26, 41, 0.98) 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 16px;
  border: 1.5px solid var(--primary-gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.today-worship-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
  pointer-events: none;
}

/* 🌟 Dual-Mode Shrine & Chinese Pantheon Switcher */
.deity-mode-switcher-container {
  margin-bottom: 16px;
  position: sticky;
  top: 60px;
  z-index: 45;
}
.deity-mode-tabs {
  display: flex;
  background: rgba(8, 12, 20, 0.75);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 4px;
  gap: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.deity-mode-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 42px;
}
.deity-mode-tab-btn:hover {
  color: #F1F5F9;
  background: rgba(255, 255, 255, 0.05);
}
.deity-mode-tab-btn.active {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA7C11 100%);
  color: #080C14;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

/* 🐉 Chinese Pantheon 300 Hero Banner */
.pantheon-hero-card {
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.95) 0%, rgba(17, 26, 41, 0.98) 100%);
  border: 1.5px solid var(--primary-gold);
  border-radius: 18px;
  padding: 16px;
  color: #FFFFFF;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.pantheon-hero-badge {
  font-size: 10.5px;
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border: 1px solid #EF4444;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}
.pantheon-hero-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-light);
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}
.pantheon-hero-subtitle {
  font-size: 11.5px;
  color: #CBD5E1;
  margin: 0 0 10px 0;
  line-height: 1.5;
}
.pantheon-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pantheon-stat-chip {
  font-size: 10.5px;
  background: rgba(212, 175, 55, 0.15);
  color: #FDE68A;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
}

/* 🔍 Pantheon Search Box */
.pantheon-search-wrapper {
  margin-bottom: 12px;
}
.pantheon-search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(13, 20, 33, 0.9);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 2px 12px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.pantheon-search-input-box:focus-within {
  border-color: #FDE047;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}
.pantheon-search-icon {
  font-size: 16px;
  margin-right: 8px;
  opacity: 0.8;
}
.pantheon-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 13px;
  padding: 10px 0;
  font-family: inherit;
}
.pantheon-search-input::placeholder {
  color: #64748B;
  font-size: 12px;
}
.pantheon-clear-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #CBD5E1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s ease;
}
.pantheon-clear-btn:hover {
  background: rgba(239, 68, 68, 0.6);
  color: #FFFFFF;
}

/* 🏷️ Category Scroller & Chips */
.pantheon-categories-scroller {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.pantheon-cat-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(26, 37, 54, 0.8);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pantheon-cat-chip:hover {
  background: rgba(35, 50, 72, 0.95);
  border-color: rgba(212, 175, 55, 0.5);
  color: #FFFFFF;
}
.pantheon-cat-chip.active {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%);
  color: #080C14;
  font-weight: 800;
  border-color: var(--gold-light);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

.pantheon-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 12px;
  padding: 0 4px;
}

/* 🍱 Pantheon 300 Bento Grid */
.pantheon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}
@media (min-width: 768px) {
  .pantheon-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
@media (min-width: 1024px) {
  .pantheon-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.pantheon-card-item {
  background: linear-gradient(135deg, rgba(22, 33, 49, 0.9) 0%, rgba(13, 20, 33, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.pantheon-card-item:hover, .pantheon-card-item:active {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
  background: linear-gradient(135deg, rgba(30, 45, 68, 0.95) 0%, rgba(17, 26, 42, 0.98) 100%);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}
.pantheon-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.pantheon-card-num {
  font-size: 10px;
  font-weight: 800;
  color: #FDE047;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 1px 6px;
  border-radius: 6px;
}
.pantheon-card-cat {
  font-size: 9px;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pantheon-card-chinese {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 1px;
  margin: 2px 0 1px 0;
  line-height: 1.2;
}
.pantheon-card-pinyin {
  font-size: 10px;
  color: #94A3B8;
  margin-bottom: 4px;
}
.pantheon-card-nameth {
  font-size: 12.5px;
  font-weight: 700;
  color: #FDE68A;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.pantheon-card-domain {
  font-size: 10.5px;
  color: #CBD5E1;
  line-height: 1.4;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pantheon-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
}
.pantheon-card-tag {
  font-size: 8.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.12);
  color: #FDE68A;
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-weight: 600;
}


/* Remedy Card Blocks (Dark Luxury Theme) */
.remedy-block {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #F1F5F9;
}

.remedy-block-thai {
  border-left: 4px solid var(--primary-gold);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #F1F5F9;
}

.remedy-block-fengshui {
  border-left: 4px solid #EF4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F1F5F9;
}

.remedy-block-practical {
  border-left: 4px solid #38BDF8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #F1F5F9;
}

/* ==========================================================================
   🧑‍🔮 Immersive Fullscreen Sinseh Chat Mode (Zero-Distraction / Max Viewport)
   ========================================================================== */
body.in-sinseh-chat-mode {
  overflow: hidden !important;
}

body.in-sinseh-chat-mode .header-bar,
body.in-sinseh-chat-mode #unifiedTopNavBar,
body.in-sinseh-chat-mode #currentPageTitleBar,
body.in-sinseh-chat-mode #bottomMobileNavBar,
body.in-sinseh-chat-mode #floatingDailyFortuneBtn,
body.in-sinseh-chat-mode #musicPlayerDock {
  display: none !important;
}

body.in-sinseh-chat-mode .app-container {
  padding: 0 !important;
  max-width: 100% !important;
}

body.in-sinseh-chat-mode #viewAIChat {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999 !important;
  background: #080C14 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.in-sinseh-chat-mode .min-chat-card {
  width: 100% !important;
  max-width: 540px !important;
  margin: 0 auto !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #080C14 !important;
}

body.in-sinseh-chat-mode .min-chat-header {
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px 14px !important;
  background: rgba(13, 18, 30, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.in-sinseh-chat-mode .min-chat-thread-container {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: clamp(10px, 2.5vw, 16px) clamp(10px, 2.8vw, 16px) calc(14px + env(safe-area-inset-bottom, 0px)) clamp(10px, 2.8vw, 16px) !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

body.in-sinseh-chat-mode .min-input-dock {
  padding: 8px clamp(10px, 2.8vw, 16px) calc(10px + env(safe-area-inset-bottom, 0px)) clamp(10px, 2.8vw, 16px) !important;
  background: rgba(9, 13, 22, 0.98) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* =========================================================================
   🧑‍🔮 Style 2: Minimalist Dark Luxury AI Chat Interface
   ========================================================================= */

#viewAIChat {
  height: 100vh;
  height: 100dvh;
  padding: 0;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: none;
  background: #080C14 !important;
}

#viewAIChat.active {
  display: flex !important;
  flex-direction: column !important;
}

.min-chat-card {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 !important;
  background: #080C14 !important;
}

/* Minimalist Header (ลูกศรย้อนกลับ ← + อาจารย์ปีเตอร์ ★ 4.9 + 🟢 ออนไลน์ + ⋮) */
.min-chat-header {
  padding: calc(6px + env(safe-area-inset-top, 0px)) 14px 8px 14px;
  background: rgba(13, 18, 30, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  flex-shrink: 0;
}

.min-btn-back,
.min-btn-more {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}
.min-btn-back:hover,
.min-btn-more:hover {
  color: #FFFFFF;
  transform: scale(1.1);
}

.min-header-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.min-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(212, 175, 55, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
}

.min-header-info-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.min-header-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.min-master-name {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.1px;
}

.min-rating-badge {
  font-size: 11px;
  font-weight: 700;
  color: #FDE047;
}

.min-header-status-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.min-green-dot {
  width: 6px;
  height: 6px;
  background: #22C55E;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #22C55E;
}

.min-status-text {
  font-size: 10.5px;
  color: #94A3B8;
}

/* Chat Message Thread Container */
.min-chat-thread-container {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px 24px 14px;
  scroll-behavior: smooth;
  background: #080C14 !important;
  -webkit-overflow-scrolling: touch;
}

.min-chat-thread-container::-webkit-scrollbar {
  width: 3px;
}
.min-chat-thread-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* User Question Card (กล่องคำถามมนสวยงามด้านบน) */
.min-user-question-card {
  background: rgba(22, 28, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px 0;
  box-shadow: none;
}

.min-q-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.min-q-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.min-q-meta-label {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 500;
}

.min-q-text-val {
  font-size: clamp(12px, 3.2vw, 13.5px);
  font-weight: 700;
  color: #FFFFFF;
  white-space: normal;
  word-break: break-word;
  line-height: 1.55;
}

.min-q-change-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.min-q-change-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
  color: #FDE047;
}

/* Date / Time Divider */
.min-chat-date-divider {
  text-align: center;
  font-size: 10.5px;
  color: #64748B;
  margin: 6px 0 10px 0;
}

/* Greeting Message Bubble */
.min-msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 12px 0;
}

.min-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.min-msg-bubble {
  max-width: 85%;
  background: rgba(22, 28, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 10px 14px;
}

.min-greeting-bold {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.min-greeting-desc {
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.5;
}

/* Astrological Calculation Mandala Card (Style 2) */
.min-calc-card-wrap {
  margin: 10px 0;
}

.min-calc-card {
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, rgba(13, 18, 30, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(212, 175, 55, 0.08);
}

.min-calc-title {
  font-size: 13px;
  font-weight: 700;
  color: #FDE68A;
}

.min-calc-subtitle {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
  margin-bottom: 14px;
}

.min-mandala-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.min-mandala-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.5);
}

.min-mandala-ring.outer-ring {
  width: 86px;
  height: 86px;
  animation: mandalaSpin 12s linear infinite;
}

.min-mandala-ring.middle-ring {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(253, 224, 71, 0.4);
  animation: mandalaSpinReverse 8s linear infinite;
}

.min-mandala-ring.inner-ring {
  width: 38px;
  height: 38px;
  border: 1px dotted rgba(212, 175, 55, 0.7);
  animation: mandalaSpin 5s linear infinite;
}

.min-mandala-star {
  font-size: 20px;
  color: #FDE047;
  text-shadow: 0 0 12px #FDE047, 0 0 20px rgba(212, 175, 55, 0.8);
  animation: starPulse 2s ease-in-out infinite alternate;
}

@keyframes mandalaSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes mandalaSpinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes starPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Prediction Result Card (Style 2 Minimalist & Ergonomic Luxury) */
.min-prediction-card {
  background: rgba(15, 21, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 0 0 10px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.min-pred-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #FDE047;
  letter-spacing: 0.15px;
}

.min-pred-heart-icon {
  font-size: 15px;
}

.min-pred-body-text {
  font-size: 13.5px;
  color: #F1F5F9;
  line-height: 1.78;
  letter-spacing: 0.2px;
  word-break: break-word;
}

.min-pred-body-text p {
  margin: 10px 0;
  line-height: 1.78;
}

/* ⚡ Luxury Streaming Typewriter Cursor & Animation (Gemini-Style) */
.streaming-cursor {
  display: inline-block;
  width: 2.5px;
  height: 1.15em;
  background: #FDE047;
  margin-left: 3px;
  vertical-align: -0.15em;
  animation: streamBlink 0.75s infinite cubic-bezier(0.4, 0, 0.6, 1);
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.7);
  border-radius: 1px;
}

@keyframes streamBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.1; }
}

.min-prediction-card.is-streaming {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.min-prediction-card.is-streaming .min-pred-footer-row {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.min-followup-row.is-hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(8px);
}

.min-followup-row.fade-in-up {
  display: flex !important;
  animation: fadeInUpFollowup 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUpFollowup {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ⚡ Smart AI Re-Awaken / Retry Card */
.min-retry-card {
  background: rgba(20, 26, 38, 0.95);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 12px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.min-retry-title {
  color: #FDE047;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.min-retry-desc {
  color: #CBD5E1;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.min-retry-btn {
  background: linear-gradient(135deg, #FDE047 0%, #D4AF37 50%, #B45309 100%);
  color: #080C14;
  border: none;
  font-size: 12.5px;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.min-retry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
  filter: brightness(1.08);
}

.min-pred-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.min-pred-actions-left {
  display: flex;
  gap: 6px;
  align-items: center;
}

.min-btn-copy,
.min-btn-voice {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.min-btn-copy:hover,
.min-btn-voice:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #FDE047;
  border-color: rgba(212, 175, 55, 0.4);
}

.min-pred-timestamp {
  font-size: 10px;
  color: #64748B;
}

/* Follow-up Action Pills (Style 2 - Combined Contextual & Universal High-Value Trio) */
.min-followup-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 24px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 6px 0;
}
.min-followup-row::-webkit-scrollbar {
  display: none;
}

.min-pill-btn {
  flex-shrink: 0;
  background: rgba(22, 28, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.min-pill-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: #FDE047;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}
.min-pill-btn:active {
  transform: scale(0.96);
}

/* Vertical Recommended Questions Section (Style 2 Collapsible) */
.min-rec-section {
  margin: 10px 0 6px 0;
}

.min-rec-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 4px;
  cursor: pointer;
  border-radius: 8px;
  user-select: none;
  transition: opacity 0.2s ease;
}
.min-rec-header-row:hover {
  opacity: 0.85;
}

.min-rec-header-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #94A3B8;
}

.min-rec-chevron {
  font-size: 13px;
  color: #FDE047;
  font-weight: 800;
}

.min-rec-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.min-rec-item {
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.min-rec-item:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateX(2px);
}
.min-rec-item:active {
  transform: scale(0.98);
}

.min-rec-item-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.min-rec-item-text {
  flex: 1;
  font-size: 12px;
  color: #CBD5E1;
  font-weight: 500;
}

.min-rec-item-plus {
  font-size: 14px;
  font-weight: 700;
  color: #FDE047;
  flex-shrink: 0;
}

/* Minimalist Capsule Input Dock */
.min-input-dock {
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)) 14px;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.min-input-capsule {
  display: flex;
  align-items: center;
  background: rgba(20, 26, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 4px 6px 4px 14px;
  gap: 8px;
  transition: all 0.2s ease;
  min-height: 44px;
  box-sizing: border-box;
}
.min-input-capsule:focus-within {
  border-color: #FDE047;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.min-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 16px; /* iOS Safari No-Auto-Zoom Standard */
  font-family: inherit;
  padding: 8px 0;
  line-height: 1.4;
}
.min-chat-input::placeholder {
  color: #64748B;
  font-size: 13.5px;
}

.min-input-actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.min-input-tarot-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  min-width: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.85;
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.min-input-tarot-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.08);
}

.min-input-send-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%);
  color: #090D14;
  border: none;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.min-input-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(253, 230, 138, 0.7);
}
.min-input-send-btn:active {
  transform: scale(0.92);
}
.min-input-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.min-dock-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
  padding: 0 4px;
}

.min-security-note {
  font-size: 10px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   🔮 Sinseh Prediction Container — AI Reading Panel
   ========================================================================== */
.sinseh-prediction-container {
  margin-top: 10px;
  border-top: 1.5px dashed rgba(212, 175, 55, 0.35);
  padding-top: 10px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.sinseh-prediction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  background: rgba(212, 175, 55, 0.08);
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-sizing: border-box;
  width: 100%;
}

.sinseh-prediction-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.sinseh-prediction-title {
  color: #FDE68A;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sinseh-prediction-content {
  transition: all 0.3s ease;
}

.sinseh-body-text {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
  overflow-wrap: break-word;
}

.sinseh-body-text p,
.sinseh-body-text ul,
.sinseh-body-text ol {
  margin: 0 0 8px 0;
  padding: 0;
}

.sinseh-body-text strong {
  color: #FDE68A;
}

.btn-sinseh-toggle {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #FDE68A;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
  transition: background 0.2s ease;
}

.btn-sinseh-toggle:hover {
  background: rgba(212, 175, 55, 0.25);
}

/* Global Floating Toast Notification */
#globalToastContainer {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sinseh-toast-item {
  pointer-events: auto;
  background: linear-gradient(135deg, rgba(17, 26, 41, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1.5px solid var(--primary-gold);
  color: #F8FAFC;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDownToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownToast {
  0% { opacity: 0; transform: translateY(-20px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


/* ==========================================================================
   📜 9-Grid Mahathaksa & Name Destiny Analytics Styles
   ========================================================================== */
.mahathaksa-9grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 320px;
  margin: 14px auto;
}

.mahathaksa-grid-cell {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.mahathaksa-grid-cell:hover {
  transform: scale(1.03);
}

.mahathaksa-cell-planet {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-gold);
  line-height: 1.1;
}

.mahathaksa-cell-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-body);
  margin-top: 3px;
}

.mahathaksa-cell-center {
  background: linear-gradient(135deg, #1C2833 0%, #2C3E50 100%);
  border: 2px solid var(--primary-gold);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.letter-analysis-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--card-bg-inner);
  border: 1px solid var(--card-border-subtle);
  border-left: 3.5px solid var(--primary-gold);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}

.letter-thaksa-chip {
  display: inline-block;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 11px;
}
.thaksa-chip-บริวาร { background: rgba(56, 189, 248, 0.15); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.3); }
.thaksa-chip-อายุ { background: rgba(46, 204, 113, 0.15); color: #2ECC71; border: 1px solid rgba(46, 204, 113, 0.3); }
.thaksa-chip-เดช { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.thaksa-chip-ศรี { background: rgba(212, 175, 55, 0.18); color: #FDE68A; border: 1px solid rgba(212, 175, 55, 0.4); }
.thaksa-chip-มูละ { background: rgba(192, 132, 252, 0.15); color: #C084FC; border: 1px solid rgba(192, 132, 252, 0.3); }
.thaksa-chip-อุตสาหะ { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.thaksa-chip-มนตรี { background: rgba(249, 115, 22, 0.15); color: #FB923C; border: 1px solid rgba(249, 115, 22, 0.3); }
.thaksa-chip-กาลกิณี { background: rgba(231, 76, 60, 0.2); color: #FF6B6B; border: 1px solid rgba(231, 76, 60, 0.4); }

/* ==========================================================================
   📱 Sticky Floating Bottom Pill Nav Bar (ตึงลอยล่างจอเสมอ ไม่เกะกะ)
   ========================================================================== */
.bottom-floating-pill-nav {
  position: fixed !important;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 92% !important;
  max-width: 440px !important;
  background: rgba(17, 26, 36, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid var(--primary-gold) !important;
  border-radius: 35px !important;
  padding: 6px 10px !important;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px !important;
  z-index: 9999 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.25) !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-btn {
  background: transparent;
  border: none;
  color: #BDC3C7;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 20px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.bottom-nav-btn:active {
  transform: scale(0.95);
}

.bottom-nav-btn.active {
  background: rgba(212, 175, 55, 0.25) !important;
  color: var(--gold-light) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

/* Golden Highlight Button for Chat with Master */
.bottom-nav-btn.gold-highlight-btn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(184, 134, 11, 0.45) 100%) !important;
  border: 1.5px solid var(--primary-gold) !important;
  border-radius: 16px !important;
  color: #FDE68A !important;
  font-weight: 800 !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.5) !important;
  transition: all 0.25s ease !important;
  padding: 4px 10px !important;
}

.bottom-nav-btn.gold-highlight-btn .bottom-nav-label {
  color: #FDE68A !important;
  font-weight: 800 !important;
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.6) !important;
}

.bottom-nav-btn.gold-highlight-btn .bottom-nav-icon {
  filter: drop-shadow(0 0 4px rgba(243, 229, 171, 0.8));
}

.bottom-nav-btn.gold-highlight-btn:hover,
.bottom-nav-btn.gold-highlight-btn:active,
.bottom-nav-btn.gold-highlight-btn.active {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #B8860B 100%) !important;
  box-shadow: 0 0 22px rgba(243, 229, 171, 0.85) !important;
  border-color: #FFFBEB !important;
  transform: translateY(-2px);
}

.bottom-nav-btn.gold-highlight-btn:hover .bottom-nav-label,
.bottom-nav-btn.gold-highlight-btn:active .bottom-nav-label,
.bottom-nav-btn.gold-highlight-btn.active .bottom-nav-label {
  color: #090D14 !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

.bottom-nav-btn.gold-highlight-btn:hover .bottom-nav-icon,
.bottom-nav-btn.gold-highlight-btn:active .bottom-nav-icon,
.bottom-nav-btn.gold-highlight-btn.active .bottom-nav-icon {
  transform: scale(1.15);
  filter: none;
}

.bottom-nav-icon {
  font-size: 19px;
  line-height: 1.1;
  transition: transform 0.2s ease;
}

.bottom-nav-btn.active .bottom-nav-icon {
  transform: scale(1.1);
}

.bottom-nav-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* Ensure body & main panels have sufficient bottom spacing without double-padding void */
body, .app-container {
  padding-bottom: 0 !important;
}

/* ==========================================
   🛡️ Security Center & Auto-Lock Overlay
   ========================================== */
.auto-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 19, 31, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auto-lock-card {
  background: linear-gradient(135deg, #111A24 0%, #1A252F 100%);
  border: 1.5px solid var(--primary-gold);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  animation: modalScaleIn 0.3s ease;
}

.security-health-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.security-health-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.security-health-label {
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.security-health-val {
  font-size: 11px;
  font-weight: 700;
  color: #27AE60;
}

/* ==========================================================================
   🖼️ Sacred Wallpaper Store (วอลเปเปอร์มงคลเสริมดวง)
   ========================================================================== */
.wallpaper-hero-banner {
  background: linear-gradient(135deg, rgba(26, 37, 54, 0.95) 0%, rgba(17, 26, 41, 0.98) 100%);
  border: 1.5px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.2);
}

.wallpaper-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.wallpaper-deity-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px 14px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.wallpaper-deity-nav::-webkit-scrollbar {
  display: none;
}

.wallpaper-deity-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  color: #CBD5E1;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.wallpaper-deity-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #FFFFFF;
  border-color: var(--primary-gold);
}

.wallpaper-deity-chip.active {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA7C11 100%) !important;
  color: #090D14 !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45) !important;
}

.wallpaper-deity-chip.coming-soon {
  opacity: 0.6;
  border-style: dashed;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px 24px 16px;
}

@media (min-width: 768px) {
  .wallpaper-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.wallpaper-card {
  background: linear-gradient(180deg, rgba(26, 37, 54, 0.95) 0%, rgba(17, 26, 41, 0.98) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.wallpaper-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 175, 55, 0.3);
}

.wallpaper-img-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  position: relative;
  overflow: hidden;
  background: #0B0F19;
  cursor: pointer;
}

.wallpaper-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wallpaper-card:hover .wallpaper-img {
  transform: scale(1.05);
}

.wallpaper-overlay-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.wallpaper-badge-free {
  background: rgba(16, 185, 129, 0.88);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.wallpaper-badge-premium {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%);
  color: #090D14;
  border: 1px solid #FFFFFF;
}

.wallpaper-badge-unlocked {
  background: rgba(74, 222, 128, 0.9);
  color: #064E3B;
  border: 1px solid #FFFFFF;
}

.wallpaper-theme-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F1F5F9;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.wallpaper-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.wallpaper-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wallpaper-desc {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wallpaper-btn-action {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wallpaper-btn-free {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.wallpaper-btn-free:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  transform: translateY(-1px);
}

.wallpaper-btn-unlock {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA7C11 100%);
  color: #090D14;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.wallpaper-btn-unlock:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.wallpaper-btn-downloaded {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Wallpaper Preview Modal */
.wallpaper-preview-box {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.35);
  margin: 0 auto 16px auto;
  position: relative;
}

.wallpaper-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 📱 Universal Mobile Form & Input Reset (Prevent Overflow & Sizing Issues) */
input, select, textarea, button {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

input[type="date"], input[type="time"], select:not(.cal-activity-select):not(.mini-cal-pill-select) {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  min-height: 48px !important;
}

.login-card, .compat-section, .view-panel {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* 🚫 Prevent floating button & bottom navbar from displaying during login screen */
.bottom-floating-pill-nav[style*="display: none"],
#bottomMobileNavBar[style*="display: none"] {
  display: none !important;
}

.login-wrapper[style*="display: flex"] ~ #bottomMobileNavBar,
.login-wrapper[style*="display: block"] ~ #bottomMobileNavBar,
.login-wrapper:not([style*="display: none"]) ~ #bottomMobileNavBar {
  display: none !important;
}

.login-wrapper[style*="display: flex"] ~ #bottomMobileNavBar #floatingDailyHoroBtn,
.login-wrapper[style*="display: block"] ~ #bottomMobileNavBar #floatingDailyHoroBtn,
.login-wrapper:not([style*="display: none"]) ~ #bottomMobileNavBar #floatingDailyHoroBtn {
  display: none !important;
}

/* ==========================================================================
   🔴 Cute Playful Red Notification Badges & Popups (สิทธิ์สุ่มฟรี 1 ครั้ง)
   ========================================================================== */

@keyframes cuteRedPulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8), 0 2px 8px rgba(0,0,0,0.3);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 16px 5px rgba(239, 68, 68, 0.9), 0 4px 12px rgba(220, 38, 38, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 2px 8px rgba(0,0,0,0.3);
  }
}

@keyframes cuteRedBounceLoop {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-5px) scale(1.05);
  }
  45% {
    transform: translateY(0) scale(0.98);
  }
  65% {
    transform: translateY(-2px) scale(1.02);
  }
}

@keyframes cuteWinkRotate {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-12deg) scale(1.2); }
  75% { transform: rotate(12deg) scale(1.2); }
}

/* 🔴 The Cute Floating Red Badge on Corner of Cards */
.badge-free-draw-cute {
  position: absolute !important;
  top: -8px !important;
  right: -6px !important;
  background: linear-gradient(135deg, #FF1744 0%, #EF4444 50%, #DC2626 100%) !important;
  color: #FFFFFF !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  padding: 3px 8px !important;
  border-radius: 12px !important;
  border: 1.5px solid #FFE4E6 !important;
  box-shadow: 0 3px 12px rgba(225, 29, 72, 0.75), 0 0 10px rgba(255, 23, 68, 0.5) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  z-index: 12 !important;
  animation: cuteRedPulseGlow 1.8s infinite ease-in-out !important;
  letter-spacing: 0.3px !important;
  pointer-events: none !important;
}

.badge-free-draw-cute .dot-live {
  width: 6px;
  height: 6px;
  background: #FFF;
  border-radius: 50%;
  display: inline-block;
  animation: cuteWinkRotate 1.2s infinite;
  box-shadow: 0 0 4px #FFF;
}

/* 🔴 Cute Floating Popup Notification Pill over Action Buttons (In-Page) */
.free-draw-popup-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF1744 0%, #E11D48 100%);
  color: #FFFFFF !important;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(255, 23, 68, 0.6), 0 0 12px rgba(255, 107, 107, 0.45);
  border: 1.5px solid #FFE4E6;
  margin-bottom: 10px;
  animation: cuteRedBounceLoop 2.2s infinite ease-in-out;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease;
}

.free-draw-popup-alert:hover {
  transform: scale(1.05);
}

/* 🔴 Playful Glowing Button Style when not yet drawn */
.btn-free-draw-playful {
  position: relative !important;
  overflow: visible !important;
  animation: cuteRedPulseGlow 2s infinite ease-in-out !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.65), 0 4px 15px rgba(0,0,0,0.3) !important;
  border: 1.5px solid #FCA5A5 !important;
}

/* ==========================================================================
   📱 2026 Modern Menu Portal UI System (Phase 1 Redesign)
   ========================================================================== */

.menu-portal-container {
  padding: 16px 14px 28px 14px;
  max-width: 600px;
  margin: 0 auto;
}

/* 🔍 Smart Search Bar */
.menu-search-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.menu-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(17, 24, 39, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
  padding: 12px 18px 12px 44px;
  color: #FFFFFF;
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  font-family: inherit;
}

.menu-search-input:focus {
  border-color: #FDE047;
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.45);
}

.menu-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.75;
  pointer-events: none;
}

.menu-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #CBD5E1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

/* ✨ 4 Quick Category Soft 3D Pills/Cards */
.menu-quick-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.menu-quick-cat-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.menu-quick-cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.6);
  background: linear-gradient(145deg, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.05) 100%);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
}

.menu-quick-cat-card:active {
  transform: scale(0.96);
}

.menu-quick-cat-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.menu-quick-cat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #F1F5F9;
  letter-spacing: 0.2px;
}

/* 🌟 Hero Divine Banner Card */
.menu-hero-banner {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #1E1B4B 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(49, 46, 129, 0.35), 0 0 16px rgba(212, 175, 55, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.menu-hero-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(49, 46, 129, 0.5), 0 0 20px rgba(212, 175, 55, 0.35);
}

.menu-hero-banner-content {
  flex: 1;
  z-index: 2;
}

.menu-hero-banner-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.menu-hero-banner-desc {
  font-size: 11.5px;
  color: #CBD5E1;
  line-height: 1.45;
  margin-bottom: 10px;
}

.menu-hero-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%);
  color: #090D14;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

.menu-hero-banner-visual {
  font-size: 42px;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  margin-left: 10px;
}

/* 🏛️ Section Header */
.menu-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.menu-group-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.menu-group-badge {
  font-size: 10px;
  background: rgba(212, 175, 55, 0.15);
  color: #FDE047;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

/* 🎴 Modern 3-Column Compact Portal Cards Grid */
.menu-portal-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.menu-portal-grid-2col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.menu-portal-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(20, 29, 45, 0.8) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 14px;
  padding: 10px 6px 8px 6px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  overflow: visible;
  text-decoration: none;
}

.menu-portal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(253, 224, 71, 0.6);
  background: rgba(26, 37, 56, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 175, 55, 0.25);
}

.menu-portal-card:active {
  transform: scale(0.95);
}

.menu-portal-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  width: 100%;
}

.menu-portal-card-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
}

.menu-portal-card:hover .menu-portal-card-icon {
  transform: scale(1.15);
}

.menu-portal-card-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 8px;
  padding: 1px 5px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.1px;
  line-height: 1.2;
}

.menu-portal-card-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 2px 0;
  line-height: 1.25;
  word-break: keep-all;
  white-space: normal;
  max-width: 100%;
}

.menu-portal-card-desc {
  font-size: 9px;
  color: #94A3B8;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.menu-portal-card-footer {
  display: none;
}


.menu-portal-card-footer {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

.menu-portal-card-arrow {
  font-size: 10.5px;
  font-weight: 700;
  color: #FDE047;
}

/* 🌟 Special Badges for Menu Portal Cards (V134.8.5 Haute-Couture Matrix) */
.menu-badge-hot {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.4) 100%) !important;
  color: #FCA5A5 !important;
  border: 1px solid rgba(248, 113, 113, 0.6) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
}

.menu-badge-rec {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(245, 158, 11, 0.35) 100%) !important;
  color: #FDE047 !important;
  border: 1px solid rgba(253, 224, 71, 0.6) !important;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3) !important;
}

.menu-badge-vip {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(212, 175, 55, 0.3) 100%) !important;
  color: #FDE68A !important;
  border: 1px solid rgba(212, 175, 55, 0.6) !important;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3) !important;
}

.menu-badge-thai {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.4) 100%) !important;
  color: #6EE7B7 !important;
  border: 1px solid rgba(52, 211, 153, 0.6) !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3) !important;
}

.menu-badge-promchat {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.4) 100%) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3) !important;
}

.menu-badge-phone {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(2, 132, 199, 0.4) 100%) !important;
  color: #7DD3FC !important;
  border: 1px solid rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.3) !important;
}

.menu-badge-chinese {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25) 0%, rgba(190, 18, 60, 0.4) 100%) !important;
  color: #FDA4AF !important;
  border: 1px solid rgba(251, 113, 133, 0.6) !important;
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.3) !important;
}

.menu-badge-compat {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(219, 39, 119, 0.4) 100%) !important;
  color: #F472B6 !important;
  border: 1px solid rgba(244, 114, 182, 0.6) !important;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.3) !important;
}

.menu-badge-deity {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(234, 88, 12, 0.4) 100%) !important;
  color: #FDBA74 !important;
  border: 1px solid rgba(251, 146, 60, 0.6) !important;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.3) !important;
}

.menu-badge-calendar {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(13, 148, 136, 0.4) 100%) !important;
  color: #67E8F9 !important;
  border: 1px solid rgba(45, 212, 191, 0.6) !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3) !important;
}

.menu-badge-name {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(124, 58, 237, 0.4) 100%) !important;
  color: #C4B5FD !important;
  border: 1px solid rgba(167, 139, 250, 0.6) !important;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3) !important;
}

.menu-badge-car {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.4) 100%) !important;
  color: #93C5FD !important;
  border: 1px solid rgba(96, 165, 250, 0.6) !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important;
}

.menu-badge-colors {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(168, 85, 247, 0.4) 100%) !important;
  color: #FBCFE8 !important;
  border: 1px solid rgba(244, 114, 182, 0.6) !important;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.3) !important;
}

.menu-badge-categories {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(245, 158, 11, 0.4) 100%) !important;
  color: #FDE047 !important;
  border: 1px solid rgba(253, 224, 71, 0.6) !important;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3) !important;
}

/* 🚗 Wide Horizontal Menu Portal Card (Row-Span Symmetrical Architecture) */
.menu-portal-card.menu-portal-card-wide {
  grid-column: 1 / -1 !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 14px !important;
  text-align: left !important;
}

.menu-portal-card.menu-portal-card-wide .menu-portal-card-wide-inner {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.menu-portal-card.menu-portal-card-wide .menu-portal-card-top {
  width: auto !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.menu-portal-card.menu-portal-card-wide .menu-portal-card-title {
  margin: 0 0 1px 0 !important;
  font-size: 13px !important;
}

.menu-portal-card.menu-portal-card-wide .menu-portal-card-desc {
  margin: 0 !important;
  font-size: 10px !important;
}

.menu-portal-card.menu-portal-card-wide .menu-portal-card-badge {
  position: static !important;
  margin-left: auto !important;
  font-size: 9px !important;
  padding: 2px 7px !important;
}

/* 👑 Haute-Couture Floating VIP Corner Badge (มุมกรอบซ้าย เด้งขึ้น-ลง) */
@keyframes vipCornerFloatBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.55), 0 0 8px rgba(245, 158, 11, 0.35);
  }
  50% {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.85), 0 0 14px rgba(251, 191, 36, 0.6);
  }
}

.badge-vip-corner-float {
  position: absolute !important;
  top: -7px !important;
  left: -4px !important;
  background: linear-gradient(135deg, #F59E0B 0%, #D4AF37 50%, #B45309 100%) !important;
  color: #FFFFFF !important;
  font-size: 8.5px !important;
  font-weight: 900 !important;
  padding: 1.5px 6px !important;
  border-radius: 8px !important;
  border: 1px solid #FEF3C7 !important;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.6) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  z-index: 10 !important;
  letter-spacing: 0.3px !important;
  pointer-events: none !important;
  animation: vipCornerFloatBounce 2.2s infinite ease-in-out !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6) !important;
  line-height: 1.2 !important;
}

/* 👑 VIP Privilege Gatekeeper Modal (V134.8.5) */
.vip-modal-content {
  background: linear-gradient(145deg, #090E18 0%, #111A29 100%);
  border: 1.5px solid var(--primary-gold);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.25);
  padding: 24px 20px;
  max-width: 440px;
  width: 92%;
  position: relative;
  color: #FFFFFF;
  box-sizing: border-box;
  animation: vipModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vipModalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.vip-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.vip-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.vip-modal-header {
  text-align: center;
  margin-bottom: 18px;
}

.vip-modal-crown-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.05) 70%);
  border: 1.5px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}

.vip-modal-crown-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.6));
}

.vip-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #FDE047;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
  letter-spacing: 0.2px;
}

.vip-modal-subtitle {
  font-size: 12px;
  color: #94A3B8;
  margin: 0;
  line-height: 1.4;
}

.vip-modal-features-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.vip-modal-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 8px 12px;
  transition: background 0.2s ease;
}

.vip-modal-feat-item:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.25);
}

.vip-modal-feat-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.vip-modal-feat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vip-modal-feat-text strong {
  font-size: 12.5px;
  color: #F1F5F9;
  font-weight: 700;
}

.vip-modal-feat-text span {
  font-size: 10.5px;
  color: #94A3B8;
  line-height: 1.3;
}

.vip-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vip-modal-btn-upgrade {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);
  color: #0F172A;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  transition: all 0.2s ease;
}

.vip-modal-btn-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.vip-modal-btn-redeem {
  width: 100%;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.1);
  color: #FDE047;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.vip-modal-btn-redeem:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #FDE047;
}

.vip-modal-btn-dismiss {
  width: 100%;
  height: 32px;
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.vip-modal-btn-dismiss:hover {
  color: #94A3B8;
}

/* 👤 Modern Single-Row Account Footer Card */
.menu-account-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1.2px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  height: 46px;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.menu-account-card:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
}

.menu-acc-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.menu-acc-avatar {
  font-size: 15px;
  background: rgba(212, 175, 55, 0.15);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
}

.menu-acc-info-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.menu-acc-name-txt {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.menu-acc-dot {
  color: #64748B;
  font-size: 10px;
  flex-shrink: 0;
}

.menu-acc-badge-txt {
  font-size: 11px;
  color: #FDE047;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-acc-btn-action {
  font-size: 11px;
  color: var(--primary-gold);
  font-weight: 800;
  background: rgba(212, 175, 55, 0.15);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-acc-btn-action:hover {
  background: rgba(212, 175, 55, 0.3);
  border-color: #FDE047;
}

/* ==========================================================================
   🏠 2026 Modern Dashboard UI System (Phase 2 Redesign)
   ========================================================================== */

/* 🔍 Dashboard Smart Prompt Bar */
.dash-prompt-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.dash-prompt-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-prompt-subtitle {
  font-size: 11.5px;
  color: #CBD5E1;
  margin-bottom: 10px;
}

.dash-prompt-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dash-prompt-input {
  flex: 1;
  background: rgba(10, 15, 26, 0.9);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  padding: 10px 16px;
  color: #FFFFFF;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.dash-prompt-input:focus {
  border-color: #FDE047;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.dash-prompt-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border: 1px solid #FDE68A;
  color: #090D14;
  border-radius: 18px;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 🌟 2026 Visual Cosmic Cards: คำถามยอดฮิต */
.dash-popular-section {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  padding: 12px 14px;
  margin: 0 16px 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.dash-popular-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dash-popular-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  letter-spacing: 0.1px;
}

.dash-popular-more-link {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.dash-popular-more-link:hover {
  color: #FDE047;
}

.dash-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 480px) {
  .dash-popular-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2px;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .dash-popular-grid::-webkit-scrollbar {
    display: none;
  }
  .dash-pop-card {
    flex: 0 0 calc(25% - 6px);
    min-width: 78px;
    scroll-snap-align: start;
  }
}

.dash-pop-card {
  position: relative;
  border-radius: 14px;
  padding: 12px 4px 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  min-height: 105px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
}

.dash-pop-card:hover, .dash-pop-card:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* 💖 1. ความรัก (Love Card) */
.dash-pop-card.dash-pop-love {
  background: radial-gradient(circle at 50% 25%, rgba(244, 63, 94, 0.25) 0%, rgba(30, 12, 28, 0.8) 60%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(244, 63, 94, 0.35);
}
.dash-pop-card.dash-pop-love:hover {
  border-color: rgba(251, 113, 133, 0.7);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.3);
}

/* 💼 2. การงาน (Career Card) */
.dash-pop-card.dash-pop-career {
  background: radial-gradient(circle at 50% 25%, rgba(168, 85, 247, 0.25) 0%, rgba(28, 14, 45, 0.8) 60%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(168, 85, 247, 0.35);
}
.dash-pop-card.dash-pop-career:hover {
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

/* 🪙 3. การเงิน (Wealth Card) */
.dash-pop-card.dash-pop-wealth {
  background: radial-gradient(circle at 50% 25%, rgba(16, 185, 129, 0.25) 0%, rgba(10, 36, 26, 0.8) 60%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}
.dash-pop-card.dash-pop-wealth:hover {
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

/* 🌌 4. ภาพรวมชีวิต (Life Card) */
.dash-pop-card.dash-pop-life {
  background: radial-gradient(circle at 50% 25%, rgba(59, 130, 246, 0.25) 0%, rgba(15, 28, 55, 0.8) 60%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(59, 130, 246, 0.35);
}
.dash-pop-card.dash-pop-life:hover {
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
}

.dash-pop-art-svg {
  width: 100%;
  height: 56px;
  display: block;
  margin-bottom: 4px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.dash-pop-card:hover .dash-pop-art-svg {
  transform: scale(1.08) translateY(-2px);
}

.dash-pop-text {
  font-size: 10.5px;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.25;
  letter-spacing: 0.1px;
  word-break: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  max-width: 100%;
}


/* 👥 2026 Dark Luxury Glassmorphism: Featured Sinseh Masters */
.dash-masters-section {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  padding: 14px 14px;
  margin: 0 16px 16px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.dash-masters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.dash-master-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dash-master-card:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 224, 71, 0.55);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 14px rgba(212, 175, 55, 0.25);
}

.dash-master-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(139, 92, 246, 0.3) 100%);
  border: 1px solid rgba(253, 224, 71, 0.55);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 6px;
  position: relative;
  transition: transform 0.2s ease;
}

.dash-master-card:hover .dash-master-avatar {
  transform: scale(1.06);
}

.dash-master-online-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  border: 1.5px solid #080C14;
  box-shadow: 0 0 6px #10B981;
  position: absolute;
  bottom: 0;
  right: 0;
}

.dash-master-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dash-master-rating {
  font-size: 10px;
  color: #FDE047;
  font-weight: 800;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-shadow: 0 0 8px rgba(253, 224, 71, 0.4);
}

.dash-master-specialty {
  font-size: 10px;
  color: #CBD5E1;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dash-master-action-btn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(184, 134, 11, 0.18) 100%);
  border: 1px solid rgba(253, 230, 138, 0.45);
  color: #FDE68A;
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 10.5px;
  font-weight: 800;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.dash-master-action-btn:hover {
  background: linear-gradient(135deg, #FDE047 0%, #D4AF37 100%);
  color: #090D14;
  border-color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}



/* ==========================================================================
   👑 2026 Modern Master Dashboard (Image 2 Architecture & Style)
   ========================================================================== */

/* Top Brand Header (2026 Master Balanced Architecture) */
.modern-brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(13, 18, 30, 0.98) 0%, rgba(20, 29, 45, 0.96) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: 52px;
  box-sizing: border-box;
}

.brand-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFFFFF;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.brand-icon-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #FDE047;
  transform: scale(1.05);
}

.brand-title-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.brand-title-main {
  font-size: 16px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand-sparkle-icon {
  color: #FDE047;
  font-size: 14px;
  animation: flameFlicker 2s infinite alternate;
  filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.7));
}

.brand-title-sub {

  font-size: 11.5px;
  font-weight: 700;
  color: #FDE68A;
  letter-spacing: 0.2px;
  margin-top: 2px;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.brand-vip-pill {
  height: 34px;
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 50%, #D97706 100%);
  border: 1px solid rgba(254, 240, 138, 0.7);
  color: #080C14;
  padding: 0 12px;
  border-radius: 18px;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-vip-pill:hover {
  background: linear-gradient(135deg, #FEF08A 0%, #FBBF24 50%, #D97706 100%);
  border-color: #FFFFFF;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}


/* User Compact Capsule Badge */
.modern-user-badge-bar {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 8px 12px;
  margin: 0 16px 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* 💬 Hero Question Prompt (Centered Cosmic Header & Search Capsule) */
.modern-prompt-section {
  padding: 8px 16px 10px 16px;
  text-align: center;
}

/* Prompt Section (Ultra-Compact & Sleek) */
.modern-prompt-section {
  padding: 0 14px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.modern-prompt-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
}

.modern-search-pill-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1.2px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  padding: 3px 4px 3px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  box-sizing: border-box;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.modern-search-pill-box:focus-within {
  border-color: #FDE047;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

.modern-search-pill-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 12px;
  outline: none;
  font-family: inherit;
}

.modern-search-pill-input::placeholder {
  color: #94A3B8;
  font-size: 11.5px;
}

.modern-search-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border: 1px solid #FDE68A;
  color: #090D14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.modern-search-send-btn:hover {
  transform: scale(1.08);
}

/* 4 Quick Dimension Cards (Rich Dark Luxury Crystal Glass) */
.modern-quick-4grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 14px;
}

.modern-quick-card {
  border-radius: 16px;
  padding: 10px 4px 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

/* 1. ความรัก (Ruby/Rose Glass) */
.modern-quick-4grid .modern-quick-card:nth-child(1) {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.2) 0%, rgba(20, 10, 30, 0.8) 100%);
  border: 1.2px solid rgba(244, 63, 94, 0.38);
}
.modern-quick-4grid .modern-quick-card:nth-child(1):hover {
  border-color: rgba(251, 113, 133, 0.8);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
  transform: translateY(-2px) scale(1.03);
}

/* 2. การงาน (Purple/Bronze Glass) */
.modern-quick-4grid .modern-quick-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.18) 0%, rgba(20, 10, 35, 0.8) 100%);
  border: 1.2px solid rgba(168, 85, 247, 0.38);
}
.modern-quick-4grid .modern-quick-card:nth-child(2):hover {
  border-color: rgba(192, 132, 252, 0.8);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
  transform: translateY(-2px) scale(1.03);
}

/* 3. การเงิน (Emerald/Gold Glass) */
.modern-quick-4grid .modern-quick-card:nth-child(3) {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.18) 0%, rgba(10, 25, 25, 0.8) 100%);
  border: 1.2px solid rgba(16, 185, 129, 0.38);
}
.modern-quick-4grid .modern-quick-card:nth-child(3):hover {
  border-color: rgba(52, 211, 153, 0.8);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px) scale(1.03);
}

/* 4. ภาพรวมชีวิต (Sapphire/Cosmic Glass) */
.modern-quick-4grid .modern-quick-card:nth-child(4) {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.18) 0%, rgba(10, 20, 45, 0.8) 100%);
  border: 1.2px solid rgba(59, 130, 246, 0.38);
}
.modern-quick-4grid .modern-quick-card:nth-child(4):hover {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
  transform: translateY(-2px) scale(1.03);
}

.modern-quick-svg-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
  transition: transform 0.2s ease;
}

.modern-quick-card:hover .modern-quick-svg-wrap {
  transform: scale(1.12) translateY(-2px);
}

.modern-quick-card-label {
  font-size: 11px;
  font-weight: 700;
  color: #F1F5F9;
  letter-spacing: 0.1px;
}


/* Hero Celestial Banner */
.modern-hero-celestial-card {
  margin: 0 16px 16px 16px;
  padding: 18px 16px;
  background: linear-gradient(135deg, #2E1065 0%, #1E1B4B 60%, #0F172A 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.modern-hero-banner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modern-hero-banner-title {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.modern-hero-banner-sub {
  font-size: 11.5px;
  color: #CBD5E1;
  margin-bottom: 12px;
  line-height: 1.4;
}

.modern-hero-banner-btn {
  background: #FFFFFF;
  color: #1E1B4B;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.modern-hero-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.5);
}

.modern-hero-banner-art {
  font-size: 46px;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
  flex-shrink: 0;
}

/* ==========================================================================
   ✨ FRAMELESS PURE LUXURY TYPOGRAPHIC DATE ROW (HERO CELESTIAL CARD)
   สไตล์ Frameless Typographic เรียบหรู ไร้กรอบ ตัวหนังสือคมชัด เด่น สง่า สไตล์ Apple
   [ วันย่อ ] │ [ วันที่ ] │ [ เดือนย่อ ]  (เช่น [ ส. ] │ [ 29 ] │ [ ส.ค. ])
   ========================================================================== */

.apple-glass-pill,
.dash-today-splitflap-board,
.dash-today-glam-display,
.dash-today-flip-badge,
.dash-today-badge-3d {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 4px !important;
  height: auto !important;
  width: auto !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  cursor: default !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.apple-glass-pill:hover,
.dash-today-splitflap-board:hover,
.dash-today-glam-display:hover,
.dash-today-flip-badge:hover,
.dash-today-badge-3d:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateY(-1px) scale(1.03) !important;
}

/* ✂️ เส้นคั่น Hairline 1px บางเฉียบ โปร่งแสง ละมุนตา */
.apple-pill-hairline {
  width: 1px !important;
  height: 18px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  margin: 0 10px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* 🤍 Base Typography สไตล์ Apple SF Pro Display */
.apple-pill-segment {
  display: inline-block !important;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Prompt', 'Plus Jakarta Sans', sans-serif !important;
  color: #FFFFFF !important;
  line-height: 1 !important;
  text-align: center !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
}

/* 📅 วันย่อ (ส.) และ เดือนย่อ (ส.ค.) */
.apple-pill-dow,
#dashTodayBadgeDow,
.apple-pill-month,
#dashTodayBadgeMonthText {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 255, 255, 0.2) !important;
}

/* 🔢 ตัวเลขวันที่ขนาดใหญ่ คมชัดพิเศษ (29) */
.apple-pill-day,
#dashTodayBadgeDayNum {
  font-size: 25px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  letter-spacing: -0.5px !important;
  min-width: 24px !important;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(255, 255, 255, 0.25) !important;
}

/* 📱 Mobile Responsive (หน้าจอเล็ก < 380px) */
@media (max-width: 380px) {
  .apple-glass-pill {
    padding: 0 2px !important;
    height: auto !important;
  }
  .apple-pill-hairline {
    margin: 0 7px !important;
    height: 15px !important;
  }
  .apple-pill-dow,
  #dashTodayBadgeDow,
  .apple-pill-month,
  #dashTodayBadgeMonthText {
    font-size: 12.5px !important;
  }
  .apple-pill-day,
  #dashTodayBadgeDayNum {
    font-size: 20px !important;
  }
}

/* 🌟 3 Clear Sacred Energy Badges (Compact 2-Row Layout) */
.daily-energy-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.daily-energy-badge-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  padding: 6px 3px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 52px;
  transition: all 0.2s ease;
}

.daily-energy-badge-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.5);
}

.daily-energy-badge-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 2px;
  font-size: 9.5px;
  color: #94A3B8;
  font-weight: 700;
  white-space: nowrap;
}

.daily-energy-badge-label {
  letter-spacing: 0.1px;
}

.daily-energy-badge-val {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 🃏 2026 Cosmic Hero Banner: ถามไพ่ 1 คำถาม (เฉพาะช่องดูไพ่ 1 ใบ) */
.dash-tarot-banner-card {
  position: relative;
  background: 
    radial-gradient(circle at 18% 45%, rgba(139, 92, 246, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 85% 55%, rgba(212, 175, 55, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 70%),
    linear-gradient(135deg, #130E2B 0%, #1A113C 45%, #0B0E22 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  padding: 14px 16px;
  margin: 0 16px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.25), inset 0 0 15px rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Starlight and Nebula effect specifically inside the Tarot Banner */
.dash-tarot-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1.5px 1.5px at 15px 20px, #FFF, transparent),
    radial-gradient(2px 2px at 60px 50px, #FDE68A, transparent),
    radial-gradient(1px 1px at 110px 15px, #FFF, transparent),
    radial-gradient(1.5px 1.5px at 160px 45px, #F59E0B, transparent),
    radial-gradient(2px 2px at 220px 25px, #FFF, transparent),
    radial-gradient(1px 1px at 280px 55px, #CBD5E1, transparent),
    radial-gradient(1.5px 1.5px at 340px 18px, #FDE68A, transparent),
    radial-gradient(2px 2px at 390px 48px, #FFF, transparent);
  background-repeat: no-repeat;
  opacity: 0.75;
  pointer-events: none;
  animation: tarotStardust 3s infinite alternate ease-in-out;
}

@keyframes tarotStardust {
  0% { opacity: 0.45; }
  100% { opacity: 0.95; }
}

.dash-tarot-banner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 224, 71, 0.7);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.35);
}

.dash-tarot-art-wrap {
  position: relative;
  width: 96px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.dash-tarot-cosmic-glow {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.65) 0%, rgba(212, 175, 55, 0.3) 60%, transparent 80%);
  filter: blur(12px);
  z-index: 1;
  pointer-events: none;
  animation: cosmicPulse 3s infinite alternate ease-in-out;
}

@keyframes cosmicPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

.dash-tarot-fan {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.dash-tarot-mini-card {
  position: absolute;
  width: 42px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10122E 0%, #1C234E 50%, #0F132E 100%);
  border: 1.5px solid #D4AF37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.dash-tarot-mini-inner {
  width: 34px;
  height: 56px;
  border: 1px dashed rgba(212, 175, 55, 0.6);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.dash-tarot-mini-card.card-left {
  transform: translateX(-18px) rotate(-14deg);
  z-index: 2;
}

.dash-tarot-mini-card.card-center {
  transform: translateY(-3px) rotate(0deg);
  z-index: 3;
  border-color: #FDE047;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}

.dash-tarot-mini-card.card-right {
  transform: translateX(18px) rotate(14deg);
  z-index: 4;
}

.dash-tarot-banner-card:hover .card-left {
  transform: translateX(-24px) rotate(-18deg);
}

.dash-tarot-banner-card:hover .card-center {
  transform: translateY(-7px) scale(1.05);
}

.dash-tarot-banner-card:hover .card-right {
  transform: translateX(24px) rotate(18deg);
}

.dash-tarot-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.dash-tarot-heading {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 3px;
  letter-spacing: 0.1px;
}

.dash-tarot-sub {
  font-size: 11px;
  color: #CBD5E1;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 8px;
}

.dash-tarot-btn {
  background: linear-gradient(180deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
  color: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.dash-tarot-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 16px rgba(253, 224, 71, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 🥠 2026 Dark Luxury Glass Bento: Quick Sacred Utilities 2x2 */
/* 🎁 Mini Floating Alert Bar เหนือ Bento 4 ช่อง (Removed in V134.8.14) */
.dash-seamsi-floating-alert-bar,
#dashSeamsiFreeFloatingBanner {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes seamsiBannerGlowPulse {
  0%, 100% {
    border-color: rgba(253, 224, 71, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 10px rgba(212, 175, 55, 0.1);
  }
  50% {
    border-color: rgba(253, 224, 71, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 18px rgba(212, 175, 55, 0.28);
  }
}

.dash-seamsi-alert-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.25) 0%, rgba(17, 24, 39, 0.5) 100%);
  border-radius: 50%;
  border: 1px solid rgba(253, 224, 71, 0.5);
  flex-shrink: 0;
}

.dash-seamsi-alert-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  background: #EF4444;
  border: 1.5px solid #080C14;
  border-radius: 50%;
  animation: cuteRedPulseGlow 1.8s infinite;
}

.dash-seamsi-alert-icon {
  font-size: 14px;
}

.dash-seamsi-alert-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-seamsi-alert-text strong {
  font-size: 12px;
  color: #FEF08A;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-seamsi-alert-sub {
  font-size: 10.5px;
  color: #94A3B8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-seamsi-alert-badge {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid #FECACA;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

/* 🔴 Mini Floating Pill Badge on Modern Tool Cards (V134.8.13) */
.modern-tool-free-pill {
  position: absolute !important;
  top: -6px !important;
  right: 6px !important;
  background: linear-gradient(135deg, #FF1744 0%, #EF4444 50%, #DC2626 100%) !important;
  color: #FFFFFF !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  padding: 2px 7px !important;
  border-radius: 10px !important;
  border: 1px solid #FFE4E6 !important;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.75), 0 0 8px rgba(255, 23, 68, 0.45) !important;
  display: inline-flex;
  align-items: center !important;
  gap: 3px !important;
  z-index: 10 !important;
  animation: cuteRedBounceLoop 2.2s infinite ease-in-out !important;
  letter-spacing: 0.2px !important;
  pointer-events: none !important;
}

.modern-tool-free-pill[style*="display: none"],
.modern-tool-free-pill.hidden {
  display: none !important;
}

.modern-tool-free-pill .dot-live {
  width: 5px;
  height: 5px;
  background: #FFF;
  border-radius: 50%;
  display: inline-block;
  animation: cuteWinkRotate 1.2s infinite;
  box-shadow: 0 0 3px #FFF;
}

.modern-tools-2grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.modern-tool-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.75) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: visible;
  min-width: 0;
  box-sizing: border-box;
}

.modern-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 224, 71, 0.55);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 15px rgba(212, 175, 55, 0.2);
}

.modern-tool-artwork-wrap {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

.modern-tool-card:hover .modern-tool-artwork-wrap {
  transform: scale(1.14) translateY(-2px);
}

.modern-tool-artwork-wrap.tool-aura-thai {
  background: radial-gradient(circle, rgba(234, 179, 8, 0.3) 0%, rgba(133, 77, 14, 0.1) 100%);
  border: 1px solid rgba(253, 224, 71, 0.45);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
}

.modern-tool-artwork-wrap.tool-aura-chinese {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, rgba(153, 27, 27, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.modern-tool-artwork-wrap.tool-aura-deity {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(126, 34, 206, 0.1) 100%);
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.modern-tool-artwork-wrap.tool-aura-lucky {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(29, 78, 216, 0.1) 100%);
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.modern-tool-svg-art {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.modern-tool-info {
  flex: 1;
  min-width: 0;
}

.modern-tool-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-tool-desc {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   💎 2026 Dark Luxury VIP Top-Up & Pricing View (#viewPackages)
   ========================================================================== */
.topup-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 14px 80px 14px;
  color: #FFFFFF;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .topup-page-container {
    padding: 14px 10px 80px 10px;
  }
}

@media (max-width: 380px) {
  .topup-page-container {
    padding: 12px 6px 80px 6px;
  }
}

/* 1. Header Bar */
.topup-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}

.topup-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F1F5F9;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.topup-back-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
  color: #FDE047;
}

.topup-header-center {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
  padding: 0 4px;
}

.topup-main-title {
  font-size: 16px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.2px;
  margin: 0 0 1px 0;
  line-height: 1.25;
  white-space: nowrap;
}

.topup-main-sub {
  font-size: 10.5px;
  color: #94A3B8;
  margin: 0;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topup-trust-badge-pill {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* 1.5. Live Account Sync & Database Binding Bar (Compact & Balanced) */
.topup-account-sync-bar {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.2px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.topup-account-sync-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.topup-account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 50%, #B8860B 100%);
  color: #090D14;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
  flex-shrink: 0;
  line-height: 1;
}

.topup-account-user-meta {
  min-width: 0;
}

.topup-account-info-title {
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topup-account-info-code {
  font-size: 10px;
  color: #FDE68A;
  font-family: monospace;
  font-weight: 600;
  white-space: nowrap;
}

.topup-account-sync-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.topup-stat-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.topup-stat-chip.stat-vip {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.15);
  color: #FDE047;
}

.topup-stat-chip.stat-diamond {
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(59, 130, 246, 0.18);
  color: #93C5FD;
}

/* 2. 6-Benefit Showcase Banner */
.topup-privileges-banner {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.12);
  text-align: center;
}

.topup-privileges-title {
  font-size: 13px;
  font-weight: 800;
  color: #FDE68A;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.topup-privileges-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

@media (max-width: 640px) {
  .topup-privileges-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

.topup-priv-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.topup-priv-icon {
  font-size: 20px;
  margin-bottom: 3px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.topup-priv-name {
  font-size: 10.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1px;
  line-height: 1.2;
}

.topup-priv-desc {
  font-size: 9px;
  color: #94A3B8;
}

/* 3. 3-Tab Filter Pill Bar */
.topup-filter-pill-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 480px) {
  .topup-filter-pill-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
}

@media (max-width: 380px) {
  .topup-filter-pill-bar {
    gap: 4px;
  }
}

.topup-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 6px;
  color: #CBD5E1;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  min-width: 0;
}

@media (max-width: 380px) {
  .topup-tab-btn {
    padding: 8px 3px;
    font-size: 10.5px;
    border-radius: 11px;
  }
}

.topup-tab-btn:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
}

.topup-tab-btn.active {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.7) 0%, rgba(30, 27, 75, 0.9) 100%);
  border-color: #FDE047;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.3), 0 0 12px rgba(253, 224, 71, 0.25);
}

.topup-tab-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: #94A3B8;
  margin-top: 1px;
}

.topup-tab-btn.active .topup-tab-sub {
  color: #FDE68A;
}

.topup-tab-badge {
  position: absolute;
  top: -7px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #090D14;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid #FEF08A;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* 4. Package Cards Grid (Zero Overlap & Highly Compact) */
.topup-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.topup-cards-container.yearly-2grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 580px;
  margin: 0 auto 18px auto;
}

@media (max-width: 480px) {
  .topup-cards-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .topup-cards-container.yearly-2grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .topup-cards-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .topup-cards-container.yearly-2grid {
    gap: 6px;
  }
}

.topup-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.2px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 0;
}

.topup-card:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 224, 71, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 175, 55, 0.2);
}

.topup-card.card-highlight-popular {
  border-color: #F59E0B;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
}

.topup-card.card-highlight-best {
  border-color: #FDE047;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.16) 0%, rgba(30, 27, 75, 0.95) 100%);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.topup-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 4px;
}

.topup-card-period {
  font-size: 12px;
  font-weight: 800;
  color: #CBD5E1;
  white-space: nowrap;
}

.topup-card-badge {
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.topup-card-badge.badge-popular {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  border: 1px solid #FCA5A5;
  color: #FFFFFF;
}

.topup-card-badge.badge-best {
  background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%);
  border: 1px solid #FEF08A;
  color: #FFFFFF;
}

.topup-card-badge.badge-half {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #FDE68A;
}

.topup-card-price-box {
  margin-bottom: 6px;
}

.topup-card-price {
  font-size: 24px;
  font-weight: 900;
  color: #FDE047;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.topup-card-orig-price {
  font-size: 9.5px;
  color: #64748B;
  text-decoration: line-through;
  display: block;
  margin-top: 1px;
}

.topup-card-credits {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(147, 197, 253, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.3);
  color: #93C5FD;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 8px;
  width: fit-content;
}

.topup-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  font-size: 10px;
  color: #CBD5E1;
  line-height: 1.35;
  text-align: left;
}

.topup-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 3px;
  word-break: keep-all;
}

.topup-card-features li::before {
  content: "✓";
  color: #4ADE80;
  font-weight: 900;
  flex-shrink: 0;
}

.topup-card-btn {
  width: 100%;
  padding: 8px 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.topup-card-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 14px rgba(124, 58, 237, 0.45);
}

.topup-card.card-highlight-popular .topup-card-btn,
.topup-card.card-highlight-best .topup-card-btn {
  background: linear-gradient(180deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
  color: #0F172A;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

.topup-card-daily-cost {
  text-align: center;
  font-size: 9.5px;
  color: #94A3B8;
  font-weight: 600;
}

@media (max-width: 480px) {
  .topup-card {
    padding: 8px 4px;
    border-radius: 14px;
  }
  .topup-card-period {
    font-size: 11px;
  }
  .topup-card-badge {
    font-size: 8px;
    padding: 1px 4px;
  }
  .topup-card-price {
    font-size: 21px;
  }
  .topup-card-orig-price {
    font-size: 8.5px;
  }
  .topup-card-credits {
    font-size: 8.5px;
    padding: 1.5px 4px;
    margin-bottom: 6px;
  }
  .topup-card-features {
    font-size: 9.5px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .topup-card-btn {
    font-size: 10.5px;
    padding: 7px 2px;
  }
}

@media (max-width: 390px) {
  .topup-card {
    padding: 6px 3px;
    border-radius: 12px;
  }
  .topup-card-header-row {
    gap: 2px;
    margin-bottom: 3px;
  }
  .topup-card-period {
    font-size: 10.5px;
  }
  .topup-card-badge {
    font-size: 7.5px;
    padding: 1px 3px;
    border-radius: 6px;
  }
  .topup-card-price {
    font-size: 19px;
    letter-spacing: -0.3px;
  }
  .topup-card-orig-price {
    font-size: 8px;
  }
  .topup-card-credits {
    font-size: 8px;
    padding: 1px 3px;
    margin-bottom: 5px;
    border-radius: 4px;
  }
  .topup-card-features {
    font-size: 8.5px;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .topup-card-features li {
    gap: 2px;
    margin-bottom: 2px;
  }
  .topup-card-btn {
    font-size: 10px;
    padding: 6px 2px;
    border-radius: 10px;
  }
  .topup-card-daily-cost {
    font-size: 8.5px;
  }
}

/* 5. Top-up Question Credits Box (คำถามละ 15 บาท ค่อยๆ ถูกลง ถูกสุด 9 บาท/คำถาม) */
.topup-credits-box {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid rgba(147, 197, 253, 0.35);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(59, 130, 246, 0.15);
}

.topup-credits-header {
  margin-bottom: 10px;
}

.topup-credits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .topup-credits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

.topup-credit-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1.2px solid rgba(147, 197, 253, 0.22);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.topup-credit-item:hover {
  border-color: #93C5FD;
  background: rgba(147, 197, 253, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.credit-amt {
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.credit-price {
  font-size: 13.5px;
  font-weight: 900;
  color: #FDE047;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.credit-tag {
  font-size: 8.5px;
  background: #EF4444;
  color: #FFF;
  padding: 1px 5px;
  border-radius: 6px;
  font-weight: 800;
}

.credit-tag.tag-best {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 1px solid #6EE7B7;
}

.credit-avg-cost {
  font-size: 9.5px;
  color: #93C5FD;
  font-weight: 600;
  margin-top: 2px;
}

/* 6. Guarantee Bar */
.topup-guarantee-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #4ADE80;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  flex-wrap: wrap;
}

/* 7. Supported Payment Channels */
.topup-channels-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.topup-channels-title {
  font-size: 12px;
  font-weight: 800;
  color: #CBD5E1;
  margin-bottom: 8px;
}

.topup-channels-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.channel-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-rec {
  font-size: 9px;
  background: #22C55E;
  color: #000;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 6px;
}

/* 8. FAQ Accordion */
.topup-faq-section {
  margin-bottom: 24px;
}

.topup-faq-heading {
  font-size: 14px;
  font-weight: 800;
  color: #FDE68A;
  margin-bottom: 10px;
}

.topup-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .topup-faq-grid {
    grid-template-columns: 1fr;
  }
}

.topup-faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
}

.topup-faq-item summary {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  outline: none;
}

.topup-faq-item p {
  font-size: 11px;
  color: #94A3B8;
  margin: 8px 0 0 0;
  line-height: 1.5;
}

/* 9. Bottom Floating Help Bar */
.topup-bottom-help-bar {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  flex-wrap: wrap;
}

.topup-help-text-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topup-goto-horo-btn {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
}

.topup-goto-horo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
}

/* 5-Tab Center Orb Navigation Bar with Curved Center Cradle (100% Rock-Solid Fixed Lock) */
.bottom-5tab-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(8, 12, 20, 0.99) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1.5px solid rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.8), 0 -2px 10px rgba(212, 175, 55, 0.15) !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-around !important;
  align-items: center !important;
  height: 64px !important;
  padding: 0 10px calc(env(safe-area-inset-bottom, 0px)) 10px !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  border-radius: 24px 24px 0 0 !important;
  box-sizing: border-box !important;
  
  /* 🔒 GPU Hardware Acceleration & Zero-Jitter Scroll Lock */
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  contain: layout style !important;
  pointer-events: auto !important;
  touch-action: pan-y !important;
}

.tab-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  color: #94A3B8 !important;
  cursor: pointer !important;
  padding: 6px 4px !important;
  font-family: inherit !important;
  transition: color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent !important;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.tab-nav-item.active {
  color: #FDE047 !important;
  transform: translate3d(0, -2px, 0) !important;
  -webkit-transform: translate3d(0, -2px, 0) !important;
}

.tab-nav-item.active .tab-nav-icon {
  filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.6));
}

.tab-nav-icon {
  font-size: 20px !important;
  line-height: 1 !important;
  margin-bottom: 3px !important;
  transition: transform 0.2s ease !important;
}

.tab-nav-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
}

/* Center Curved Cradle with Elevated Orb */
.tab-center-cradle {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 0 !important;
  height: 100% !important;
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  backface-visibility: hidden !important;
}

.tab-center-cradle::before {
  content: '';
  position: absolute;
  top: -18px;
  width: 68px;
  height: 36px;
  background: #080C14;
  border-radius: 50% 50% 0 0;
  border-top: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

.tab-center-orb-btn {
  position: absolute !important;
  top: -24px !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 50%, #4F46E5 100%) !important;
  border: 3px solid #080C14 !important;
  outline: 2px solid #FDE68A !important;
  color: #FFFFFF !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.65), 0 0 16px rgba(253, 230, 138, 0.5) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  animation: orbGlowPulse 2.5s infinite ease-in-out !important;
  z-index: 2 !important;
  -webkit-tap-highlight-color: transparent !important;
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  will-change: transform, box-shadow !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.tab-center-orb-btn:active {
  transform: scale(0.92) translate3d(0, 0, 0) !important;
  -webkit-transform: scale(0.92) translate3d(0, 0, 0) !important;
}

.orb-inner-glow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modern-user-profile-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(20, 29, 45, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  padding: 12px 14px;
  margin: 12px 0 16px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

@keyframes orbGlowPulse {
  0% { box-shadow: 0 8px 24px rgba(99, 102, 241, 0.65), 0 0 10px rgba(253, 230, 138, 0.4); }
  50% { box-shadow: 0 12px 30px rgba(99, 102, 241, 0.9), 0 0 20px rgba(253, 230, 138, 0.7); }
  100% { box-shadow: 0 8px 24px rgba(99, 102, 241, 0.65), 0 0 10px rgba(253, 230, 138, 0.4); }
}

/* 🪔 Digital Shrine Offering Pavilion */
.shrine-interactive-box {
  background: linear-gradient(135deg, rgba(20, 29, 45, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 18px;
  padding: 16px;
  margin-top: 14px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.shrine-offering-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.shrine-act-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 10px 6px;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shrine-act-btn:hover, .shrine-act-btn:active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.shrine-act-icon {
  font-size: 22px;
}

.shrine-act-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #E2E8F0;
}

.shrine-act-sub {
  font-size: 9px;
  color: var(--gold-light);
}

/* ============================================================
 * 👑 User Account Luxury 1:1 Reference Styles (Minimalist Dark Luxury)
 * ============================================================ */
.account-page-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 2px 14px 2px;
}

/* 🌌 1. VIP Profile Hero Card: Split 2-Column + Minimal Stats Bar */
.acc-hero-card {
  background: linear-gradient(145deg, #0d1222 0%, #0a0d18 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px 14px 12px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.acc-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Left: Profile Info (Horizontal Side-by-Side) */
.acc-profile-left {
  flex: 1.25;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acc-profile-horizontal-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.acc-avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.acc-avatar-circle:hover {
  transform: scale(1.04);
}

.acc-avatar-fallback {
  font-size: 26px;
  color: #FDE047;
}

.acc-avatar-cam-btn {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1F2937;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #FDE047;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.acc-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.acc-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.acc-user-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.15;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-edit-pencil-btn {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 2px;
  font-size: 11px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.acc-edit-pencil-btn:hover {
  color: #FDE047;
}

.acc-vip-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
  padding: 1.5px 7px;
  font-size: 9.5px;
  color: #FDE047;
  font-weight: 700;
  width: fit-content;
  margin: 1px 0;
}

.acc-member-code-row {
  font-size: 10px;
  color: #8E9BAE;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.acc-btn-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.acc-public-profile-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: #CBD5E1;
  font-size: 10px;
  font-weight: 600;
  padding: 3.5px 10px;
  width: fit-content;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.acc-public-profile-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.4);
}

.acc-name-astrology-btn:hover {
  background: rgba(212, 175, 55, 0.15) !important;
  border-color: rgba(253, 224, 71, 0.5) !important;
  color: #FDE047 !important;
}

/* Right: Ethereal Cosmic Constellation Artwork */
.acc-constellation-right {
  flex: 0.75;
  height: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.acc-constellation-aura {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 75%);
  filter: blur(8px);
}

.acc-constellation-ring-outer {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px dashed rgba(192, 132, 252, 0.35);
  animation: spinSlow 30s linear infinite;
  pointer-events: none;
}

.acc-constellation-ring-inner {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(253, 224, 71, 0.25);
  pointer-events: none;
}

.acc-constellation-symbol {
  font-size: 20px;
  color: #E9D5FF;
  position: absolute;
  top: 6px;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
  pointer-events: none;
}

.acc-constellation-scales {
  width: 70px;
  height: 70px;
  position: absolute;
  pointer-events: none;
}

.acc-scales-svg {
  width: 100%;
  height: 100%;
}

.acc-sparkle-star {
  position: absolute;
  color: #FDE047;
  font-size: 8px;
  opacity: 0.7;
  animation: pulseGlow 3s ease-in-out infinite alternate;
  pointer-events: none;
}
.acc-sparkle-star.s1 { top: 12%; left: 8%; font-size: 9px; }
.acc-sparkle-star.s2 { top: 76%; right: 12%; font-size: 7px; }
.acc-sparkle-star.s3 { top: 28%; right: 6%; font-size: 8px; }

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  from { opacity: 0.3; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

/* Bottom Stats Bar (Clean Vertical Dividers - No Heavy Box) */
.acc-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.acc-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 0 4px;
  transition: transform 0.2s ease;
}

.acc-stat-col:hover {
  transform: translateY(-1px);
}

.acc-stat-divider {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.acc-stat-header {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.1;
}

.acc-stat-icon-star { font-size: 13px; color: #FBBF24; }
.acc-stat-icon-check { font-size: 12px; }
.acc-stat-icon-crown { font-size: 13px; color: #F59E0B; }

.acc-stat-number {
  font-size: 16.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.acc-stat-number.green { color: #10B981; font-size: 14px; }
.acc-stat-number.gold { color: #FBBF24; font-size: 14px; }

.acc-stat-sub-detail {
  font-size: 9px;
  color: #10B981;
  font-weight: 600;
  margin-top: -1px;
}

.acc-stat-label {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 2px;
  font-weight: 500;
}

.acc-stat-link {
  font-size: 9px;
  color: #64748B;
  margin-top: 1px;
  transition: color 0.2s ease;
}

.acc-stat-col:hover .acc-stat-link {
  color: #CBD5E1;
}

/* ============================================================
 * 👛 2. My Wallet Container (Radiant Purple Frame & 3D Icons)
 * ============================================================ */
.acc-wallet-container {
  background: linear-gradient(135deg, #1f143d 0%, #15102a 100%);
  border: 1.2px solid rgba(168, 85, 247, 0.45);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25), 0 0 15px rgba(168, 85, 247, 0.15);
  position: relative;
  overflow: hidden;
}

.acc-wallet-container::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.acc-wallet-left {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.acc-wallet-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
}
.acc-wallet-title .gold-text {
  color: #FBBF24;
}

.acc-wallet-gem-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 1px 0;
}

.acc-wallet-gem-icon { font-size: 14px; }
.acc-wallet-gem-val { font-size: 18px; font-weight: 900; color: #FFFFFF; }
.acc-wallet-gem-lbl { font-size: 10px; color: #94A3B8; }

.acc-wallet-topup-btn {
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 10.5px;
  font-weight: 700;
  width: fit-content;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
}

.acc-wallet-topup-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.acc-wallet-divider-v {
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 8px;
}

.acc-wallet-right {
  flex: 1.9;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  position: relative;
  z-index: 1;
}

.acc-wallet-perk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.acc-wallet-perk-item:hover {
  transform: scale(1.05);
}

.acc-wallet-svg-wrap {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 3px;
}

.acc-wallet-perk-item:hover .acc-wallet-svg-wrap {
  transform: scale(1.14) translateY(-2px);
}

.acc-wallet-svg-wrap.acc-aura-wallet {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(126, 34, 206, 0.12) 100%);
  border: 1px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

.acc-wallet-svg-wrap.acc-aura-coupon {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(67, 56, 202, 0.12) 100%);
  border: 1px solid rgba(129, 140, 248, 0.5);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}

.acc-wallet-svg-wrap.acc-aura-gift {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.35) 0%, rgba(190, 18, 60, 0.12) 100%);
  border: 1px solid rgba(251, 113, 133, 0.5);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.3);
}

.acc-wallet-svg-art {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.acc-perk-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 900;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #1f143d;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 2;
}

.acc-wallet-perk-lbl {
  font-size: 9.5px;
  color: #CBD5E1;
  line-height: 1.15;
}

/* ============================================================
 * 🎁 3. 7-Day Daily Check-in Card (Champagne Gold Theme)
 * ============================================================ */
.acc-checkin-card-champagne {
  background: #FFFDF8;
  border: 1px solid #FDE68A;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
  color: #1E293B;
}

.acc-checkin-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 8px;
}

.acc-checkin-capsules-row {
  display: flex;
  gap: 4px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.acc-checkin-capsule {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 6px 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.acc-checkin-capsule.active-today {
  border: 1.5px solid #F59E0B;
  background: #FFFBEB;
}

.acc-checkin-capsule.special-day7 {
  border: 1.5px dashed #F59E0B;
  background: #FFFBEB;
  position: relative;
}

.acc-capsule-badge-special {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #EF4444;
  color: #FFFFFF;
  font-size: 7px;
  font-weight: 800;
  padding: 0 4px;
  border-radius: 4px;
  white-space: nowrap;
}

.acc-capsule-day-lbl { font-size: 8.5px; font-weight: 700; color: #334155; }
.acc-capsule-icon { font-size: 12px; margin: 1px 0; }
.acc-capsule-reward { font-size: 8.5px; font-weight: 800; color: #475569; }

.acc-checkin-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.acc-checkin-streak-msg {
  font-size: 10px;
  color: #475569;
  font-weight: 600;
}
.acc-checkin-streak-msg strong {
  color: #0F172A;
}

.acc-checkin-status-btn {
  background: #E2E8F0;
  color: #64748B;
  border: none;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  cursor: default;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
 * 🍱 4. Bento Grid Account Menu (4x3 = 12 Cards)
 * ============================================================ */
.acc-menu-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acc-menu-heading {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 2px 2px;
}

.acc-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.acc-bento-card {
  background: #111726;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 3px 6px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.acc-bento-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.acc-bento-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.acc-bento-icon-rel {
  font-size: 18px;
  position: relative;
  margin-bottom: 2px;
}

.acc-micro-badge-pdpa {
  position: absolute;
  top: -4px;
  right: -12px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FDE047;
  font-size: 6.5px;
  font-weight: 800;
  padding: 0 2px;
  border-radius: 3px;
}

.acc-micro-badge-pink {
  position: absolute;
  top: -4px;
  right: -14px;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #F472B6;
  font-size: 6.5px;
  font-weight: 800;
  padding: 0 2px;
  border-radius: 3px;
  white-space: nowrap;
}

.acc-bento-label {
  font-size: 10px;
  font-weight: 600;
  color: #F1F5F9;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.acc-bento-chevron {
  font-size: 9px;
  color: #64748B;
  margin-top: 1px;
}

/* ============================================================
 * 💎 5. VIP Diamond Upsell Cosmic Banner
 * ============================================================ */
.acc-vip-banner-cosmic {
  background: linear-gradient(135deg, #1E103A 0%, #2A1452 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
  transition: all 0.2s ease;
}

.acc-vip-banner-cosmic:hover {
  border-color: #C084FC;
  transform: translateY(-1px);
}

.acc-vip-banner-info {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.acc-vip-banner-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.acc-vip-banner-subtitle {
  font-size: 10px;
  color: #D8B4FE;
  margin: 0 0 4px 0;
}

.acc-vip-banner-btn-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  width: fit-content;
  cursor: pointer;
}

.acc-vip-banner-graphic {
  flex: 0.8;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.acc-tarot-cluster {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 26px;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.6));
}

/* Avatar Pick Chip */
.avatar-pick-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 10px 6px;
  font-size: 20px;
  color: #FFFFFF;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.avatar-pick-chip:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--primary-gold);
  transform: scale(1.08);
}


/* =========================================================================
   📅 2026 MODERN DARK LUXURY CALENDAR & DAILY AUSPICIOUS COLORS HUB (COMPACT)
   ========================================================================= */

/* 🔀 Subtab Switcher (Removed per user directive) */
.cal-subtab-switcher {
  display: none !important;
}

.cal-subtab-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 6px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.cal-subtab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: #FDE047;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   📅 Mini Cute Luxury Calendar Card (2026 Compact Slender Edition)
   ========================================================================== */
.mini-cute-cal-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  padding: 10px 10px 8px 10px;
  margin-bottom: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Header Flex Layout */
.mini-cal-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-cal-left-info {
  flex: 1;
  min-width: 0;
}

.mini-cal-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.mini-cal-main-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.1px;
}

/* ✨ Luxury Gold Today Pill Button */
.mini-cal-today-pill {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #FDE047;
  padding: 1.5px 7px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.mini-cal-today-pill:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(245, 158, 11, 0.25) 100%);
  border-color: #FDE047;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
  transform: translateY(-0.5px);
}

/* 🎛️ Bracketed Month & Year Navigation Row */
.mini-cal-controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.mini-cal-bracketed-nav {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 3px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ‹ › Flank Buttons (สูง 24px เท่ากัน 100%) */
.mini-cal-flank-btn {
  width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(212, 175, 55, 0.22) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #E2E8F0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 0 !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-sizing: border-box !important;
}

.mini-cal-flank-btn:hover {
  background: rgba(212, 175, 55, 0.25) !important;
  border-color: rgba(212, 175, 55, 0.6) !important;
  color: #FDE047 !important;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.25) !important;
}

.mini-cal-flank-btn:active {
  transform: scale(0.94) !important;
}

/* 💊 Capsule Dropdowns Container */
.mini-cal-pill-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* 🏷️ Select Dropdown: เดือน (กว้างกระชับ 76px สูง 24px) */
select.mini-cal-pill-select,
#calMonthSelect.mini-cal-pill-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(212, 175, 55, 0.22) !important;
  color: #F8FAFC !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  line-height: 22px !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  outline: none !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 0.2s ease !important;
  text-align: left !important;
  min-width: 76px !important;
  padding: 0 16px 0 7px !important;
  box-sizing: border-box !important;
}

select.mini-cal-pill-select:hover, 
select.mini-cal-pill-select:focus,
#calMonthSelect.mini-cal-pill-select:hover {
  border-color: rgba(212, 175, 55, 0.55) !important;
  background: rgba(212, 175, 55, 0.1) !important;
  color: #FDE047 !important;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.18) !important;
}

select.mini-cal-pill-select option {
  background: #0B1120 !important;
  color: #F8FAFC !important;
  font-size: 11px !important;
}

/* 📅 Mini Calendar Year Label (หลังลูกศร › สไตล์ Minimal Luxury) */
.mini-cal-year-text {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.3px;
  padding: 0 5px;
  height: 24px;
  line-height: 24px;
  user-select: none;
  font-family: inherit;
  transition: color 0.2s ease;
}

.mini-cal-year-text:hover {
  color: #FDE047;
}

/* 🔽 Micro Chevron Icon (8px x 8px) */
.mini-cal-pill-chevron {
  position: absolute;
  right: 4px;
  width: 8px;
  height: 8px;
  color: rgba(212, 175, 55, 0.75);
  pointer-events: none;
  transition: transform 0.2s ease;
}

/* 🏷️ Cute 3D Calendar Pad Badge (ย่อขนาดกะทัดรัด 36px × 40px) */
.mini-cal-badge-3d {
  width: 36px;
  height: 40px;
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 34%, #FFFDF5 35%, #FFFBEB 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mini-cal-badge-3d:hover {
  transform: translateY(-1px) scale(1.03);
}

/* Twin Cute Binder Pegs */
.mini-cal-badge-3d::before,
.mini-cal-badge-3d::after {
  content: '';
  position: absolute;
  top: -2.5px;
  width: 4px;
  height: 6px;
  background: linear-gradient(180deg, #92400E 0%, #78350F 100%);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.mini-cal-badge-3d::before { left: 7px; }
.mini-cal-badge-3d::after { right: 7px; }

.mini-badge-day {
  font-size: 13.5px;
  font-weight: 800;
  color: #78350F;
  line-height: 1;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.3px;
}

.mini-badge-month {
  font-size: 8px;
  font-weight: 700;
  color: #B45309;
  line-height: 1;
  margin-top: 1px;
}

/* 🔢 7-Col Floating Mini Cute Grid (Gap ชิดขึ้น 1.5px) */
.mini-cute-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.5px;
  margin-bottom: 6px;
}

.mini-cal-header-day {
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
  padding: 2px 0 3px 0;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-cal-header-day.sun-accent {
  color: #F59E0B;
  font-weight: 800;
}

/* Floating Date Number Cell (ย่อลงเหลือ 27px × 27px) */
.mini-cal-cell {
  aspect-ratio: 1;
  max-width: 27px;
  max-height: 27px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.mini-cal-num {
  font-size: 11px;
  font-weight: 600;
  color: #F1F5F9;
  line-height: 1;
}

/* Sunday column numbers inside active month */
.mini-cal-cell.is-sun:not(.faint-day):not(.selected) .mini-cal-num {
  color: #F59E0B;
  font-weight: 700;
}

.mini-cal-cell:hover:not(.faint-day):not(.selected) {
  background: rgba(212, 175, 55, 0.15);
  transform: scale(1.08);
}

/* 👻 Faint Days */
.mini-cal-cell.faint-day {
  cursor: pointer;
}

.mini-cal-cell.faint-day .mini-cal-num {
  color: rgba(148, 163, 184, 0.32);
  font-weight: 400;
}

.mini-cal-cell.faint-day:hover .mini-cal-num {
  color: rgba(212, 175, 55, 0.6);
}

/* Today Ring */
.mini-cal-cell.today:not(.selected) {
  border: 1.2px solid rgba(56, 189, 248, 0.75);
  background: rgba(56, 189, 248, 0.08);
}

/* 🌟 Selected Day Ring (พอดีขอบ 27px ไม่ล้น) */
.mini-cal-cell.selected {
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 100%) !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.42), 0 0 0 1.5px rgba(253, 224, 71, 0.3) !important;
  transform: scale(1.06);
}

.mini-cal-cell.selected .mini-cal-num {
  color: #0F172A !important;
  font-weight: 800;
}

.mini-cal-cell.selected .mini-cal-dot {
  display: none !important;
}

/* Micro Indicators Dots (จิ๋ว 3px วางพอดีใต้ตัวเลข) */
.mini-cal-dot {
  position: absolute;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
}

.dot-good { background: #10B981; box-shadow: 0 0 3px #10B981; }
.dot-auspicious { background: #F59E0B; box-shadow: 0 0 3px #F59E0B; }
.dot-buddhist { background: #A855F7; box-shadow: 0 0 3px #A855F7; }
.dot-bad { background: #EF4444; box-shadow: 0 0 3px #EF4444; }

/* ==========================================================================
   🌕 V135.0.0 — Personal Mahathaksa Colors & Lunar Calendar Classes
   ========================================================================== */

/* วันพระจริง (คำนวณดาราศาสตร์) */
.mini-cal-cell.is-buddhist-day .mini-cal-num {
  color: #C084FC !important;
  font-weight: 700;
}

/* วันมงคลเฉพาะบุคคล — ปลดล็อค background ทึบ คืนความหรูหรา Clean Obsidian */
.mini-cal-cell.is-personal-auspicious {
  border-radius: 6px;
}
.mini-cal-cell.is-personal-auspicious .mini-cal-num {
  color: #34D399;
  font-weight: 600;
}

/* วันกาลกิณีเฉพาะบุคคล — นุ่มนวล ไม่ถมสีแดงทึบ */
.mini-cal-cell.is-personal-kalakini {
  border-radius: 6px;
}
.mini-cal-cell.is-personal-kalakini .mini-cal-num {
  color: #FCA5A5;
}

/* Micro Luminescent Dots Container (Division 3 Spec) */
.mini-cal-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.mini-cal-dots .mini-cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.mini-cal-dot.dot-auspicious {
  background: #FDE047;
  box-shadow: 0 0 5px rgba(253, 224, 71, 0.9);
}
.mini-cal-dot.dot-good {
  background: #34D399;
  box-shadow: 0 0 4px rgba(52, 211, 153, 0.8);
}
.mini-cal-dot.dot-buddhist {
  background: #C084FC;
  box-shadow: 0 0 4px rgba(192, 132, 252, 0.8);
}
.mini-cal-dot.dot-bad {
  background: #F87171;
  box-shadow: 0 0 4px rgba(248, 113, 113, 0.7);
}


/* ดิถีจันทรคติ row ในการ์ดรายวัน */
.cal-lunar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(168, 85, 247, 0.10);
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(168, 85, 247, 0.20);
}
.cal-lunar-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.cal-lunar-value {
  font-size: 13px;
  color: #E9D5FF;
  font-weight: 600;
  word-break: keep-all;
  line-height: 1.4;
}

/* Badge วันพระ */
.badge-buddhist {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 20px;
  font-size: 10px;
  color: #E9D5FF;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Banner วันมงคล/กาลกิณีเฉพาะบุคคล */
.cal-personal-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  word-break: keep-all;
}
.cal-personal-auspicious {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.30);
  color: #6EE7B7;
}
.cal-personal-kalakini {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.20);
  color: #FCA5A5;
}

/* Factor Pills (กาลโยค + ดิถี + มหาทักษา) */
.cal-factors-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.cal-factor-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  word-break: keep-all;
}
.cal-factor-pill.factor-pos {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.30);
  color: #6EE7B7;
}
.cal-factor-pill.factor-neg {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
}


/* ยามกาลกิณีใน ubakong timeline */
.cal-hour-row.cal-hour-bad {
  opacity: 0.65;
  border-left: 3px solid rgba(239, 68, 68, 0.40) !important;
}
.cal-hour-row.cal-hour-bad .cal-hour-title {
  color: #FCA5A5;
}



/* Micro Legend Bar */
.mini-cal-legend-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 3.5px;
  font-size: 9.5px;
  color: #94A3B8;
}

.mini-legend-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

/* 🌟 Selected Day Detailed Card (Compact) */
.cal-selected-day-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 12, 20, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 12px 10px;
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.cal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-card-title-group {
  flex: 1 1 auto;
  min-width: 0;
}

.cal-card-date-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.35;
}

.cal-badge-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 800;
}

.badge-good {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid #10B981;
}

.badge-auspicious {
  background: rgba(245, 158, 11, 0.2);
  color: #FDE047;
  border: 1px solid #F59E0B;
}

.badge-buddhist {
  background: rgba(168, 85, 247, 0.2);
  color: #E9D5FF;
  border: 1px solid #A855F7;
}

.badge-bad {
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border: 1px solid #EF4444;
}

.badge-normal {
  background: rgba(148, 163, 184, 0.15);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.cal-share-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cal-share-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #FDE047;
  border-color: #D4AF37;
}

.cal-suitable-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 8px;
  border-radius: 8px;
  border-left: 3px solid #10B981;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1.4;
}

.cal-suitable-lbl {
  color: #6EE7B7;
  font-weight: 800;
  margin-right: 4px;
}

.cal-suitable-txt {
  color: #E2E8F0;
}

/* 4 Auspicious Hours Timeline (Compact) */
.cal-hours-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

.cal-hour-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 8px;
  transition: all 0.2s ease;
}

.cal-hour-row:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(212, 175, 55, 0.4);
}

.cal-hour-time {
  font-size: 11px;
  font-weight: 800;
  color: #F1F5F9;
  font-family: monospace;
  min-width: 80px;
}

.cal-hour-star {
  font-size: 12px;
  color: #FDE047;
}

.cal-hour-meta {
  flex: 1;
  min-width: 0;
}

.cal-hour-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #E9D5FF;
}

.cal-hour-sub {
  font-size: 9.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Avoid Box & Tips Box */
.cal-avoid-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px dashed rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.cal-avoid-header {
  font-size: 10.5px;
  font-weight: 800;
  color: #F87171;
  margin-bottom: 2px;
}

.cal-avoid-item {
  font-size: 10.5px;
  color: #FCA5A5;
  line-height: 1.4;
}

.cal-tips-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-tips-icon {
  font-size: 20px;
}

.cal-tips-hd {
  font-size: 11px;
  font-weight: 800;
  color: #FDE047;
  margin-bottom: 1px;
}

.cal-tips-bd {
  font-size: 10.5px;
  color: #E2E8F0;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────────────────
   👑 PHASE 2: HAUTE-COUTURE LUXURY UI/UX CALENDAR & ELECTIONAL SYSTEM
   ───────────────────────────────────────────────────────────────────────── */

/* 🎯 Slender Minimal Activity Filter in Card Header (แทนที่ปุ่มแชร์ จัดระเบียบสมดุล) */
.cal-card-act-filter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
  margin-top: 0 !important;
}

.cal-activity-select-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #94A3B8 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  letter-spacing: 0.2px !important;
  cursor: pointer !important;
}

.cal-act-select-icon {
  font-size: 11px !important;
  line-height: 1 !important;
  opacity: 0.9 !important;
}

.cal-act-label-full {
  display: inline !important;
}

.cal-act-label-short {
  display: none !important;
}

@media (max-width: 440px) {
  .cal-act-label-full {
    display: none !important;
  }
  .cal-act-label-short {
    display: inline !important;
  }
}

.cal-activity-select-wrapper {
  display: none !important;
}

.cal-activity-select-box {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
}

select.cal-activity-select,
#calActivitySelect.cal-activity-select,
#calActivitySelect {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 5px !important;
  padding: 0 16px 0 8px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #CBD5E1 !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  line-height: 18px !important;
  width: auto !important;
  min-width: 80px !important;
  max-width: 130px !important;
  box-shadow: none !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#calActivitySelect:hover,
#calActivitySelect:focus {
  background: rgba(212, 175, 55, 0.12) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
  color: #FDE047 !important;
}

#calActivitySelect.is-filtered {
  background: rgba(212, 175, 55, 0.12) !important;
  border-color: rgba(212, 175, 55, 0.45) !important;
  color: #FDE047 !important;
  font-weight: 600 !important;
}

#calActivitySelect option {
  background: #0B1120 !important;
  color: #F8FAFC !important;
  font-size: 11px !important;
  padding: 4px 8px !important;
}

.cal-select-caret {
  position: absolute !important;
  right: 5px !important;
  width: 7px !important;
  height: 7px !important;
  color: rgba(148, 163, 184, 0.75) !important;
  pointer-events: none !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

#calActivitySelect:hover ~ .cal-select-caret,
#calActivitySelect:focus ~ .cal-select-caret {
  color: #FDE047 !important;
  transform: translateY(1px) !important;
}

/* 🏷️ Activity Filter Chips Bar (Fallback) */
.cal-activity-chips-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 12px;
}

.cal-activity-chips-bar::-webkit-scrollbar {
  display: none;
}

.cal-act-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 9999px;
  padding: 6px 14px;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 42px;
  user-select: none;
  box-sizing: border-box;
}

.cal-act-chip:hover {
  border-color: rgba(212, 175, 55, 0.5);
  color: #F8FAFC;
  background: rgba(30, 41, 59, 0.8);
}

.cal-act-chip.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(180, 130, 20, 0.2) 100%);
  border: 1.5px solid #D4AF37;
  color: #FDE047;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
  font-weight: 800;
}

.cal-act-icon {
  font-size: 14px;
}

/* 🍱 Bento Grid Astro Matrix (4 Cells) */
.cal-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0 14px 0;
}

.cal-bento-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 8px 10px;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cal-bento-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(30, 41, 59, 0.65);
}

.cal-bento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.cal-bento-title {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
}

.cal-bento-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cal-bento-sub {
  font-size: 9.5px;
  color: #CBD5E1;
  line-height: 1.35;
}

.cal-bento-badge {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-devi-riksh {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(245, 158, 11, 0.2) 100%);
  border: 1px solid #D4AF37;
  color: #FDE047;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  animation: goldGlowPulse 2.5s infinite alternate ease-in-out;
}

@keyframes goldGlowPulse {
  0% { box-shadow: 0 0 6px rgba(212, 175, 55, 0.3); }
  100% { box-shadow: 0 0 14px rgba(212, 175, 55, 0.7); }
}

/* 🟢🔴 Unified Compact Action Capsule (Dashboard Style) */
.cal-action-capsule {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.cal-action-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-action-head-title {
  font-size: 12px;
  font-weight: 800;
  color: #FDE047;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cal-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .cal-action-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.cal-action-col {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-action-col.cal-action-good {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.cal-action-col.cal-action-caution {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.cal-action-col-hd {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.cal-action-good .cal-action-col-hd {
  color: #34D399;
}

.cal-action-caution .cal-action-col-hd {
  color: #F87171;
}

.cal-action-col-txt {
  font-size: 11px;
  line-height: 1.45;
  color: #E2E8F0;
}

.cal-action-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 10.5px;
  color: #CBD5E1;
  line-height: 1.4;
}

.cal-action-tip-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.cal-action-tip-txt {
  flex: 1;
}

.cal-factors-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

/* ⏳ Dual-Mode Yam Segmented Control & Timeline */
.cal-yam-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-yam-title {
  font-size: 12px;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cal-yam-segmented-control {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1.5px;
  gap: 2px;
}

.cal-yam-seg-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 2.5px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 24px;
  line-height: 1.1;
}

.cal-yam-seg-btn:hover {
  color: #F8FAFC;
}

.cal-yam-seg-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: #FDE047;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

/* ⏳ Ubakong Bento Rows with Vivid Glow Accents */
.cal-hour-row {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cal-hour-row:hover {
  transform: translateY(-1px);
}

.cal-hour-time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 95px;
  flex-shrink: 0;
}

.cal-hour-time-txt {
  font-size: 11.5px;
  font-weight: 800;
  color: #F8FAFC;
  font-variant-numeric: tabular-nums;
}

.cal-hour-star {
  font-size: 15px;
  margin: 0 8px;
  flex-shrink: 0;
}

.cal-hour-meta {
  flex: 1;
  min-width: 0;
}

.cal-hour-title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1px;
}

.cal-hour-name {
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
}

.cal-hour-sub {
  font-size: 10px;
  color: #94A3B8;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Vivid Glow Tokens */
.yam-glow-gold {
  border-color: rgba(212, 175, 55, 0.45);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}
.yam-glow-gold .cal-hour-name {
  color: #FDE047;
}

.yam-glow-emerald {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.12);
}
.yam-glow-emerald .cal-hour-name {
  color: #34D399;
}

.yam-glow-cyan {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
}
.yam-glow-cyan .cal-hour-name {
  color: #7DD3FC;
}

.yam-glow-amber {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
}
.yam-glow-amber .cal-hour-name {
  color: #FCD34D;
}

.yam-glow-rose {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
}
.yam-glow-rose .cal-hour-name {
  color: #FCA5A5;
}

.cal-hour-row.is-current-yam {
  border: 1.5px solid #D4AF37 !important;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.28) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5) !important;
  animation: liveYamBorderPulse 2s infinite alternate ease-in-out;
}

@keyframes liveYamBorderPulse {
  0% { box-shadow: 0 0 8px rgba(212, 175, 55, 0.35); }
  100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.7); }
}

.cal-live-tag {
  font-size: 8.5px;
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid #EF4444;
  color: #FEF2F2;
  padding: 1px 4px;
  border-radius: 4px;
  margin-top: 2px;
  font-weight: 800;
  display: inline-block;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  animation: liveTagBlink 1.4s infinite ease-in-out;
}

@keyframes liveTagBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.96); }
}

.cal-yam-symbol {
  display: inline-block;
  font-size: 9.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 4px;
  color: #CBD5E1;
}

/* 📅 Upcoming Box & Sortable Header */
.cal-upcoming-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 12, 20, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 14px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.cal-upcoming-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cal-upcoming-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.cal-sort-toggle-group {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 1.5px;
  gap: 2px;
}

.cal-sort-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 22px;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.cal-sort-btn:hover {
  color: #F8FAFC;
}

.cal-sort-btn.active {
  background: rgba(212, 175, 55, 0.25);
  border-color: #D4AF37;
  color: #FDE047;
  font-weight: 800;
}

.cal-upcoming-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-upcoming-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-upcoming-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.cal-upcoming-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cal-upcoming-date {
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.cal-upcoming-desc {
  font-size: 10.5px;
  color: #94A3B8;
  text-align: right;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .cal-bento-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .cal-yam-header-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  .cal-yam-segmented-control {
    width: auto;
  }
  .cal-yam-seg-btn {
    padding: 2px 6px;
    font-size: 9.5px;
    min-height: 22px;
  }
  .cal-upcoming-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .cal-upcoming-desc {
    text-align: left;
  }
}

/* =========================================================================
   🎨 SUB-PANEL 2: DAILY AUSPICIOUS COLORS STYLES (COMPACT)
   ========================================================================= */

/* 7-Day Day Selector Bar */
.cal-7days-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.cal-7days-bar::-webkit-scrollbar {
  display: none;
}

.cal-day-pill-btn {
  flex: 1;
  min-width: 44px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 5px 2px;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.cal-day-pill-btn.active {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.35) 0%, rgba(79, 70, 229, 0.3) 100%);
  border: 1.5px solid #A855F7;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}

.cal-day-pill-name {
  font-size: 11px;
  font-weight: 800;
}

.cal-day-pill-date {
  font-size: 8.5px;
  margin-top: 1px;
}

/* Zodiac & Aura Card (Single-Row Luxury Capsule Bar) */
.cal-user-zodiac-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 10px;
  padding: 5px 10px;
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 6px;
}

.cal-zodiac-left {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.cal-zodiac-icon-wrap {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #E9D5FF;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-zodiac-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
}

.cal-zodiac-dot {
  color: #64748B;
  font-size: 10px;
  user-select: none;
}

.cal-zodiac-sub {
  font-size: 9.5px;
  color: #CBD5E1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-zodiac-change-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cal-zodiac-change-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

/* 🔮 3 Big 3D Spheres Section (Compact) */
.cal-spheres-section {
  margin-bottom: 10px;
}

.cal-section-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.cal-section-title-icon {
  font-size: 14px;
  color: #FDE047;
}

.cal-section-sub {
  font-size: 10.5px;
  color: #94A3B8;
  margin: 1px 0 8px 0;
}

.cal-spheres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cal-sphere-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 7px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
}

.cal-sphere-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.cal-3d-sphere {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.cal-3d-sphere::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 20%;
  width: 10px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  filter: blur(1px);
  transform: rotate(-30deg);
}

.cal-sphere-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.cal-sphere-badge {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.badge-work { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; border: 1px solid #10B981; }
.badge-wealth { background: rgba(245, 158, 11, 0.2); color: #FDE047; border: 1px solid #F59E0B; }
.badge-love { background: rgba(236, 72, 153, 0.2); color: #F472B6; border: 1px solid #EC4899; }
.badge-health { background: rgba(56, 189, 248, 0.2); color: #7DD3FC; border: 1px solid #38BDF8; }
.badge-avoid { background: rgba(239, 68, 68, 0.25); color: #FCA5A5; border: 1px solid #EF4444; }
.badge-barami { background: rgba(168, 85, 247, 0.2); color: #D8B4FE; border: 1px solid #A855F7; }

.cal-sphere-card.card-avoid {
  background: linear-gradient(135deg, rgba(69, 10, 10, 0.55) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.cal-sphere-card.card-avoid:hover {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.cal-sphere-card.card-avoid .cal-sphere-astro-anchor {
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}

.cal-sphere-desc {
  font-size: 8.5px;
  color: #94A3B8;
  line-height: 1.2;
}

.cal-sphere-astro-anchor {
  font-size: 8px;
  font-weight: 700;
  color: #FDE047;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  padding: 1.5px 4px;
  margin-bottom: 4px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
  max-width: 96%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ⚠️ Side-by-Side Natal Kalakini Vault Box (Compact Jewelry Vault) */
.cal-natal-kalakini-section {
  margin-bottom: 10px;
}

.cal-natal-vault {
  background: linear-gradient(135deg, rgba(35, 15, 25, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  padding: 5px 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.12), inset 0 0 12px rgba(239, 68, 68, 0.04);
  position: relative;
  overflow: hidden;
}

.cal-natal-vault::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cal-natal-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cal-natal-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 800;
  color: #FCA5A5;
  letter-spacing: 0.2px;
}

.cal-natal-advice {
  font-size: 8px;
  color: #CBD5E1;
  line-height: 1.3;
  margin-top: 1px;
}

.cal-natal-right-card {
  background: linear-gradient(135deg, rgba(90, 18, 28, 0.85) 0%, rgba(25, 12, 20, 0.95) 100%);
  border: 1px solid rgba(248, 113, 113, 0.5);
  border-radius: 6px;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
  position: relative;
  min-width: 52px;
}

.cal-natal-right-sphere {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-bottom: 2px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  position: relative;
}

.cal-natal-right-sphere::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 20%;
  width: 5px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  filter: blur(1px);
  transform: rotate(-30deg);
}

.cal-natal-right-name {
  font-size: 9px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.cal-natal-right-planet {
  font-size: 7px;
  font-weight: 700;
  color: #FDE047;
  margin-top: 1px;
  white-space: nowrap;
}

.cal-natal-right-warning {
  font-size: 6.5px;
  font-weight: 800;
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.55);
  border-radius: 3px;
  padding: 0 3px;
  margin-top: 2px;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

/* 4 Ideas Grid (Compact) */
.cal-color-ideas-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 12, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.cal-ideas-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.cal-ideas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.cal-idea-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cal-idea-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 4px;
}

.cal-idea-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 1px;
}

.cal-idea-desc {
  font-size: 7.5px;
  color: #94A3B8;
  line-height: 1.1;
}

/* Daily Color Tips Card */
.cal-color-tips-card {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(79, 70, 229, 0.1) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.cal-tips-left {
  flex: 1;
}

.cal-color-tips-card .cal-tips-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #E9D5FF;
  margin-bottom: 2px;
}

.cal-color-tips-card .cal-tips-desc {
  font-size: 10.5px;
  color: #E2E8F0;
  line-height: 1.4;
}

/* ==========================================================================
   ✨ Auspicious Popover Action Sheet (เมนูส่วนขยาย ฤกษ์ & สีมงคล)
   ========================================================================== */
.auspicious-popover-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99998;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px calc(76px + env(safe-area-inset-bottom, 0px)) 12px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.auspicious-popover-overlay.active {
  display: flex;
  opacity: 1;
}

.auspicious-popover-sheet {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, rgba(20, 29, 47, 0.98) 0%, rgba(10, 15, 26, 0.99) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 22px;
  padding: 16px 18px 18px 18px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.auspicious-popover-overlay.active .auspicious-popover-sheet {
  transform: translateY(0) scale(1);
}

.auspicious-sheet-grabber {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  margin: 0 auto 12px auto;
}

.auspicious-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.auspicious-sheet-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auspicious-sheet-subtitle {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 2px;
}

.auspicious-sheet-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auspicious-sheet-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #F87171;
}

.auspicious-sheet-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auspicious-menu-card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.auspicious-menu-card:hover,
.auspicious-menu-card:active {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.45);
  transform: scale(0.99);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.auspicious-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auspicious-card-icon-box.bg-gold-gradient {
  background: linear-gradient(135deg, #D4AF37 0%, #9A7B1C 100%);
  border: 1px solid rgba(253, 224, 71, 0.4);
}

.auspicious-card-icon-box.bg-emerald-gradient {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.auspicious-card-info {
  flex: 1;
  min-width: 0;
}

.auspicious-card-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}

.auspicious-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auspicious-card-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}

.auspicious-card-tag.tag-popular {
  background: rgba(212, 175, 55, 0.2);
  color: #FDE047;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.auspicious-card-tag.tag-daily {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.auspicious-card-desc {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auspicious-card-arrow {
  color: #64748B;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}

.auspicious-menu-card:hover .auspicious-card-arrow,
.auspicious-menu-card:active .auspicious-card-arrow {
  transform: translateX(2px);
  color: #FDE047;
}

/* ==========================================================================
   🏛️ Phase 6: Luxury Mobile Touch Standard & Responsive Table Citadel
   ========================================================================== */

/* 1. Universal Responsive Table Scroller */
.admin-table-container,
.astro-table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 14px !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  background: rgba(10, 15, 26, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}

.admin-table,
.astro-table-responsive table {
  width: 100% !important;
  min-width: 680px !important;
  border-collapse: collapse !important;
  font-size: 13px !important;
  text-align: left !important;
}

.admin-table th,
.astro-table-responsive th {
  background: rgba(0, 0, 0, 0.45) !important;
  color: #F3E5AB !important;
  font-weight: 700 !important;
  padding: 13px 15px !important;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.3) !important;
  white-space: nowrap !important;
  letter-spacing: 0.2px !important;
}

.admin-table td,
.astro-table-responsive td {
  padding: 12px 15px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  vertical-align: middle !important;
  line-height: 1.5 !important;
}

.admin-table tr:hover td,
.astro-table-responsive tr:hover td {
  background: rgba(212, 175, 55, 0.04) !important;
}

/* 2. Touch Target Standards (WCAG AAA >= 44px) */
@media (max-width: 768px) {
  button,
  .btn,
  .action-btn,
  .quick-action-chip,
  .tab-btn,
  .admin-tab,
  .fortune-nav-item,
  .close-modal-btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  .quick-action-chip {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }

  /* Zero-Truncation Typography */
  h1, h2, h3, h4, h5, h6,
  .section-title,
  .modal-title,
  .reading-header {
    word-break: keep-all;
    line-height: 1.5;
  }
}

/* ==========================================================================
   ⛩️ BaZi Eight Characters & Chinese Metaphysics Luxury Styles (V138.0.0)
   ========================================================================== */
.bazi-obsidian-card {
  background: linear-gradient(135deg, rgba(17, 26, 41, 0.85) 0%, rgba(10, 15, 26, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px;
  margin-bottom: 16px;
}

.bazi-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.bazi-pillar-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bazi-pillar-box.is-daymaster {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.22) 0%, rgba(26, 37, 54, 0.95) 100%);
  border: 2px solid var(--primary-gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}

.daymaster-glow-aura {
  animation: daymasterPulse 2.5s infinite ease-in-out;
}

@keyframes daymasterPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.6);
  }
}

.element-jewel-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
}

.element-wood { background: rgba(34, 197, 94, 0.15); color: #4ADE80; border: 1px solid rgba(34, 197, 94, 0.4); }
.element-fire { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.element-earth { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.4); }
.element-metal { background: rgba(226, 232, 240, 0.15); color: #F1F5F9; border: 1px solid rgba(226, 232, 240, 0.4); }
.element-water { background: rgba(56, 189, 248, 0.15); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.4); }

.hidden-stem-pill {
  font-size: 8.5px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.dayun-carousel-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 8px 4px;
  scrollbar-width: thin;
}

.dayun-cycle-card {
  min-width: 140px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}

.dayun-cycle-card.is-current {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(26, 37, 54, 0.95) 100%);
  border: 2px solid var(--primary-gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   🧧 CHINESE TONG SHU & BAZI USEFUL GOD COLOR STYLES (V140.0.0)
   ========================================================================== */

/* 7-Day Strip Capsule */
.tongshu-day-pill {
  flex: 0 0 auto;
  min-width: 68px;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tongshu-day-pill:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.tongshu-day-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1.5px solid var(--primary-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

/* Imperial Seals for 宜 (Yi - Green) and 忌 (Ji - Red) */
.tongshu-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tongshu-seal.seal-yi {
  background: rgba(16, 185, 129, 0.18);
  border: 1.5px solid #10B981;
  color: #6EE7B7;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.tongshu-seal.seal-ji {
  background: rgba(239, 68, 68, 0.18);
  border: 1.5px solid #EF4444;
  color: #FCA5A5;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}

/* Activity Badge in Tong Shu */
.tongshu-activity-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  margin: 3px;
}

.tongshu-activity-chip.yi {
  background: rgba(16, 185, 129, 0.12);
  color: #A7F3D0;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tongshu-activity-chip.ji {
  background: rgba(239, 68, 68, 0.12);
  color: #FECACA;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* BaZi Useful God Aura Card */
.bazi-aura-card {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bazi-aura-card:hover {
  transform: translateY(-2px);
}

.bazi-aura-card.role-useful {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid #10B981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.bazi-aura-card.role-favorable {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid #38BDF8;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

.bazi-aura-card.role-taboo {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.bazi-color-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  display: inline-block;
}

