* {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  html, body {
    height: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: white;
  overflow-x: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
/* ========================= */
/* 🔥 BACKGROUND IMAGE */
/* ========================= */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url('images/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(6px) brightness(0.35) saturate(1.4);
  transform: scale(1.08);

  z-index: -1;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* 🔥 HOME PAGE gets its own background */
body.home-page::before {
  background-image: url('images/bghome.png');
}

/* 🔥 BOTTOM FADE — blends into the dark page color */
body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;

  background: linear-gradient(
    to bottom,
    transparent,
    rgba(15, 23, 42, 0.85) 40%,
    #0f172a 100%
  );

  z-index: -1;
  pointer-events: none;
}
#app-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#app-scale {
  width: 1400px;
  transform-origin: top center;
  position: relative;
  margin: 0 auto;
  visibility: hidden;
  will-change: transform;
}

  img {
    -webkit-user-drag: none; /* ✅ works in Chrome/Safari */
    user-select: none;       /* ✅ prevents selection */
  }

nav {
  background: rgba(2, 6, 23, 0.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 20px;
  box-sizing: border-box;
  width: 100%;
}
@media (max-width: 600px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 10px;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-left {
    justify-content: flex-start;
    order: unset;
    min-width: 0;
  }

  .nav-right {
    position: static;
    justify-content: flex-end;
    order: unset;
    min-width: 0;
  }

  .nav-logo {
    font-size: 12px;
    gap: 4px;
    justify-content: center;
    order: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
  }

  .nav-logo-dot {
    display: none;
  }

  .nav-page-link {
    font-size: 9px;
    padding: 4px 6px;
    letter-spacing: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    border: none;
    background: none !important;
  }
}

@media (max-width: 360px) {
  .nav-page-link {
    font-size: 8px;
    padding: 3px 4px;
    max-width: 70px;
  }

  .nav-logo {
    font-size: 11px;
  }
}

.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* 🔥 CENTER LOGO */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  justify-content: center;
}

.nav-logo:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(34,197,94,0.5));
  transform: scale(1.03);
}

.nav-logo-dot {
  font-size: 10px;
  opacity: 0.6;
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 🔥 NAV LINKS */
.nav-page-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #475569;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-page-link:hover {
  color: white;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

.nav-page-link.active {
  color: #22c55e;
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.2);
}

