/* ==========================================================================
   HandWriteX - Liquid Glass & Neumorphic Design System
   Exact Color Theme:
   - Warm White #F8F8F6 (Main Canvas Background)
   - White #FFFFFF (Cards & Sheets)
   - Charcoal #171717 (Headings & Primary Text)
   - Soft Charcoal #4B4B4B (Secondary Body Text)
   - Coral Red #F05A5A (Primary Accent & Strong CTA)
   - Light Coral #FFE8E6 / #FFF0EF (Accent Backgrounds & Badges)
   - Soft Sage #DDEFE5 (Secondary Feature Highlights)
   - Light Gray #F1F1EF (Controls & Pills)
   - Border #E5E5E1
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Caveat:wght@400;500;600;700&family=Dancing+Script:wght@400;600;700&family=Kalam:wght@300;400;700&family=Patrick+Hand&family=Homemade+Apple&family=Sacramento&family=Marck+Script&family=Shadows+Into+Light&display=swap');

:root {
  --bg-warm: #F8F8F6;
  --card-white: #FFFFFF;
  --text-charcoal: #171717;
  --text-secondary: #4B4B4B;
  --text-muted: #737373;
  --accent-coral: #F05A5A;
  --accent-coral-hover: #E04848;
  --accent-coral-light: #FFE8E6;
  --accent-sage: #DDEFE5;
  --control-gray: #F1F1EF;
  --border-subtle: #E5E5E1;
  --border-focus: #F05A5A;
  
  /* Neumorphic & Liquid Glass Shadows */
  --neu-convex: 8px 8px 22px rgba(0, 0, 0, 0.035), -8px -8px 22px rgba(255, 255, 255, 0.95);
  --neu-convex-hover: 12px 12px 30px rgba(0, 0, 0, 0.055), -10px -10px 26px rgba(255, 255, 255, 1);
  --neu-inset: inset 2.5px 2.5px 6px rgba(0, 0, 0, 0.035), inset -2.5px -2.5px 6px rgba(255, 255, 255, 0.9);
  --liquid-specular: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95);
  --shadow-coral-btn: 0 10px 25px -4px rgba(240, 90, 90, 0.42), 0 4px 10px -2px rgba(240, 90, 90, 0.22);
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-charcoal);
  background-color: var(--bg-warm);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ==========================================================================
   Ambient Liquid Background Mesh & Floating Glow Orbs
   ========================================================================== */
.ambient-liquid-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.liquid-orb-coral-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #FFE8E6 0%, rgba(255, 232, 230, 0.2) 70%, transparent 100%);
  top: -80px;
  right: -60px;
  animation: liquidFloat1 18s ease-in-out infinite alternate;
}

.liquid-orb-sage-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #DDEFE5 0%, rgba(221, 239, 229, 0.2) 70%, transparent 100%);
  bottom: 10%;
  left: -100px;
  animation: liquidFloat2 22s ease-in-out infinite alternate;
}

.liquid-orb-coral-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #FFF0EF 0%, rgba(255, 240, 239, 0.2) 70%, transparent 100%);
  top: 45%;
  right: 15%;
  animation: liquidFloat3 15s ease-in-out infinite alternate;
}

@keyframes liquidFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.08); }
  100% { transform: translate(30px, -20px) scale(0.95); }
}

@keyframes liquidFloat2 {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(60px, -40px) scale(1.06); }
  100% { transform: translate(-30px, 30px) scale(1); }
}

@keyframes liquidFloat3 {
  0% { transform: translate(0, 0) scale(1.02); }
  50% { transform: translate(-40px, -30px) scale(0.92); }
  100% { transform: translate(20px, 40px) scale(1.05); }
}

/* ==========================================================================
   Liquid Glass Cards with Neumorphic Convex Lift & Gloss Sweep
   ========================================================================== */
.hx-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  box-shadow: var(--neu-convex), var(--liquid-specular);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

/* Liquid Gloss Hover Specular Sweep */
.hx-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -160%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  transform: skewX(-22deg);
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}

.hx-card:hover::after {
  left: 160%;
}

.hx-card:hover {
  transform: translateY(-3.5px);
  box-shadow: var(--neu-convex-hover), var(--liquid-specular);
  border-color: rgba(240, 90, 90, 0.28);
}

/* Neumorphic Inset Bays */
.neu-inset-bay {
  background: #F8F8F6;
  border: 1px solid #E5E5E1;
  border-radius: 14px;
  box-shadow: var(--neu-inset);
}

/* Numbered Step Badge (Black Circle 1, 2, 3, 4, 5) */
.hx-step-badge {
  width: 26px;
  height: 26px;
  background-color: #171717;
  color: #FFFFFF;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Coral Sliders with Tactile Neumorphic Rails & Live Glow */
input[type="range"].hx-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #E5E5E1;
  border-radius: 9999px;
  outline: none;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease;
  cursor: pointer;
}

