/* ==========================================================================
   HPengg Services - Master Ultraviolet Glassmorphism UI Theme
   Ref: Vibrant Ultraviolet Canvas, Floating 3D Layered Ribbed Orbs, 
   Silky Frosted Glass Cards, Pill Inputs & Capsule Badges
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Canvas Background - Deep Vibrant Ultraviolet / Violet Gradient */
  --bg-primary: #5925c4;
  --bg-secondary: #4a1bb3;
  --bg-dark: #37108f;
  
  /* Silky Frosted Glass Surfaces */
  --glass-card: rgba(255, 255, 255, 0.12);
  --glass-card-hover: rgba(255, 255, 255, 0.18);
  --glass-inner: rgba(255, 255, 255, 0.08);
  --glass-nav: rgba(74, 27, 179, 0.65);
  --glass-input: rgba(255, 255, 255, 0.13);
  --glass-pill: rgba(255, 255, 255, 0.16);

  /* Glass Borders & Reflective Highlights */
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-light: rgba(255, 255, 255, 0.45);
  --glass-border-highlight: rgba(244, 114, 182, 0.6);
  --glass-border-cyan: rgba(56, 189, 248, 0.5);

  /* Shadows & Insets matching 3D Soft Lighting */
  --glass-shadow: 0 20px 50px -10px rgba(35, 10, 85, 0.45);
  --glass-shadow-lg: 0 30px 70px -12px rgba(25, 6, 65, 0.6);
  --glass-inset: inset 0 1.5px 2px rgba(255, 255, 255, 0.4), inset 0 -1px 2px rgba(0, 0, 0, 0.15);

  /* Accents from Reference Image */
  --accent-purple: #8b5cf6;
  --accent-purple-deep: #6d28d9;
  --accent-pink: #f472b6;
  --accent-pink-deep: #ec4899;
  --accent-pink-glow: rgba(244, 114, 182, 0.45);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.4);
  --accent-amber: #fbbf24;
  --accent-emerald: #34d399;
  --accent-rose: #f43f5e;

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #e9d5ff;
  --text-muted: #c4b5fd;
  --text-dark: #2e1065;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #4f1db4 0%, #682cd6 35%, #7e3af2 70%, #5218b8 100%);
  background-attachment: fixed;
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, #4f1db4 0%, #682cd6 35%, #7e3af2 70%, #5218b8 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  position: relative;
}

/* Ambient 3D Glowing Dust & Spheres in Background */
body::before {
  content: "";
  position: fixed;
  top: -15%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(236, 72, 153, 0.2) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  bottom: -15%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(124, 58, 237, 0.3) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(100px);
  z-index: -2;
  pointer-events: none;
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8%, 10%) scale(1.15); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, -8%) scale(1.12); }
}

/* Subtle Star Sparkles / Particle Dust Overlay */
.blueprint-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 80px 80px, 160px 160px;
  background-position: 0 0, 40px 40px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Typography & Display Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* ==========================================================================
   3D DECORATIVE VISUAL ELEMENTS (REF IMAGE REPLICA)
   ========================================================================== */
.hero-3d-scene {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Layered Ribbed Concentric Orb (Pink & Violet Bands) */
.orb-3d-concentric {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f9a8d4 0%, #ec4899 45%, #831843 100%);
  position: relative;
  box-shadow: 
    0 30px 60px rgba(45, 10, 95, 0.6),
    inset 0 10px 20px rgba(255, 255, 255, 0.5),
    inset 0 -15px 30px rgba(0, 0, 0, 0.4);
  animation: floatOrbSlow 6s ease-in-out infinite alternate;
}

.orb-ring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 3px 6px rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}
.orb-ring-1 { top: 12%; width: 90px; height: 26px; }
.orb-ring-2 { top: 26%; width: 170px; height: 38px; }
.orb-ring-3 { top: 44%; width: 230px; height: 46px; }
.orb-ring-4 { top: 64%; width: 200px; height: 42px; }
.orb-ring-5 { top: 82%; width: 130px; height: 32px; }

/* 3D Cyan Spiral Ribbon (Top-Left) */
.spiral-3d-cyan {
  position: absolute;
  top: 10px;
  left: 15px;
  width: 120px;
  height: 120px;
  animation: floatSpiral 8s ease-in-out infinite alternate;
}

/* 3D Bottom Left Ribbon Orb */
.spiral-3d-bottom {
  position: absolute;
  bottom: 10px;
  left: 20px;
  width: 110px;
  height: 110px;
  animation: floatSpiral2 7s ease-in-out infinite alternate;
}

/* ==========================================================================
   HPENGG HOLOGRAPHIC CIVIL & 3D ANIMATION HERO BANNER
   ========================================================================== */