/* 🔥 NAV POLISH (override old rule) */
nav h2 {
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a {
  font-weight: 700;
  white-space: nowrap;
}

  a {
  color: cyan;
  text-decoration: none;
  }

  /* ðŸ”¥ HOME CENTER */
  .container {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  }

.main {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: flex-start;


  gap: 40px;

  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;

  padding: 30px;
  box-sizing: border-box;
}

  .home {
    justify-content: center;
  }

.value-bar {
  display: grid;
  grid-template-columns: 260px 1fr 260px;

  align-items: center;

  width: 100%;
  max-width: 1400px;

  margin: 0 auto 50px auto;

  padding: 20px;

  border-radius: 20px;

  background: linear-gradient(145deg, #020617, #0f172a);

  border: 1px solid rgba(255,255,255,0.05);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(255,255,255,0.03);

  /* 🔥 ADD THIS */
  position: relative;
  z-index: 1;
}
.value-bar.win {
  border: 1px solid rgba(34,197,94,0.4);
  box-shadow: 0 0 15px rgba(34,197,94,0.15), 0 10px 30px rgba(0,0,0,0.6);
}

.value-bar.lose {
  border: 1px solid rgba(239,68,68,0.4);
  box-shadow: 0 0 15px rgba(239,68,68,0.15), 0 10px 30px rgba(0,0,0,0.6);
}

  .value-bar.fair {
    border: 1px solid rgba(245,158,11,0.6);

    box-shadow:
      0 0 25px rgba(245,158,11,0.25),
      0 10px 30px rgba(0,0,0,0.6),
      inset 0 0 20px rgba(255,255,255,0.03);
  }

  .value-labels {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;

    align-items: center;

    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    font-size: 22px; /* 🔥 bigger */
    font-weight: 900;

    letter-spacing: 2px;
  }

  .value-labels span:first-child {
    text-align: right;
    padding-right: 30px;
  }

  .value-labels span:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    color: #64748b;

    font-size: 20px;
  }

  .value-labels span:last-child {
    text-align: left;
    padding-left: 30px;
  }

.value-progress {
  width: 100%;
  max-width: 900px;
  height: 36px;
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 2px 6px rgba(0,0,0,0.4);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
#barText {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 2px;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
  color: white;
  text-shadow:
    0 1px 4px rgba(0,0,0,0.9),
    0 0 12px rgba(0,0,0,0.6);
  z-index: 2;
  text-transform: uppercase;
}

#valueFill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

#valueFill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255,255,255,0.15);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}


  .trade-wrapper {
    display: grid;

    grid-template-columns: 500px 280px 500px;

    justify-content: center;
    align-items: start;

    gap: 60px;
    margin-top: 40px;

    width: 100%;
    position: relative;
  z-index: 2;
  }

  .trade-side {
    width: 500px;       /* 🔥 HARD LOCK */
    min-width: 500px;
    max-width: 500px;

    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .trade-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 🔥 CENTER PERFECTLY */

    gap: 18px;

    width: 280px;
    min-width: 280px;
    max-width: 280px;

    margin-top: 0; /* 🔥 FIX ALIGNMENT */

    flex-shrink: 0;
  }

.profit-box {
    background: linear-gradient(145deg, #020617, #0f172a);
    padding: 24px 44px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
      0 0 30px rgba(0,0,0,0.8),
      inset 0 0 20px rgba(255,255,255,0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  /* 🔥 TOP GLOW LINE */
  .profit-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  }

  .profit-box h3 {
    margin: 0 0 4px 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #334155;
    text-transform: uppercase;
  }

  #profitValue {
    font-size: 52px;
    font-weight: 900;
    margin-top: 4px;
    letter-spacing: 0px;
    transition: all 0.25s ease;
    line-height: 1;
  }

  /* GRID */
.grid {
  display: grid;

  grid-template-columns: repeat(3, 150px);
  gap: 20px;

  height: calc(150px * 3 + 20px * 2);

  /* 🔥 ALWAYS show scrollbar space so layout never shifts */
overflow-y: auto;
overflow-x: hidden;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(34,197,94,0.3) transparent;

  box-sizing: content-box;

  justify-content: center;
  align-content: start;
  position: relative;

  z-index: 1;

  /* 🔥 SMOOTH MOBILE SCROLL */
-webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth; /* 🔥 native smooth scroll */
will-change: transform;
  contain: layout style; /* 🔥 less aggressive than strict */
}

/* 🔥 SCROLLBAR ONLY VISIBLE WHEN ACTIVE */
.grid::-webkit-scrollbar {
  width: 4px;
}

.grid::-webkit-scrollbar-track {
  background: transparent;
}

.grid::-webkit-scrollbar-thumb {
  background: transparent; /* 🔥 hidden by default */
  border-radius: 10px;
  transition: background 0.3s ease;
}

.grid-card:hover .grid::-webkit-scrollbar-thumb {
  background: rgba(34,197,94,0.4); /* 🔥 appears on card hover */
}

.grid::-webkit-scrollbar-thumb:hover {
  background: rgba(34,197,94,0.7);
}


  /* SLOT */
  .slot {
    width: 150px;
    height: 150px;

    min-width: 150px;
    min-height: 150px;

    background: #1e293b;
    border: 2px solid #22c55e;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    font-size: 40px;
    color: #22c55e;

    border-radius: 12px;

    transition: all 0.2s ease;

    box-sizing: border-box;

    box-shadow: 0 6px 14px rgba(0,0,0,0.5);
    position: relative;
    transform: translateZ(0); /* 🔥 GPU layer */
  }
  .pet-container {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
  top: 0;
  left: 0;
  }

.slot:hover {
    transform: scale(1.08);
    background: linear-gradient(145deg, #334155, #1e293b);
    box-shadow:
      0 0 20px rgba(34, 197, 94, 0.6),
      0 10px 25px rgba(0,0,0,0.7);
    cursor: pointer;
  }

  .slot:active {
  transform: scale(0.95);
}

  .slot img {
    width: 90%;
    height: 90%;

    object-fit: contain;

    display: block;
    margin: auto;

    pointer-events: none;

    transform: scale(1.05); /* 🔥 slight boost */

    transition: transform 0.2s ease;
  }

  /* TEXT */
#result {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 3px;
    padding: 12px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #020617, #0f172a);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
      0 0 20px rgba(0,0,0,0.6),
      inset 0 0 10px rgba(255,255,255,0.03);
    transition: all 0.25s ease;
    width: 100%;
    box-sizing: border-box;
  }

#result:not(.win):not(.lose):not(.fair) {
  animation: none;
}

  @keyframes pulseBlue {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(1.06);
    }
  }

