/* Bienestar Pro - Premium Portal Layout (Institutional Subtle Muted Colors) */

:root {
  --bnst-pro-bg-grad: linear-gradient(135deg, #E2D5DB 0%, #F2E7EC 50%, #DBCACF 100%);
  --bnst-pro-card-bg: rgba(255, 255, 255, 0.8);
  --bnst-pro-card-border: rgba(122, 0, 38, 0.12);
  --bnst-pro-card-border-hover: rgba(122, 0, 38, 0.5);
  
  --bnst-pro-text-primary: #1D1D1F;
  --bnst-pro-text-secondary: #3A3A3C;
  --bnst-pro-text-muted: #6E6E73;
  
  --inst-guinda: #7A0026;
  --inst-guinda-glow: rgba(122, 0, 38, 0.22);
  --inst-guinda-dark: #5E001D;
  --inst-gold: #D4AF37;
  --inst-gold-glow: rgba(212, 175, 55, 0.25);
  --inst-soft-pink: #FAF1F4;
  --inst-guinda-tint: #FCE6EC;
  
  --radius-pro-lg: 20px;
  --radius-pro-md: 14px;
}

/* Page wrapper */
.bnst-pro-page {
  min-height: 100vh;
  position: relative;
  background: var(--bnst-pro-bg-grad);
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--bnst-pro-text-primary);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Canvas Particles */
.bnst-pro-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Top bar style */
.bnst-pro-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(242, 231, 236, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(122, 0, 38, 0.12);
}

.bnst-pro-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.bnst-pro-logo:hover {
  transform: scale(1.02);
}

.bnst-pro-logo svg {
  height: 42px;
  width: auto;
  display: block;
}

.bnst-pro-topnav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bnst-pro-topnav a {
  color: var(--bnst-pro-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-pro-md);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bnst-pro-topnav a:hover {
  color: var(--inst-guinda);
  background: rgba(122, 0, 38, 0.08);
}

.bnst-pro-topnav .bnst-pro-cta-mini {
  background: linear-gradient(135deg, var(--inst-guinda) 0%, var(--inst-guinda-dark) 100%);
  color: #fff;
  border: 1px solid rgba(122, 0, 38, 0.2);
  box-shadow: 0 4px 12px var(--inst-guinda-glow);
}

.bnst-pro-topnav .bnst-pro-cta-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(122, 0, 38, 0.35);
  color: #fff;
}

/* Hero section */
.bnst-pro-hero {
  position: relative;
  z-index: 5;
  padding: 60px 48px 40px;
}

.bnst-pro-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.bnst-pro-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--inst-guinda);
  padding: 6px 14px;
  border: 1.5px solid var(--inst-guinda);
  border-radius: 999px;
  background: rgba(122, 0, 38, 0.08);
  box-shadow: 0 0 10px rgba(122, 0, 38, 0.05);
  margin-bottom: 20px;
}

.bnst-pro-hero h1 {
  margin: 0 0 16px;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--inst-guinda-dark);
}

.bnst-pro-hero p {
  margin: 0;
  color: var(--bnst-pro-text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 600px;
}

/* Hero SVG Animation (behaves like dynamic GIF) */
.hero-interactive-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(122, 0, 38, 0.12));
}

/* --- Blueprint & Construction Crane SVG Animations --- */

/* Blueprint drawing path line effects */
.blueprint-draw-path polygon,
.blueprint-draw-path-delay polygon,
.blueprint-draw-path-delay path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: blueprintDraw 5s cubic-bezier(0.4, 0, 0.2, 1) forwards infinite;
}

.blueprint-draw-path-delay polygon,
.blueprint-draw-path-delay path {
  animation-delay: 1.5s;
}

@keyframes blueprintDraw {
  0% { stroke-dashoffset: 400; }
  45%, 100% { stroke-dashoffset: 0; }
}

/* Crane hook & block vertical oscillation */
.hoist-cable-group {
  animation: hoistCable 3.5s ease-in-out infinite alternate;
}

@keyframes hoistCable {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-20px);
  }
}

/* Crane Boom / Jib rotation sway */
.crane-jib-group {
  transform-origin: 330px 80px;
  animation: craneSway 8s ease-in-out infinite alternate;
}

@keyframes craneSway {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-10deg);
  }
}

/* Compass tool movement */
.compass-draw-tool {
  transform-origin: 110px 50px;
  animation: compassDraft 6s ease-in-out infinite;
}

@keyframes compassDraft {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  50% {
    transform: rotate(-12deg) translate(-10px, 5px);
  }
}

