html {
  scroll-behavior: smooth;
}

#app_content {
  display: block;
}

#social {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media only screen and (max-width: 1420px) {
  #social {
    grid-template-columns: 1fr !important;
  }
}

#coin_bar {
  position: relative;
  touch-action: none;
}

#coin_bar_slider {
  touch-action: none;
}

.parallax {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* ---- checkboxes (purchase modal) ---- */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
}
.checkbox-input {
  display: none;
}
.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}
.checkbox-input:checked + .checkbox-custom {
  background-color: #fc9404;
  border-color: #fc9404;
}
.checkbox-input:checked + .checkbox-custom:after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.checkbox-text {
  color: #666;
}
.checkbox-text a {
  color: #fc9404;
  text-decoration: none;
}
.checkbox-text a:hover {
  text-decoration: underline;
}
.agreement-checkboxes {
  margin-top: 16px;
}
.checkbox-group:not(:last-child) {
  margin-bottom: 10px;
}

.coupon-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.coupon-group input {
  flex: 1;
  height: 48px;
  border: 1px solid #c6cdec;
  box-sizing: border-box;
  border-radius: 6px;
  padding: 0 16px;
}
.coupon-apply {
  padding: 9px 16px;
  white-space: nowrap;
}

/* ---- description page ---- */
.description-section .panel {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.description-section .panel:last-child {
  border-bottom: none;
}

/* ---- legal pages (offer / privacy) ---- */
.legal-section h1 {
  margin-bottom: 10px;
}
.legal-section .legal-note {
  color: #979797;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 20px;
}
.legal-section .panel {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.legal-section .panel:last-child {
  border-bottom: none;
}
.legal-section .panel h3 {
  color: #fc9404;
  font-size: 18px;
  margin-bottom: 10px;
}
.legal-section .panel p {
  line-height: 22px;
}
.description-section .panel h3 {
  color: #fc9404;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.description-section .panel p {
  line-height: 22px;
}

/* ---- support page ---- */
.support-section h1 {
  margin-bottom: 10px;
}
.support-section h5 {
  font-weight: 500;
  font-size: 18px;
  color: #979797;
  margin-bottom: 30px;
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.support-contacts .panel {
  background: #f9f9f9;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.support-contacts .panel h3 {
  color: #fc9404;
  margin-bottom: 10px;
  font-size: 18px;
}
.support-contacts .panel p {
  margin-bottom: 16px;
  color: #575d79;
}
.support-form {
  background: #f9f9f9;
  border-radius: 14px;
  padding: 24px;
}
.support-form h3 {
  color: #fc9404;
  margin-bottom: 16px;
  font-size: 18px;
}
.support-form textarea {
  width: 100%;
  border: 1px solid #c6cdec;
  box-sizing: border-box;
  border-radius: 6px;
  padding: 16px;
  font-family: 'Mazzard M';
  resize: vertical;
}
.support-form button {
  border: none;
  margin-top: 10px;
}

@media only screen and (max-width: 1280px) {
  header #header_menu {
    display: none;
  }
  header #header_menu.mobile-open {
    display: block;
  }
}

/* ---- mobile polish (phones) ---- */
@media only screen and (max-width: 830px) {
  html,
  body {
    min-width: 0;
    overflow-x: hidden;
  }
  .wrapper {
    min-width: 0;
    padding: 0 12px;
  }

  section {
    padding: 28px 20px;
  }

  #head #head_top {
    padding: 90px 24px;
  }
  #head #head_top h1 {
    font-size: 32px;
    line-height: 38px;
  }
  #head #head_top h5 {
    font-size: 16px;
    line-height: 20px;
  }

  #head .head_bottom {
    grid-template-columns: 1fr;
    grid-template-areas: 'online';
    height: auto;
  }
  #head .head_bottom .s-online-wrapp {
    width: 100%;
    height: auto;
    background: none;
    padding: 0;
  }
  #head .head_bottom .s-online-wrapp .s-online {
    position: static;
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
  }

  #join_us {
    grid-template-columns: 1fr;
    grid-template-areas: 'join_us_text' 'copy_ip';
    text-align: center;
  }
  #join_us .join_us_arrow {
    display: none;
  }
  #join_us .copy_ip {
    grid-template-columns: 1fr;
    grid-template-areas: '.' '.';
    justify-items: center;
    height: auto;
    gap: 12px;
  }

  #store_coin {
    grid-template-columns: 1fr;
    grid-template-areas: 'img' 'select' 'buttons';
    text-align: center;
    gap: 20px;
  }
  #store_coin .store_coin_img {
    margin: 0 auto;
  }
  #store_coin .to_pay_coin {
    justify-items: center;
  }

  #store_header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  #store_header .s-left {
    justify-content: center;
  }
  #store_header .s-left img {
    float: none;
  }
  #store_header .s-right {
    margin-right: 0;
  }
  .group-button {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  #store_items {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #store_items h3 {
    grid-column: 1 / 3 !important;
  }
  #store_items .card {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  #social {
    grid-template-columns: 1fr !important;
  }

  footer .wrapper {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }
  footer .wrapper .social {
    text-align: left !important;
  }

  .modal .modal-dialog,
  .mymodal .modal-dialog {
    width: 90vw;
    padding: 30px 20px;
    max-height: 85vh;
    overflow-y: auto;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}
