.product-page.food{--primary:#059669;--primary-light:#10b981;--primary-glow:rgba(16,185,129,0.25);--cyan-accent:#34d399}.product-page.padel{--primary:#f06400;--primary-light:#ff7a1a;--primary-glow:rgba(240,100,0,0.28);--cyan-accent:#fbbf24}.product-page.aegis{--primary:#a78bfa;--primary-light:#c4b5fd;--primary-glow:#a78bfa33;--cyan-accent:#67e8f9}.product-page.flipeven{--primary:#06b6d4;--primary-light:#22d3ee;--primary-glow:#06b6d433;--cyan-accent:#67e8f9}.product-page .hero-gradient-text{background-image:linear-gradient(110deg,var(--primary-light),var(--cyan-accent))}.product-page .hero{padding-bottom:64px}.hub-link{color:var(--text-main);font-weight:700;text-decoration:none}.product-demo,.product-plans{display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:48px;border:1px solid var(--border-highlight);border-radius:24px;background:var(--bg-card);box-shadow:0 0 90px -45px var(--primary)}.product-demo h2,.product-plans h2{font-family:var(--font-display);font-weight:560;letter-spacing:-0.015em;font-size:clamp(1.7rem,3vw,2.3rem);line-height:1.25;margin:16px 0}.product-demo p,.product-plans p{color:var(--text-secondary);margin:16px 0}.product-demo label{display:block;margin:18px 0 8px;font-weight:600}.product-demo input{width:100%;padding:14px;border-radius:10px;border:1px solid var(--border-highlight);background:#06080e;color:white;font:inherit}.demo-result{background:radial-gradient(ellipse at center,var(--primary-glow),transparent 75%);border:1px solid var(--border-subtle);border-radius:20px;padding:32px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:300px}.demo-result>strong{font-size:clamp(3rem,7vw,5rem);color:var(--primary-light)}.demo-result small,.demo-note,.wellness-note{color:var(--text-secondary);font-size:.85rem}.wellness-note{max-width:640px;margin:24px auto 0}.feature-number{display:block;font-family:var(--font-mono);color:var(--primary-light);margin-bottom:24px}.product-faq{border-bottom:1px solid var(--border-highlight);padding:24px 0}.product-faq summary{font-size:1.1rem;font-weight:700;cursor:pointer}.product-faq p{color:var(--text-secondary);margin:16px 0 0}.product-page button{cursor:pointer;font:inherit;border:0}.product-page .nav-cta-button{margin-top:20px;color:#06080e;background:var(--primary-light)}.match{border-bottom:1px solid var(--border-highlight);padding-bottom:16px}.match b{color:white}.breathing-orb{width:190px;height:190px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 30% 25%,#c4b5fd,#6354a0 60%,#242343);box-shadow:0 0 65px #a78bfa44;transition:transform 4s linear}.breathing-orb.expanded{transform:scale(1.18)}.skip-link{position:fixed;top:-100px;left:16px;z-index:1000;padding:14px;background:white;color:black}.skip-link:focus{top:12px}.product-page :focus-visible{outline:3px solid var(--primary-light);outline-offset:5px}.product-page section{scroll-margin-top:100px}.product-page .brand-name{font-size:1.1rem}.studio-grid{display:grid;gap:24px}.studio-grid .bento-card{display:flex;flex-direction:column;align-items:flex-start}.studio-grid .bento-text{flex:1;margin-bottom:24px}.studio-grid img.card-app-icon{width:64px;height:64px;border-radius:16px;margin-bottom:24px}.studio-grid h2{font-size:1.5rem;margin-bottom:12px}
@media(max-width:800px){.product-demo,.product-plans{grid-template-columns:1fr;padding:24px;gap:24px}.product-page .brand-name{max-width:160px;line-height:1.2}.product-page .hub-link{font-size:.85rem}.product-page .hero-heading{font-size:clamp(2.3rem,8vw,3.5rem)}.product-page .pill-badge{font-size:.65rem}.product-page .nav-inner{gap:12px}.product-page .brand-logo-img{width:36px;height:36px}}
@media(max-width:680px){.product-page .site-nav .hub-link{display:none!important}.product-page .site-nav .nav-cta-button{display:none!important}}
@media(max-width:500px){.product-page .nav-links{display:none}.product-page .hero{padding-top:110px}.product-demo,.product-plans{padding:20px 16px;gap:20px}.demo-result{padding:20px 16px;min-height:240px}.demo-result>strong{font-size:clamp(2.2rem,7vw,3.5rem);word-break:break-all}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.product-page *, .product-page *::before,.product-page *::after{animation:none!important;transition:none!important}.breathing-orb.expanded{transform:none}}

/* Future releases use a quieter treatment than available products. */
.studio-grid .coming-soon-card{border-style:dashed;background:rgba(255,255,255,.015)}
.coming-soon-icon{width:64px;height:64px;display:grid;place-items:center;margin-bottom:24px;border:1px dashed var(--border-highlight);border-radius:16px;color:var(--text-secondary);font-size:2rem;font-weight:300}
.coming-soon-label{display:inline-flex;padding:5px 12px;border-radius:9999px;background:rgba(255,255,255,.06);color:var(--text-secondary);font-size:.8rem;font-weight:600}
.studio-grid .coming-soon-card:hover{transform:none;box-shadow:none;background:rgba(255,255,255,.015)}
.studio-grid .coming-soon-card::before{display:none}

/* Clip the gradient to the letters and keep accents within each app palette without cutting off italic swashes or descenders. */
.product-page .hero-gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  vertical-align: baseline;
  padding-right: 0.25em;
  padding-bottom: 0.12em;
  padding-top: 0.05em;
  margin-right: -0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.product-page .hero-heading {
  line-height: 1.18;
  overflow: visible;
}
.product-page .pill-badge{color:var(--primary-light);background:var(--primary-glow);border-color:var(--primary-light);box-shadow:none}
.product-page .pill-dot{background:var(--primary-light);box-shadow:0 0 10px var(--primary-glow)}
.product-page .section-label{color:var(--primary-light)}
.product-page .nav-cta-button:hover{box-shadow:0 8px 25px var(--primary-glow)}
@media(forced-colors:active){.product-page .hero-gradient-text{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText}}

/* ==========================================================================
   LINK IN BIO & HUB SHOWCASE ENHANCEMENTS
   ========================================================================== */
.product-page.hub-page {
  /* Warm brass/ink identity for the studio hub itself — deliberately not
     another blue-glow "dev tool" palette, since every app already owns a
     saturated color (blue/green/orange/purple/cyan). The hub reads as the
     restrained, editorial "umbrella" the apps sit under. */
  --primary: #cfa15e;
  --primary-light: #e6c081;
  --primary-glow: rgba(207, 161, 94, 0.24);
  --cyan-accent: #e9d9b8;
  --text-highlight: #e6c081;
}

/* Editorial display type + centered hero for the studio hub */
.hub-page .hero {
  text-align: center;
  padding-top: 5.5rem;
  padding-bottom: 2rem;
}

.hub-page .hero-heading {
  font-family: var(--font-display);
  font-weight: 560;
  font-style: normal;
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-wrap: balance;
  overflow: visible;
}

.hub-page .hero-gradient-text {
  font-style: italic;
  font-weight: 440;
}

.hub-page .hero-subtext {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 640px;
}

.hub-page .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hub-page .card-app-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.hub-page .featured-card .card-app-title {
  font-size: 1.9rem;
}

.bio-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hub-eyebrow-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 1.75rem;
  padding: 6px 16px 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hub-avatar-inline {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: block;
  flex-shrink: 0;
}

.hub-eyebrow-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.hub-eyebrow-label strong {
  color: var(--text-main);
  font-weight: 700;
}

.bio-social-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.bio-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-social-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.bio-social-pill svg {
  flex-shrink: 0;
}

/* Enhanced Bento Cards */
.studio-grid .bento-card {
  position: relative;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-ty, 0px));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.studio-grid .bento-card.is-tilting {
  transition: transform 0.08s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
}

