/* =========================================================
   FFM STORE — FINAL CLEAN CSS
   COMPACT HERO + 2x2 SERVICES
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #05070b;
  color: #f5f7fb;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Inter",
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  overflow-x: hidden;
}

/* =========================================================
   HEADER
   ========================================================= */

.topbar {
  width: 100%;
  padding: 24px 42px;

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

  background: #05070b;
  border-bottom: 1px solid #202630;
}

.brand {
  color: #f5f7fb;

  font-size: 28px;
  font-weight: 850;
  letter-spacing: -1.5px;
}

.brand span {
  color: #ffb800;
}

.tag {
  color: #8f99aa;

  font-size: 14px;
  font-weight: 600;
}

/* =========================================================
   HERO — COMPACT
   ========================================================= */

.hero {
  width: 100%;
  margin: 0;

  padding: 42px 42px 42px;

  background:
    radial-gradient(
      circle at 75% 35%,
      rgba(255, 184, 0, 0.045),
      transparent 35%
    ),
    #05070b;

  border-bottom: 1px solid #202630;
}

.hero > div {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
}

.hero .eyebrow {
  margin: 0 0 16px;

  color: #ffb800;

  font-size: 13px;
  line-height: 1.4;
  font-weight: 850;

  letter-spacing: 5px;
}

.hero h1 {
  max-width: 1050px;

  margin: 0 0 20px;

  color: #f5f7fb;

  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -4px;
  font-weight: 850;
}

.hero h1 span {
  color: #9ba6b8;
}

.hero .sub {
  max-width: 780px;

  margin: 0;

  color: #9da8ba;

  font-size: 18px;
  line-height: 1.5;
}

/* =========================================================
   SERVICES SECTION
   ========================================================= */

#services {
  width: 100%;
  max-width: 1050px;

  margin: 0 auto;

  padding: 34px 42px 70px;
}

/* Completely remove STORE + Services heading */

.section-head {
  display: none !important;
}

/* =========================================================
   CATEGORY NAV
   2 x 2
   5th centered
   ========================================================= */

#catNav {
  width: 100%;
  max-width: 760px;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;

  margin: 0 auto 28px;
  padding: 0;
}

/* =========================================================
   CATEGORY BUTTONS
   ========================================================= */

#catNav button,
#catNav a {
  appearance: none;
  -webkit-appearance: none;

  width: 100%;
  min-height: 58px;

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

  padding: 11px 14px;

  background: #0b1017;
  color: #aeb8c9;

  border: 1px solid #293342;
  border-radius: 16px;

  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;

  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

#catNav button:hover,
#catNav a:hover {
  color: #ffffff;
  border-color: #ffb800;
  transform: translateY(-2px);
}

/* Active category */

#catNav button.active,
#catNav button.selected,
#catNav a.active,
#catNav a.selected {
  background: #ffb800;
  color: #05070b;
  border-color: #ffb800;

  font-weight: 800;
}

/* =========================================================
   FIFTH CATEGORY
   PLAY STORE REDEEM CODE
   ========================================================= */

#catNav > :nth-child(5) {
  grid-column: 1 / -1;

  width: 72%;

  justify-self: center;
}

/* =========================================================
   SERVICE GRID
   ========================================================= */

#serviceGrid {
  width: 100%;
  max-width: 760px;

  display: grid;
  grid-template-columns: 1fr;

  gap: 16px;

  margin: 0 auto;
  padding: 0;
}

/* =========================================================
   SERVICE CARDS
   ========================================================= */

#serviceGrid > * {
  width: 100%;

  margin: 0;
  padding: 25px;

  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 34, 0.96),
      rgba(9, 14, 21, 0.99)
    );

  border: 1px solid #273140;
  border-radius: 22px;

  box-shadow: none;
}

#serviceGrid h2,
#serviceGrid h3,
#serviceGrid h4 {
  margin-top: 0;

  color: #f5f7fb;

  font-weight: 800;
}

#serviceGrid p {
  color: #a3adbd;
  line-height: 1.5;
}

#serviceGrid .price {
  color: #ffb800;

  font-size: 28px;
  font-weight: 850;
}