.hp-engg-anim-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 20px 40px rgba(35, 10, 80, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 0 35px rgba(236, 72, 153, 0.2);
  overflow: hidden;
  transition: all 0.4s ease;
}

.hp-engg-anim-card:hover {
  border-color: rgba(244, 114, 182, 0.6);
  box-shadow: 
    0 25px 50px rgba(35, 10, 80, 0.55),
    inset 0 1px 3px rgba(255, 255, 255, 0.6),
    0 0 45px rgba(236, 72, 153, 0.35);
}

.hp-engg-anim-canvas {
  width: 100%;
  height: 160px;
  display: block;
}

/* Glowing Neon Shimmer Text */
.hp-engg-brand-glitch {
  background: linear-gradient(90deg, #ffffff 0%, #f472b6 25%, #38bdf8 50%, #c084fc 75%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: enggTextShimmer 4s linear infinite;
  text-shadow: 0 0 20px rgba(244, 114, 182, 0.6);
}

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

/* Laser Scan Line Sweep */
.hp-engg-scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), rgba(236, 72, 153, 0.9), transparent);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.9), 0 0 25px rgba(236, 72, 153, 0.8);
  animation: scanBeamMove 3.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes scanBeamMove {
  0% { top: 0%; opacity: 0.2; }
  50% { opacity: 0.9; }
  100% { top: 100%; opacity: 0.3; }
}

/* Radar Pulse Ring */
.hp-engg-radar-pulse {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  animation: radarRingExpand 3s ease-out infinite;
  pointer-events: none;
}

@keyframes radarRingExpand {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes floatOrbSlow {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(4deg); }
}

@keyframes floatSpiral {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(-15px) rotate(-8deg) scale(1.05); }
}

@keyframes floatSpiral2 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(12px) rotate(10deg); }
}

/* ==========================================================================
   MASTER GLASSMORPHISM CARD & CONTAINER CLASSES
   ========================================================================== */
.hp-card {
  background: var(--glass-card);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 220%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: all 0.6s ease;
}

.hp-card:hover {
  background: var(--glass-card-hover);
  border-color: var(--glass-border-highlight);
  box-shadow: var(--glass-shadow-lg), 0 0 25px rgba(244, 114, 182, 0.25), var(--glass-inset);
  transform: translateY(-3px);
}

.hp-card:hover::before {
  left: 100%;
}

/* ==========================================================================
   PILL CAPSULE INPUT CONTAINER (REF IMAGE EXACT STYLE)
   ========================================================================== */
.hp-pill-box {
  display: flex;
  align-items: center;
  background: var(--glass-pill);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border-light);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-pill);
  padding: 5px 6px 5px 18px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  transition: all 0.3s ease;
}

.hp-pill-box:focus-within {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.3), var(--glass-inset);
  background: rgba(255, 255, 255, 0.22);
}

.hp-pill-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  flex: 1;
}

.hp-pill-box input::placeholder {
  color: rgba(233, 213, 255, 0.7);
}

/* ==========================================================================
   GLASS BUTTONS
   ========================================================================== */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

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

/* Primary Action Button (Ref Style: Frosted Indigo / Violet with crisp white text) */
.hp-btn-cyan, .hp-btn-primary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(91, 33, 182, 0.95));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 25px -4px rgba(124, 58, 237, 0.5), var(--glass-inset);
}

.hp-btn-cyan:hover, .hp-btn-primary:hover {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 14px 30px -2px rgba(139, 92, 246, 0.65), var(--glass-inset);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Pink / Rose Glow Button */
.hp-btn-amber, .hp-btn-pink {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 25px -4px rgba(236, 72, 153, 0.5), var(--glass-inset);
}

.hp-btn-amber:hover, .hp-btn-pink:hover {
  background: linear-gradient(135deg, #f472b6, #fb7185);
  box-shadow: 0 14px 32px -2px rgba(244, 114, 182, 0.7), var(--glass-inset);
  transform: translateY(-2px);
  color: #ffffff;
}

.hp-btn-emerald {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.9), rgba(16, 185, 129, 0.95));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px -4px rgba(16, 185, 129, 0.45), var(--glass-inset);
}

.hp-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border-light);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  box-shadow: var(--glass-inset);
}

.hp-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), var(--glass-inset);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   FROSTED GLASS BADGES
   ========================================================================== */
.hp-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-inset);
}