input[type="range"].hx-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #F05A5A;
  border: 2.5px solid #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 3.5px rgba(240, 90, 90, 0.28), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"].hx-slider::-webkit-slider-thumb:hover,
input[type="range"].hx-slider:active::-webkit-slider-thumb {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(240, 90, 90, 0.38), 0 3px 8px rgba(0, 0, 0, 0.2);
}

input[type="range"].hx-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #F05A5A;
  border: 2.5px solid #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 3.5px rgba(240, 90, 90, 0.28), 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Slider Dark Tactile Icon Box with Sleek Dark Hover Animation */
.slider-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #F5F5F3;
  border: 1px solid #E5E5E1;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.04), 1px 1px 3px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171717;
  flex-shrink: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-icon-box svg,
.slider-icon-box i {
  transition: stroke 0.22s ease, color 0.22s ease;
}

.slider-row {
  padding: 4px 6px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.slider-row:hover {
  background-color: rgba(240, 90, 90, 0.03);
}

.slider-row:hover .slider-icon-box {
  background: #171717;
  color: #FFFFFF;
  border-color: #171717;
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 4px 12px rgba(23, 23, 23, 0.22);
}

.slider-row:hover .slider-icon-box svg,
.slider-row:hover .slider-icon-box i {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

.slider-val-badge {
  min-width: 48px;
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #171717;
  padding: 2px 7px;
  background: #F8F8F6;
  border: 1px solid #E5E5E1;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.slider-row:hover .slider-val-badge {
  color: #F05A5A;
  border-color: #FCA5A5;
  background: #FFF0EF;
  box-shadow: 0 2px 6px rgba(240, 90, 90, 0.12);
}

/* Ink Color Swatches */
.ink-color-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 0 0 1px #E5E5E1;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.ink-color-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), 0 0 0 1.5px #171717;
}

.ink-color-btn.active {
  transform: scale(1.18);
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #F05A5A, 0 3px 8px rgba(240, 90, 90, 0.4) !important;
}

/* Pen Type Selection Chips */
.pen-type-btn {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.02);
}

.pen-type-btn:hover {
  transform: translateY(-1.5px);
  border-color: #F05A5A;
  box-shadow: 0 4px 10px rgba(240, 90, 90, 0.15);
}

.pen-type-btn.active {
  background-color: #FFF5F5 !important;
  border-color: #F05A5A !important;
  box-shadow: 0 0 0 1.5px #F05A5A, 0 4px 12px rgba(240, 90, 90, 0.18) !important;
  transform: translateY(-1px);
}

/* Custom Pen Tip Buttons */
.pen-tip-btn {
  cursor: pointer;
  transition: all 0.2s ease;
}

.pen-tip-btn:hover {
  border-color: #F05A5A;
  color: #F05A5A;
}

.pen-tip-btn.active {
  border-color: #F05A5A !important;
  background-color: #FFE8E6 !important;
  color: #F05A5A !important;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(240, 90, 90, 0.2);
}

/* Coral Red Switches / Toggles */
.hx-toggle-input:checked ~ .hx-toggle-bg {
  background-color: #F05A5A;
  box-shadow: 0 2px 8px rgba(240, 90, 90, 0.4);
}
.hx-toggle-input:checked ~ .hx-toggle-dot {
  transform: translateX(16px);
}

/* 8 Handwriting Style Cards Grid Items */
.hx-style-card {
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  background: #FFFFFF;
  padding: 8px 4px 6px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.02), -2px -2px 8px rgba(255, 255, 255, 0.8);
}

.hx-style-card:hover {
  border-color: #F05A5A;
  transform: translateY(-2.5px);
  box-shadow: 0 8px 18px -2px rgba(240, 90, 90, 0.16);
}

.hx-style-card.active {
  border-color: #F05A5A;
  background-color: #FFF9F9;
  box-shadow: 0 0 0 1.5px #F05A5A, 0 4px 12px -1px rgba(240, 90, 90, 0.18);
}

.hx-style-card.active .hx-check-badge {
  display: flex !important;
}

.hx-check-badge {
  display: none;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #F05A5A;
  color: white;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  box-shadow: 0 2px 4px rgba(240, 90, 90, 0.35);
}

/* Paper Type Thumbnail Cards */
.hx-paper-thumb {
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px 4px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #FFFFFF;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.02);
}

.hx-paper-thumb:hover {
  border-color: #F05A5A;
  transform: translateY(-1.5px);
}

.hx-paper-thumb.active {
  border-color: #F05A5A;
  background-color: #FFF9F9;
  box-shadow: 0 0 0 1px #F05A5A;
}