.win {
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.lose {
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

  .fair {
    color: #f59e0b;
  }

  /* BUTTON */
  .reset-wrap {
  text-align: center;
  margin-top: 20px;
  }

  .reset-wrap button {
    padding: 14px 28px;

    background: linear-gradient(135deg, #06b6d4, #22d3ee);

    border: none;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;

    color: #022c22;

    cursor: pointer;

    box-shadow:
      0 6px 20px rgba(34, 211, 238, 0.4),
      inset 0 0 6px rgba(255,255,255,0.3);

    transition: all 0.2s ease;
  }

  .reset-wrap button:hover {
    transform: translateY(-2px) scale(1.05);

    box-shadow:
      0 10px 30px rgba(34, 211, 238, 0.7);
  }

  .reset-wrap button:active {
    transform: scale(0.95);
  }


.modal {
  display: none;

  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  background: rgba(0,0,0,0.7);

  justify-content: center;
  align-items: center;

  z-index: 9999;

  backdrop-filter: none;
  background: rgba(0,0,0,0.85);

  opacity: 0;                 /* 🔥 ADD THIS */
  transition: opacity 0.2s ease; /* 🔥 ADD THIS */
}
.modal.show {
  opacity: 1;
}


/* ========================= */
/* 🔥 BACKPACK REDESIGN */
/* ========================= */

.backpack {
  display: flex;
  width: 1100px;
  max-width: 95%;
  height: 620px;
  max-height: 90vh;
  background: linear-gradient(145deg, #080f1e, #0f172a);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(34,197,94,0.15),
    inset 0 0 40px rgba(255,255,255,0.02);
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* 🔥 SUBTLE TOP GLOW LINE */
.backpack::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.4), rgba(6,182,212,0.4), transparent);
  z-index: 10;
}

/* SIDEBAR */
.sidebar {
  width: 200px;
  min-width: 200px;
  padding: 24px 16px;
  background: rgba(2,6,23,0.8);
  box-sizing: border-box;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar h2 {
  margin: 0 0 20px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #334155;
  text-transform: uppercase;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  letter-spacing: 0.3px;
}

.menu button:hover {
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  border-color: rgba(255,255,255,0.06);
}

.menu button.active {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(6,182,212,0.08));
  border-color: rgba(34,197,94,0.25);
  color: #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,0.08);
}

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

/* CONTENT */
.content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  overflow: hidden;
}

.top-bar-modal {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-bar-modal input {
  flex: 1;
  max-width: 280px;
  padding: 11px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  font-size: 14px;
  font-weight: 600;
  color: white;
  outline: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.top-bar-modal input::placeholder {
  color: #334155;
}

.top-bar-modal input:focus {
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.05);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.08);
}

input {
  user-select: text;
}

/* INVENTORY */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  justify-items: center;
  align-items: start;
  width: 100%;
  max-width: 700px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(34,197,94,0.2) transparent;
}

.inventory-grid::-webkit-scrollbar {
  width: 4px;
}

.inventory-grid::-webkit-scrollbar-thumb {
  background: rgba(34,197,94,0.2);
  border-radius: 10px;
}

.pet {
  width: 110px;
  height: 130px;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  overflow: hidden;
  position: relative;
}

.pet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.pet:hover {
  transform: translateY(-4px) scale(1.04);
  background: linear-gradient(145deg, #1e293b, #334155);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.5),
    0 0 15px rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.3);
}

.pet img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
}

.pet:hover img {
  transform: scale(1.08) translateY(-2px);
}

/* ========================= */
/* 🔥 MODIFIER BAR REDESIGN */
/* ========================= */

.modifier-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 8px 12px;
}

.modifier-bar button {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  color: #475569;
  transition: all 0.2s ease;
  box-shadow: none;
  letter-spacing: 0.5px;
}

.modifier-bar button:hover {
  transform: scale(1.08);
  color: white;
  border-color: rgba(255,255,255,0.15);
}