/* =========================================================
   BUY BUTTON
   ========================================================= */

#serviceGrid button {
  appearance: none;
  -webkit-appearance: none;

  min-height: 44px;

  padding: 10px 17px;

  background: #151c27;
  color: #f5f7fb;

  border: 1px solid #303b4c;
  border-radius: 13px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 750;

  cursor: pointer;

  transition: 0.18s ease;
}

#serviceGrid button:hover {
  background: #ffb800;
  color: #05070b;
  border-color: #ffb800;
}

/* =========================================================
   TELEGRAM
   ========================================================= */

.tg-contact {
  max-width: 760px;

  margin: 30px auto 0;

  color: #7f899a;

  text-align: center;

  font-size: 14px;
}

/* =========================================================
   HIDDEN
   ========================================================= */

.hidden {
  display: none !important;
}

/* =========================================================
   MODALS
   ========================================================= */

.modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

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

  padding: 20px;

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

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  overflow-y: auto;
}

.modal-card {
  position: relative;

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

  max-height: calc(100vh - 40px);

  overflow-y: auto;

  padding: 30px;

  background: #0a0f16;

  border: 1px solid #2a3443;
  border-radius: 24px;

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.55);
}

.modal-card h2 {
  margin: 8px 0 12px;

  color: #f5f7fb;

  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}

.modal-card .price {
  margin-bottom: 22px;

  color: #ffb800;

  font-size: 29px;
  font-weight: 850;
}

/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close {
  position: absolute;

  top: 16px;
  right: 16px;

  width: 40px;
  height: 40px;

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

  padding: 0;

  background: #111823;
  color: #aeb8c9;

  border: 1px solid #303b4c;
  border-radius: 50%;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;
}

.close:hover {
  color: #ffffff;
  border-color: #ffb800;
}

/* =========================================================
   FORM LABELS
   ========================================================= */

.modal-card label {
  display: block;

  margin: 0 0 17px;
}

.modal-card label span {
  display: block;

  margin-bottom: 7px;

  color: #dce2ec;

  font-size: 14px;
  font-weight: 700;
}

/* =========================================================
   INPUTS
   ========================================================= */

.modal-card input {
  appearance: none;
  -webkit-appearance: none;

  width: 100%;
  height: 50px;

  padding: 0 15px;

  background: #080c12 !important;
  color: #f5f7fb !important;

  border: 1px solid #303b4c !important;
  border-radius: 13px !important;

  outline: none;

  font-family: inherit;
  font-size: 16px;
}

.modal-card input::placeholder {
  color: #697487;
}

.modal-card input:focus {
  border-color: #ffb800 !important;

  box-shadow:
    0 0 0 3px rgba(255, 184, 0, 0.09);
}

.field-help {
  margin: -4px 0 16px;

  color: #7f899a;

  font-size: 13px;
  line-height: 1.5;
}

/* =========================================================
   GENERAL BUTTONS
   ========================================================= */

.btn,
.copy {
  appearance: none;
  -webkit-appearance: none;

  min-height: 49px;

  padding: 12px 20px;

  background: #ffb800;
  color: #05070b;

  border: 1px solid #ffb800;
  border-radius: 13px;

  font-family: inherit;
  font-size: 15px;
  font-weight: 800;

  cursor: pointer;

  transition: 0.18s ease;
}

.btn:hover,
.copy:hover {
  background: #ffc62e;
  transform: translateY(-1px);
}

.btn.full {
  width: 100%;
}

/* =========================================================
   PAYMENT
   ========================================================= */

.payment-card {
  max-width: 600px;
}

.upi-box {
  margin: 18px 0;

  padding: 20px;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 14px;

  background: #070b11;

  border: 1px solid #293342;
  border-radius: 19px;
}

.qr-wrap {
  width: min(100%, 300px);

  display: flex;

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

  overflow: hidden;

  border-radius: 15px;
}

.qr-wrap img {
  display: block;

  width: 100%;
  height: auto;

  max-height: 300px;

  object-fit: contain;
}

.upi-box strong {
  color: #f5f7fb;

  font-size: 18px;

  text-align: center;

  word-break: break-all;
}