.studio-grid .bento-card:hover {
  --tilt-ty: -4px;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.6);
}

.card-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.card-app-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin-bottom: 0 !important;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.card-category-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pill-color, #38bdf8);
  background: var(--pill-bg, rgba(56, 189, 248, 0.12));
  border: 1px solid var(--pill-border, rgba(56, 189, 248, 0.2));
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
}

.card-app-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
  margin: 0 !important;
}

.card-actions-wrapper {
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-primary-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.card-store-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.card-store-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 10px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.card-store-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: #0d0d0d;
  transform: translateY(-1px);
}

.card-store-btn svg {
  flex-shrink: 0;
}



.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-row a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-social-row a:hover {
  color: #ffffff;
}

.footer-social-row span {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

/* ==========================================================================
   TRUST STRIP — social-proof bar under the hub hero
   ========================================================================== */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 780px;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.trust-strip-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
  flex-shrink: 0;
}

.trust-strip-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 720px) {
  .trust-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .trust-strip-divider {
    display: none;
  }
}

/* ==========================================================================
   CATEGORY PILL VARIANTS — replaces per-instance inline custom properties
   so the palette lives in one place per app category.
   ========================================================================== */
.pill-work { --pill-color: #38bdf8; --pill-bg: rgba(56, 189, 248, 0.12); --pill-border: rgba(56, 189, 248, 0.25); }
.pill-food { --pill-color: #10b981; --pill-bg: rgba(16, 185, 129, 0.12); --pill-border: rgba(16, 185, 129, 0.25); }
.pill-sport { --pill-color: #f06400; --pill-bg: rgba(240, 100, 0, 0.12); --pill-border: rgba(240, 100, 0, 0.25); }
.pill-wellness { --pill-color: #a78bfa; --pill-bg: rgba(167, 139, 250, 0.12); --pill-border: rgba(167, 139, 250, 0.25); }
.pill-reselling { --pill-color: #06b6d4; --pill-bg: rgba(6, 182, 212, 0.12); --pill-border: rgba(6, 182, 212, 0.25); }

/* ==========================================================================
   HUB — ASYMMETRIC FEATURED LAYOUT
   Reuses the existing 12-col / col-8 / col-4 bento system instead of the
   flat 3-up grid, so the flagship app (Preventivi Facili) leads with a
   real screenshot instead of every card carrying equal visual weight.
   ========================================================================== */
.studio-grid {
  grid-template-columns: repeat(12, 1fr);
}

.featured-card {
  background: linear-gradient(160deg, rgba(0, 82, 255, 0.14) 0%, rgba(15, 21, 37, 0.75) 55%);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 30px 70px -25px rgba(0, 82, 255, 0.4), var(--shadow-card);
}

.featured-card-grid {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.featured-card-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.featured-card-visual {
  flex-shrink: 0;
}

.featured-screenshot {
  width: 168px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 22px 48px -16px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: block;
}

@media (max-width: 900px) {
  .featured-card-grid {
    flex-direction: column-reverse;
  }
  .featured-screenshot {
    width: 150px;
    margin: 0 auto 4px;
  }
}

.studio-grid .bento-card:nth-child(1) { transition-delay: 0s; }
.studio-grid .bento-card:nth-child(2) { transition-delay: 0.08s; }
.studio-grid .bento-card:nth-child(3) { transition-delay: 0.16s; }
.studio-grid .bento-card:nth-child(4) { transition-delay: 0.24s; }
.studio-grid .bento-card:nth-child(5) { transition-delay: 0.32s; }

/* ==========================================================================
   FLIPEVEN RELEASE PREVIEW & INTERACTIVE MATRIX
   ========================================================================== */
.flipeven-demo-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 20px 60px -20px rgba(6, 182, 212, 0.25);
  position: relative;
  overflow: hidden;
}

.platform-selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 16px;
}

.platform-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-pill-btn:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

.platform-pill-btn.active {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border-color: #22d3ee;
  color: #06080e;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.release-status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.release-pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
  animation: pulseCyan 1.8s infinite alternate;
  flex-shrink: 0;
}

@keyframes pulseCyan {
  0% { transform: scale(0.85); opacity: 0.55; }
  100% { transform: scale(1.3); opacity: 1; }
}

.release-status-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.release-status-text strong {
  color: #fff;
  display: block;
  font-size: 0.92rem;
}

.release-status-text a {
  color: #22d3ee;
  text-decoration: none;
  font-weight: 600;
}

.release-status-text a:hover {
  text-decoration: underline;
}

/* Glassmorphic Phone Mockup */
.phone-mockup-frame {
  background: rgba(11, 15, 25, 0.92);
  border: 2px solid rgba(34, 211, 238, 0.3);
  border-radius: 36px;
  padding: 22px 20px 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px -15px rgba(6, 182, 212, 0.25);
  position: relative;
  max-width: 350px;
  margin: 0 auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.phone-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.mockup-app-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.mockup-app-title img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.mockup-badge-live {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.mockup-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.mockup-item-prices {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: right;
}

.mockup-profit-card {
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.22), rgba(15, 23, 42, 0.6) 80%);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  margin-bottom: 14px;
}

.mockup-profit-val {
  font-size: 2.3rem;
  font-weight: 800;
  color: #22d3ee;
  letter-spacing: -0.02em;
  margin: 4px 0;
  display: block;
}

.mockup-roi-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #10b981;
}

.mockup-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.mockup-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.mockup-stat-box small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.mockup-stat-box strong {
  font-size: 0.95rem;
  color: #fff;
}

.mockup-note-box {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 850px) {
  .flipeven-demo-grid {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 30px;
  }
}

/* ==========================================================================
   BENTO GRID 3D PERSPECTIVE TILT & MICRO-PREVIEWS
   ========================================================================== */
.studio-grid .bento-card {
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .studio-grid .bento-card {
    transition: none !important;
    transform: none !important;
  }
}

/* Micro-Widget Base Container */
.card-micro-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0 20px;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bento-card:hover .card-micro-widget {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.widget-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.widget-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.01em;
}

.widget-badge.margin-good {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.widget-badge.reselling-badge {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Pill Toggle Buttons */
.widget-toggle-pills {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.micro-pill {
  flex: 1;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.micro-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.micro-pill.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 1. Preventivi Facili Status Pill */
.card-micro-preview.invoice-pill-preview {
  margin: 14px 0 20px;
  width: 100%;
}

.micro-status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.micro-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: microPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes microPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.micro-pill-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

.micro-amount {
  font-size: 0.95rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.micro-tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.micro-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

/* 2. Foodlio Margin Widget */
.widget-recipe-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.recipe-name {
  font-weight: 700;
  color: #fff;
}

.recipe-cost {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.margin-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.margin-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669, #10b981, #34d399);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 3. Padel Live Court Scoreboard */
.court-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ff7a1a;
  background: rgba(240, 100, 0, 0.15);
  border: 1px solid rgba(240, 100, 0, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff7a1a;
  animation: microPulse 1.4s infinite;
}

.padel-scoreboard-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.padel-player-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-names {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.player-score {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ff7a1a;
  min-width: 18px;
  text-align: center;
  transition: transform 0.15s ease;
}

.player-score.score-bump {
  transform: scale(1.35);
  color: #fff;
}

.padel-vs {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.padel-widget-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-micro-point {
  background: rgba(240, 100, 0, 0.18);
  border: 1px solid rgba(240, 100, 0, 0.35);
  color: #ff7a1a;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-micro-point:hover {
  background: #f06400;
  color: #fff;
}

.btn-micro-point:active {
  transform: scale(0.95);
}

.padel-point-indicator {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 4. Aegis Sacred Kinetic Lotus Mandala (Centratura matematica perfetta) */
.card-micro-widget.aegis-breath-widget {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.09), rgba(15, 20, 38, 0.65));
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.aegis-lotus-mandala {
  width: 64px;
  height: 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Outer Celestial Orbit Ring - Centrato al millimetro */
.lotus-celestial-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  margin-left: -29px;
  border-radius: 50%;
  border: 1px dashed rgba(216, 180, 254, 0.35);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.2);
  animation: celestialRingSpin 24s linear infinite;
  pointer-events: none;
}

/* Cluster ancorato esattamente al punto (0, 0) centrale */
.lotus-petals-cluster {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

/* Base Petal: base ancorata a (0, 0) e pivot identico al centro */
.lotus-petal {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 24px;
  margin-left: -8px;
  margin-top: -24px;
  transform-origin: 8px 24px;
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: linear-gradient(180deg, rgba(233, 213, 255, 0.88) 0%, rgba(167, 139, 250, 0.6) 45%, rgba(124, 58, 237, 0.28) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.75);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* 6 Petals positioned in radial circle with synchronized Box 4-4 Bloom */
.lotus-petal.p1 { animation: petalBloomP1 16s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.lotus-petal.p2 { animation: petalBloomP2 16s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.lotus-petal.p3 { animation: petalBloomP3 16s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.lotus-petal.p4 { animation: petalBloomP4 16s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.lotus-petal.p5 { animation: petalBloomP5 16s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.lotus-petal.p6 { animation: petalBloomP6 16s infinite cubic-bezier(0.4, 0, 0.2, 1); }

@keyframes petalBloomP1 {
  0%, 75%, 100% { transform: rotate(0deg) translateY(-2px) scale(0.78); opacity: 0.75; }
  25%, 50% { transform: rotate(15deg) translateY(-8px) scale(1.12); opacity: 1; filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.85)); }
}
@keyframes petalBloomP2 {
  0%, 75%, 100% { transform: rotate(60deg) translateY(-2px) scale(0.78); opacity: 0.75; }
  25%, 50% { transform: rotate(75deg) translateY(-8px) scale(1.12); opacity: 1; filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.85)); }
}
@keyframes petalBloomP3 {
  0%, 75%, 100% { transform: rotate(120deg) translateY(-2px) scale(0.78); opacity: 0.75; }
  25%, 50% { transform: rotate(135deg) translateY(-8px) scale(1.12); opacity: 1; filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.85)); }
}
@keyframes petalBloomP4 {
  0%, 75%, 100% { transform: rotate(180deg) translateY(-2px) scale(0.78); opacity: 0.75; }
  25%, 50% { transform: rotate(195deg) translateY(-8px) scale(1.12); opacity: 1; filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.85)); }
}
@keyframes petalBloomP5 {
  0%, 75%, 100% { transform: rotate(240deg) translateY(-2px) scale(0.78); opacity: 0.75; }
  25%, 50% { transform: rotate(255deg) translateY(-8px) scale(1.12); opacity: 1; filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.85)); }
}
@keyframes petalBloomP6 {
  0%, 75%, 100% { transform: rotate(300deg) translateY(-2px) scale(0.78); opacity: 0.75; }
  25%, 50% { transform: rotate(315deg) translateY(-8px) scale(1.12); opacity: 1; filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.85)); }
}

/* Luminous Starlight Core: centrato perfettamente al millimetro su (0, 0) */
.lotus-starlight-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 40%, #e9d5ff 75%, #c084fc 100%);
  box-shadow: 0 0 8px #ffffff, 0 0 16px #c084fc, 0 0 28px #9333ea;
  z-index: 5;
  animation: starlightPulse 16s infinite ease-in-out;
  pointer-events: none;
}

@keyframes starlightPulse {
  0%, 75%, 100% { transform: scale(0.85); opacity: 0.75; }
  25%, 50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 12px #fff, 0 0 22px #c084fc, 0 0 38px #9333ea; }
}

@keyframes celestialRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Phase Badge & Copy Typography */
.aegis-widget-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aegis-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.32);
  width: fit-content;
  margin-bottom: 4px;
}

.phase-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 8px #c084fc;
  animation: microPulse 1.8s infinite;
}

.aegis-breath-label {
  font-size: 0.68rem;
  font-weight: 750;
  color: #e9d5ff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: opacity 0.25s ease;
}

.phase-time-pill {
  font-size: 0.62rem;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 5px;
  border-radius: 6px;
}

.aegis-session-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.aegis-session-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* 5. FlipEven Reselling ROI Widget */
.flipeven-calc-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.calc-step {
  display: flex;
  flex-direction: column;
}

.calc-step-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.calc-step-val {
  font-size: 0.86rem;
  color: #fff;
  font-weight: 700;
}

.calc-step-val.profit {
  color: #22d3ee;
  font-weight: 800;
}

.calc-step-sep {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   LINEAR-STYLE BORDER-BEAM (FLAGSHIP CARD GLOW)
   ========================================================================== */
.border-beam-container {
  position: relative;
  overflow: hidden;
}

.border-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  -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: 3;
}

.border-beam::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0deg 280deg, rgba(56, 189, 248, 0.4) 320deg, #38bdf8 345deg, #0052ff 360deg);
  animation: borderBeamSpin 7s linear infinite;
}

