/* ==========================================================================
   SARU (সারু) THE LOOM SHUTTLE MASCOT — CORE STYLING & ANIMATIONS
   18th-century Jamini Roy folk-art form meets responsive micro-interactions
   ========================================================================== */

/* Custom Element Root */
saru-assistant,
paku-assistant {
  display: block;
  position: relative;
  z-index: 9990;
}

/* Root Fixed Container */
.paku-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 640px) {
  .paku-container {
    bottom: 14px;
    right: 14px;
  }
}

/* Mascot Wrapper */
.paku-mascot-wrapper {
  position: relative;
  width: 86px;
  height: 206px;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: none;
}

@media (max-width: 640px) {
  .paku-mascot-wrapper {
    width: 70px;
    height: 168px;
  }
}

.paku-mascot-wrapper svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  transition: filter 0.3s ease;
}

/* 3D Perspective Stage & Volumetric Hollow Shuttle Architecture */
.paku-stage {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 850px;
  perspective-origin: 50% 50%;
}

.paku-shuttle-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

.paku-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 1. Recessed Cavity Floor at Z = -5.5px */
.paku-cavity-floor {
  transform: translateZ(-5.5px);
  z-index: 1;
  pointer-events: none;
}

/* 2. Floating Spool & Living Thread Layer at Z = 0px */
.paku-spool-layer {
  transform: translateZ(0px);
  z-index: 3;
}

/* 3. Front Wooden Shell at Z = +6px (with transparent cavity cutout) */
.paku-face-front {
  transform: translateZ(6px);
  z-index: 4;
}

/* 4. Solid Teak Reverse Side at Z = -6px (facing backwards) */
.paku-face-back {
  transform: rotateY(180deg) translateZ(6px);
  z-index: 1;
  pointer-events: none;
}

/* 5. Lateral Profiles at 90deg and 270deg (opacity controlled during spin) */
.paku-face-right {
  transform: rotateY(90deg);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.paku-face-left {
  transform: rotateY(270deg);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.paku-face-left svg {
  transform: scaleX(-1);
}

/* 1. Ambient Float & Hover Dynamics */
#paku-body,
.paku-body {
  animation: paku-ambient-float 3.5s ease-in-out infinite;
  transform-origin: 50px 120px;
  will-change: transform;
}

@keyframes paku-ambient-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(1.5deg);
  }
}

/* Pause float while user is actively dragging thread */
.paku-pulling #paku-body {
  animation-play-state: paused;
}

/* 2. Idle Blink on #paku-eyes */
#paku-eyes {
  transform-origin: 50px 66px;
  will-change: transform;
}

#paku-eyes.blinking {
  animation: paku-blink-action 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes paku-blink-action {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.05);
  }
}

/* 3. Subtle Gaze Tracking on #pupil-left and #pupil-right */
#pupil-left,
#pupil-right {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Dizzy Spinning Spiral Eyes after/during Beyblade spin */
.paku-spiral-pupil {
  display: none;
  opacity: 0;
  pointer-events: none;
}

#paku-eyes.dizzy #pupil-left,
#paku-eyes.dizzy #pupil-right {
  display: none !important;
  opacity: 0 !important;
}

#paku-eyes.dizzy .paku-spiral-pupil {
  display: inline !important;
  opacity: 1 !important;
}

#paku-eyes.dizzy #spiral-left {
  transform-origin: 38.35px 66.5px;
  animation: paku-spiral-spin-left 0.4s linear infinite;
}

#paku-eyes.dizzy #spiral-right {
  transform-origin: 61.65px 66.5px;
  animation: paku-spiral-spin-right 0.4s linear infinite;
}