/* Pulse effect for construction nodes */
.blueprint-glow-node {
  transform-origin: center;
  animation: nodePulsePro 2s ease-in-out infinite;
}

@keyframes nodePulsePro {
  0%, 100% {
    r: 4px;
    opacity: 0.6;
  }
  50% {
    r: 6px;
    opacity: 1;
  }
}

/* Grid of Cards */
.bnst-pro-main {
  position: relative;
  z-index: 5;
  flex: 1;
  padding: 20px 48px 60px;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.bnst-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .bnst-pro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bnst-pro-grid {
    grid-template-columns: 1fr;
  }
}


/* Card glassmorphism style */
.bnst-pro-card {
  position: relative;
  background: var(--bnst-pro-card-bg);
  border: 1px solid var(--bnst-pro-card-border);
  border-radius: var(--radius-pro-lg);
  padding: 28px 24px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 25px rgba(122, 0, 38, 0.06);
}

/* Follow-cursor radial glow background */
.bnst-pro-card-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(122, 0, 38, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.bnst-pro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pro-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(122, 0, 38, 0.15) 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  transition: background 0.3s ease;
}

.bnst-pro-card:hover {
  transform: translateY(-8px);
  border-color: var(--bnst-pro-card-border-hover);
  background: #FFFFFF;
  box-shadow: 
    0 14px 35px rgba(122, 0, 38, 0.12),
    0 0 20px rgba(122, 0, 38, 0.05);
}

.bnst-pro-card:hover::before {
  background: linear-gradient(135deg, var(--inst-guinda) 0%, var(--inst-gold) 100%);
}

.bnst-pro-card-icon {
  position: relative;
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-pro-md);
  background: var(--inst-soft-pink);
  color: var(--inst-guinda);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 6px rgba(122, 0, 38, 0.1);
}

.bnst-pro-card:hover .bnst-pro-card-icon {
  background: var(--inst-guinda);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(122, 0, 38, 0.3);
  transform: scale(1.05);
}

/* Custom keyframes animation on hover of cards depending on data-scope */
.bnst-pro-card[data-scope="ubicacion"]:hover .bnst-pro-card-icon i {
  animation: pulseTarget 1.2s infinite ease-in-out;
}
.bnst-pro-card[data-scope="anteproyecto"]:hover .bnst-pro-card-icon i {
  animation: floatRotate 2s infinite ease-in-out;
}
.bnst-pro-card[data-scope="patrimonial"]:hover .bnst-pro-card-icon i {
  animation: bankShake 0.6s infinite ease-in-out;
}
.bnst-pro-card[data-scope="enlaces_ruv"]:hover .bnst-pro-card-icon i {
  animation: linkConnect 1s infinite alternate ease-in-out;
}
.bnst-pro-card[data-scope="fase2"]:hover .bnst-pro-card-icon i {
  animation: paintBrush 1.5s infinite ease-in-out;
}
.bnst-pro-card[data-scope="seguimiento"]:hover .bnst-pro-card-icon i {
  animation: trendGrowth 1.5s infinite ease-in-out;
}
.bnst-pro-card[data-scope="obra_inco"]:hover .bnst-pro-card-icon i {
  animation: coinBounce 0.8s infinite alternate ease-in-out;
}
.bnst-pro-card[data-scope="seguimiento_general"]:hover .bnst-pro-card-icon i {
  animation: pulseRadar 1.5s infinite linear;
}

@keyframes pulseTarget {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); filter: drop-shadow(0 0 4px #fff); }
}

@keyframes floatRotate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(15deg); }
}

@keyframes bankShake {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(-8deg); }
  40%, 80% { transform: rotate(8deg); }
}

@keyframes linkConnect {
  0% { transform: scale(0.9) rotate(0deg); }
  100% { transform: scale(1.15) rotate(45deg); }
}

@keyframes paintBrush {
  0%, 100% { transform: rotate(0deg) translate(0, 0); }
  33% { transform: rotate(10deg) translate(2px, -2px); }
  66% { transform: rotate(-10deg) translate(-2px, 2px); }
}

@keyframes trendGrowth {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.1) translateY(-4px); }
}

@keyframes coinBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

@keyframes pulseRadar {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0.5; }
}

/* Card titles and details */
.bnst-pro-card h2 {
  position: relative;
  z-index: 3;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--inst-guinda-dark);
  line-height: 1.3;
}