@keyframes borderBeamSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .border-beam::after {
    animation: none;
    display: none;
  }
}

/* ==========================================================================
   HERO APP COSMOS / FLOATING 3D DEVICE FAN & MOBILE TOUCH REEL
   ========================================================================== */
.hero-cosmos-wrapper {
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 640px;
}

.hero-cosmos-deck {
  position: relative;
  height: 140px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  perspective: 1200px;
}

.cosmos-card {
  position: absolute;
  width: 154px;
  height: 108px;
  background: rgba(14, 20, 36, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  transform-origin: bottom center;
  cursor: pointer;
  will-change: transform;
}

.cosmos-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cosmos-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cosmos-card-top img {
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cosmos-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

.cosmos-card-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cosmos-card-tag {
  font-size: 0.69rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fan positioning in rest state on Desktop */
@media (min-width: 769px) {
  .hero-cosmos-wrapper {
    max-width: 760px;
  }

  .hero-cosmos-deck {
    height: 155px;
  }

  .cosmos-card-1 { transform: rotate(-10deg) translate3d(-180px, 8px, 0); z-index: 1; }
  .cosmos-card-2 { transform: rotate(-5deg) translate3d(-90px, 3px, 0); z-index: 2; }
  .cosmos-card-3 { transform: rotate(0deg) translate3d(0, -4px, 0); z-index: 5; border-color: rgba(56, 189, 248, 0.35); }
  .cosmos-card-4 { transform: rotate(5deg) translate3d(90px, 3px, 0); z-index: 2; }
  .cosmos-card-5 { transform: rotate(10deg) translate3d(180px, 8px, 0); z-index: 1; }
}

/* Expanded Fan State on deck hover (Strictly Pointer/Desktop to prevent mobile sticky hover) */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  /* Deck buffer hit bridge: maintains deck expansion continuously when moving near or between cards */
  .hero-cosmos-deck::before {
    content: '';
    position: absolute;
    inset: -20px -30px -25px -30px;
    pointer-events: auto;
    z-index: 0;
  }

  /* Anti-flicker hit bridge: extends around the card and below it (-38px).
     When a card elevates upwards by -24px, the cursor remains continuously inside its hit area,
     completely eliminating the corner hover-drop-hover trembling loop */
  .cosmos-card::after {
    content: '';
    position: absolute;
    inset: -14px -14px -38px -14px;
    border-radius: 26px;
    pointer-events: auto;
    z-index: 1;
  }

  .cosmos-card-inner * {
    pointer-events: none;
  }

  .hero-cosmos-deck:hover .cosmos-card-1 { transform: rotate(-6deg) translate3d(-260px, 0, 0); }
  .hero-cosmos-deck:hover .cosmos-card-2 { transform: rotate(-3deg) translate3d(-130px, 0, 0); }
  .hero-cosmos-deck:hover .cosmos-card-3 { transform: rotate(0deg) translate3d(0, -6px, 0); }
  .hero-cosmos-deck:hover .cosmos-card-4 { transform: rotate(3deg) translate3d(130px, 0, 0); }
  .hero-cosmos-deck:hover .cosmos-card-5 { transform: rotate(6deg) translate3d(260px, 0, 0); }

  /* Hovering individual card elevates it cleanly at its OWN slot with top z-index */
  .cosmos-card:hover {
    z-index: 30 !important;
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 26px 54px -12px rgba(0, 82, 255, 0.5), 0 0 24px rgba(56, 189, 248, 0.3) !important;
  }

  .cosmos-card-1:hover,
  .hero-cosmos-deck:hover .cosmos-card-1:hover {
    transform: rotate(0deg) translate3d(-260px, -24px, 0) scale(1.08) !important;
  }
  .cosmos-card-2:hover,
  .hero-cosmos-deck:hover .cosmos-card-2:hover {
    transform: rotate(0deg) translate3d(-130px, -24px, 0) scale(1.08) !important;
  }
  .cosmos-card-3:hover,
  .hero-cosmos-deck:hover .cosmos-card-3:hover {
    transform: rotate(0deg) translate3d(0px, -26px, 0) scale(1.08) !important;
  }
  .cosmos-card-4:hover,
  .hero-cosmos-deck:hover .cosmos-card-4:hover {
    transform: rotate(0deg) translate3d(130px, -24px, 0) scale(1.08) !important;
  }
  .cosmos-card-5:hover,
  .hero-cosmos-deck:hover .cosmos-card-5:hover {
    transform: rotate(0deg) translate3d(260px, -24px, 0) scale(1.08) !important;
  }
}

.hero-cosmos-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cosmos-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: microPulse 1.8s infinite;
}

.cosmos-hint-mobile {
  display: none;
}

.cosmos-hint-desktop {
  display: inline;
}

/* ==========================================================================
   MOBILE & TOUCH EXPERIENCE (SMOOTH SNAP CAROUSEL REEL)
   Flawless legibility, zero awkward overlap, native horizontal momentum scroll
   ========================================================================== */
@media (max-width: 768px), (hover: none) {
  .hero-cosmos-wrapper {
    width: 100%;
    max-width: 100%;
    margin-top: 22px;
  }

  .hero-cosmos-deck {
    position: relative;
    height: auto;
    perspective: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 18px 14px;
    width: calc(100% + 36px);
    margin-left: -18px;
    margin-right: -18px;
    scrollbar-width: none;
  }

  .hero-cosmos-deck::-webkit-scrollbar {
    display: none;
  }

  .cosmos-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    flex: 0 0 162px !important;
    width: 162px !important;
    height: 110px !important;
    padding: 12px !important;
    scroll-snap-align: center;
    border-radius: 18px !important;
    margin: 0 !important;
    z-index: 1 !important;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    opacity: 1 !important;
  }

  .cosmos-card-1,
  .cosmos-card-2,
  .cosmos-card-3,
  .cosmos-card-4,
  .cosmos-card-5 {
    transform: none !important;
    z-index: 1 !important;
  }

  .cosmos-card:active {
    transform: scale(0.96) !important;
    opacity: 0.92;
  }

  .cosmos-hint-mobile {
    display: inline !important;
  }

  .cosmos-hint-desktop {
    display: none !important;
  }
}