.modifier-bar button.active {
  transform: scale(1.1);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 🔥 CLOSE BUTTON */
.close {
  font-size: 16px;
  font-weight: 900;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #ef4444;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
}

.close:hover {
  transform: scale(1.1);
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
}

/* 🔥 BACKPACK RESPONSIVE */
@media (max-width: 900px) {
  .backpack {
    width: 95vw;
    height: 88vh;
    flex-direction: column;
    border-radius: 20px;
  }

  .sidebar {
    width: 100%;
    min-width: unset;
    padding: 12px 16px 8px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-direction: column;
    gap: 4px;
  }

  .sidebar h2 {
    display: none;
  }

  .menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .menu button {
    width: auto;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 50px;
  }

  .content {
    padding: 16px;
    gap: 12px;
  }

  .top-bar-modal {
    flex-wrap: wrap;
    justify-content: center;
  }

  .top-bar-modal input {
    width: 100%;
    max-width: 100%;
  }

  .inventory-grid {
    max-height: unset;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .pet {
    width: 90px;
    height: 110px;
  }
}
  /* ========================= */
  /* ðŸ”¥ RESPONSIVE (CLEAN FIX) */
  /* ========================= */


.trade-status {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;

  text-align: center;
  width: 100%;

  margin-bottom: 6px;

  /* ❌ REMOVE THIS */
  /* top: -8px; */

  padding: 6px 18px;

  border-radius: 12px;

  background: linear-gradient(135deg, #020617, #1e293b);

  box-shadow:
    0 0 20px rgba(0,0,0,0.7),
    0 0 25px rgba(34,197,94,0.15),
    inset 0 0 10px rgba(255,255,255,0.05);

  transition: all 0.25s ease;
}

.trade-status.win {
  color: #22c55e;
  text-shadow: 0 0 6px rgba(34,197,94,0.4);
}

.trade-status.lose {
  color: #ef4444;
  text-shadow: 0 0 6px rgba(239,68,68,0.4);
}

.trade-status.fair {
  color: #f59e0b;
}

  /* COLORS */
  .value-win {
    color: #22c55e;
    text-shadow: 0 0 6px rgba(34,197,94,0.5);
  }

  .value-lose {
    color: #ef4444;
    text-shadow: 0 0 6px rgba(239,68,68,0.5);
  }

  .value-fair {
    color: #f59e0b;
    text-shadow: 0 0 10px #f59e0b;
  }
  .value-text {
    margin-top: 12px;

    font-size: 15px;
    font-weight: 600;

    color: #94a3b8; /* ðŸ”¥ soft gray-blue */

    letter-spacing: 0.5px;
  }

  /* ðŸ”¥ NUMBER STYLE */
  .value-text span {
    font-size: 20px;
    font-weight: bold;

    color: #22c55e; /* ðŸ”¥ green */

    text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  }

.mod-text {
  position: absolute;
  bottom: 6px;
  left: 6px;

  font-size: 13px;
  font-weight: 800;

  display: flex;
  gap: 4px;

  background: none;
  padding: 0;
}
  .mod-m {
    color: #a855f7;
    text-shadow: 0 0 6px rgba(168,85,247,0.8);
  }

  .mod-n {
    color: #22c55e;
    text-shadow: 0 0 6px rgba(34,197,94,0.8);
  }

  .mod-f {
    color: #3b82f6;
    text-shadow: 0 0 6px rgba(59,130,246,0.8);
  }

  .mod-r {
    color: #ef4444;
    text-shadow: 0 0 6px rgba(239,68,68,0.8);
  }

  /* ðŸ”¥ EACH BADGE */
/* 🔥 EACH BADGE */
.mod-badge {
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 900;

  border-radius: 50%; /* 🔥 ROUND like Adopt Me */

  color: white;

  box-shadow:
    0 3px 8px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3); /* 🔥 shiny top highlight */

  letter-spacing: 0px;

  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* 🔥 COLORS (MATCH ADOPT ME) */
.mod-m {
  background: radial-gradient(circle at 35% 35%, #d8b4fe, #7c3aed); /* 🔥 proper purple */
}

.mod-n {
  background: radial-gradient(circle at 35% 35%, #4ade80, #22c55e); /* green */
}

.mod-f {
  background: radial-gradient(circle at 35% 35%, #60a5fa, #3b82f6); /* blue */
}

.mod-r {
  background: radial-gradient(circle at 35% 35%, #f472b6, #ec4899); /* pink */
}
.value-number {
  font-size: clamp(42px, 3.5vw, 65px);
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
  letter-spacing: -1px;
  overflow: hidden;
  transition: all 0.3s ease;
}
  .value-middle {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 0 auto; /* 🔥 TRUE CENTER */
  }

.add-btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  position: relative;
}

.add-btn::before {
  content: "+";
  font-size: 100px;
  font-weight: 900;
  color: rgba(34,197,94,0.55);
  line-height: 1;
  transition: all 0.2s ease;
  letter-spacing: -2px;
  margin-bottom: 8px;
}

.slot:hover .add-btn::before {
  color: #22c55e;
  transform: scale(1.2);
  text-shadow:
    0 0 20px rgba(34,197,94,0.6),
    0 0 40px rgba(34,197,94,0.3);
}
  .slot, .pet, .value-text, .trade-status, .value-number {
    user-select: none;
  }
  ::selection {
    background: transparent;
  }
  .decimal {
    font-size: 0.6em; /* 🔥 smaller decimals */
    opacity: 0.8;
  }
.value-number.small {
  font-size: 36px;
  letter-spacing: -0.5px;
}

.value-number.tiny {
  font-size: 30px;
  letter-spacing: 0px;
}


  /* ========================= */
  /* 🔥 HOME HERO */
  /* ========================= */

  .hero {
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 18px;

    margin-top: 80px;

    animation: fadeIn 0.6s ease;
  }

  /* TITLE */
  .hero-title {
    font-size: 60px;
    font-weight: 900;

    letter-spacing: 2px;

    background: linear-gradient(90deg, #22c55e, #06b6d4);

    background-clip: text;          /* ✅ FIX */
    -webkit-background-clip: text;  /* ✅ KEEP */

    -webkit-text-fill-color: transparent;

    text-shadow: 0 0 20px rgba(34,197,94,0.2);
  }

  /* SUBTITLE */
  .hero-subtitle {
    font-size: 20px;
    font-weight: 600;

    color: #94a3b8;
  }

  /* DESCRIPTION */
  .hero-desc {
    font-size: 18px;
    max-width: 500px;

    color: #cbd5f5;
  }

  /* HIGHLIGHT COLORS */
  .highlight {
    font-weight: 800;
  }

  .highlight.win {
    color: #22c55e;
  }

  .highlight.fair {
    color: #f59e0b;
  }

  .highlight.lose {
    color: #ef4444;
  }

  /* 🔥 BUTTON */
  .start-btn {
    margin-top: 20px;

    padding: 16px 36px;

    font-size: 18px;
    font-weight: 800;

    border: none;
    border-radius: 14px;

    cursor: pointer;

    color: white;

    background: linear-gradient(135deg, #22c55e, #06b6d4);

    box-shadow:
      0 10px 30px rgba(6,182,212,0.4),
      inset 0 0 10px rgba(255,255,255,0.2);

    transition: all 0.2s ease;
  }

  .start-btn:hover {
    transform: translateY(-3px) scale(1.05);

    box-shadow:
      0 15px 40px rgba(6,182,212,0.7);
  }

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

  /* FOOTER */
  .footer-note {
    margin-top: 40px;

    font-size: 13px;
    color: #64748b;
  }

  /* ANIMATION */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* ========================= */
  /* 🔥 GRID BACKGROUND CARD */
  /* ========================= */

  .grid-card {
    padding: 20px;

    border-radius: 20px;

    background: linear-gradient(145deg, #020617, #0f172a);

    border: 1px solid rgba(255,255,255,0.05);

    box-shadow:
      0 10px 30px rgba(0,0,0,0.6),
      inset 0 0 20px rgba(255,255,255,0.03);

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: relative;
  }
  /* 🔥 SCROLL FADE HINT */
.grid-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(2,6,23,0.7));
  border-radius: 0 0 16px 16px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-card.scrollable::after {
  opacity: 1;
}

  /* 🔥 GRID RESULT STATES */

.grid-card.win {
  border: 1px solid rgba(34,197,94,0.6);

  box-shadow:
    0 0 25px rgba(34,197,94,0.25),
    0 10px 30px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(255,255,255,0.03);
}

.grid-card.lose {
  border: 1px solid rgba(239,68,68,0.6);

  box-shadow:
    0 0 25px rgba(239,68,68,0.25),
    0 10px 30px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(255,255,255,0.03);
}

.grid-card.fair {
  border: 1px solid rgba(245,158,11,0.6);

  box-shadow:
    0 0 25px rgba(245,158,11,0.25),
    0 10px 30px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(255,255,255,0.03);
}

  .grid-card:hover {
    box-shadow:
      0 15px 40px rgba(34,197,94,0.15),
      inset 0 0 20px rgba(255,255,255,0.05);
  }
  .value-bar, .grid-card, .profit-box {
  will-change: box-shadow;
  contain: layout style;
}

  .label-win {
    color: #22c55e; /* green */
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  }

  .label-lose {
    color: #ef4444; /* red */
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  }

  .label-fair {
    color: #f59e0b; /* yellow */
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  }

  .pet-name {
    width: 100%;

    font-size: 11px;
    font-weight: 700;
    opacity: 0.9;
    color: white;

    margin-top: 4px;

    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

/* ========================= */
/* 🔥 BACKPACK RESPONSIVE FIX */
/* ========================= */

@media (max-width: 900px) {

  .backpack {
    width: 95vw;
    height: 85vh;

    flex-direction: column; /* 🔥 stack instead of side-by-side */
  }

  .sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .menu button {
    width: auto;
    padding: 10px 14px;
    font-size: 14px;
  }

  .content {
    width: 100%;
    padding: 10px;
  }

  .inventory-grid {
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    scroll-behavior: smooth;
  }

  .pet {
    width: 90px;
    height: 110px;
  }

  .top-bar-modal {
    flex-wrap: wrap;
    justify-content: center;
  }

  .top-bar-modal input {
    width: 100%;
    max-width: 200px;
  }
}
/* ========================= */
/* 🔥 RESET CONFIRM POPUP */
/* ========================= */

.reset-confirm-overlay {
  display: none;

  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  background: rgba(0,0,0,0.6);

  justify-content: center;
  align-items: center;

  z-index: 99999;

  backdrop-filter: blur(4px);

  opacity: 0;
  transition: opacity 0.2s ease;
}

.reset-confirm-overlay.show {
  display: flex;
  opacity: 1;
}

.reset-confirm-box {
  background: linear-gradient(145deg, #0f172a, #1e293b);

  border: 1px solid rgba(239,68,68,0.4);

  border-radius: 20px;

  padding: 36px 48px;

  text-align: center;

  box-shadow:
    0 0 30px rgba(239,68,68,0.2),
    0 20px 60px rgba(0,0,0,0.6);

  animation: modalPop 0.2s ease;
}

.reset-confirm-box p {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: white;
  margin: 0 0 24px 0;
}

.reset-confirm-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.confirm-yes {
  padding: 12px 28px;

  background: linear-gradient(135deg, #ef4444, #dc2626);

  border: none;
  border-radius: 12px;

  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;

  color: white;

  cursor: pointer;

  box-shadow: 0 6px 20px rgba(239,68,68,0.4);

  transition: all 0.2s ease;
}

.confirm-yes:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(239,68,68,0.6);
}

.confirm-no {
  padding: 12px 28px;

  background: linear-gradient(135deg, #334155, #1e293b);

  border: none;
  border-radius: 12px;

  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;

  color: white;

  cursor: pointer;

  box-shadow: 0 6px 20px rgba(0,0,0,0.3);

  transition: all 0.2s ease;
}

.confirm-no:hover {
  transform: scale(1.05);
}
/* ========================= */
/* 🔥 TOAST NOTIFICATION */
/* ========================= */

.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(34,197,94,0.4);

  color: #22c55e;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;

  padding: 14px 28px;
  border-radius: 50px;

  box-shadow:
    0 0 20px rgba(34,197,94,0.2),
    0 10px 30px rgba(0,0,0,0.5);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease, transform 0.3s ease;

  z-index: 999999;

  white-space: nowrap;
}

.toast.remove {
  border: 1px solid rgba(239,68,68,0.4);
  color: #ef4444;
  box-shadow:
    0 0 20px rgba(239,68,68,0.2),
    0 10px 30px rgba(0,0,0,0.5);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================= */
/* 🔥 SCROLL TO TOP BUTTON */
/* ========================= */

.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 30px;

  width: 50px;
  height: 50px;

  background: linear-gradient(135deg, #22c55e, #06b6d4);

  border: none;
  border-radius: 50%;

  font-size: 22px;
  font-weight: 900;
  color: white;

  cursor: pointer;

  box-shadow: 0 6px 20px rgba(34,197,94,0.3);

  opacity: 0;
  pointer-events: none;

  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;

  z-index: 999998;
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 30px rgba(34,197,94,0.6);
}

/* ========================= */
/* 🔥 SLOT COUNT BADGE */
/* ========================= */

.slot-count {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
  margin-left: 8px;
  opacity: 0.7;
  transition: color 0.3s ease;
}

.slot-count.nearly-full {
  color: #f59e0b;
  opacity: 1;
}

.slot-count.full {
  color: #ef4444;
  opacity: 1;
  animation: pulseBlue 1s infinite alternate;
}

/* ========================= */
/* 🔥 NAV POLISH */
/* ========================= */

nav h2 {
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========================= */
/* 🔥 PROFIT BOX WIN/LOSE COLOR */
/* ========================= */

.profit-box.win #profitValue {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34,197,94,0.6);
}

.profit-box.lose #profitValue {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239,68,68,0.6);
}

.profit-box.fair #profitValue {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245,158,11,0.6);
}
/* ========================= */
/* 🔥 SLOT REMOVE FLASH */
/* ========================= */

@keyframes removeFlash {
  0% { background: rgba(239,68,68,0.3); border-color: #ef4444; }
  100% { background: #1e293b; border-color: #22c55e; }
}

.slot-removing {
  animation: removeFlash 0.3s ease forwards;
}
/* ========================= */
/* 🔥 HOVER DELETE HINT */
/* ========================= */

.pet-container::after {
  content: "✕ Remove";

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(239,68,68,0.85);
  color: white;

  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;

  border-radius: 10px;

  opacity: 0;
  transition: opacity 0.2s ease;

  pointer-events: none;
}

.slot:hover .pet-container::after {
  opacity: 1;
}
.toast.warn {
  border: 1px solid rgba(245,158,11,0.4);
  color: #f59e0b;
  box-shadow:
    0 0 20px rgba(245,158,11,0.2),
    0 10px 30px rgba(0,0,0,0.5);
}
/* ========================= */
/* 🔥 PAGE TRANSITION */
/* ========================= */


body.page-exit {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ========================= */
/* 🔥 BG ROTATION LAYERS */
/* ========================= */

.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(6px) brightness(0.35) saturate(1.4);
  transform: scale(1.08);

  z-index: -1;
  pointer-events: none;

  opacity: 0;
  transition: opacity 1.5s ease;
}

.bg-layer.active {
  opacity: 1;
}

@media (max-width: 600px) {
  .bg-layer {
    filter: blur(4px) brightness(0.35) saturate(1.4);
  }

  body::before {
    filter: blur(4px) brightness(0.35) saturate(1.4);
  }
}


.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 30px 80px 30px;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  transform: scale(1.5);
  transform-origin: center center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  animation: fadeInUp 0.7s ease both;
}

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

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34,197,94,0.5);
  margin: 0;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(56px, 8vw, 100px);
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #22c55e 50%, #06b6d4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(34,197,94,0.3));
}

.hero-sub {
  font-size: 18px;
  font-weight: 500;
  color: #94a3b8;
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}

.hero-btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.primary-btn {
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  box-shadow: 0 10px 30px rgba(6,182,212,0.4);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(6,182,212,0.6);
}

.ghost-btn {
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  cursor: pointer;
  color: white;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}

.ghost-btn:hover {
  border-color: rgba(34,197,94,0.5);
  background: rgba(34,197,94,0.08);
  transform: translateY(-3px);
  color: white;
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
}

.win-badge {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  color: #22c55e;
}

.fair-badge {
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.4);
  color: #f59e0b;
}

.lose-badge {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: #ef4444;
}

/* ========================= */
/* 🔥 FEATURES SECTION */
/* ========================= */

.features-section {
  padding: 80px 40px 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.features-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #06b6d4;
  margin: 0 0 12px 0;
  text-transform: uppercase;
}

.features-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: white;
  margin: 0 0 50px 0;
  letter-spacing: -0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: linear-gradient(145deg, rgba(2,6,23,0.8), rgba(30,41,59,0.6));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: left;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,197,94,0.3);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.5),
    0 0 20px rgba(34,197,94,0.1);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: white;
  margin: 0 0 10px 0;
  letter-spacing: 0.3px;
}

.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* ========================= */
/* 🔥 HOME FOOTER */
/* ========================= */

.home-footer {
  text-align: center;
  padding: 30px;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.04);
}
#home-scale {
  width: 1400px;
  transform-origin: top center;
  position: relative;
  visibility: hidden;
}
/* ========================= */
/* 🔥 FOOTER */
/* ========================= */

.site-footer {
  width: 100%;
  padding: 40px 30px 30px 30px;
  box-sizing: border-box;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 60px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s ease;
  color: #475569;
}

.footer-social-btn:hover {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: #22c55e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.2);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #334155;
  text-decoration: none;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #22c55e;
}

.footer-divider {
  color: #1e293b;
  font-size: 12px;
}

.footer-age {
  font-size: 11px;
  color: #1e293b;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.footer-brand span {
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* ========================= */
/* 🔥 LEGAL PAGES */
/* ========================= */

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 40px 60px 40px;
  box-sizing: border-box;
  min-height: 100vh;
}

.legal-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.6s ease both;
}

.legal-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34,197,94,0.4);
  margin: 0 0 16px 0;
  text-transform: uppercase;
}