@keyframes paku-spiral-spin-left {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes paku-spiral-spin-right {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* 4. True 3D On-Axis "Beyblade/Top" Vertical Spin (rotateY) State */
.paku-shuttle-3d.beyblade-spinning-3d {
  will-change: transform;
}

/* Pause ambient float during rapid 3D spin for rock-solid stability */
.beyblade-spinning-3d #paku-body,
.beyblade-spinning-3d #paku-body-back,
.beyblade-spinning-3d #paku-body-side {
  animation-play-state: paused;
}

/* 5. Missing Fields Checkout Violent Shake */
.paku-mascot-wrapper.shake {
  animation: paku-shake-anim 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes paku-shake-anim {
  10%, 90% {
    transform: translate3d(-3px, 0, 0) rotate(-3deg);
  }
  20%, 80% {
    transform: translate3d(4px, 0, 0) rotate(3deg);
  }
  30%, 50%, 70% {
    transform: translate3d(-6px, 0, 0) rotate(-5deg);
  }
  40%, 60% {
    transform: translate3d(6px, 0, 0) rotate(5deg);
  }
}

/* 6. Living Thread Grab Area */
#living-thread-hitarea,
#living-thread-hitarea-tip {
  cursor: grab;
  touch-action: none;
}

.paku-pulling #living-thread-hitarea,
.paku-pulling #living-thread-hitarea-tip,
.paku-pulling {
  cursor: grabbing !important;
}

/* 7. Speech Bubble — 18th-century Torn Paper Slip / Lal Khata Ledger */
.paku-speech-bubble {
  position: absolute;
  bottom: 100%;
  right: 6px;
  margin-bottom: 14px;
  background: #FCFBF7;
  border: 2px solid #166B58;
  box-shadow: 3px 3px 0px #166B58;
  border-radius: 3px;
  padding: 10px 28px 10px 14px;
  max-width: 260px;
  width: max-content;
  font-family: 'Purno', 'GaramondHalhed', Georgia, serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: #166B58;
  font-weight: 500;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
  z-index: 20;
}

@media (max-width: 640px) {
  .paku-speech-bubble {
    max-width: 210px;
    font-size: 12.5px;
    padding: 8px 24px 8px 12px;
    right: 0px;
  }
}

.paku-speech-bubble.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Torn paper ledger notched edge & authentic down-tail */
.paku-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 32px;
  width: 9px;
  height: 9px;
  background: #FCFBF7;
  border-right: 2px solid #166B58;
  border-bottom: 2px solid #166B58;
  transform: rotate(45deg);
}

/* Red Ink Handloom Close Button */
.paku-speech-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  color: #BD3A54;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: transform 0.15s ease, color 0.15s ease;
}

.paku-speech-close:hover {
  color: #931d34;
  transform: scale(1.25);
}

.paku-speech-text {
  display: block;
}

/* Mood Indicators (Subtle Lal Khata ink stamp variations) */
.paku-speech-bubble.mood-dizzy {
  border-color: #BD3A54;
  box-shadow: 3px 3px 0px #BD3A54;
  color: #7b1c31;
}

.paku-speech-bubble.mood-dizzy::after {
  border-right-color: #BD3A54;
  border-bottom-color: #BD3A54;
}

.paku-speech-bubble.mood-alarmed {
  border-color: #b91c1c;
  box-shadow: 3px 3px 0px #b91c1c;
  color: #991b1b;
}

.paku-speech-bubble.mood-alarmed::after {
  border-right-color: #b91c1c;
  border-bottom-color: #b91c1c;
}

/* ==========================================================================
   8. DARK MODE THEME SUPPORT (AMOLED Black + Radiant Handloom Gold)
   ========================================================================== */

.dark .paku-speech-bubble,
html.dark .paku-speech-bubble,
:root.dark .paku-speech-bubble,
[data-theme="dark"] .paku-speech-bubble {
  background: #121216;
  border-color: #f2c200;
  box-shadow: 3px 3px 0px #f2c200;
  color: #ffd533;
}

