/* Mystical Handwriting Text System */

/*
.mystic-text,
.mystic-span {
  display: inline-block;
  font-family: "Kalam", system-ui, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.35;
  letter-spacing: 0.01em;
  background: var(--mystic-gradient);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  isolation: isolate;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  animation: mystic-shift 18s linear infinite;
  will-change: background-position;
}

@keyframes mystic-shift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 220% 50%;
  }
}

.mystic-playful {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mystic-xl {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}

.mystic-lg {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.mystic-md {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.mystic-sm {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mystic-soft {
  opacity: 0.85;
}

.mystic-bold {
  font-weight: 700;
}

.mystic-glow {
  text-shadow:
    0 0 6px rgba(200, 120, 150, 0.18),
    0 0 12px rgba(120, 160, 200, 0.14);
}

html[data-theme="dark"] .mystic-glow {
  text-shadow:
    0 0 8px rgba(255, 107, 138, 0.22),
    0 0 16px rgba(107, 231, 255, 0.18),
    0 0 24px rgba(182, 146, 255, 0.14);
}
*/

/* Luxury Glassmorphism Text Highlight */

.glass-highlight {
  position: relative;
  display: inline;
  padding: 0.08em 0.45em 0.14em;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.7rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 24px rgba(57, 45, 34, 0.12),
    0 0 22px rgba(214, 140, 115, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow: hidden;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.glass-highlight::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(214, 140, 115, 0.22), transparent 35%),
    radial-gradient(circle at bottom right, rgba(198, 164, 217, 0.2), transparent 38%);
  filter: blur(18px);
  opacity: 0.9;
  z-index: -2;
  pointer-events: none;
}

