:root {
  --slurpie-bg-img-light: url('bg-doodle-v2.png');
  --slurpie-bg-img-dark: url('slurpie-bg-dark.webp');
}

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


body {
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  background: #faf9f6 var(--slurpie-bg-img-light) no-repeat center center fixed;
  background-size: cover;
  color: var(--light-text-primary, #110b08);
  overflow-x: hidden;
}


.bg-pattern {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#f1c9a5 0.6px, transparent 0.6px);
  background-size: 64px 64px;
  opacity: 0.12;
  z-index: -1;
}


.page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  width: 100%;
  align-items: center;
  flex: 1;
}

.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.centered-header {
  text-align: center;
  margin-top: 5px; 
  margin-bottom: 10px; 
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.logo {
  font-family: 'Fredoka', cursive;
  font-size: 64px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}



.tagline {
  font-size: 18px;
  color: var(--light-accent, #c0651a);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}


.header-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.pill-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  gap: 4px;
}

.nav-item {
  padding: 10px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-family: 'Fredoka', cursive;
  font-size: 16px;
  color: var(--light-accent, #c0651a);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.nav-item.active {
  background: #2f7a4f;
  color: white;
  box-shadow: 0 6px 20px rgba(47, 122, 79, 0.3);
}

body.dark .pill-nav {
  background: rgba(45, 45, 45, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark .nav-item {
  color: #eee;
}

body.dark .nav-item.active {
  background: #5fbf8f;
  color: #1a1a1a;
}

.headline {
  font-family: 'Fredoka', cursive;
  font-size: 38px;
  margin-top: -10px; 
  margin-bottom: 18px;
}

.description {
  max-width: 540px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 34px;
  color: var(--light-text-secondary, #333);
  animation: subtleFloat 4s ease-in-out infinite;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

body.dark .description {
  color: #ddd;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.question {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #1e8449, #d4ac0d, #1e8449);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: textShine 3s linear infinite;
  background-size: 200% auto;
}

body.dark .question {
  background: linear-gradient(135deg, #5fbf8f, #f1c40f, #5fbf8f);
  -webkit-background-clip: text;
  background-clip: text;
}

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

.buttons {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.action {
  width: 100%;
  min-height: 94px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 30px;
  border-radius: 26px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  color: inherit;
  
  
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}


.action:nth-child(1) {
  border-left: 6px solid #27ae60;
}
.action:nth-child(1) h3 {
  color: #1e8449;
  text-shadow: 0 0 10px rgba(39, 174, 96, 0.2);
}
.action:nth-child(1) p {
  color: #2d5a3f;
}
.action:nth-child(1) .arrow {
  color: #27ae60;
}


.action:nth-child(2) {
  border-left: 6px solid #e67e22;
}
.action:nth-child(2) h3 {
  color: #d35400;
  text-shadow: 0 0 10px rgba(230, 126, 34, 0.2);
}
.action:nth-child(2) p {
  color: #7d4d2d;
}
.action:nth-child(2) .arrow {
  color: #e67e22;
}

.action:nth-child(3) {
  border-left: 6px solid #2980b9;
}
.action:nth-child(3) h3 {
  color: #2471a3;
  text-shadow: 0 0 10px rgba(41, 128, 185, 0.2);
}
.action:nth-child(3) p {
  color: #214f6f;
}
.action:nth-child(3) .arrow {
  color: #2980b9;
}

.action h3 {
  font-family: 'Fredoka', cursive;
  font-size: 22px;
  margin-bottom: 4px;
}
.action p {
  color: rgba(255, 255, 255, 0.9);
}

@media (hover: hover) {
  .action:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.45);
  }

  .action:nth-child(1):hover {
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.4);
  }

  .action:nth-child(2):hover {
    box-shadow: 0 20px 40px rgba(230, 126, 34, 0.15);
    border-color: rgba(230, 126, 34, 0.4);
  }

  .action:nth-child(3):hover {
    box-shadow: 0 20px 40px rgba(41, 128, 185, 0.15);
    border-color: rgba(41, 128, 185, 0.4);
  }
}

.emoji { font-size: 40px; }
.arrow { margin-left: auto; }


.right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}



/* --- Slurpie 3D Wrap Card Rotating Deck --- */
.wrap_card {
  position: relative;
  overflow: visible;
  width: var(--w-wrap-card);
  height: calc(var(--h-card) * 1.15);
  display: flex;
  align-items: center;
  justify-content: center;
  --w-card: 250px;
  --h-card: 330px;
  --rotate-card: 15deg;
  --insetX-card: 26px;
  --t-card: calc(var(--insetX-card) * 1.25);
  --w-wrap-card: calc(var(--w-card) + calc(calc(var(--w-card) / 2) * 2));
  margin: 20px auto;
}

.content {
  background-color: #ffffff;
  overflow: hidden;
  position: relative;
  width: calc(100% - calc(var(--pd) * 2));
  height: calc(100% - calc(var(--pd) * 2));
  border-radius: calc(var(--round) - var(--pd));
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

.content > span {
  font-size: 300px;
  font-weight: 800;
  line-height: 0.75;
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 50% 0 0 50%;
  transform: translate(-50%, -50%);
  background-clip: text;
  -webkit-text-stroke-width: 3px;
  color: transparent;
  opacity: 0;
  background-image: linear-gradient(-45deg, #ffffff25 0%, #ffffffac 100%);
  animation: opacity 0s cubic-bezier(1, 0, 0, 1) forwards var(--delay) reverse;
}

.content > svg.icon {
  height: 66px;
  width: 66px;
  position: absolute;
  inset: 50% 0 0 50%;
  opacity: 1;
  animation: opacity 8.4s cubic-bezier(1, 0, 0, 1) forwards
    calc(var(--delay) - 4.3s);
  transform: translate(-50%, -50%);
}

.card:nth-child(1) {
  --delay: 4.3s;
}
.card:nth-child(2) {
  --delay: 7.3s;
}
.card:nth-child(3) {
  --delay: 10.3s;
}

@keyframes opacity {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  overflow: hidden;
  animation: rotating 9s cubic-bezier(0.75, 0, 0, 1.01) infinite 0s;
  border-radius: var(--round);
  background: var(--bg);
  order: var(--order);
  width: var(--w-card);
  height: var(--h-card);
  z-index: var(--z1);
  top: var(--t1);
  left: var(--l1);
  right: var(--r1);
  transform: var(--trans1);
  --pd: 4px;
  --round: 20px;
  --x1: var(--insetX-card);
  --x2: calc(var(--w-wrap-card) - calc(var(--w-card) + var(--insetX-card)));
  --to-left: rotate(calc(var(--rotate-card) * -1));
  --to-center: calc(var(--w-card) / 2);
  --to-right: rotate(calc(var(--rotate-card) * 1));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
}

.card:nth-child(1) {
  --order: 2;
  --bg: radial-gradient(
    circle,
    rgba(252, 240, 142, 1) 0%,
    rgba(246, 173, 32, 1) 40%,
    rgba(192, 142, 8, 1) 100%
  );
  --z1: 2;
  --t1: 0;
  --l1: var(--to-center);
  --r1: var(--to-center);
  --trans1: rotate(calc(var(--rotate-card) * 0));
  --z2: 0;
  --t2: var(--t-card);
  --l2: var(--x1);
  --r2: var(--x2);
  --trans2: var(--to-left);
  --z3: 0;
  --t3: var(--t-card);
  --l3: var(--x2);
  --r3: var(--x1);
  --trans3: var(--to-right);
}

.card:nth-child(2) {
  --order: 3;
  --bg: radial-gradient(
    circle,
    rgba(142, 249, 252, 1) 0%,
    rgba(32, 164, 246, 1) 40%,
    rgba(8, 81, 192, 1) 100%
  );
  --z1: 0;
  --t1: var(--t-card);
  --l1: var(--x2);
  --r1: var(--x1);
  --trans1: var(--to-right);
  --z2: 2;
  --t2: 0;
  --l2: var(--to-center);
  --r2: var(--to-center);
  --trans2: rotate(calc(var(--rotate-card) * 0));
  --z3: 0;
  --t3: var(--t-card);
  --l3: var(--x1);
  --r3: var(--x2);
  --trans3: var(--to-left);
}

.card:nth-child(3) {
  --order: 1;
  --bg: radial-gradient(
    circle,
    rgba(222, 128, 233, 1) 0%,
    rgba(213, 32, 246, 1) 40%,
    rgba(139, 6, 157, 1) 100%
  );
  --z1: 0;
  --t1: var(--t-card);
  --l1: var(--x1);
  --r1: var(--x2);
  --trans1: var(--to-left);
  --z2: 0;
  --t2: var(--t-card);
  --l2: var(--x2);
  --r2: var(--x1);
  --trans2: var(--to-right);
  --z3: 2;
  --t3: 0;
  --l3: var(--to-center);
  --r3: var(--to-center);
  --trans3: rotate(calc(var(--rotate-card) * 0));
}

@keyframes rotating {
  0%,
  99.99% {
    z-index: var(--z1);
    top: var(--t1);
    left: var(--l1);
    right: var(--r1);
    transform: var(--trans1);
  }
  33.33% {
    z-index: var(--z2);
    top: var(--t2);
    left: var(--l2);
    right: var(--r2);
    transform: var(--trans2);
  }
  66.66% {
    z-index: var(--z3);
    top: var(--t3);
    left: var(--l3);
    right: var(--r3);
    transform: var(--trans3);
  }
}

.lines {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.lines::after {
  content: "";
  width: 100%;
  height: 0px;
  position: absolute;
  z-index: 2;
  inset: 0;
  --mask-bg: #e8e8e8;
  background: var(--mask-bg);
  mask-image: radial-gradient(
    50% 200px at top,
    transparent 20%,
    var(--mask-bg)
  );
}

.line {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.line::before,
.line::after {
  content: "";
  position: absolute;
  inset: auto;
  background: linear-gradient(
    to right,
    var(--gradient-a-line, #0000),
    var(--gradient-b-line, #0000),
    var(--gradient-c-line, #0000)
  );
  filter: var(--blur-line);
  width: var(--w-line);
  height: var(--h-line);
}

.line:nth-child(1)::before {
  --blur-line: blur(4px);
  --w-line: 100%;
  --h-line: 5px;
  --gradient-b-line: #2f69f2;
}
.line:nth-child(1)::after {
  --w-line: 100%;
  --h-line: 1px;
  --gradient-b-line: #6366f1;
}
.line:nth-child(2)::before {
  --blur-line: blur(4px);
  --w-line: 50%;
  --h-line: 5px;
  --gradient-b-line: #84ccfc;
}
.line:nth-child(2)::after {
  --w-line: 50%;
  --h-line: 1px;
  --gradient-b-line: #14d3f5;
}

/* Inner food content styling - Redesigned */
.food-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  overflow: hidden;
}

body.dark .food-card-content {
  background: rgba(30, 30, 30, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.food-card-content .card-img-container {
  width: 100%;
  height: 190px;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.food-card-content .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s;
}

.card:hover .food-card-content .card-img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.food-card-content .card-discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(255, 71, 87, 0.4);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.food-card-content .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.food-card-content .card-food-name {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1b4d3e;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .food-card-content .card-food-name {
  color: #e0e0e0;
}

.food-card-content .card-restaurant-name {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

body.dark .food-card-content .card-restaurant-name {
  color: #a0aec0;
}

.food-card-content .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark .food-card-content .card-footer {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.food-card-content .card-price {
  font-size: 22px;
  font-weight: 800;
  color: #27ae60;
  text-shadow: 0 2px 4px rgba(39, 174, 96, 0.1);
}

body.dark .food-card-content .card-price {
  color: #2ecc71;
}

.card-btn {
  background: linear-gradient(135deg, #1e8449, #2ecc71);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.card-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.45);
}

.card-btn:hover::after {
  left: 100%;
}

.rubiks-floor-shadow {
  position: absolute;
  bottom: -65px;
  left: 50%;
  transform: translateX(-50%) rotateX(85deg);
  width: 312px;
  height: 96px;
  background: radial-gradient(ellipse at center, rgba(39, 174, 96, 0.6) 0%, rgba(240, 147, 43, 0.3) 45%, transparent 75%);
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
  z-index: 1;
}



@media (max-width: 900px) {
  .right {
    align-items: center;
    margin-left: 0;
  }
  .my-loader {
    width: 264px;
    height: 264px;
    margin: 20px auto;
  }

  .my-loader .face.front  { transform: translateZ(132px); }
  .my-loader .face.back   { transform: rotateY(180deg) translateZ(132px); }
  .my-loader .face.left   { transform: rotateY(-90deg) translateZ(132px); }
  .my-loader .face.right  { transform: rotateY(90deg) translateZ(132px); }
  .my-loader .face.top    { transform: rotateX(90deg) translateZ(132px); }
  .my-loader .face.bottom { transform: rotateX(-90deg) translateZ(132px); }
}


.top-right {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
}

.night-btn {
  border: none;
  padding: 10px 14px;
  border-radius: 20px;
  cursor: pointer;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}


.account {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: rgba(255,255,255,0.75);
  padding: 8px 14px;
  border-radius: 22px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  width: 260px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  padding: 16px;
}


.account-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.account-avatar {
  width: 40px;
  height: 40px;
  background: #FAF9F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.account-name {
  font-weight: 600;
  font-family: 'Fredoka', cursive;
}

.account-email {
  font-size: 12px;
  color: #777;
}


.menu-section {
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
}

.account-menu button {
  width: 100%;
  border: none;
  padding: 10px;
  margin-top: 6px;
  border-radius: 12px;
  cursor: pointer;
  background: #fff7ec;
  text-align: left;
  font-family: 'Outfit', sans-serif;
}

.account-menu button:hover {
  background: #FAF9F6;
}




.ai-chatbox {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  height: 420px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: 'Outfit', sans-serif;
}


.ai-header {
  background: transparent;
  color: white;
  padding: 14px 18px;
  font-family: 'Fredoka', cursive;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.ai-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #fff7ec;
  display: flex;
  flex-direction: column;
}

.ai-bot,
.ai-user {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  font-size: 14px;
}

.ai-bot {
  background: #e9f6ec;
  align-self: flex-start;
}

.ai-user {
  background: #ffd6a5;
  align-self: flex-end;
}


.ai-input {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #eee;
}

.ai-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
}

.ai-input button {
  border: none;
  background: #2f7a4f;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
}



/* --- Realistic 3D Rubik's Cube Component --- */
.my-loader {
  width: 270px;
  height: 270px;
  perspective: 1200px;
  margin: 40px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.rubiks-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: my-rotateCube 16s infinite linear;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.my-loader:hover .rubiks-cube {
  animation-play-state: paused;
  transform: rotateX(-15deg) rotateY(45deg) scale(1.08);
}

.my-loader .face {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  padding: 6px;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  border-radius: 16px;
  border: 3px solid #1c1c1c;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9), 0 10px 30px rgba(0, 0, 0, 0.35);
  backface-visibility: visible;
}

.my-loader .face.front  { transform: translateZ(135px); }
.my-loader .face.back   { transform: rotateY(180deg) translateZ(135px); }
.my-loader .face.left   { transform: rotateY(-90deg) translateZ(135px); }
.my-loader .face.right  { transform: rotateY(90deg) translateZ(135px); }
.my-loader .face.top    { transform: rotateX(90deg) translateZ(135px); }
.my-loader .face.bottom { transform: rotateX(-90deg) translateZ(135px); }

.my-loader .cube {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  background: #181818;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.my-loader .cube:hover {
  transform: scale(1.14);
  z-index: 20;
  box-shadow: 0 0 15px rgba(39, 174, 96, 0.9), 0 4px 10px rgba(0,0,0,0.5);
  border-color: rgba(39, 174, 96, 0.8);
}

.my-loader .cube img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.my-loader .cube::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  border-radius: 6px;
}

.rubiks-floor-shadow {
  position: absolute;
  bottom: -65px;
  left: 50%;
  transform: translateX(-50%) rotateX(85deg);
  width: 250px;
  height: 75px;
  background: radial-gradient(ellipse at center, rgba(39, 174, 96, 0.45) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  z-index: 1;
}

@keyframes my-rotateCube {
  0% {
    transform: rotateX(-22deg) rotateY(0deg) rotateZ(0deg);
  }
  25% {
    transform: rotateX(18deg) rotateY(90deg) rotateZ(8deg);
  }
  50% {
    transform: rotateX(-16deg) rotateY(180deg) rotateZ(-8deg);
  }
  75% {
    transform: rotateX(22deg) rotateY(270deg) rotateZ(6deg);
  }
  100% {
    transform: rotateX(-22deg) rotateY(360deg) rotateZ(0deg);
  }
}

@media (max-width: 900px) {
  .my-loader {
    width: 220px;
    height: 220px;
    margin: 30px auto;
  }
  .my-loader .face.front  { transform: translateZ(110px); }
  .my-loader .face.back   { transform: rotateY(180deg) translateZ(110px); }
  .my-loader .face.left   { transform: rotateY(-90deg) translateZ(110px); }
  .my-loader .face.right  { transform: rotateY(90deg) translateZ(110px); }
  .my-loader .face.top    { transform: rotateX(90deg) translateZ(110px); }
  .my-loader .face.bottom { transform: rotateX(-90deg) translateZ(110px); }
}
.nav-avatar{
width:38px;
height:38px;
border-radius:50%;
object-fit:cover;
border:2px solid #E6B800;
margin-right:6px;
}

.account-avatar-img{
width:45px;
height:45px;
border-radius:50%;
object-fit:cover;
margin-right:10px;
border:2px solid #E6B800;
}



body{
  animation: pageFade 0.8s ease;
}

@keyframes pageFade{
  from{
    opacity:0;
    transform:translateY(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}



.action{
  position:relative;
  overflow:hidden;
}

.action::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,0.35),transparent);
  opacity:0;
  transition:opacity 0.4s;
}

.action:hover::after{
  opacity:1;
}



@media (min-width: 901px) {
  .ai-chat-btn {
    animation: floatButton 3s ease-in-out infinite;
  }
}

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



@media (hover: hover) {
  .nav-avatar:hover,
  .account-avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(230,184,0,0.6);
    transition: all 0.3s ease;
  }
}



.account-menu{
  transform:translateY(-10px);
  opacity:0;
  transition:all 0.25s ease;
}

.account-menu.show{
  display:block;
  transform:translateY(0);
  opacity:1;
}



.ai-bot,
.ai-user{
  animation:chatPop 0.25s ease;
}

@keyframes chatPop{
  from{
    opacity:0;
    transform:scale(0.9);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}



.ai-input input:focus{
  outline:none;
  border:1px solid #2f7a4f;
  box-shadow:0 0 0 3px rgba(47,122,79,0.15);
}



.slide.active{
  animation:slideZoom 6s ease infinite alternate;
}

@keyframes slideZoom{
  from{ transform:scale(1); }
  to{ transform:scale(1.05); }
}



::-webkit-scrollbar{
  width:10px;
}

::-webkit-scrollbar-track{
  background:#fff7ec;
}

::-webkit-scrollbar-thumb{
  background:#ffd6a5;
  border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
  background:#ffc078;
}

.account-menu button{
  transition:all 0.2s ease;
}

.account-menu button:active{
  transform:scale(0.97);
}



.top-right{
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.25);
  padding:6px 10px;
  border-radius:30px;
}



.account{
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.45);
  border:1px solid rgba(255,255,255,0.3);
}



body{
  background: var(--slurpie-mesh-light) no-repeat center center fixed;
  background-size: cover;
}

body.dark {
  background: var(--slurpie-mesh-dark) no-repeat center center fixed !important;
  background-size: cover !important;
  background-color: #080808 !important;
  color: #f1e5ac !important;
}



@keyframes gradientMove{
  0%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
  100%{ background-position:0% 50%; }
}



.ai-typing{
  display:flex;
  gap:4px;
  padding:10px 14px;
  background:#e9f6ec;
  border-radius:16px;
  width:fit-content;
}

.ai-dot{
  width:6px;
  height:6px;
  background:#2f7a4f;
  border-radius:50%;
  animation:typingBounce 1.4s infinite;
}

.ai-dot:nth-child(2){
  animation-delay:0.2s;
}

.ai-dot:nth-child(3){
  animation-delay:0.4s;
}

@keyframes typingBounce{
  0%,80%,100%{ transform:scale(0); }
  40%{ transform:scale(1); }
}


@media (min-width: 901px) {
  .action {
    animation: cardFloat 6s ease-in-out infinite;
  }

  .action:nth-child(2) {
    animation-delay: 2s;
  }

  .action:nth-child(3) {
    animation-delay: 4s;
  }
}

@keyframes cardFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}


body.dark .action {
  background: rgba(45, 45, 45, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

body.dark .action:nth-child(1) {
  border-left-color: #2ecc71; 
}
body.dark .action:nth-child(1) h3 {
  color: #2ecc71;
  text-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}
body.dark .action:nth-child(1) p {
  color: #a5d6a7;
}
body.dark .action:nth-child(1) .arrow {
  color: #2ecc71;
}

body.dark .action:nth-child(2) {
  border-left-color: #f39c12; 
}
body.dark .action:nth-child(2) h3 {
  color: #f39c12;
  text-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}
body.dark .action:nth-child(2) p {
  color: #ffcc80;
}
body.dark .action:nth-child(2) .arrow {
  color: #f39c12;
}

body.dark .action:nth-child(3) {
  border-left-color: #3498db; 
}
body.dark .action:nth-child(3) h3 {
  color: #3498db;
  text-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}
body.dark .action:nth-child(3) p {
  color: #90caf9;
}
body.dark .action:nth-child(3) .arrow {
  color: #3498db;
}

@media (hover: hover) {
  body.dark .action:hover {
    background: rgba(60, 60, 60, 0.6);
  }

  body.dark .action:nth-child(1):hover {
    box-shadow: 0 20px 45px rgba(39, 174, 96, 0.25);
    border-color: rgba(46, 204, 113, 0.5);
  }

  body.dark .action:nth-child(2):hover {
    box-shadow: 0 20px 45px rgba(230, 126, 34, 0.25);
    border-color: rgba(243, 156, 18, 0.5);
  }

  body.dark .action:nth-child(3):hover {
    box-shadow: 0 20px 45px rgba(41, 128, 185, 0.25);
    border-color: rgba(52, 152, 219, 0.5);
  }
}


@media (max-width: 1100px) {
  .main-content {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
    height: auto;
  }

  .page {
    height: auto;
    padding: 60px 20px 40px;
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .logo {
    font-size: 48px;
  }

  .headline {
    font-size: 32px;
  }

  .description {
    margin: 0 auto 24px;
    font-size: 16px;
  }

  .left {
    align-items: center;
  }

  .buttons, .action {
    width: 100%;
    max-width: 500px;
  }

  .action {
    padding: 20px;
    gap: 15px;
    text-align: left;
  }

  .action h3 {
    font-size: 20px;
  }

  .emoji {
    font-size: 32px;
  }

  .pill-nav {
    max-width: 100%;
    overflow-x: auto;
    padding: 4px 10px;
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .pill-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    white-space: nowrap;
    padding: 8px 18px;
    font-size: 14px;
  }

  .slideshow {
    height: 380px;
    margin-top: 0;
  }

  .right {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .logo { font-size: 40px; }
  .headline { font-size: 28px; }
  .slideshow { height: 300px; }
  .top-right {
    top: 10px;
    right: 10px;
    gap: 8px;
    padding: 4px 8px;
  }
  .account { padding: 6px 10px; }
  .account-name { display: none; }
}

/* --- Connection Modal --- */
.slurpie-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 12px;
  animation: modalFadeIn 0.4s ease;
}

.slurpie-modal .modal-content {
  background: white;
  padding: 30px 24px;
  border-radius: 28px;
  max-width: 450px;
  width: 92%;
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: auto;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  animation: modalSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  touch-action: manipulation;
}

.modal-header .emoji {
  font-size: 50px;
  display: block;
  margin-bottom: 15px;
}

.modal-header h2 {
  font-family: 'Fredoka', cursive;
  font-size: 28px;
  color: #2f7a4f;
  margin-bottom: 15px;
}

.slurpie-modal p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--light-text-primary, #110b08);
  margin-bottom: 30px;
}

.modal-close-btn {
  background: #2f7a4f;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-family: 'Fredoka', cursive;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(47, 122, 79, 0.2);
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(47, 122, 79, 0.3);
  background: #27ae60;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  to { transform: translateY(0); }
}

body.dark .slurpie-modal .modal-content {
  background: #1a1a1a;
  color: #eee;
}
  body.dark .action:nth-child(3):hover {
    box-shadow: 0 20px 45px rgba(41, 128, 185, 0.25);
    border-color: rgba(52, 152, 219, 0.5);
  }
}


@media (max-width: 1100px) {
  .main-content {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
    height: auto;
  }

  .page {
    height: auto;
    padding: 60px 20px 40px;
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .logo {
    font-size: 48px;
  }

  .headline {
    font-size: 32px;
  }

  .description {
    margin: 0 auto 24px;
    font-size: 16px;
  }

  .left {
    align-items: center;
  }

  .buttons, .action {
    width: 100%;
    max-width: 500px;
  }

  .action {
    padding: 20px;
    gap: 15px;
    text-align: left;
  }

  .action h3 {
    font-size: 20px;
  }

  .emoji {
    font-size: 32px;
  }

  .pill-nav {
    max-width: 100%;
    overflow-x: auto;
    padding: 4px 10px;
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .pill-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    white-space: nowrap;
    padding: 8px 18px;
    font-size: 14px;
  }

  .slideshow {
    height: 380px;
    margin-top: 0;
  }

  .right {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .logo { font-size: 40px; }
  .headline { font-size: 28px; }
  .slideshow { height: 300px; }
  .top-right {
    top: 10px;
    right: 10px;
    gap: 8px;
    padding: 4px 8px;
  }
  .account { padding: 6px 10px; }
  .account-name { display: none; }
}

/* --- Connection Modal --- */
.slurpie-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 12px;
  animation: modalFadeIn 0.4s ease;
}

.slurpie-modal .modal-content {
  background: white;
  padding: 30px 24px;
  border-radius: 28px;
  max-width: 450px;
  width: 92%;
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: auto;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  animation: modalSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  touch-action: manipulation;
}

.modal-header .emoji {
  font-size: 50px;
  display: block;
  margin-bottom: 15px;
}

.modal-header h2 {
  font-family: 'Fredoka', cursive;
  font-size: 28px;
  color: #2f7a4f;
  margin-bottom: 15px;
}

.slurpie-modal p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--light-text-primary, #110b08);
  margin-bottom: 30px;
}

.modal-close-btn {
  background: #2f7a4f;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-family: 'Fredoka', cursive;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(47, 122, 79, 0.2);
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(47, 122, 79, 0.3);
  background: #27ae60;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  to { transform: translateY(0); }
}

body.dark .slurpie-modal .modal-content {
  background: #1a1a1a;
  color: #eee;
}

body.dark .slurpie-modal p {
  color: #ccc;
}

/* --- Professional Restaurant Cards UI --- */
.pro-restaurant-card {
  width: 350px;
  max-width: 100%;
  border-radius: 24px;
  background: #ffffff;
  padding: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Outfit', sans-serif;
  border: 1px solid rgba(0,0,0,0.04);
}

.pro-restaurant-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(46, 204, 113, 0.15), 0 5px 15px rgba(0,0,0,0.05);
  border-color: rgba(46, 204, 113, 0.3);
}

.pro-restaurant-card .card-image-wrapper {
  height: 190px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background-color: #f0fdf4;
}

.pro-restaurant-card .image-gradient-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.pro-restaurant-card .card-content-wrapper {
  padding: 16px 10px 10px;
}

.pro-restaurant-card .restaurant-name {
  font-size: 22px;
  font-weight: 700;
  color: #110b08;
  margin: 0 0 16px 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}

.pro-restaurant-card .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pro-restaurant-card .stat-box {
  border-radius: 14px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-align: center;
}

/* 1. Rest No: Light Blue */
.pro-restaurant-card .stat-box:nth-child(1) {
  background: #eaf4fb;
  border-color: #d6eaf8;
}
.pro-restaurant-card .stat-box:nth-child(1) .stat-value { color: #2980b9; }

/* 2. FSSAI No: Light Orange */
.pro-restaurant-card .stat-box:nth-child(2) {
  background: #fef5e7;
  border-color: #fdebd0;
}
.pro-restaurant-card .stat-box:nth-child(2) .stat-value { color: #d35400; }

/* 3. Rating: Light Yellow */
.pro-restaurant-card .stat-box:nth-child(3) {
  background: #fff9e6;
  border-color: #fcf3cf;
}
.pro-restaurant-card .stat-box:nth-child(3) .stat-value { color: #f1c40f; }

/* 4. Timings: Light Purple */
.pro-restaurant-card .stat-box:nth-child(4) {
  background: #f4ecf8;
  border-color: #ebdef0;
}
.pro-restaurant-card .stat-box:nth-child(4) .stat-value { color: #8e44ad; }

/* 5. Starts At: Light Red */
.pro-restaurant-card .stat-box:nth-child(5) {
  background: #fdedec;
  border-color: #fadbd8;
}
.pro-restaurant-card .stat-box:nth-child(5) .stat-value { color: #c0392b; }

/* 6. Orders: Light Green */
.pro-restaurant-card .stat-box:nth-child(6) {
  background: #e9f7ef;
  border-color: #d5f5e3;
}
.pro-restaurant-card .stat-box:nth-child(6) .stat-value { color: #27ae60; }

.pro-restaurant-card:hover .stat-box {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

.pro-restaurant-card .stat-value {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
}

.pro-restaurant-card .stat-label {
  font-size: 10px;
  font-weight: 600;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
