:root {
  --bg-dark: #09090b;
  --bg-card: #161b22;
  --border-dim: #30363d;
  --text-main: #ffffff;
  --text-dim: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #1f6feb;
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Premium Design Tokens */
  --p-blue: #58a6ff;
  --p-purple: #bc8cff;
  --p-emerald: #39d353;
  --p-amber: #e3b341;
  --p-rose: #ff7b72;

  --glow-opacity: 0.15;
  --bg-glass: rgba(22, 27, 34, 0.6);
  --border-glass: rgba(255, 255, 255, 0.1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-login {
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
}

.nav-login:hover {
  background: var(--accent);
  color: #fff;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide for now, will handle with JS/Checkbox if needed, but for simplicity let's keep vertical links in a modal or just simple list */
  }
  .hamburger {
    display: block;
  }

  /* Simplified Mobile Menu Toggle (CSS Only trick or just hide for main refactor) */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 24px;
    border-bottom: 1px solid var(--border-dim);
    gap: 20px;
  }
}

/* HERO */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* GRID SECTIONS */
.section {
  padding: 80px 0;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card:hover {
  border-color: var(--accent);
}

.card-meta {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}
.card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.card p {
  font-size: 15px;
  color: var(--text-dim);
}

/* PREMIUM COMPONENT SYSTEM */
.premium-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  border-radius: 22px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: var(--transition);
  z-index: 1;
}

.premium-icon-container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent, rgba(255, 255, 255, 0.05));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.premium-icon-container .icon-bg-glow {
  position: absolute;
  width: 50%;
  height: 50%;
  background: var(--icon-color, var(--accent));
  filter: blur(20px);
  opacity: 0.15;
  z-index: -1;
  border-radius: 50%;
  transition: var(--transition);
}

.premium-icon-container i,
.premium-icon-container svg {
  font-size: 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  color: var(--icon-color, var(--accent));
  stroke: var(--icon-color, var(--accent));
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
  transition: var(--transition);
}

.premium-icon-container:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--icon-color, var(--accent));
  box-shadow: 0 10px 30px -10px var(--icon-color, var(--accent));
}

.premium-icon-container:hover .icon-bg-glow {
  opacity: 0.5;
  transform: scale(1.4);
}

/* Frameless Modifier for Bento Boxes */
.premium-icon-frameless {
  background: transparent !important;
  border: none !important;
  width: 60px;
  height: 60px;
}

.premium-icon-frameless::before {
  display: none;
}

.premium-icon-frameless .icon-bg-glow {
  width: 80%;
  height: 80%;
  opacity: 0.2;
  filter: blur(15px);
}

.premium-icon-frameless:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: none !important;
}

.premium-icon-frameless:hover .icon-bg-glow {
  opacity: 0.4;
  transform: scale(1.3);
}

/* Glass Card Enhancements */
.glass-card {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid var(--border-glass) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Bento Box Layout */
.grid-row-wrap {
  align-items: flex-start !important; /* Force top alignment across all grids */
}

.col-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: flex-start !important;
}

.featured-box {
  background: #161b22;
  border: 1px solid var(--border-dim);
  border-radius: 24px;
  padding: 35px 30px;
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content in bento boxes */
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden; /* Restored to prevent layout breakages */
}

.featured-box .premium-icon-container {
  margin: 0 auto 25px;
}

.featured-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.featured-box:hover::after {
  opacity: 1;
}

.featured-box:hover {
  border-color: #58a6ff;
}