.glass-highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.38) 48%, transparent 78%);
  transform: translateX(-130%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

html[data-theme="dark"] .glass-highlight {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(214, 140, 115, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .glass-highlight:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(214, 140, 115, 0.14),
    0 0 20px rgba(198, 164, 217, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Negative / Alert Emphasis */

.text-negative {
  position: relative;
  display: inline-block;
  padding:
    clamp(0.06em, 0.1vw, 0.12em)
    clamp(0.3em, 0.45vw, 0.5em);
  color: #a94442;
  font-weight: 750;
  letter-spacing: -0.01em;
  background:
    linear-gradient(135deg, rgba(220, 90, 90, 0.12), rgba(255, 140, 140, 0.08));
  border: 1px solid rgba(220, 90, 90, 0.18);
  border-radius: 0.7rem;
  box-shadow:
    0 6px 18px rgba(180, 60, 60, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.text-negative::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -0.12rem;
  height: 2px;
  background:
    linear-gradient(90deg, rgba(220, 90, 90, 0), rgba(220, 90, 90, 0.5), rgba(220, 90, 90, 0));
  border-radius: 999px;
  opacity: 0.85;
}

.text-negative:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(220, 90, 90, 0.16), rgba(255, 140, 140, 0.12));
  border-color: rgba(220, 90, 90, 0.28);
  box-shadow:
    0 10px 24px rgba(180, 60, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .text-negative {
  color: #ffb3b3;
  background:
    linear-gradient(135deg, rgba(180, 60, 60, 0.2), rgba(255, 120, 120, 0.08));
  border-color: rgba(255, 120, 120, 0.14);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .text-negative:hover {
  border-color: rgba(255, 140, 140, 0.24);
  background:
    linear-gradient(135deg, rgba(200, 70, 70, 0.24), rgba(255, 120, 120, 0.1));
}

/* Positive / Success Emphasis */

.text-positive {
  position: relative;
  display: inline-block;
  padding:
    clamp(0.06em, 0.1vw, 0.12em)
    clamp(0.3em, 0.45vw, 0.5em);
  color: #2f6b52;
  font-weight: 750;
  letter-spacing: -0.01em;
  background:
    linear-gradient(135deg, rgba(110, 196, 152, 0.16), rgba(180, 236, 210, 0.08));
  border: 1px solid rgba(110, 196, 152, 0.2);
  border-radius: 0.7rem;
  box-shadow:
    0 6px 18px rgba(90, 170, 130, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.text-positive::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -0.12rem;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      rgba(110, 196, 152, 0),
      rgba(110, 196, 152, 0.55),
      rgba(110, 196, 152, 0)
    );
  border-radius: 999px;
  opacity: 0.9;
}

.text-positive:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(
      135deg,
      rgba(110, 196, 152, 0.22),
      rgba(180, 236, 210, 0.12)
    );
  border-color: rgba(110, 196, 152, 0.3);
  box-shadow:
    0 10px 24px rgba(90, 170, 130, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .text-positive {
  color: #baf2d2;
  background:
    linear-gradient(
      135deg,
      rgba(80, 170, 130, 0.24),
      rgba(120, 220, 170, 0.08)
    );
  border-color: rgba(120, 220, 170, 0.14);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .text-positive:hover {
  border-color: rgba(120, 220, 170, 0.24);
  background:
    linear-gradient(
      135deg,
      rgba(80, 170, 130, 0.3),
      rgba(120, 220, 170, 0.12)
    );
}


/* Cerulean Blue / Info Emphasis */

.text-cerulean {
  position: relative;
  display: inline-block;
  padding:
    clamp(0.06em, 0.1vw, 0.12em)
    clamp(0.3em, 0.45vw, 0.5em);
  color: #15527A;
  font-weight: 750;
  letter-spacing: -0.01em;
  background:
    linear-gradient(135deg, rgba(0, 123, 167, 0.12), rgba(29, 172, 214, 0.08));
  border: 1px solid rgba(0, 123, 167, 0.18);
  border-radius: 0.7rem;
  box-shadow:
    0 6px 18px rgba(0, 80, 110, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.text-cerulean::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -0.12rem;
  height: 2px;
  background:
    linear-gradient(90deg, rgba(0, 123, 167, 0), rgba(0, 123, 167, 0.5), rgba(0, 123, 167, 0));
  border-radius: 999px;
  opacity: 0.85;
}

.text-cerulean:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(0, 123, 167, 0.16), rgba(29, 172, 214, 0.12));
  border-color: rgba(0, 123, 167, 0.28);
  box-shadow:
    0 10px 24px rgba(0, 80, 110, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .text-cerulean {
  color: #AED6F1;
  background:
    linear-gradient(135deg, rgba(0, 100, 140, 0.2), rgba(29, 172, 214, 0.08));
  border-color: rgba(29, 172, 214, 0.14);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .text-cerulean:hover {
  border-color: rgba(29, 172, 214, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 120, 160, 0.24), rgba(29, 172, 214, 0.1));
}

/* Pink / Rose Emphasis */

.text-pink {
  position: relative;
  display: inline-block;
  padding:
    clamp(0.06em, 0.1vw, 0.12em)
    clamp(0.3em, 0.45vw, 0.5em);
  color: #9B2C5C;
  font-weight: 750;
  letter-spacing: -0.01em;
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(244, 143, 177, 0.08));
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 0.7rem;
  box-shadow:
    0 6px 18px rgba(200, 50, 100, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.text-pink::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -0.12rem;
  height: 2px;
  background:
    linear-gradient(90deg, rgba(236, 72, 153, 0), rgba(236, 72, 153, 0.5), rgba(236, 72, 153, 0));
  border-radius: 999px;
  opacity: 0.85;
}

.text-pink:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(244, 143, 177, 0.12));
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow:
    0 10px 24px rgba(200, 50, 100, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .text-pink {
  color: #F8BBD0;
  background:
    linear-gradient(135deg, rgba(200, 50, 100, 0.2), rgba(244, 143, 177, 0.08));
  border-color: rgba(244, 143, 177, 0.14);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .text-pink:hover {
  border-color: rgba(244, 143, 177, 0.24);
  background:
    linear-gradient(135deg, rgba(210, 60, 110, 0.24), rgba(244, 143, 177, 0.1));
}

/* Purple / Creative Emphasis */

.text-purple {
  position: relative;
  display: inline-block;
  padding:
    clamp(0.06em, 0.1vw, 0.12em)
    clamp(0.3em, 0.45vw, 0.5em);
  color: #4527A0;
  font-weight: 750;
  letter-spacing: -0.01em;
  background:
    linear-gradient(135deg, rgba(103, 58, 183, 0.12), rgba(149, 117, 205, 0.08));
  border: 1px solid rgba(103, 58, 183, 0.18);
  border-radius: 0.7rem;
  box-shadow:
    0 6px 18px rgba(80, 40, 140, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.text-purple::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -0.12rem;
  height: 2px;
  background:
    linear-gradient(90deg, rgba(103, 58, 183, 0), rgba(103, 58, 183, 0.5), rgba(103, 58, 183, 0));
  border-radius: 999px;
  opacity: 0.85;
}

.text-purple:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(103, 58, 183, 0.16), rgba(149, 117, 205, 0.12));
  border-color: rgba(103, 58, 183, 0.28);
  box-shadow:
    0 10px 24px rgba(80, 40, 140, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .text-purple {
  color: #D1C4E9;
  background:
    linear-gradient(135deg, rgba(80, 40, 140, 0.2), rgba(149, 117, 205, 0.08));
  border-color: rgba(149, 117, 205, 0.14);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .text-purple:hover {
  border-color: rgba(149, 117, 205, 0.24);
  background:
    linear-gradient(135deg, rgba(90, 50, 150, 0.24), rgba(149, 117, 205, 0.1));
}


/* Luxury Squiggle Underline */

.squiggle-underline {
  position: relative;
  display: inline-block;
}

.squiggle-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.32em;
  width: 100%;
  height: 14px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='14' viewBox='0 0 220 14' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='220' y2='0' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23ffb067'/%3E%3Cstop offset='0.5' stop-color='%23ff8757'/%3E%3Cstop offset='1' stop-color='%23ff5f45'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 8C18 2 34 14 50 8C66 2 82 14 98 8C114 2 130 14 146 8C162 2 178 14 194 8C202 5 210 6 218 8' stroke='url(%23g)' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition:
    transform 700ms cubic-bezier(.22, 1, .36, 1),
    opacity 450ms ease;
  pointer-events: none;
}

.squiggle-underline.is-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.squiggle-underline:hover::after {
  filter:
    drop-shadow(0 0 6px rgba(255, 140, 87, 0.45))
    drop-shadow(0 0 12px rgba(255, 95, 69, 0.22));
}

html[data-theme="dark"] .squiggle-underline:hover::after {
  filter:
    drop-shadow(0 0 8px rgba(255, 160, 110, 0.6))
    drop-shadow(0 0 16px rgba(255, 120, 90, 0.32));
}