.legal-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0 0 12px 0;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #22c55e 60%, #06b6d4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-date {
  font-size: 14px;
  color: #334155;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section {
  background: linear-gradient(145deg, rgba(2,6,23,0.8), rgba(15,23,42,0.6));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 32px;
  transition: border-color 0.2s ease;
}

.legal-section:hover {
  border-color: rgba(34,197,94,0.15);
}

.legal-section h2 {
  font-size: 16px;
  font-weight: 800;
  color: white;
  margin: 0 0 12px 0;
  letter-spacing: 0.3px;
}

.legal-section p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.legal-section p:last-child {
  margin: 0;
}

.legal-link {
  color: #22c55e;
  text-decoration: none;
  font-weight: 700;
  -webkit-text-fill-color: #22c55e;
}

.legal-link:hover {
  text-decoration: underline;
}

.legal-list {
  color: #64748b;
  font-size: 14px;
  line-height: 2;
  padding-left: 20px;
  margin: 10px 0;
}

/* 🔥 CONTACT CARDS */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.contact-card {
  background: linear-gradient(145deg, rgba(2,6,23,0.8), rgba(15,23,42,0.6));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card:hover {
  border-color: rgba(34,197,94,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 20px rgba(34,197,94,0.08);
}

.contact-card-icon {
  font-size: 28px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: white;
  margin: 0;
}

.contact-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
  flex: 1;
}

.contact-card-btn {
  font-size: 12px;
  font-weight: 800;
  color: #22c55e;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .legal-page {
    padding: 100px 20px 40px 20px;
  }
  .legal-section {
    padding: 20px;
  }
}
/* ========================= */
/* 🔥 MOBILE FIX */
/* ========================= */