.dark .paku-speech-bubble::after,
html.dark .paku-speech-bubble::after,
:root.dark .paku-speech-bubble::after,
[data-theme="dark"] .paku-speech-bubble::after {
  background: #121216;
  border-right-color: #f2c200;
  border-bottom-color: #f2c200;
}

.dark .paku-speech-close,
html.dark .paku-speech-close,
:root.dark .paku-speech-close,
[data-theme="dark"] .paku-speech-close {
  color: #f87171;
}

.dark .paku-speech-close:hover,
html.dark .paku-speech-close:hover,
:root.dark .paku-speech-close:hover,
[data-theme="dark"] .paku-speech-close:hover {
  color: #fca5a5;
}

/* Dark Mode Mood Variations */
.dark .paku-speech-bubble.mood-dizzy,
html.dark .paku-speech-bubble.mood-dizzy,
:root.dark .paku-speech-bubble.mood-dizzy,
[data-theme="dark"] .paku-speech-bubble.mood-dizzy {
  border-color: #f87171;
  box-shadow: 3px 3px 0px #f87171;
  color: #fca5a5;
}

.dark .paku-speech-bubble.mood-dizzy::after,
html.dark .paku-speech-bubble.mood-dizzy::after,
:root.dark .paku-speech-bubble.mood-dizzy::after,
[data-theme="dark"] .paku-speech-bubble.mood-dizzy::after {
  border-right-color: #f87171;
  border-bottom-color: #f87171;
}

.dark .paku-speech-bubble.mood-alarmed,
html.dark .paku-speech-bubble.mood-alarmed,
:root.dark .paku-speech-bubble.mood-alarmed,
[data-theme="dark"] .paku-speech-bubble.mood-alarmed {
  border-color: #ef4444;
  box-shadow: 3px 3px 0px #ef4444;
  color: #fca5a5;
}

.dark .paku-speech-bubble.mood-alarmed::after,
html.dark .paku-speech-bubble.mood-alarmed::after,
:root.dark .paku-speech-bubble.mood-alarmed::after,
[data-theme="dark"] .paku-speech-bubble.mood-alarmed::after {
  border-right-color: #ef4444;
  border-bottom-color: #ef4444;
}

/* Dark Mode Living Thread Stroke & Glow */
.dark #living-thread-arm,
html.dark #living-thread-arm,
[data-theme="dark"] #living-thread-arm {
  stroke: #f2c200 !important;
}

.dark #living-thread-tip,
html.dark #living-thread-tip,
[data-theme="dark"] #living-thread-tip {
  fill: #f2c200 !important;
}

.dark .paku-mascot-wrapper svg,
html.dark .paku-mascot-wrapper svg,
[data-theme="dark"] .paku-mascot-wrapper svg {
  filter: drop-shadow(0 6px 18px rgba(242, 194, 0, 0.18));
}

/* ==========================================================================
   9. SLEEPY LATE-NIGHT (1AM - 4AM) Z Z Z THREAD ANIMATIONS & EYES
   ========================================================================== */

/* Snore glyphs group */
.paku-thread-zzz {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.paku-sleeping .paku-thread-zzz,
saru-assistant.paku-sleeping .paku-thread-zzz,
paku-assistant.paku-sleeping .paku-thread-zzz {
  opacity: 1;
}

.zzz-glyph {
  fill: #BD3A54;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  user-select: none;
}

.dark .zzz-glyph,
html.dark .zzz-glyph,
[data-theme="dark"] .zzz-glyph {
  fill: #f2c200 !important;
}

/* Staggered floating snore drift */
.paku-sleeping .zzz-1,
saru-assistant.paku-sleeping .zzz-1,
paku-assistant.paku-sleeping .zzz-1 {
  animation: paku-zzz-drift-1 2.4s ease-in-out infinite 0s;
}

.paku-sleeping .zzz-2,
saru-assistant.paku-sleeping .zzz-2,
paku-assistant.paku-sleeping .zzz-2 {
  animation: paku-zzz-drift-2 2.4s ease-in-out infinite 0.75s;
}

.paku-sleeping .zzz-3,
saru-assistant.paku-sleeping .zzz-3,
paku-assistant.paku-sleeping .zzz-3 {
  animation: paku-zzz-drift-3 2.4s ease-in-out infinite 1.5s;
}

@keyframes paku-zzz-drift-1 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.7);
  }
  35% {
    opacity: 0.95;
    transform: translate(2px, -6px) scale(1);
  }
  70% {
    opacity: 0.7;
    transform: translate(4px, -13px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(6px, -20px) scale(1.2);
  }
}