/* ==========================================================================
   NAV ACTION BUTTONS & MOBILE NAVBAR FIXES
   ========================================================================== */
.nav-cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-cmd-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cmd-key-hint {
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-muted);
}

.nav-sound-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Mobile Navbar Optimization (Eliminates text crunch on screens <= 680px) */
@media (max-width: 680px) {
  .site-nav .nav-inner {
    gap: 8px !important;
  }
  .site-nav .hub-link {
    display: none !important;
  }
  .nav-cmd-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }
  .nav-cmd-btn .cmd-label,
  .nav-cmd-btn .cmd-key-hint {
    display: none !important;
  }
  .nav-right-group {
    gap: 6px !important;
  }
  .brand-wrapper {
    gap: 8px !important;
  }
  .brand-name {
    font-size: 0.98rem !important;
  }
}

/* ==========================================================================
   RAYCAST-STYLE COMMAND PALETTE MODAL
   ========================================================================== */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 8, 0.68);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cmd-palette-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-modal {
  width: 90%;
  max-width: 580px;
  background: #080d19;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 60px rgba(0, 82, 255, 0.2);
  overflow: hidden;
  transform: scale(0.96) translateY(-8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-backdrop.is-open .cmd-palette-modal {
  transform: scale(1) translateY(0);
}

.cmd-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmd-search-row svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.cmd-search-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 1.05rem;
  font-family: inherit;
}

.cmd-search-input::placeholder {
  color: var(--text-muted);
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
}

.cmd-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px 4px;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cmd-item:hover,
.cmd-item.is-selected {
  background: rgba(255, 255, 255, 0.08);
}

.cmd-item img,
.cmd-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.cmd-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cmd-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.cmd-item-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.cmd-item-kbd {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.cmd-palette-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cmd-shortcuts-tips {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   Holographic Specular Glare & Prismatic Card Sheen
   ========================================================================== */
.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--glare-o, 0);
  background: radial-gradient(
    circle 420px at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.16) 0%,
    rgba(56, 189, 248, 0.09) 35%,
    rgba(168, 85, 247, 0.05) 60%,
    transparent 80%
  );
  mix-blend-mode: screen;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
  overflow: hidden;
}