html, body {
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body::-webkit-scrollbar {
  display: none;
}
.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .nav-logo-img {
    width: 22px;
    height: 22px;
  }
}
/* ========================= */
/* 🔥 LOGO EXTRAS */
/* ========================= */

.footer-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.7;
  vertical-align: middle;
  margin-right: 6px;
  transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
  opacity: 1;
}

.hero-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(34,197,94,0.3);
  box-shadow:
    0 0 20px rgba(34,197,94,0.2),
    0 0 40px rgba(6,182,212,0.1);
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 30px rgba(34,197,94,0.4),
    0 0 60px rgba(6,182,212,0.2);
  border-color: rgba(34,197,94,0.6);
}

.legal-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.6;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* ========================= */
/* 🔥 VALUES PAGE */
/* ========================= */

.values-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 30px 60px 30px;
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.values-sidebar {
  width: 180px;
  min-width: 180px;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(145deg, #020617, #0f172a);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 20px 14px;
  box-sizing: border-box;
}

.values-sidebar h3 {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #334155;
  text-transform: uppercase;
  margin: 0 0 12px 6px;
}

.values-cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.values-cat-btn:hover {
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  border-color: rgba(255,255,255,0.06);
}

.values-cat-btn.active {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(6,182,212,0.08));
  border-color: rgba(34,197,94,0.25);
  color: #22c55e;
}