.bnst-pro-card p {
  position: relative;
  z-index: 3;
  margin: 0;
  color: var(--bnst-pro-text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.bnst-pro-card-cta {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--inst-guinda);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 8px;
}

.bnst-pro-card-cta i {
  font-size: 1.25rem;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bnst-pro-card:hover .bnst-pro-card-cta i {
  transform: translateX(6px);
}

.bnst-pro-card:hover .bnst-pro-card-cta {
  color: var(--inst-gold);
}

/* Specific card styles (different glow themes) */
.bnst-pro-card[data-scope="ubicacion"] {
  --bnst-pro-card-border-hover: rgba(212, 175, 55, 0.5);
}
.bnst-pro-card[data-scope="ubicacion"] .bnst-pro-card-icon {
  background: var(--inst-soft-pink);
  color: var(--inst-gold);
  box-shadow: inset 0 0 6px rgba(212, 175, 55, 0.15);
}
.bnst-pro-card[data-scope="ubicacion"] .bnst-pro-card-glow {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
}
.bnst-pro-card[data-scope="ubicacion"]:hover .bnst-pro-card-icon {
  background: var(--inst-gold);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.bnst-pro-card[data-scope="enlaces_ruv"] {
  --bnst-pro-card-border-hover: rgba(122, 0, 38, 0.45);
}
.bnst-pro-card[data-scope="enlaces_ruv"] .bnst-pro-card-icon {
  background: var(--inst-soft-pink);
  color: var(--inst-guinda);
  box-shadow: inset 0 0 6px rgba(122, 0, 38, 0.1);
}
.bnst-pro-card[data-scope="enlaces_ruv"] .bnst-pro-card-glow {
  background: radial-gradient(circle, rgba(122, 0, 38, 0.08) 0%, transparent 70%);
}
.bnst-pro-card[data-scope="enlaces_ruv"]:hover .bnst-pro-card-icon {
  background: var(--inst-guinda);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(122, 0, 38, 0.3);
}

/* Footer Style */
.bnst-pro-foot {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(122, 0, 38, 0.12);
  padding: 24px 48px;
  background: rgba(226, 213, 219, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--bnst-pro-text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

.bnst-pro-foot a {
  color: var(--inst-guinda);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bnst-pro-foot a:hover {
  text-decoration: underline;
  color: var(--inst-guinda-dark);
}

/* Responsive UI tweaks */
@media (max-width: 768px) {
  .bnst-pro-topbar {
    padding: 16px 24px;
  }
  .bnst-pro-hero {
    padding: 40px 24px 20px;
  }
  .bnst-pro-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .bnst-pro-hero p {
    margin: 0 auto;
  }
  .hero-interactive-svg {
    margin: 0 auto;
    max-width: 280px;
  }
  .bnst-pro-main {
    padding: 20px 24px 40px;
  }
  .bnst-pro-foot {
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
    text-align: center;
  }
}

/* ────────────────────────────────────────────────────────── */
/* Modal Glassmorphism implementation based on standard CSS  */
/* Using allow-discrete, overlay, and @starting-style       */
/* ────────────────────────────────────────────────────────── */

.bnst-pro-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bnst-pro-modal[hidden] {
  display: none;
}

.bnst-pro-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 31, 0.5);
  backdrop-filter: blur(8px);
}

.bnst-pro-modal-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(122, 0, 38, 0.15);
  border-radius: var(--radius-pro-lg);
  padding: 40px 36px 36px;
  max-width: 520px;
  width: 100%;
  box-shadow: 
    0 20px 60px rgba(29, 29, 31, 0.2),
    0 0 30px rgba(122, 0, 38, 0.05);
  text-align: center;
}

/* Glowing Top Line on Modal */
.bnst-pro-modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--inst-guinda), transparent);
  border-radius: 99px;
  filter: drop-shadow(0 0 4px var(--inst-guinda-glow));
}

.bnst-pro-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.03);
  color: var(--bnst-pro-text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.bnst-pro-modal-close:hover {
  background: var(--inst-soft-pink);
  color: var(--inst-guinda);
  transform: rotate(90deg);
}

.bnst-pro-modal-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  margin: 0 auto 18px;
  background: var(--inst-soft-pink);
  color: var(--inst-guinda);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: inset 0 0 10px rgba(122, 0, 38, 0.1);
  animation: modalIconPulse 2.5s infinite alternate ease-in-out;
}

@keyframes modalIconPulse {
  to {
    transform: translateY(-4px);
    box-shadow: 
      inset 0 0 10px rgba(122, 0, 38, 0.1),
      0 4px 12px rgba(122, 0, 38, 0.15);
  }
}