.featured-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.featured-desc {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.featured-footer {
  width: 100%;
  margin-top: auto;
  padding-bottom: 20px; /* Space for button shadow aura */
  overflow: visible !important;
}

/* Signature Gradients */
.grad-premium-blue {
  background: linear-gradient(135deg, #007cf0, #00dfd8);
}
.grad-premium-purple {
  background: linear-gradient(135deg, #7928ca, #ff0080);
}
.grad-premium-orange {
  background: linear-gradient(135deg, #ff4d4d, #f9cb28);
}

.gradient-text-v2 {
  background: linear-gradient(to right, #fff 20%, #8b949e 40%, #8b949e 60%, #fff 80%);
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* FOOTER */
.footer {
  padding: 20px 0 40px;
  border-top: none;
  background: var(--bg-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero h1 {
    font-size: 36px;
  }
}

.footer-brand h2 {
  font-size: 24px;
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--text-dim);
  max-width: 300px;
}

.footer-col h4 {
  margin-bottom: 24px;
  font-size: 16px;
  color: var(--text-main);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 14px;
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid #111;
  color: #444;
  font-size: 12px;
}

/* MODULE STYLES */
.module-hero {
  padding: 120px 0 80px;
  text-align: center;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
}
.module-hero h1 {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.module-hero p {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 40px;
}

.module-text {
  padding: 60px 0;
}
.rich-text-content {
  font-size: 18px;
  line-height: 1.8;
  color: #d1d5db;
}
.rich-text-content h2 {
  color: #fff;
  margin: 40px 0 20px;
  font-size: 32px;
}
.rich-text-content p {
  margin-bottom: 24px;
}

.module-cta {
  padding: 100px 0;
}
.cta-box {
  background: #161b22;
  border: 1px solid var(--border-dim);
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
}
.cta-box p {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* NESTED ADDON SYSTEM */
.section-wrap {
  padding: 80px 0;
}
.grid-row {
  display: grid;
  gap: 32px;
}
.grid-row-1 {
  grid-template-columns: 1fr;
}
.grid-row-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-row-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-row-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-row-5 {
  grid-template-columns: repeat(5, 1fr);
}
.grid-row-6 {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
  .grid-row-6 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-row-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .grid-row-6,
  .grid-row-5,
  .grid-row-4,
  .grid-row-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-row-2,
  .grid-row-3,
  .grid-row-4,
  .grid-row-5,
  .grid-row-6 {
    grid-template-columns: 1fr;
  }
  .grid-row {
    gap: 40px;
  }
  .section-wrap {
    padding: 40px 0;
  }
}

.col-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.addon-wrap {
  width: 100%;
  position: relative;
}

.addon-hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
}
.addon-hero p {
  font-size: 18px;
  color: var(--text-dim);
}

/* VIDEO BACKGROUND */
.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.video-bg-content {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}
.video-bg-file {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.addon-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* BLOG POST CARDS */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background: #161b22;
  border-radius: 16px;
  overflow: hidden; /* Restored */
  transition: all 0.3s ease;
  border: 1px solid #30363d;
}

.post-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.post-card-inner {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card-media {
  position: relative;
  height: 200px;
  background: #0d1117;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card-media img {
  transform: scale(1.1);
}

.post-card-video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 2;
  box-shadow: 0 0 20px var(--accent);
}

.post-card-content {
  padding: 25px;
}

.post-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.post-card-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.post-card-content p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* MINI SWIPER IN CARDS */
.card-media-swiper {
  width: 100%;
  height: 100%;
}

.mini-nav {
  width: 25px !important;
  height: 25px !important;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  color: white !important;
  opacity: 1;
  transition: all 0.3s ease;
  pointer-events: auto;
  z-index: 10;
}

.mini-nav:hover {
  background: var(--accent);
  transform: scale(1.2);
}

.mini-nav:after {
  font-size: 10px !important;
  font-weight: 900;
}

.post-card:hover .mini-nav {
  opacity: 1;
}

.card-media-swiper .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: white;
  opacity: 0.5;
}

.card-media-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--accent);
}

/* RESPONSIVE VIDEO */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* PREMIUM BUTTON STYLES */
.btn-premium-solid {
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  margin-bottom: 5px; /* Safety margin for shadows */
  vertical-align: middle;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}
.btn-premium-solid:hover {
  transform: scale(1.02);
  box-shadow: 0 0 22px -4px rgba(0, 0, 0, 0.9);
  background: var(--accent);
  color: #fff;
}

.btn-premium-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-premium-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 25px -5px rgba(0, 0, 0, 0.8);
}

.btn-premium-neon {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  cursor: pointer;
  transition: all 0.4s ease;
  text-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
  box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
}
.btn-premium-neon:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 25px -2px rgba(88, 166, 255, 0.7);
  transform: scale(1.03);
}

.btn-premium-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-premium-outline:hover {
  border-color: var(--text-main);
  background: var(--text-main);
  color: var(--bg-dark);
  box-shadow: 0 0 18px -4px rgba(0, 0, 0, 0.6);
}

.btn-premium-gradient {
  background: linear-gradient(135deg, #58a6ff 0%, #a855f7 100%);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.2);
}
.btn-premium-gradient:hover {
  transform: translateY(-2px) brightness(1.1);
  box-shadow: 0 0 20px -3px rgba(168, 85, 247, 0.7);
}

.btn-premium-dark {
  background: #000;
  border: 1px solid #333;
  color: #eee;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-premium-dark:hover {
  background: #111;
  border-color: #555;
  color: #fff;
  box-shadow:
    0 0 25px -4px rgba(0, 0, 0, 1),
    0 0 15px -5px rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

/* Responsividad para Rejilla Bento */
@media (max-width: 1024px) {
  .cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Equilibrio Dinámico: Si hay 3 elementos, el tercero ocupa las 2 columnas */
  .cols-3 > .col-content:last-child:nth-child(odd),
  .cols-3 > .nested-col:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .cols-3,
  .cols-2,
  .cols-4 {
    grid-template-columns: 1fr !important;
  }
  .cols-3 > .col-content:last-child:nth-child(odd),
  .cols-3 > .nested-col:last-child:nth-child(odd) {
    grid-column: span 1;
  }
}

/* HARMONIZATION & POLISH */
/* DYNAMIC PREMIUM GLOW ENGINE 2.0 (Atmospheric Depth) */
.premium-glow-section {
  position: relative;
  background: linear-gradient(
    var(--p-angle, 135deg),
    var(--p-grad-1, #09090b) 0%,
    var(--p-grad-2, #004e92) 50%,
    var(--p-grad-1, #09090b) 100%
  ) !important;
  overflow: hidden;
}

/* Subtle noise grain to break digital flatness */
.premium-glow-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.premium-glow-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--p-glow-color, rgba(0, 163, 255, 0.25)) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* AUTO-GLASS DEPTH UTILITY (Manual Control) */
.premium-glass-card {
  position: relative;
  /* We remove background-image from here to not collide with inline background */
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.7),
    0 0 80px -20px var(--card-glow-color, rgba(88, 166, 255, 0.2)),
    inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s ease-out !important;
  /* Do NOT use overflow:visible !important anymore to respect border-radius clipping if needed, 
       box-shadow will still be visible. */
}

/* Atmospheric Noise & Sheen as separate additive layers */
.premium-glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(
      var(--premium-angle, 135deg),
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 100%
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

/* Light Catch Effect (Thin illuminated edge) */
.premium-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.05) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  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: 3;
}

.premium-glass-card:hover {
  transform: translateY(-8px) scale(1.002);
  box-shadow:
    0 60px 140px -30px rgba(0, 0, 0, 0.8),
    0 0 120px -20px var(--card-glow-color, rgba(88, 166, 255, 0.45)) !important;
  /* High contrast border on hover to ensure side visibility */
  border-color: rgba(255, 255, 255, 0.35) !important;
  outline: 1px solid rgba(255, 255, 255, 0.1); /* Extra layer of definition */
}

/* Structural hints for bookending */
.first-page-section {
  padding: 140px 0 100px !important;
}
.last-page-section {
  padding: 120px 0 0 !important;
}

.first-page-section.premium-glow-section::before {
  top: 40%;
  width: 1000px;
  height: 1000px;
  opacity: 0.3;
}

.premium-glow-section .section-content {
  position: relative;
  z-index: 2;
}

/* Icon Color Variations - Automatically assigned if colors are repeated or default */
.premium-icon-container[style*='--icon-color: var(--p-blue)'] {
  --icon-color: var(--p-blue);
}
.premium-icon-container[style*='--icon-color: #58a6ff'] {
  --icon-color: var(--p-blue);
}

/* Animation for Icons - Faster Drop and Settle */
@keyframes dropIn {
  0% {
    transform: translateY(-25px);
    opacity: 0;
    filter: blur(5px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

.premium-icon-container {
  animation: dropIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Smooth background for sections */
.page-section {
  transition: background 0.5s ease;
}

/* Reward Status Badges */
.reward-badge-pending {
  background: rgba(251, 191, 36, 0.1) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.2) !important;
  animation: pulse-yellow 2s infinite;
}

@keyframes pulse-yellow {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
  }
}

.reward-card-pending {
  border-color: rgba(251, 191, 36, 0.2) !important;
  background: rgba(251, 191, 36, 0.02) !important;
}

.reward-badge-available {
  background: rgba(88, 166, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.2);
}

.reward-badge-claimed {
  background: rgba(46, 160, 67, 0.1);
  color: #2ea043;
  border: 1px solid rgba(46, 160, 67, 0.2);
}