.hx-paper-preview-mini {
  width: 34px;
  height: 42px;
  border-radius: 5px;
  border: 1px solid #E5E5E1;
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.hx-paper-thumb:hover .hx-paper-preview-mini {
  border-color: #F05A5A;
  box-shadow: 0 2px 6px rgba(240, 90, 90, 0.2);
}

/* Miniature Paper Preview Patterns inside Thumbnails */
.mini-paper-plain {
  background-color: #FFFFFF;
}

.mini-paper-ruled {
  background-color: #FFFDF9;
  background-image: 
    linear-gradient(90deg, transparent 6px, #FCA5A5 6px, #FCA5A5 7px, transparent 7px),
    linear-gradient(#E5E7EB 1px, transparent 1px);
  background-size: 100% 100%, 100% 5px;
  background-position: 0 0, 0 4px;
}

.mini-paper-notebook {
  background-color: #FFFDF9;
  background-image: 
    linear-gradient(90deg, transparent 7px, #EF4444 7px, #EF4444 8px, transparent 8px),
    linear-gradient(#E5E7EB 1px, transparent 1px);
  background-size: 100% 100%, 100% 5px;
  background-position: 0 0, 0 4px;
  border-left: 2.5px solid #CBD5E1 !important;
}

.mini-paper-parchment {
  background-color: #F8F1E3;
  background-image: 
    radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, rgba(200, 160, 110, 0.3) 100%),
    linear-gradient(90deg, transparent 6px, rgba(212, 163, 115, 0.8) 6px, rgba(212, 163, 115, 0.8) 7px, transparent 7px),
    linear-gradient(rgba(195, 160, 120, 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 5px;
  background-position: 0 0, 0 0, 0 4px;
  box-shadow: inset 0 0 6px rgba(120, 70, 20, 0.25);
}

.mini-paper-aged {
  background-color: #EEDBBF;
  background-image: 
    radial-gradient(circle at center, rgba(255,245,225,0.25) 20%, rgba(145, 95, 45, 0.45) 100%),
    linear-gradient(rgba(150, 100, 50, 0.35) 1px, transparent 1px);
  background-size: 100% 100%, 100% 5px;
  background-position: 0 0, 0 4px;
  box-shadow: inset 0 0 8px rgba(90, 45, 10, 0.4);
}

.mini-paper-legal {
  background-color: #FEF9C3;
  background-image: 
    linear-gradient(90deg, transparent 6px, #EF4444 6px, #EF4444 7px, transparent 7px),
    linear-gradient(#93C5FD 1px, transparent 1px);
  background-size: 100% 100%, 100% 5px;
  background-position: 0 0, 0 4px;
}

.mini-paper-kraft {
  background-color: #E2CFB8;
  background-image: 
    radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(135, 105, 75, 0.25) 100%),
    linear-gradient(rgba(130, 90, 50, 0.3) 1px, transparent 1px);
  background-size: 100% 100%, 100% 5px;
  background-position: 0 0, 0 4px;
}

.mini-paper-grid {
  background-color: #FFFFFF;
  background-image: 
    linear-gradient(#E5E7EB 1px, transparent 1px),
    linear-gradient(90deg, #E5E7EB 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
}

.mini-paper-dots {
  background-color: #FFFFFF;
  background-image: radial-gradient(#9CA3AF 0.9px, transparent 0.9px);
  background-size: 4px 4px;
}

.mini-paper-old-plain {
  background-color: #F7EFE4;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, rgba(185, 140, 85, 0.28) 100%);
  box-shadow: inset 0 0 6px rgba(120, 70, 20, 0.25);
}

.mini-paper-ancient {
  background-color: #DEBE8E;
  background-image: 
    radial-gradient(circle at center, rgba(255,245,225,0.2) 20%, rgba(95, 45, 10, 0.5) 100%),
    linear-gradient(rgba(115, 65, 20, 0.35) 1px, transparent 1px);
  background-size: 100% 100%, 100% 5px;
  background-position: 0 0, 0 4px;
  box-shadow: inset 0 0 9px rgba(60, 25, 5, 0.5);
}

.mini-paper-torn {
  background-color: #F8F1E3;
  background-image: 
    linear-gradient(90deg, transparent 6px, #D4A373 6px, #D4A373 7px, transparent 7px),
    linear-gradient(#E8D3B0 1px, transparent 1px);
  background-size: 100% 100%, 100% 5px;
  background-position: 0 0, 0 4px;
  clip-path: polygon(0% 0%, 100% 2%, 98% 30%, 100% 60%, 97% 90%, 100% 100%, 70% 98%, 40% 100%, 10% 98%, 0% 100%, 2% 50%, 0% 0%);
}

.mini-paper-old-lines {
  background-color: #F8F1E3;
  background-image: 
    linear-gradient(90deg, transparent 6px, rgba(165, 105, 50, 0.6) 6px, rgba(165, 105, 50, 0.6) 7px, transparent 7px),
    linear-gradient(rgba(145, 95, 45, 0.35) 1px, transparent 1px);
  background-size: 100% 100%, 100% 5px;
  background-position: 0 0, 0 4px;
}

.mini-paper-custom {
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF5F5 50%, #FFE8E6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Coral Primary CTA Button with Liquid Shimmer */
.hx-btn-coral {
  background: #F05A5A;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: var(--shadow-coral-btn);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hx-btn-coral::after {
  content: '';
  position: absolute;
  top: 0;
  left: -140%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 50%, transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.hx-btn-coral:hover::after {
  left: 140%;
}

.hx-btn-coral:hover {
  background: #E04848;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(240, 90, 90, 0.52), 0 6px 14px rgba(240, 90, 90, 0.28);
}

.hx-btn-coral:active {
  transform: scale(0.97);
}

/* Secondary Button */
.hx-btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-charcoal);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.02), -2px -2px 6px rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.hx-btn-secondary:hover {
  background: #F8F8F6;
  border-color: #D1D1CB;
  transform: translateY(-1.5px);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.04), -4px -4px 10px rgba(255, 255, 255, 1);
}

.hx-btn-secondary:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Realistic A4 Sheet & Crystal-Clear Handwriting Display (True A4 Ratio 1:1.4142)
   ========================================================================== */
.preview-stage {
  background: #F6F6F3;
  background-image: radial-gradient(#E8E8E2 1.1px, transparent 1.1px);
  background-size: 16px 16px;
  border-radius: 20px;
  border: 1px solid #ECECE8;
  padding: 10px 8px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 490px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.a4-page {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1.4142; /* Pure Standard ISO 216 A4: 210mm × 297mm */
  background-color: #FAFAF8;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 1px 4px rgba(0, 0, 0, 0.05), 
    0 12px 28px -4px rgba(23, 23, 23, 0.12), 
    -2px 0 0 rgba(235, 235, 230, 0.85), 
    -4px 0 0 rgba(220, 220, 215, 0.65), 
    inset 0 0 0 1px rgba(255, 255, 255, 0.95);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, max-width 0.25s ease;
  user-select: text;
  box-sizing: border-box;
}

.a4-page:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 18px 38px -6px rgba(23, 23, 23, 0.16), 
    -2px 0 0 rgba(235, 235, 230, 0.95), 
    -4px 0 0 rgba(220, 220, 215, 0.75), 
    inset 0 0 0 1px rgba(255, 255, 255, 1);
}

/* Full Paper Fit View (Shows complete A4 sheet from top to bottom) */
.preview-mode-fit .a4-page {
  max-width: 440px !important;
}

/* 100% Reading Focus View */
.preview-mode-full .a4-page {
  max-width: 470px !important;
}

/* Zoomed preview state */
.preview-sheet-zoomed .a4-page {
  max-width: 500px !important;
}

.preview-sheet-zoomed .handwriting-content {
  font-size: 23px !important;
  line-height: 34px !important;
}

/* Paper Ruled Guidelines - Clean light-gray rules + Soft red vertical margin */
.paper-line-ruled {
  background-color: #FAFAF8 !important;
  background-image: 
    linear-gradient(90deg, transparent 38px, #F87171 38px, #F87171 39.5px, transparent 39.5px),
    linear-gradient(#E2E8F0 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 32px !important;
  background-position: 0 0, 0 34px !important;
}

.paper-line-plain {
  background-color: #FFFFFF !important;
  background-image: none !important;
}

.paper-line-notebook {
  background-color: #FAFAF8 !important;
  background-image: 
    linear-gradient(90deg, transparent 42px, #F87171 42px, #F87171 43.5px, transparent 43.5px),
    linear-gradient(#E2E8F0 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 32px !important;
  background-position: 0 0, 0 34px !important;
}

.paper-line-grid {
  background-color: #FFFFFF !important;
  background-image: 
    linear-gradient(#E8E9EB 1px, transparent 1px),
    linear-gradient(90deg, #E8E9EB 1px, transparent 1px) !important;
  background-size: 20px 20px, 20px 20px !important;
}

.paper-line-dots {
  background-color: #FFFFFF !important;
  background-image: radial-gradient(#D1D5DB 1.2px, transparent 1.2px) !important;
  background-size: 20px 20px !important;
}

.paper-line-letter {
  background-color: #FFFDF7 !important;
  background-image: none !important;
}

/* 1. Vintage Parchment (Old Aged Paper) */
.paper-line-parchment {
  background-color: #F8F1E3 !important;
  background-image: 
    radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, rgba(200, 160, 110, 0.25) 100%),
    linear-gradient(90deg, transparent 46px, rgba(212, 163, 115, 0.75) 46px, rgba(212, 163, 115, 0.75) 47.5px, transparent 47.5px),
    linear-gradient(rgba(195, 160, 120, 0.35) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 100% 32px !important;
  background-position: 0 0, 0 0, 0 36px !important;
  box-shadow: 
    inset 0 0 50px rgba(130, 80, 25, 0.22),
    inset 0 0 15px rgba(100, 55, 15, 0.15),
    0 25px 50px -12px rgba(23, 23, 23, 0.14) !important;
}

/* 2. Antique Aged Manuscript (Deep Burnished Edges) */
.paper-line-aged {
  background-color: #EEDBBF !important;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255,245,225,0.25) 20%, rgba(145, 95, 45, 0.42) 100%),
    linear-gradient(90deg, transparent 46px, rgba(160, 105, 55, 0.65) 46px, rgba(160, 105, 55, 0.65) 47.5px, transparent 47.5px),
    linear-gradient(rgba(150, 100, 50, 0.32) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 100% 32px !important;
  background-position: 0 0, 0 0, 0 36px !important;
  box-shadow: 
    inset 0 0 70px rgba(100, 55, 15, 0.38),
    inset 0 0 22px rgba(80, 40, 10, 0.28),
    0 25px 50px -12px rgba(23, 23, 23, 0.14) !important;
}

/* 3. Classic Yellow Legal Pad */
.paper-line-legal {
  background-color: #FEF9C3 !important;
  background-image: 
    linear-gradient(90deg, transparent 44px, #EF4444 44px, #EF4444 45.5px, transparent 45.5px, transparent 48px, #EF4444 48px, #EF4444 49.5px, transparent 49.5px),
    linear-gradient(#93C5FD 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 32px !important;
  background-position: 0 0, 0 36px !important;
}

/* 4. Brown Kraft Recycled Paper */
.paper-line-kraft {
  background-color: #E2CFB8 !important;
  background-image: 
    radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(135, 105, 75, 0.22) 100%),
    linear-gradient(90deg, transparent 46px, rgba(140, 95, 55, 0.5) 46px, rgba(140, 95, 55, 0.5) 47.5px, transparent 47.5px),
    linear-gradient(rgba(130, 90, 50, 0.28) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 100% 32px !important;
  background-position: 0 0, 0 0, 0 36px !important;
}

/* 5. Old Plain Paper (Pure 500-year-old aged blank parchment without lines) */
.paper-line-old-plain {
  background-color: #F7EFE4 !important;
  background-image: 
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(175, 125, 65, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 15% 85%, rgba(140, 90, 40, 0.18) 0%, transparent 55%) !important;
  background-size: 100% 100% !important;
  box-shadow: 
    inset 0 0 55px rgba(120, 70, 20, 0.26),
    inset 0 0 16px rgba(90, 45, 10, 0.18),
    0 25px 50px -12px rgba(23, 23, 23, 0.14) !important;
}

/* 6. 500-Year-Old Ancient Medieval Paper */
.paper-line-ancient {
  background-color: #DEBE8E !important;
  background-image: 
    radial-gradient(circle at 20% 25%, rgba(105, 55, 15, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(85, 38, 10, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 240, 210, 0.2) 0%, transparent 60%),
    linear-gradient(90deg, transparent 46px, rgba(140, 85, 35, 0.6) 46px, rgba(140, 85, 35, 0.6) 47.5px, transparent 47.5px),
    linear-gradient(rgba(125, 75, 30, 0.35) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 32px !important;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 36px !important;
  box-shadow: 
    inset 0 0 85px rgba(60, 25, 5, 0.55),
    inset 0 0 28px rgba(80, 35, 10, 0.38),
    0 25px 50px -12px rgba(23, 23, 23, 0.18) !important;
}

/* 7. Old Faded Guidelines ("Old Line") */
.paper-line-old-lines {
  background-color: #F8F1E3 !important;
  background-image: 
    radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, rgba(200, 160, 110, 0.2) 100%),
    linear-gradient(90deg, transparent 46px, rgba(165, 105, 50, 0.55) 46px, rgba(165, 105, 50, 0.55) 47.5px, transparent 47.5px),
    linear-gradient(rgba(145, 95, 45, 0.28) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 100% 32px !important;
  background-position: 0 0, 0 0, 0 36px !important;
  box-shadow: 
    inset 0 0 45px rgba(120, 70, 20, 0.2),
    inset 0 0 12px rgba(90, 45, 10, 0.15),
    0 25px 50px -12px rgba(23, 23, 23, 0.14) !important;
}

/* 8. Ripped / Torn Paper Deckle Edges ("Pepar Fata Hua") */
.paper-torn-edges {
  clip-path: polygon(
    0% 0.5%, 2% 0%, 4.5% 0.7%, 7.5% 0.1%, 11% 0.6%, 15% 0%, 19.5% 0.5%, 24% 0.1%, 28.5% 0.7%, 33% 0.2%, 37.5% 0.6%, 42% 0%, 47% 0.5%, 51.5% 0.2%, 56% 0.8%, 61% 0.1%, 65.5% 0.6%, 70% 0.2%, 75% 0.7%, 79.5% 0%, 84% 0.5%, 88.5% 0.1%, 93% 0.8%, 97% 0.2%, 100% 0.6%,
    100% 6%, 99.1% 11%, 99.8% 17%, 98.7% 23%, 99.5% 29%, 98.6% 35%, 100% 41%, 98.9% 47%, 99.6% 53%, 98.8% 59%, 99.7% 66%, 98.6% 72%, 99.5% 78%, 98.8% 85%, 99.6% 91%, 99% 97%, 100% 100%,
    97.5% 99.3%, 93.5% 99.8%, 89% 99.1%, 84.5% 99.7%, 80% 99.2%, 75.5% 99.9%, 71% 99.3%, 66.5% 99.8%, 62% 99.1%, 57% 99.6%, 52.5% 99.2%, 48% 99.9%, 43.5% 99.3%, 39% 99.7%, 34% 99.1%, 29.5% 99.8%, 25% 99.2%, 20.5% 99.9%, 16% 99.3%, 11.5% 99.8%, 7% 99.2%, 3% 99.7%, 0% 99.4%,
    0.9% 94%, 0.2% 88%, 1.2% 82%, 0.3% 76%, 1.3% 70%, 0.1% 64%, 1.2% 58%, 0.4% 52%, 1.3% 46%, 0.2% 40%, 1.1% 34%, 0.3% 28%, 1.2% 22%, 0.1% 16%, 1% 10%, 0.2% 4%
  ) !important;
  border: none !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 20px 35px rgba(45, 25, 10, 0.28)) !important;
}

/* Aging Overlays */
.paper-age-patina {
  box-shadow: 
    inset 0 0 40px rgba(120, 70, 20, 0.18), 
    0 25px 50px -12px rgba(23, 23, 23, 0.14) !important;
}

.paper-age-antique {
  box-shadow: 
    inset 0 0 65px rgba(90, 45, 10, 0.35), 
    0 25px 50px -12px rgba(23, 23, 23, 0.14) !important;
}

.paper-age-ancient {
  box-shadow: 
    inset 0 0 85px rgba(60, 25, 5, 0.55),
    inset 0 0 30px rgba(80, 35, 10, 0.38),
    0 25px 50px -12px rgba(23, 23, 23, 0.18) !important;
}

/* 3-Hole Binder Punch Rings along left margin */
.paper-has-holes::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 18px;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at center, #E5E5E1 5.5px, rgba(0,0,0,0.2) 6.5px, transparent 7.5px),
    radial-gradient(circle at center, #E5E5E1 5.5px, rgba(0,0,0,0.2) 6.5px, transparent 7.5px),
    radial-gradient(circle at center, #E5E5E1 5.5px, rgba(0,0,0,0.2) 6.5px, transparent 7.5px);
  background-size: 18px 18px;
  background-position: 0 110px, 0 50%, 0 calc(100% - 110px);
  background-repeat: no-repeat;
  z-index: 20;
}

/* Handwriting Text Content Area */
.handwriting-content {
  width: 100%;
  box-sizing: border-box;
  outline: none;
  position: relative;
  z-index: 5;
  color: #171717;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.2px;
  font-family: 'Caveat', cursive;
  user-select: text;
  padding: 34px 22px 30px 48px;
  height: 100%;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
}

.handwriting-line {
  min-height: 1em;
  line-height: inherit;
  margin: 0;
  padding: 0;
  display: block;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
}

.handwriting-empty-line {
  min-height: 1.4em;
  line-height: 1.4em;
  margin: 0;
  padding: 0;
  display: block;
}

/* Natural Handwriting Variation simulation */
.char-wobble {
  display: inline-block;
  transform-origin: center bottom;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
}

/* Page footer / header on paper */
.a4-page-header {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 11px;
  color: #9CA3AF;
  font-family: 'Patrick Hand', cursive;
}

.a4-page-footer {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 11px;
  color: #9CA3AF;
  font-family: 'Patrick Hand', cursive;
}

/* ==========================================================================
   Liquid Glass Navbar
   ========================================================================== */
#main-navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-navbar-inner {
  pointer-events: auto;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-navbar-wrapper.nav-floating {
  padding-top: 14px;
}

#main-navbar-wrapper.nav-floating #main-navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), 
    0 12px 36px -6px rgba(23, 23, 23, 0.05),
    var(--neu-convex);
}

#main-navbar-wrapper.nav-scrolled {
  padding-top: 0;
}

#main-navbar-wrapper.nav-scrolled #main-navbar-inner {
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid rgba(229, 229, 225, 0.9);
  box-shadow: 0 4px 22px -2px rgba(23, 23, 23, 0.06);
}

/* Custom subtle scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D1D1CB;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B5B5AF;
}

/* ==========================================================================
   Full A4 Document Preview Modal Studio (Enhanced Viewport & Tactile Stage)
   ========================================================================== */
.modal-stage-canvas {
  background: #EBEBE7;
  background-image: radial-gradient(#D5D5CF 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.05);
}

#fullscreen-sheet-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

#fullscreen-sheet-content .a4-page {
  width: 100%;
  max-width: 520px !important;
  aspect-ratio: 1 / 1.4142;
  box-shadow: 
    0 25px 65px -15px rgba(23, 23, 23, 0.2), 
    0 10px 25px -5px rgba(23, 23, 23, 0.08), 
    0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, max-width 0.25s ease;
  margin: 0 auto;
}

#fullscreen-sheet-content .a4-page:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 32px 75px -15px rgba(23, 23, 23, 0.25), 
    0 12px 30px -5px rgba(23, 23, 23, 0.1) !important;
}

/* Modal Zoom Scale Variants */
#fullscreen-sheet-content.zoom-fit .a4-page {
  max-width: 440px !important;
}

#fullscreen-sheet-content.zoom-100 .a4-page {
  max-width: 520px !important;
}

#fullscreen-sheet-content.zoom-125 .a4-page {
  max-width: 620px !important;
}

#fullscreen-sheet-content.zoom-150 .a4-page {
  max-width: 720px !important;
}

/* ==========================================================================
   Rich ContentEditable Text Editor & Toolbar Styling
   ========================================================================== */
#gen-text-input:empty:before {
  content: attr(placeholder);
  color: #94A3B8;
  pointer-events: none;
  display: block;
}

#gen-text-input:focus {
  border-color: #F05A5A;
  box-shadow: 0 0 0 3px rgba(240, 90, 90, 0.12);
}

.tb-btn-active {
  background-color: #FFE8E6 !important;
  color: #F05A5A !important;
  font-weight: 700 !important;
}

#gen-text-input b, #gen-text-input strong {
  font-weight: 700;
}

#gen-text-input i, #gen-text-input em {
  font-style: italic;
}

#gen-text-input u {
  text-decoration: underline;
}

#gen-text-input h1 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0.4em 0 0.2em 0;
  line-height: 1.2;
}

#gen-text-input h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.35em 0 0.2em 0;
  line-height: 1.25;
}

#gen-text-input h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.3em 0 0.15em 0;
  line-height: 1.3;
}

#gen-text-input ul {
  list-style-type: disc;
  padding-left: 1.4rem;
  margin: 0.3em 0;
}

#gen-text-input ol {
  list-style-type: decimal;
  padding-left: 1.4rem;
  margin: 0.3em 0;
}

#gen-text-input li {
  margin: 0.15em 0;
}

/* ==========================================================================
   Mega Menu & High-Contrast Dark Navbar System
   ========================================================================== */
.mega-menu-trigger {
  position: relative;
}

.mega-menu-trigger:hover .mega-menu-panel,
.mega-menu-panel:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.mega-menu-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px) scale(0.97);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  pointer-events: none;
}

.nav-link-dark {
  color: #0F172A;
  font-weight: 700;
  transition: all 0.18s ease;
}

.nav-link-dark:hover {
  color: #F05A5A;
  background-color: rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   Liquid Glass Kit & Neumorphic Animations (High-Pop 3D Edition)
   ========================================================================== */
.liquid-glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 100%);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    12px 12px 35px rgba(15, 23, 42, 0.05), 
    -12px -12px 35px rgba(255, 255, 255, 0.95), 
    inset 0 2px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

/* Dynamic High-Pop Showcase Card (Full Width in Grid Columns & H-100px, Zero Blur) */
.tool-showcase-card {
  width: 100%;
  max-width: 100%;
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  background: #FFFFFF;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  box-shadow: 
    0 8px 20px -4px rgba(15, 23, 42, 0.05), 
    0 3px 8px -2px rgba(15, 23, 42, 0.02),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  box-sizing: border-box;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.2s ease;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Sweeping Holographic Liquid Glass Shimmer Effect */
.tool-showcase-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -200%;
  width: 160%;
  height: 220%;
  background: linear-gradient(
    65deg,
    transparent 20%,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.5) 55%,
    transparent 80%
  );
  transform: rotate(25deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 20;
}

.tool-showcase-card:hover::after {
  left: 220%;
}

/* Crisp 0-Blur Hover Elevation */
.tool-showcase-card:hover {
  transform: translateY(-6px);
}

/* Color Themed Glow POP States (100% Crisp, High Contrast, Zero Blur) */
.pop-card-emerald:hover {
  border-color: #10B981 !important;
  box-shadow: 0 20px 35px -8px rgba(16, 185, 129, 0.35), 0 8px 16px -4px rgba(16, 185, 129, 0.2) !important;
}

.pop-card-coral:hover {
  border-color: #F05A5A !important;
  box-shadow: 0 20px 35px -8px rgba(240, 90, 90, 0.38), 0 8px 16px -4px rgba(240, 90, 90, 0.22) !important;
}

.pop-card-blue:hover {
  border-color: #2563EB !important;
  box-shadow: 0 20px 35px -8px rgba(37, 99, 235, 0.35), 0 8px 16px -4px rgba(37, 99, 235, 0.2) !important;
}

.pop-card-amber:hover {
  border-color: #D97706 !important;
  box-shadow: 0 20px 35px -8px rgba(217, 119, 6, 0.35), 0 8px 16px -4px rgba(217, 119, 6, 0.2) !important;
}

.pop-card-indigo:hover {
  border-color: #4F46E5 !important;
  box-shadow: 0 20px 35px -8px rgba(79, 70, 229, 0.35), 0 8px 16px -4px rgba(79, 70, 229, 0.2) !important;
}

.pop-card-green:hover {
  border-color: #16A34A !important;
  box-shadow: 0 20px 35px -8px rgba(22, 163, 74, 0.35), 0 8px 16px -4px rgba(22, 163, 74, 0.2) !important;
}

.pop-card-rose:hover {
  border-color: #E11D48 !important;
  box-shadow: 0 20px 35px -8px rgba(225, 29, 72, 0.35), 0 8px 16px -4px rgba(225, 29, 72, 0.2) !important;
}

.pop-card-sky:hover {
  border-color: #0284C7 !important;
  box-shadow: 0 20px 35px -8px rgba(2, 132, 199, 0.35), 0 8px 16px -4px rgba(2, 132, 199, 0.2) !important;
}

.pop-card-purple:hover {
  border-color: #9333EA !important;
  box-shadow: 0 20px 35px -8px rgba(147, 51, 234, 0.35), 0 8px 16px -4px rgba(147, 51, 234, 0.2) !important;
}

.pop-card-orange:hover {
  border-color: #EA580C !important;
  box-shadow: 0 20px 35px -8px rgba(234, 88, 12, 0.35), 0 8px 16px -4px rgba(234, 88, 12, 0.2) !important;
}

.pop-card-cyan:hover {
  border-color: #0891B2 !important;
  box-shadow: 0 20px 35px -8px rgba(8, 145, 178, 0.35), 0 8px 16px -4px rgba(8, 145, 178, 0.2) !important;
}

.pop-card-teal:hover {
  border-color: #0D9488 !important;
  box-shadow: 0 20px 35px -8px rgba(13, 148, 136, 0.35), 0 8px 16px -4px rgba(13, 148, 136, 0.2) !important;
}

.pop-card-violet:hover {
  border-color: #7C3AED !important;
  box-shadow: 0 20px 35px -8px rgba(124, 58, 237, 0.35), 0 8px 16px -4px rgba(124, 58, 237, 0.2) !important;
}

.pop-card-pink:hover {
  border-color: #DB2777 !important;
  box-shadow: 0 20px 35px -8px rgba(219, 39, 119, 0.35), 0 8px 16px -4px rgba(219, 39, 119, 0.2) !important;
}

/* 3D Pop Icon Badges with Neumorphic Double Bevel */
.neu-pop-icon {
  box-shadow: 0 8px 18px -2px rgba(0, 0, 0, 0.15), inset 0 2px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  transform: translateZ(0);
}

.tool-showcase-card:hover .neu-pop-icon {
  transform: scale(1.1) rotate(-4deg);
}

/* Mini Floating Card: Exactly Width 100px, Height 30px, Zero Blur */
@keyframes floatMiniBadge {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

.floating-3d-art {
  width: 100px !important;
  height: 30px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  animation: floatMiniBadge 3.5s ease-in-out infinite alternate;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  filter: none !important;
}

.tool-showcase-card:hover .floating-3d-art {
  transform: translateY(-2px);
}

/* Neumorphic Liquid Glass Filter Pill */
.liquid-glass-pill {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.03), -4px -4px 12px rgba(255, 255, 255, 0.95);
  transition: all 0.2s ease;
}

.liquid-glass-pill:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

/* Pulsing Circle Action Button on Card */
.pop-circle-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateZ(0);
}

.tool-showcase-card:hover .pop-circle-btn {
  transform: scale(1.1) translateX(2px);
}