.bnst-pro-modal-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--inst-guinda-dark);
  letter-spacing: -0.01em;
}

.bnst-pro-modal-card > p {
  margin: 0 0 28px;
  color: var(--bnst-pro-text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.bnst-pro-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.bnst-pro-modal-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-pro-md);
  border: 1px solid rgba(122, 0, 38, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--bnst-pro-text-primary);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bnst-pro-modal-btn:hover {
  border-color: rgba(122, 0, 38, 0.25);
  background: var(--inst-soft-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(122, 0, 38, 0.05);
}

.bnst-pro-modal-btn i {
  font-size: 1.5rem;
  color: var(--inst-guinda);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.bnst-pro-modal-btn:hover i {
  transform: scale(1.15);
}

.bnst-pro-modal-btn strong {
  display: block;
  font-size: 1.05rem;
  color: var(--inst-guinda-dark);
  font-weight: 600;
}

.bnst-pro-modal-btn small {
  display: block;
  font-size: 0.85rem;
  color: var(--bnst-pro-text-secondary);
  margin-top: 2px;
}

/* Primary highlighted modal action button */
.bnst-pro-modal-btn--primary {
  border-color: rgba(122, 0, 38, 0.2);
  background: linear-gradient(135deg, var(--inst-guinda) 0%, var(--inst-guinda-dark) 100%);
  box-shadow: 0 4px 12px var(--inst-guinda-glow);
}

.bnst-pro-modal-btn--primary i,
.bnst-pro-modal-btn--primary strong {
  color: #FFFFFF;
}

.bnst-pro-modal-btn--primary small {
  color: rgba(255, 255, 255, 0.85);
}

.bnst-pro-modal-btn--primary:hover {
  border-color: rgba(122, 0, 38, 0.3);
  background: linear-gradient(135deg, var(--inst-guinda-dark) 0%, var(--inst-guinda) 100%);
  box-shadow: 0 6px 18px rgba(122, 0, 38, 0.35);
}

.bnst-pro-modal-btn--primary:hover i {
  color: #FFFFFF;
}

/* Modern CSS top-layer animation support */
@supports (transition-behavior: allow-discrete) {
  .bnst-pro-modal {
    transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete;
  }
  
  .bnst-pro-modal-backdrop {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .bnst-pro-modal-card {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  /* Triggered when hidden = false is set */
  .bnst-pro-modal:not([hidden]) {
    .bnst-pro-modal-backdrop {
      opacity: 1;
    }
    
    .bnst-pro-modal-card {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
    
    @starting-style {
      .bnst-pro-modal-backdrop {
        opacity: 0;
      }
      .bnst-pro-modal-card {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
      }
    }
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .bnst-pro-page,
  .bnst-pro-card,
  .bnst-pro-modal-backdrop,
  .bnst-pro-modal-card,
  .bnst-pro-modal-btn,
  .network-path-anim,
  .pulse-node,
  .pulse-node-cyan {
    animation: none !important;
    transition: none !important;
  }
  .bnst-pro-canvas {
    display: none !important;
  }
}

/* ────────────────────────────────────────────────────────── */
/* Dashboard Section Styling                                  */
/* ────────────────────────────────────────────────────────── */
.bnst-pro-dashboard-section {
  margin-top: 48px;
  width: 100%;
}

.bnst-pro-dashboard-card {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(122, 0, 38, 0.12);
  border-radius: var(--radius-pro-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(122, 0, 38, 0.06);
  transition: all 0.3s ease;
}

.bnst-pro-dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pro-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(122, 0, 38, 0.15) 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  transition: background 0.3s ease;
}

.bnst-pro-dashboard-card:hover {
  border-color: rgba(122, 0, 38, 0.5);
  background: #FFFFFF;
  box-shadow: 
    0 14px 35px rgba(122, 0, 38, 0.12),
    0 0 20px rgba(122, 0, 38, 0.05);
}

.bnst-pro-dashboard-card:hover::before {
  background: linear-gradient(135deg, var(--inst-guinda) 0%, var(--inst-gold) 100%);
}

.dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 3;
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inst-guinda);
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(122, 0, 38, 0.08);
  width: fit-content;
}

.bnst-pro-dashboard-card h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--inst-guinda-dark);
  letter-spacing: -0.02em;
}

.bnst-pro-dashboard-card p {
  margin: 0;
  color: var(--bnst-pro-text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Premium Dashboard Button */
.bnst-pro-dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-pro-md);
  background: linear-gradient(135deg, var(--inst-guinda) 0%, var(--inst-guinda-dark) 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  width: fit-content;
  border: 1px solid rgba(122, 0, 38, 0.2);
  box-shadow: 0 4px 15px var(--inst-guinda-glow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bnst-pro-dashboard-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 0, 38, 0.45);
  background: linear-gradient(135deg, var(--inst-guinda-dark) 0%, var(--inst-guinda) 100%);
  color: #FFFFFF;
}

.bnst-pro-dashboard-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.bnst-pro-dashboard-btn:hover i {
  transform: translate(2px, -2px);
}

.dashboard-right {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.dashboard-svg,
.dashboard-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 6px 15px rgba(122, 0, 38, 0.12));
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.bnst-pro-dashboard-card:hover .dashboard-image {
  transform: scale(1.04);
}

/* Simulated Animated Dashboard Preview */
.dashboard-preview-frame {
  width: 100%;
  max-width: 280px;
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.bnst-pro-dashboard-card:hover .dashboard-preview-frame {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 45px rgba(122, 0, 38, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.db-preview-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.db-preview-kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 38px;
  box-sizing: border-box;
}

.db-preview-ring {
  width: 26px;
  height: 26px;
}

.db-preview-ring .ring-fill {
  stroke-dasharray: 0 100;
  animation: fillRing 3s ease-out forwards infinite;
  transform-origin: center;
  transform: rotate(-90deg);
}

@keyframes fillRing {
  0% { stroke-dasharray: 0 100; }
  50%, 100% { stroke-dasharray: 75 100; }
}

.db-preview-kpi-value {
  position: absolute;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  font-family: system-ui, sans-serif;
}

.db-preview-mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}

.db-preview-bar {
  width: 4px;
  background: var(--inst-guinda);
  border-radius: 1px;
  height: 0;
  animation: growBar 3s ease-out infinite;
}

.db-preview-bar:nth-child(1) { animation-delay: 0.1s; --target-h: 12px; }
.db-preview-bar:nth-child(2) { animation-delay: 0.3s; --target-h: 20px; background: var(--inst-gold); }
.db-preview-bar:nth-child(3) { animation-delay: 0.5s; --target-h: 15px; }

@keyframes growBar {
  0% { height: 0; }
  50%, 100% { height: var(--target-h); }
}

.db-preview-sparkline {
  width: 100%;
  height: 100%;
}

.db-preview-sparkline path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawSpark 3s ease-out infinite;
}

@keyframes drawSpark {
  0% { stroke-dashoffset: 50; }
  50%, 100% { stroke-dashoffset: 0; }
}

.db-preview-main-chart {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.db-preview-main-svg {
  width: 100%;
  height: 100%;
}

.db-line-anim-1 {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: drawLine1 4s ease-out infinite;
}

.db-line-anim-2 {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: drawLine2 4s ease-out infinite;
}

@keyframes drawLine1 {
  0% { stroke-dashoffset: 250; }
  50%, 100% { stroke-dashoffset: 0; }
}

@keyframes drawLine2 {
  0% { stroke-dashoffset: 250; }
  60%, 100% { stroke-dashoffset: 0; }
}

.db-node-pulse {
  animation: nodePulse 2s infinite ease-in-out;
}

@keyframes nodePulse {
  0%, 100% { r: 3px; opacity: 0.6; }
  50% { r: 5px; opacity: 1; filter: drop-shadow(0 0 3px var(--inst-gold)); }
}



/* Animation for chart line drawing */
.dashboard-line-anim {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: dashboardDraw 4s ease-out forwards infinite;
}

@keyframes dashboardDraw {
  0% { stroke-dashoffset: 300; }
  50%, 100% { stroke-dashoffset: 0; }
}

/* Pulsing dot animation for peak values */
.dashboard-pulse-dot {
  transform-origin: center;
  animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
  0%, 100% {
    r: 4.5px;
    opacity: 0.7;
  }
  50% {
    r: 6.5px;
    opacity: 1;
  }
}

/* Media Query for Dashboard responsiveness */
@media (max-width: 768px) {
  .bnst-pro-dashboard-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
    padding: 30px 24px;
  }
  
  .dashboard-badge,
  .bnst-pro-dashboard-btn {
    margin: 0 auto;
  }
  
  .dashboard-svg,
  .dashboard-image,
  .dashboard-preview-frame {
    max-width: 220px;
    margin: 0 auto;
  }
}