/* ==========================================================================
   Interactive Live Mode Switcher (Flagship Card)
   ========================================================================== */
.interactive-mode-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 12px 0 14px 0;
  gap: 3px;
  max-width: 100%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.mode-switch-btn {
  background: transparent;
  border: 1px solid transparent;
  outline: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

.mode-switch-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.mode-switch-btn.is-active {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

.mode-switch-btn .mode-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.invoice-pill-preview.mode-switching {
  animation: pillModeSwitch 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pillModeSwitch {
  0% {
    opacity: 0.35;
    transform: scale(0.97) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   ABOUT & STUDIO SHOWCASE CTA BANNER & BUTTONS
   Hypermodern 2026 aesthetics: luminous primary pill & frosted glass secondary
   ========================================================================== */
.about-cta-banner {
  background: radial-gradient(ellipse at 50% -10%, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.85) 75%) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 24px 60px -20px rgba(0, 82, 255, 0.3), 0 0 35px rgba(56, 189, 248, 0.15) !important;
  text-align: center;
  align-items: center;
  padding: 48px 32px !important;
  border-radius: 28px !important;
  position: relative;
  overflow: hidden;
}

.about-cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
}

.about-cta-title {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.about-cta-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 30px;
}

.about-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Primary Illuminated Pill CTA */
.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0052ff 0%, #0284c7 50%, #38bdf8 100%);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 28px -6px rgba(0, 82, 255, 0.55), 0 0 22px rgba(56, 189, 248, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(0, 82, 255, 0.7), 0 0 30px rgba(56, 189, 248, 0.55);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff !important;
}

.cta-btn-primary:active {
  transform: translateY(0);
}

.cta-btn-primary .btn-arrow-icon {
  transition: transform 0.25s ease;
}

.cta-btn-primary:hover .btn-arrow-icon {
  transform: translateX(4px);
}

/* Secondary Frosted Glass CTA */
.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #e2e8f0 !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.cta-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 255, 255, 0.12);
}

.cta-btn-secondary:active {
  transform: translateY(0);
}

.cta-btn-secondary .btn-mail-icon {
  transition: transform 0.25s ease;
  color: #94a3b8;
}

.cta-btn-secondary:hover .btn-mail-icon {
  transform: scale(1.1);
  color: #ffffff;
}

/* ==========================================================================
   ABOUT PAGE: DEV IDENTITY & PIPELINE CARD
   ========================================================================== */
.dev-pipeline-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pipeline-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 9px;
  border-radius: 8px;
  letter-spacing: -0.01em;
}