.copy {
  background: #151c27;
  color: #f5f7fb;

  border-color: #303b4c;
}

.copy:hover {
  background: #ffb800;
  color: #05070b;
}

.hint {
  margin: 15px 0;

  color: #929caf;

  font-size: 15px;
  line-height: 1.5;
}

/* =========================================================
   PAYMENT STEPS
   ========================================================= */

.steps {
  display: flex;
  flex-direction: column;

  gap: 9px;

  margin: 18px 0 22px;
}

.steps > div {
  display: flex;

  align-items: flex-start;

  gap: 11px;

  padding: 12px 14px;

  background: #0d131c;

  border: 1px solid #222c3a;
  border-radius: 12px;

  color: #aab4c5;

  font-size: 14px;
  line-height: 1.45;
}

.steps b {
  flex: 0 0 25px;

  width: 25px;
  height: 25px;

  display: flex;

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

  background: #ffb800;
  color: #05070b;

  border-radius: 50%;

  font-size: 12px;
}

/* =========================================================
   STATUS
   ========================================================= */

.status {
  margin: 14px 0 0;

  color: #ffb800;

  font-size: 14px;
  line-height: 1.5;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 28px 20px 42px;

  color: #687385;

  border-top: 1px solid #202630;

  text-align: center;

  font-size: 13px;
  line-height: 1.7;
}

/* =========================================================
   MOBILE — IPHONE
   ========================================================= */

@media (max-width: 600px) {

  /* HEADER */

  .topbar {
    padding: 24px 20px;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 4px;
  }

  .brand {
    font-size: 25px;
  }

  .tag {
    font-size: 12px;
  }

  /* HERO */

  .hero {
    padding: 34px 24px 34px;
  }

  .hero .eyebrow {
    margin-bottom: 14px;

    font-size: 11px;
    letter-spacing: 3.5px;
  }

  .hero h1 {
    max-width: 100%;

    margin: 0 0 17px;

    font-size: 45px;
    line-height: 0.97;
    letter-spacing: -2.7px;
  }

  .hero .sub {
    max-width: 100%;

    font-size: 16px;
    line-height: 1.45;
  }

  /* SERVICES */

  #services {
    padding: 27px 20px 60px;
  }

  /* 2x2 */

  #catNav {
    width: 100%;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 24px;
  }

  #catNav button,
  #catNav a {
    min-height: 57px;

    padding: 9px 7px;

    border-radius: 15px;

    font-size: 14px;
  }

  /* 5th centered */

  #catNav > :nth-child(5) {
    width: 88%;

    justify-self: center;
  }

  /* CARDS */

  #serviceGrid {
    width: 100%;

    gap: 14px;
  }

  #serviceGrid > * {
    padding: 22px;

    border-radius: 20px;
  }

  #serviceGrid h2,
  #serviceGrid h3,
  #serviceGrid h4 {
    font-size: 21px;
  }

  #serviceGrid .price {
    font-size: 26px;
  }

  /* MODAL */

  .modal {
    align-items: flex-end;

    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-width: none;

    max-height: 92vh;

    padding: 24px 20px 28px;

    border-radius: 24px 24px 0 0;

    border-bottom: 0;
  }

  .modal-card h2 {
    font-size: 27px;
  }

  .upi-box {
    padding: 16px;
  }

  .qr-wrap {
    width: min(100%, 290px);
  }

  .upi-box strong {
    font-size: 17px;
  }

  .steps > div {
    font-size: 13px;
  }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

  .topbar {
    padding-left: 17px;
    padding-right: 17px;
  }

  .hero {
    padding: 29px 20px 30px;
  }

  .hero h1 {
    font-size: 41px;

    line-height: 0.97;

    letter-spacing: -2.3px;
  }

  .hero .sub {
    font-size: 15px;
  }

  #services {
    padding-left: 15px;
    padding-right: 15px;
  }

  #catNav button,
  #catNav a {
    font-size: 13px;
  }

  #catNav > :nth-child(5) {
    width: 94%;
  }

  #serviceGrid > * {
    padding: 20px;
  }
}
