/* ============================================================
   CleanByte extras — v7
   1) Badge reposition (home hero)
   2) Futuristic floating shapes (hero, both pages)
   3) Web Studio "live example" section — bakery demo
   ============================================================ */

/* ---------- 1) "Always free" badge: hang off the card's bottom-right
       corner instead of covering the logo ---------- */
.glass.absolute.-right-4.bottom-10 {
  bottom: -1.75rem !important;
  right: -1rem !important;
}

/* ---------- 2) Elegant floating shapes ---------- */
#top { position: relative; }

.cbx-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cbx-shapes-glow {
  position: absolute;
  inset: 0;
  filter: blur(64px);
  background: linear-gradient(to bottom right,
    rgba(99, 102, 241, 0.07), transparent 50%, rgba(244, 63, 94, 0.07));
}
.cbx-shape {
  position: absolute;
  opacity: 0;
  animation: cbxEnter 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes cbxEnter {
  0% { opacity: 0; transform: translateY(-150px) rotate(calc(var(--r, 0deg) - 15deg)); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }
}
.cbx-shape-inner {
  position: relative;
  width: var(--w);
  height: var(--h);
  animation: cbxFloat 12s ease-in-out infinite;
  animation-delay: calc(var(--d, 0s) + 2.4s);
}
@keyframes cbxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}
.cbx-shape-pill {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--c), transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px 0 var(--cs);
}
.cbx-shape-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35), transparent 70%);
}

/* ---------- 3) Bakery demo section (Web Studio) ---------- */
.cbx-ex * { box-sizing: border-box; }

/* my own scroll-reveal (independent from the site's .reveal) */
.cbx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rd, 0s);
}
.cbx-reveal.cbx-in { opacity: 1; transform: none; }

/* browser frame */
.cbx-frame {
  margin-top: 3rem;
  border-radius: 1.25rem;
  border: 1px solid #e5e5e5;
  background: #fff;
  box-shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.cbx-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #ececec;
  background: #fafafa;
}
.cbx-dots { display: flex; gap: 0.4rem; }
.cbx-dot { width: 0.7rem; height: 0.7rem; border-radius: 9999px; }
.cbx-url {
  flex: 1;
  max-width: 24rem;
  margin: 0 auto;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  background: #f0f0ee;
  color: #737373;
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* mini bakery site */
.cbx-mini { background: #fffbf5; }
.cbx-mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid #f3e8d9;
  background: rgba(255, 255, 255, 0.8);
}
.cbx-mini-logo {
  font-family: var(--font-display), "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #431407;
}
.cbx-mini-links { display: flex; gap: 1.1rem; font-size: 0.8rem; color: #92400e; }
.cbx-mini-links span { cursor: pointer; }
.cbx-mini-links span:hover { color: #431407; }
.cbx-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: #b45309;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.cbx-cart-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: #fff;
  color: #b45309;
  font-size: 0.68rem;
  font-weight: 700;
}
.cbx-cart-n.cbx-pop { animation: cbxPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes cbxPop { 0% { transform: scale(1); } 50% { transform: scale(1.45); } 100% { transform: scale(1); } }

.cbx-mini-hero {
  padding: 2.75rem 1.5rem 2.5rem;
  text-align: center;
  background: linear-gradient(135deg, #fff7ed, #ffe9d6 55%, #fde8e8);
}
.cbx-mini-hero h3 {
  margin: 0;
  font-family: var(--font-display), "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #431407;
}
.cbx-mini-hero p { margin: 0.6rem auto 1.2rem; max-width: 26rem; font-size: 0.9rem; color: #9a3412; }
.cbx-mini-cta {
  display: inline-block;
  padding: 0.55rem 1.5rem;
  border-radius: 9999px;
  background: #b45309;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cbx-mini-cta:hover { background: #92400e; }

.cbx-menu { padding: 1.75rem 1.5rem 2rem; }
.cbx-menu-label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a16207;
}
.cbx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.1rem;
}

/* --- menu item card (vanilla port of MenuItemCard) --- */
.cbx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #ece4d6;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cbx-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px -12px rgba(67, 20, 7, 0.25);
  z-index: 1;
}
.cbx-card-img {
  position: relative;
  height: 10.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #fef3c7);
}
.cbx-card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.55), transparent 62%);
}
.cbx-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(67, 20, 7, 0.28), transparent 45%);
}
.cbx-emoji {
  position: relative;
  font-size: 4.25rem;
  line-height: 1;
  transition: transform 0.3s ease-in-out;
  filter: drop-shadow(0 10px 14px rgba(67, 20, 7, 0.25));
}
.cbx-card:hover .cbx-emoji { transform: scale(1.09); }