@keyframes paku-zzz-drift-2 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.75);
  }
  35% {
    opacity: 1;
    transform: translate(2.5px, -7px) scale(1.05);
  }
  70% {
    opacity: 0.75;
    transform: translate(5px, -15px) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(8px, -23px) scale(1.25);
  }
}

@keyframes paku-zzz-drift-3 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.8);
  }
  35% {
    opacity: 1;
    transform: translate(3px, -8px) scale(1.1);
  }
  70% {
    opacity: 0.8;
    transform: translate(7px, -17px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(10px, -26px) scale(1.3);
  }
}

/* Sleepy heavy eyelids on Devi eyes */
.paku-sleeping #paku-eyes,
saru-assistant.paku-sleeping #paku-eyes,
paku-assistant.paku-sleeping #paku-eyes {
  transform: scaleY(0.42) !important;
  transform-origin: 50px 66px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sleepy gentle undulating breathing float */
.paku-sleeping #paku-body,
saru-assistant.paku-sleeping #paku-body,
paku-assistant.paku-sleeping #paku-body {
  animation: paku-sleepy-breathing 4.5s ease-in-out infinite !important;
}

@keyframes paku-sleepy-breathing {
  0%, 100% {
    transform: translateY(0px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-3px) rotate(-1deg);
  }
}

/* Sleepy thread subtle flexing */
.paku-sleeping #living-thread-arm,
saru-assistant.paku-sleeping #living-thread-arm,
paku-assistant.paku-sleeping #living-thread-arm {
  animation: paku-thread-breathing 3.5s ease-in-out infinite;
  transform-origin: 50px 140.5px;
}

@keyframes paku-thread-breathing {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.03) rotate(-1.5deg);
  }
}

/* ==========================================================================
   8. Saru Inquiry & Recommendation Modal ("সারুর দপ্তর")
   ========================================================================== */