.hp-badge-cyan {
  background: rgba(56, 189, 248, 0.2);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.hp-badge-amber, .hp-badge-pink {
  background: rgba(244, 114, 182, 0.22);
  color: #fce7f3;
  border: 1px solid rgba(244, 114, 182, 0.5);
}

.hp-badge-emerald {
  background: rgba(52, 211, 153, 0.2);
  color: #d1fae5;
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.hp-badge-rose {
  background: rgba(244, 63, 94, 0.22);
  color: #ffe4e6;
  border: 1px solid rgba(244, 63, 94, 0.45);
}

.admin-nav-item.active {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(168, 85, 247, 0.3));
  border-color: var(--accent-pink);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(244, 114, 182, 0.35);
}

/* ==========================================================================
   FROSTED GLASS BLOG & EDITORIAL INSIGHTS STYLES
   ========================================================================== */
.hp-blog-card {
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px -10px rgba(35, 10, 85, 0.4), var(--glass-inset);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hp-blog-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  transition: all 0.4s ease;
}

.hp-blog-card:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(244, 114, 182, 0.7);
  box-shadow: 0 30px 60px -10px rgba(35, 10, 85, 0.55), 0 0 30px rgba(244, 114, 182, 0.35), var(--glass-inset);
  transform: translateY(-6px);
}

.hp-blog-card:hover::after {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.4) 0%, transparent 70%);
}