.pipeline-step svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.pipeline-arrow {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.dev-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  margin-top: auto;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.dev-profile-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.dev-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.dev-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: block;
}

.dev-status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
  box-shadow: 0 0 8px #10b981;
}

.dev-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.dev-handle-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-handle-name {
  font-size: 0.92rem;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-verified-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

.dev-title-role {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-badge-pill {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 7px;
  border-radius: 6px;
  width: fit-content;
  margin-top: 2px;
}

/* ==========================================================================
   GLOBAL UNIFIED HEADER SPECIFICATION (100% Consistent on all pages)
   ========================================================================== */
.site-nav {
  position: sticky !important;
  top: 14px !important;
  z-index: 100 !important;
  width: calc(100% - 28px) !important;
  max-width: 1120px !important;
  margin: 14px auto 0 !important;
  background: var(--bg-glass) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 12px 40px -14px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.site-nav .nav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 64px !important;
  padding: 0 1.5rem !important;
  box-sizing: border-box !important;
}

.site-nav.is-scrolled {
  top: 10px !important;
  background: rgba(6, 8, 14, 0.88) !important;
  box-shadow: 0 14px 44px -12px rgba(0, 0, 0, 0.7) !important;
}

.site-nav.is-scrolled .nav-inner {
  height: 58px !important;
}

.site-nav .brand-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.site-nav .brand-logo-img {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  transition: width 0.2s ease, height 0.2s ease !important;
}

.site-nav .brand-name {
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.site-nav .nav-right-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
}

@media (max-width: 680px) {
  .site-nav {
    top: 10px !important;
    margin-top: 10px !important;
    width: calc(100% - 20px) !important;
  }
  .site-nav .nav-inner {
    height: 58px !important;
    padding: 0 1rem !important;
    gap: 8px !important;
  }
  .site-nav .brand-logo-img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
  }
  .site-nav .brand-name {
    font-size: 1.02rem !important;
  }
  .site-nav .nav-right-group {
    gap: 8px !important;
  }
}