.paku-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 2, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.paku-modal-container {
  position: fixed;
  z-index: 9999;
  right: 155px;
  bottom: 28px;
  width: 390px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background: #fcf9f2;
  color: #1a1008;
  border-radius: 16px;
  box-shadow: 
    0 20px 40px -10px rgba(18, 9, 3, 0.45),
    0 0 0 1px rgba(189, 58, 84, 0.25),
    0 0 25px rgba(212, 175, 55, 0.2);
  border: 2px solid #166b58;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

:root.dark .paku-modal-container,
[data-theme="dark"] .paku-modal-container,
.dark .paku-modal-container {
  background: #111116;
  color: #f3f3f5;
  border-color: #d4af37;
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(242, 194, 0, 0.3),
    0 0 30px rgba(242, 194, 0, 0.15);
}

.paku-modal-container.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Modal Header: Lal Khata Ledger Banner */
.paku-modal-header {
  padding: 16px 18px 12px;
  background: #f6efe0;
  border-bottom: 2px dashed rgba(22, 107, 88, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

:root.dark .paku-modal-header,
[data-theme="dark"] .paku-modal-header,
.dark .paku-modal-header {
  background: #181820;
  border-bottom-color: rgba(212, 175, 55, 0.25);
}

.paku-modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.paku-modal-icon {
  width: 32px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #166b58;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

:root.dark .paku-modal-icon,
[data-theme="dark"] .paku-modal-icon,
.dark .paku-modal-icon {
  color: #f2c200;
  background: transparent;
  box-shadow: none;
}

.paku-modal-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #166b58;
  line-height: 1.25;
}

:root.dark .paku-modal-title,
[data-theme="dark"] .paku-modal-title,
.dark .paku-modal-title {
  color: #f2c200;
}

.paku-modal-subtitle {
  font-size: 11px;
  opacity: 0.75;
  margin: 0;
}

.paku-modal-close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #8a705a;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
}

.paku-modal-close-btn:hover {
  color: #bd3a54;
  background-color: rgba(189, 58, 84, 0.1);
}

/* Modal Body Form */
.paku-modal-body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Inquiry Type Pill Switcher */
.paku-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

:root.dark .paku-type-selector,
[data-theme="dark"] .paku-type-selector,
.dark .paku-type-selector {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.paku-type-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  transition: all 0.2s ease;
  user-select: none;
}

.paku-type-pill.active {
  background: #166b58;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(22, 107, 88, 0.35);
}

:root.dark .paku-type-pill.active,
[data-theme="dark"] .paku-type-pill.active,
.dark .paku-type-pill.active {
  background: #d4af37;
  color: #121216;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.paku-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.paku-form-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.paku-form-input,
.paku-form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #ffffff;
  color: #1a1008;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

:root.dark .paku-form-input,
:root.dark .paku-form-textarea,
[data-theme="dark"] .paku-form-input,
[data-theme="dark"] .paku-form-textarea,
.dark .paku-form-input,
.dark .paku-form-textarea {
  background: #1a1a24;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.paku-form-input:focus,
.paku-form-textarea:focus {
  border-color: #166b58;
  box-shadow: 0 0 0 3px rgba(22, 107, 88, 0.2);
}

:root.dark .paku-form-input:focus,
:root.dark .paku-form-textarea:focus,
[data-theme="dark"] .paku-form-input:focus,
[data-theme="dark"] .paku-form-textarea:focus,
.dark .paku-form-input:focus,
.dark .paku-form-textarea:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.paku-form-textarea {
  min-height: 85px;
  resize: vertical;
}

.paku-form-submit-btn {
  background: #166b58;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(22, 107, 88, 0.3);
}

.paku-form-submit-btn:hover {
  background: #1b826b;
  box-shadow: 0 6px 16px rgba(22, 107, 88, 0.4);
}

.paku-form-submit-btn:active {
  transform: scale(0.98);
}

:root.dark .paku-form-submit-btn,
[data-theme="dark"] .paku-form-submit-btn,
.dark .paku-form-submit-btn {
  background: #d4af37;
  color: #121216;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

:root.dark .paku-form-submit-btn:hover,
[data-theme="dark"] .paku-form-submit-btn:hover,
.dark .paku-form-submit-btn:hover {
  background: #f2c200;
}

.paku-form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.paku-form-status {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
}

.paku-form-status.success {
  display: block;
  background: rgba(22, 107, 88, 0.12);
  color: #166b58;
  border: 1px solid rgba(22, 107, 88, 0.3);
}

:root.dark .paku-form-status.success,
[data-theme="dark"] .paku-form-status.success,
.dark .paku-form-status.success {
  background: rgba(212, 175, 55, 0.15);
  color: #f2c200;
  border-color: rgba(212, 175, 55, 0.35);
}

.paku-form-status.error {
  display: block;
  background: rgba(189, 58, 84, 0.12);
  color: #bd3a54;
  border: 1px solid rgba(189, 58, 84, 0.3);
}

/* Responsive Mobile Layout for Modal */
@media (max-width: 640px) {
  .paku-modal-container {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }
}

/* Smallcaps styling for Saru */
.saru-name,
.saru-sc,
.font-saru,
.paku-name,
.paku-sc,
.font-paku {
  font-family: 'IMFellEnglishSC', 'IMFellEnglish', serif !important;
  letter-spacing: 0.02em;
}