/* veg / non-veg marker */
.cbx-veg {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.375rem;
  border: 1px solid;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
}
.cbx-in .cbx-veg { animation: cbxSpring 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards; }
@keyframes cbxSpring { to { transform: scale(1); } }
.cbx-veg span { width: 0.7rem; height: 0.7rem; border-radius: 9999px; }
.cbx-veg.cbx-v { border-color: #16a34a; } .cbx-veg.cbx-v span { background: #16a34a; }
.cbx-veg.cbx-nv { border-color: #dc2626; } .cbx-veg.cbx-nv span { background: #dc2626; }

/* Add button — rises on hover */
.cbx-add-wrap {
  position: absolute;
  bottom: 0.9rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.cbx-add {
  padding: 0.45rem 2rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.85);
  color: #431407;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
}
.cbx-card:hover .cbx-add { opacity: 1; transform: translateY(0); }
.cbx-add:hover { background: #b45309; color: #fff; border-color: #b45309; }
.cbx-add:active { transform: scale(0.95); }
@media (hover: none) { .cbx-add { opacity: 1; transform: none; } }

/* card body */
.cbx-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; text-align: left; }
.cbx-prices { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.cbx-price { font-size: 1.05rem; font-weight: 700; color: #171717; }
.cbx-was { font-size: 0.8rem; color: #a3a3a3; text-decoration: line-through; }
.cbx-save { font-size: 0.75rem; font-weight: 600; color: #16a34a; }
.cbx-qty { margin: 0.25rem 0 0; font-size: 0.8rem; color: #737373; }
.cbx-name { margin: 0.5rem 0 0; font-size: 0.95rem; font-weight: 600; line-height: 1.3; color: #171717; }
.cbx-time {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.72rem;
  color: #737373;
}
.cbx-time svg { width: 0.75rem; height: 0.75rem; }

.cbx-mini-foot {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid #f3e8d9;
  text-align: center;
  font-size: 0.7rem;
  color: #a8a29e;
  background: #fff;
}

/* under-frame row */
.cbx-under {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cbx-under p { margin: 0; font-size: 0.9rem; color: #525252; }
.cbx-soon { color: #737373; font-size: 0.8rem; }
.cbx-start {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  background: #2563eb;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.cbx-start:hover { background: #1d4ed8; transform: translateY(-1px); }

@media (max-width: 640px) {
  .cbx-mini-links { display: none; }
}

/* accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cbx-shape { animation: none; opacity: 1; transform: rotate(var(--r, 0deg)); }
  .cbx-shape-inner { animation: none; }
  .cbx-reveal { opacity: 1; transform: none; transition: none; }
  .cbx-veg { transform: scale(1); }
  .cbx-card, .cbx-emoji, .cbx-add { transition: none; }
}

/* ============================================================
   v7.1 — One continuous silk veil (Web Studio, post-hero)
   Single element spanning #services -> page end: no per-section
   clipping, so seams are impossible. Soft fade at both ends.
   Plus the glow veil inside the dark contact card (both pages).
   ============================================================ */

.cbx-pageveil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 140px, #000 calc(100% - 160px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 140px, #000 calc(100% - 160px), transparent 100%);
}

.cbx-pageveil-inner {
  position: absolute;
  left: -2%;
  right: -2%;
  top: -1%;
  bottom: -1%;
  background-image:
    radial-gradient(ellipse at center, rgba(37, 99, 235, 0.13), transparent 70%),
    radial-gradient(ellipse at center, rgba(6, 182, 212, 0.12), transparent 70%),
    radial-gradient(ellipse at center, rgba(34, 211, 238, 0.11), transparent 70%),
    radial-gradient(ellipse at center, rgba(37, 99, 235, 0.12), transparent 70%),
    radial-gradient(ellipse at center, rgba(6, 182, 212, 0.11), transparent 70%),
    radial-gradient(ellipse at center, rgba(37, 99, 235, 0.10), transparent 70%),
    repeating-linear-gradient(113deg, rgba(34, 211, 238, 0) 0px, rgba(34, 211, 238, 0.055) 300px, rgba(34, 211, 238, 0) 600px),
    repeating-linear-gradient(76deg, rgba(29, 63, 95, 0) 0px, rgba(29, 63, 95, 0.04) 420px, rgba(29, 63, 95, 0) 840px),
    repeating-linear-gradient(140deg, rgba(37, 99, 235, 0) 0px, rgba(37, 99, 235, 0.045) 350px, rgba(37, 99, 235, 0) 700px);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, repeat;
  background-size: 1500px 1000px, 1300px 950px, 1400px 1000px, 1500px 1050px, 1300px 900px, 1400px 950px, auto, auto, auto;
  background-position: 12% 4%, 88% 18%, 10% 36%, 90% 55%, 14% 72%, 86% 92%, 0 0, 0 0, 0 0;
  animation: cbxVeil 52s ease-in-out infinite alternate;
}
/* faint grain => soft crumpled texture */
.cbx-pageveil-inner::after,
.cbx-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.03;
  mix-blend-mode: multiply;
}

/* ---------- dark contact card veil (unchanged look, stronger) ---------- */
.cbx-has-bg { position: relative; }
.cbx-veilbox {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cbx-veil {
  position: absolute;
  inset: -8%;
  animation: cbxVeil 44s ease-in-out infinite alternate;
}
.cbx-veil-dark {
  background:
    radial-gradient(ellipse 60% 55% at 22% 18%, rgba(34, 211, 238, 0.17), transparent 68%),
    radial-gradient(ellipse 55% 50% at 82% 78%, rgba(37, 99, 235, 0.19), transparent 68%),
    linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%),
    linear-gradient(120deg, transparent 22%, rgba(6, 182, 212, 0.08) 34%, transparent 48%);
}
.cbx-veil-dark::after { mix-blend-mode: screen; opacity: 0.04; }

@keyframes cbxVeil {
  from { transform: translate3d(-0.8%, -0.5%, 0) scale(1); }
  to   { transform: translate3d(0.8%, 0.5%, 0) scale(1.015); }
}

/* mobile: phone-sized pools + tighter folds, slightly stronger,
   otherwise the wash is larger than the screen and reads as flat */
@media (max-width: 640px) {
  .cbx-pageveil-inner {
    background-image:
      radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15), transparent 70%),
      radial-gradient(ellipse at center, rgba(6, 182, 212, 0.14), transparent 70%),
      radial-gradient(ellipse at center, rgba(34, 211, 238, 0.13), transparent 70%),
      radial-gradient(ellipse at center, rgba(37, 99, 235, 0.14), transparent 70%),
      radial-gradient(ellipse at center, rgba(6, 182, 212, 0.13), transparent 70%),
      radial-gradient(ellipse at center, rgba(37, 99, 235, 0.12), transparent 70%),
      repeating-linear-gradient(113deg, rgba(34, 211, 238, 0) 0px, rgba(34, 211, 238, 0.065) 160px, rgba(34, 211, 238, 0) 320px),
      repeating-linear-gradient(76deg, rgba(29, 63, 95, 0) 0px, rgba(29, 63, 95, 0.05) 225px, rgba(29, 63, 95, 0) 450px),
      repeating-linear-gradient(140deg, rgba(37, 99, 235, 0) 0px, rgba(37, 99, 235, 0.055) 190px, rgba(37, 99, 235, 0) 380px);
    background-size: 620px 460px, 560px 430px, 600px 450px, 640px 470px, 560px 420px, 600px 440px, auto, auto, auto;
    background-position: 15% 4%, 85% 18%, 12% 36%, 88% 55%, 15% 72%, 85% 92%, 0 0, 0 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cbx-pageveil-inner, .cbx-veil { animation: none; }
}

/* ============================================================
   Language toggle (cbx-i18n) — explicit pill + first-visit hint
   ============================================================ */
.cbx-lang-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(29, 63, 95, 0.22);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #14304a;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(11, 28, 44, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.cbx-lang-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(11, 28, 44, 0.55);
}
.cbx-lang-globe { font-size: 1rem; }

.cbx-lang-hint {
  position: fixed;
  left: 16px;
  bottom: 64px;
  z-index: 9991;
  max-width: 250px;
  padding: 0.8rem 2.1rem 0.8rem 1rem;
  border-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
  background: #0b1c2c;
  color: #ffffff;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 16px 40px -14px rgba(11, 28, 44, 0.6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.cbx-lang-hint.cbx-in { opacity: 1; transform: none; pointer-events: auto; }
.cbx-lang-hint strong { color: #22d3ee; }
.cbx-lang-hint-x {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}
.cbx-lang-hint-x:hover { color: #ffffff; }

@media (max-width: 640px) {
  .cbx-lang-btn { left: 12px; bottom: 12px; font-size: 0.78rem; padding: 0.55rem 0.85rem; }
  .cbx-lang-hint { left: 12px; bottom: 58px; }
}