.hp-blog-thumb-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.hp-glass-pill-tag {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.hp-glass-modal-backdrop {
  background: rgba(46, 16, 101, 0.65);
  backdrop-filter: blur(36px) saturate(210%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.hp-input, .hp-select {
  width: 100%;
  background: var(--glass-input);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), var(--glass-inset);
  transition: all 0.25s ease;
}

.hp-input::placeholder {
  color: rgba(233, 213, 255, 0.6);
}

.hp-input:focus, .hp-select:focus {
  border-color: var(--accent-pink);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hp-select option {
  background: #4c1d95;
  color: #ffffff;
}

/* Custom Glass Sliders */
.hp-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.9), 0 0 0 2px rgba(255, 255, 255, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hp-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 20px rgba(244, 114, 182, 1), 0 0 0 3px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   GLASS TABLES
   ========================================================================== */
.hp-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.hp-table th {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.hp-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hp-table tbody tr {
  transition: background 0.2s ease;
}

.hp-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   NAVBAR & SIDEBAR GLASS BLUR
   ========================================================================== */
.top-nav-blur {
  background: var(--glass-nav);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(35, 10, 80, 0.35);
}

.calc-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.calc-sidebar::-webkit-scrollbar {
  width: 5px;
}
.calc-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

/* Admin Scoped Navigation Items */
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.admin-nav-item.active-nav {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35), var(--glass-inset);
}

.hidden-nav-item {
  display: none !important;
}

/* ==========================================================================
   GLASS MODAL OVERLAY
   ========================================================================== */
.hp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(46, 16, 101, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hp-modal-backdrop.hidden,
.hp-modal-backdrop[hidden] {
  display: none !important;
}

/* Flash Offer Modal Pop-up Engine */
#flash-offer-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#flash-offer-modal.active-modal {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#flash-offer-modal:not(.active-modal) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-toast {
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(79, 29, 180, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-shadow-lg);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hp-toast.success { border-left: 4px solid var(--accent-emerald); }
.hp-toast.info { border-left: 4px solid var(--accent-cyan); }
.hp-toast.warning { border-left: 4px solid var(--accent-pink); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Blueprint Grid Background */
.bg-grid-pattern {
  background-size: 24px 24px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* High-Impact Feature Highlight Card (Instantly Catch User Eye) */
.hp-feature-highlight-card {
  position: relative;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.28) 0%, rgba(124, 58, 237, 0.38) 50%, rgba(56, 189, 248, 0.25) 100%) !important;
  border: 1.5px solid rgba(244, 114, 182, 0.75) !important;
  box-shadow: 0 10px 30px -5px rgba(236, 72, 153, 0.35), 0 0 18px 2px rgba(236, 72, 153, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transform: scale(1.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.hp-feature-highlight-card:hover {
  transform: scale(1.035) translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(236, 72, 153, 0.5), 0 0 25px 3px rgba(56, 189, 248, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
}

.hp-feature-highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #ec4899, #c084fc, #38bdf8);
  border-radius: 4px 0 0 4px;
}

/* Hidden Navigation Item Utility for Role Scoping */
.hidden-nav-item {
  display: none !important;
}

/* Print Optimization */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  body::before, body::after, .blueprint-grid-overlay {
    display: none !important;
  }
  .no-print, header, footer, #toast-container, .calc-sidebar, #admin-client-switcher-container {
    display: none !important;
  }
  .hp-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* ==========================================================================
   PASSWORD REVEAL & EYE TOGGLE ANIMATIONS
   ========================================================================== */
.auth-pw-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fbcfe8;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
  z-index: 10;
}

.auth-pw-toggle-btn:hover {
  background: rgba(244, 114, 182, 0.25);
  border-color: rgba(244, 114, 182, 0.7);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.auth-pw-toggle-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.auth-pw-toggle-btn.is-active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.5), rgba(168, 85, 247, 0.5));
  border-color: rgba(244, 114, 182, 0.9);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.auth-pw-toggle-btn .eye-icon-svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-pw-toggle-btn:hover .eye-icon-svg {
  transform: scale(1.18) rotate(6deg);
}

/* Password Reveal Animation on Input */
@keyframes pwRevealGlow {
  0% {
    filter: blur(4px);
    letter-spacing: 0.2em;
    box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.7);
  }
  50% {
    filter: blur(1px);
    letter-spacing: 0.08em;
    box-shadow: 0 0 22px 5px rgba(244, 114, 182, 0.65), inset 0 0 10px rgba(236, 72, 153, 0.3);
  }
  100% {
    filter: blur(0);
    letter-spacing: normal;
    box-shadow: 0 0 14px 2px rgba(244, 114, 182, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.2);
  }
}

@keyframes pwHideGlow {
  0% {
    filter: blur(2px);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
  }
  100% {
    filter: blur(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), var(--glass-inset);
  }
}

.pw-anim-reveal {
  animation: pwRevealGlow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

.pw-anim-hide {
  animation: pwHideGlow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

/* Eye pop keyframe */
@keyframes eyePop {
  0% { transform: scale(0.6) rotate(-25deg); opacity: 0.6; }
  60% { transform: scale(1.3) rotate(12deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.eye-pop {
  animation: eyePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ==========================================================================
   FLASH OFFER POP-UP & FLASHING BADGE ANIMATIONS
   ========================================================================== */
@keyframes flashPulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.75), 0 0 32px rgba(236, 72, 153, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.7);
    border-color: #f472b6;
    color: #ffffff;
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.95), 0 0 50px rgba(244, 63, 94, 0.9), inset 0 0 18px rgba(255, 255, 255, 0.95);
    border-color: #fbbf24;
    color: #fef08a;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.75), 0 0 32px rgba(236, 72, 153, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.7);
    border-color: #f472b6;
    color: #ffffff;
  }
}

@keyframes flashNeonText {
  0%, 100% {
    text-shadow: 0 0 10px rgba(244, 114, 182, 0.9), 0 0 20px rgba(236, 72, 153, 0.7);
  }
  50% {
    text-shadow: 0 0 16px rgba(251, 191, 36, 1), 0 0 30px rgba(244, 63, 94, 0.95);
  }
}

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

.flash-badge-animated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.825rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(168, 85, 247, 0.95), rgba(245, 158, 11, 0.95));
  background-size: 200% 200%;
  border: 2px solid #f472b6;
  animation: flashPulseGlow 1.4s ease-in-out infinite, flashOfferShimmer 3s ease infinite;
}

.flash-badge-static {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.825rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.9), rgba(168, 85, 247, 0.9));
  border: 2px solid #f472b6;
  color: #ffffff;
}

.flash-neon-text {
  animation: flashNeonText 1.4s ease-in-out infinite;
}

.offer-card-animate {
  animation: offerModalPop 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes offerModalPop {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(25px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.floating-offer-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-offer-pill:hover {
  transform: translateY(-4px) scale(1.04);
}

/* ==========================================================================
   Website Packages & Offer Showcase Styles
   ========================================================================== */

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(244, 114, 182, 0.4);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  color: #ffffff;
  border-color: #f472b6;
  box-shadow: 0 4px 15px -3px rgba(236, 72, 153, 0.45);
  font-weight: 700;
  transform: translateY(-1.5px) scale(1.02);
}

.web-package-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.web-package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(236, 72, 153, 0.25), 0 0 0 1px rgba(244, 114, 182, 0.4);
}

.price-strike-tag {
  position: relative;
  display: inline-block;
  color: #c4b5fd;
  text-decoration: line-through;
  text-decoration-color: #f43f5e;
  text-decoration-thickness: 2.5px;
}

.price-glow-badge {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(244, 114, 182, 0.5);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
  animation: voucherCardGlow 2.5s ease-in-out infinite alternate;
}

@keyframes voucherCardGlow {
  0% {
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.25);
    border-color: rgba(244, 114, 182, 0.4);
  }
  100% {
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.4), 0 0 15px rgba(236, 72, 153, 0.5);
    border-color: rgba(56, 189, 248, 0.6);
  }
}

.celebration-pop {
  animation: celebrationPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes celebrationPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hide floating badge when popup modal is active or inside admin */
#flash-offer-modal.active-modal ~ #floating-offer-badge,
#flash-offer-modal.active-modal + #floating-offer-badge,
.modal-active #floating-offer-badge {
  display: none !important;
}