.values-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.values-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.values-search {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  padding: 11px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  font-size: 14px;
  font-weight: 600;
  color: white;
  outline: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.values-search::placeholder {
  color: #475569;
}

.values-search:focus {
  border-color: rgba(34,197,94,0.4);
  background: rgba(34,197,94,0.06);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}

.values-mod-bar {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 6px 10px;
}

.values-mod-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  color: #475569;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.values-mod-btn:hover {
  transform: scale(1.08);
  color: white;
  border-color: rgba(255,255,255,0.15);
}

.values-mod-btn.active {
  transform: scale(1.1);
  color: white;
  border-color: transparent;
}

.values-count {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-left: auto;
  white-space: nowrap;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.value-card {
  background: linear-gradient(145deg, #080f1e, #0f172a);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.value-card:hover {
  border-color: rgba(34,197,94,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 16px rgba(34,197,94,0.08);
  background: linear-gradient(145deg, #0d1829, #111827);
}

.value-card-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transition: transform 0.2s ease;
}

.value-card:hover .value-card-img {
  transform: scale(1.08) translateY(-2px);
}

.value-card-name {
  font-size: 13px;
  font-weight: 800;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.value-card-mod {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.9;
}

.value-card-num {
  font-size: 24px;
  font-weight: 900;
  color: #22c55e;
  letter-spacing: -0.5px;
  line-height: 1;
  transition: color 0.2s ease;
}

.value-card-num.high {
  color: #f59e0b;
}

.value-card-num.very-high {
  color: #ef4444;
}

.values-empty {
  text-align: center;
  padding: 60px 20px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .values-page {
    flex-direction: column;
    padding: 90px 16px 40px 16px;
    gap: 16px;
  }

  .values-sidebar {
    width: 100%;
    min-width: unset;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
    gap: 6px;
  }

  .values-sidebar h3 {
    display: none;
  }

  .values-cat-btn {
    width: auto;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 50px;
  }

  .values-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
}