:root {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* ========== BASE RESET & GLOBAL ========== */
html, body {
  margin: 0;
  height: 100%;
  background: transparent;
  font-family: 'Inter', 'Nunito', sans-serif;
}
/* Safari fix: предотвращаем перекрытие fixed-элементов */
html {
    position: relative;
    z-index: 1;
}
body {
    position: relative;
    z-index: 1;
}

/* ========== BACKGROUND ========== */
.bg {
  position: fixed;
  inset: 0;
  background: url("cityfonPK.png") no-repeat center center;
  background-size: cover;
  z-index: -3;
}

/* Desktop background refinements */
@media (orientation: landscape) {
  .bg {
    background: url("cityfonPK.png") no-repeat center center;
    background-size: cover;
  }

  .windows {
    background:
      radial-gradient(10px 30px at 41.4% 48%, rgb(9, 224, 178), transparent 60%),
      radial-gradient(20px 20px at 32% 49%, rgba(255,220,150,.7), transparent 60%),
      radial-gradient(20px 20px at 34% 70%, rgba(255,240,200,.8), transparent 60%),
      radial-gradient(20px 20px at 60% 70%, rgba(255,230,180,.7), transparent 60%),
      radial-gradient(20px 20px at 94% 75%, rgba(255,250,200,.9), transparent 60%);
  }

  .spikes {
    background:
      radial-gradient(8px 50px at 75.3% 0.5%, rgb(129, 255, 249), transparent 99%),   
      radial-gradient(8px 50px at 69.7% 31%, rgb(129, 255, 249), transparent 99%),
      radial-gradient(8px 50px at 81.2% 38%, rgba(0,255,255,1), transparent 80%);
  }
}

/* Mobile background refinements */
@media (orientation: portrait) {
  .bg {
    background: url("cityfonMOB.png") no-repeat center top;
    background-size: cover;
  }

  .windows {
    background:
      radial-gradient(10px 53px at 36% 49%, rgb(9, 224, 178), transparent 60%),
      radial-gradient(12px 12px at 21% 49%, rgba(255,220,150,.7), transparent 60%),
      radial-gradient(10px 18px at 34% 59%, rgba(255,240,200,.8), transparent 60%),
      radial-gradient(12px 13px at 63% 65%, rgba(255,230,180,.7), transparent 60%),
      radial-gradient(12px 18px at 80% 75%, rgba(255,250,200,.9), transparent 60%);
  }

  .spikes {
    background:
      radial-gradient(10px 4px at 83% 44%, rgba(0,255,255,1), transparent 80%);
  }
}

/* ========== WINDOWS & SPIKES ANIMATIONS ========== */
.windows {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  animation: windows-blink 2.5s infinite alternate ease-in-out;
}

@keyframes windows-blink {
  0%   { opacity: 0.2; }
  50%  { opacity: 0.8; }
  100% { opacity: 0.4; }
}

.spikes {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  animation: spike-glow 1.5s infinite alternate ease-in-out;
}

@keyframes spike-glow {
  0%, 100% { opacity: 0.7; filter: blur(3px); }
  50%      { opacity: 1; filter: blur(9px); }
}

/* ========== LOGO ========== */
.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.logoXF {
  width: 160px;
  height: auto;
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(22,255,214,0.9))
          drop-shadow(0 0 20px rgba(22,255,214,0.6));
  transition: filter 0.3s ease, transform 0.2s ease;
}

.logoXF:hover,
.logoXF:active {
  filter: drop-shadow(0 0 12px rgba(22,255,214,1))
          drop-shadow(0 0 28px rgba(22,255,214,0.8));
  transform: scale(1.05);
}

.logoXF.active {
  filter: drop-shadow(0 0 16px rgba(22,255,214,1))
          drop-shadow(0 0 32px rgba(22,255,214,0.9));
  transform: scale(1.08);
}

/* ========== MODAL BASE ========== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);

    /* 🔥 Самое важное — поверх ВСЕГО */
    z-index: 9998 !important;

    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}


.modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  background: rgba(20,30,30,0.35);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 46px 28px 28px;
  max-width: 480px;
  width: 90%;
  color: #eafffb;
  box-shadow: 0 0 18px rgba(22,255,214,.35);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* scrollbars for modal */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(22,255,214,0.4);
  border-radius: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;

    /* 🔥 Поверх даже модалки */
    z-index: 9999 !important;

    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #ff4d4d;
    text-shadow: 0 0 8px #ff3b3b, 0 0 14px #ff1a1a;
    transition: transform 0.2s ease, color 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
  color: #ff1a1a;
}

/* mobile modal tweaks */
@media (max-width: 600px) {
  .modal-content {
    width: 94%;
    padding: 28px 16px 22px;
    border-radius: 16px;
    max-height: 88vh;
    font-size: 14px;
  }
}

/* ========== TRADE TOGGLE ========== */
.trade-toggle {
  --gap: 14px;
  position: relative;
  display: flex;
  gap: var(--gap);
  margin-top: 16px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(22,255,214,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden; /* убираем светящийся фон за пределами блока */
}

.trade-toggle::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 6px;
  width: calc((100% - var(--gap)) / 2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(22,255,214,0.18), rgba(0,163,255,0.18));
  box-shadow: none;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.trade-toggle.sell-first::before {
  transform: translateX(calc(100% + var(--gap)));
}

.trade-toggle button {
  position: relative;
  z-index: 1;
  flex: 1 1 0%;
  min-width: 140px;
  min-height: 54px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(20,30,30,.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #0b1f1c;
  text-shadow: 0 1px 2px rgba(255,255,255,0.35);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .32s cubic-bezier(.34,1.56,.64,1),
              box-shadow .32s ease,
              border-color .3s ease,
              color .25s ease,
              background .25s ease;
  box-shadow: none;
}

.trade-toggle button.active {
  border-color: rgba(22,255,214,.7);
  background: linear-gradient(135deg, #16ffd6, #00a3ff);
  color: #041018;
  box-shadow: none;
  transform: scale(1.02);
}

.trade-toggle button:hover {
  box-shadow: none;
}

.trade-toggle button:active { transform: scale(.97); }

@media (max-width: 480px) {
  .trade-toggle { --gap: 10px; padding: 5px; }
  .trade-toggle::before { inset: 5px; }
  .trade-toggle button {
    min-width: 0;
    min-height: 50px;
    padding: 11px 14px;
    font-size: 15px;
  }
  .close-btn { top: 8px; right: 10px; font-size: 18px; }
}

/* ========== FORM FIELDS ========== */
.input-group {
  margin: 18px 0;
  position: relative;
  z-index: 10; /* поднять над trade-toggle без визуальных изменений */
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #eafffb;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(22, 255, 214, 0.25);
  border-radius: 14px;
  padding: 12px 16px;
  padding-right: 90px; /* место под кастомный дропдаун */
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.input-wrap:hover {
  border-color: rgba(22,255,214,0.8);
  box-shadow: 0 0 18px rgba(22,255,214,0.35);
}

.input-wrap .icon {
  font-size: 18px;
  color: #16ffd6;
  text-shadow: 0 0 6px rgba(22,255,214,0.7);
}

.input-wrap input,
.input-wrap select {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #eafffb;
  font-size: 15px;
  font-family: inherit;
}

.input-wrap select {
  appearance: none;
  background: rgba(20,30,30,0.55);
  border: 1px solid rgba(22,255,214,0.3);
  border-radius: 10px;
  padding: 8px 32px 8px 12px;
  color: #eafffb;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.input-wrap select:hover,
.input-wrap select:focus {
  background: rgba(20,30,30,0.7);
  border-color: rgba(22,255,214,0.8);
  box-shadow: 0 0 12px rgba(22,255,214,0.4);
}

.input-wrap {
  position: relative;
}

.input-wrap::after { display: none; }
.input-wrap:has(select)::after {
  content: "";
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 3 L5 6 L8 3' stroke='%2316ffd6' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  display: block;
}


.input-wrap select option {
  background: #0e1a1a;
  color: #eafffb;
  padding: 10px;
}

/* ========== NETWORK SELECT ========== */
.network-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(22, 255, 214, 0.35);
  border-radius: 12px;
  padding: 10px 36px 10px 14px;
  color: #eafffb;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: all 0.3s ease;
}

.network-select:hover,
.network-select:focus {
  background: rgba(20,30,30,0.6);
  border-color: rgba(22,255,214,0.7);
  box-shadow: 0 0 14px rgba(22,255,214,0.4);
}

.network-select option {
  background: #0e1a1a;
  color: #eafffb;
  padding: 10px;
}

/* ========== CUSTOM CURRENCY DROPDOWN ========== */
.currency-dropdown {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 14px;
  transform: none;
  width: 140px;
  user-select: none;
  z-index: 7000;
  display: flex;
  align-items: center;
}
.currency-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(22, 255, 214, 0.25);
  color: #eafffb;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.currency-current:hover {
  border-color: rgba(22,255,214,0.55);
  box-shadow: 0 0 14px rgba(22,255,214,0.25);
  background: rgba(255,255,255,0.07);
}
.currency-current .ico {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}
.currency-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px); /* дроп вверх, чтобы не перекрывать следующую строку */
  top: auto;
  min-width: 140px;
  max-width: 170px;
  margin-top: 0;
  border-radius: 12px;
  background: rgba(6,12,18,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
  overflow: hidden;
  display: none;
  z-index: 7001;
  transform-origin: top right;
  animation: dropdownFade 0.15s ease;
}

/* === Fix z-index and clipping for currency dropdown === */
.currency-dropdown { z-index: 7000; }
.currency-list { z-index: 7001; }
.exchange-card,
.exchange-box,
.exchange-section {
  overflow: visible;
}
.currency-dropdown.open .currency-list { display: block; }
.currency-dropdown {
  margin-left: auto;
}
.currency-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: #eafffb;
  cursor: pointer;
  transition: background 0.15s ease;
}
.currency-item:hover {
  background: rgba(22,255,214,0.08);
}
.currency-item .ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35));
}

@keyframes dropdownFade {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* ========== TRADE FORM BUTTONS (legacy) ========== */
.trade-form button {
  width: 100%;
  padding: 14px 18px;
  margin-top: 18px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #00ffc3, #0099ff);
  box-shadow: 0 0 18px rgba(22,255,214,0.4);
  transition: all 0.3s ease;
}

.trade-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22,255,214,0.5);
}

.trade-form button:active {
  transform: scale(0.96);
}

/* ========== HEADER (DESKTOP) ========== */
.glass-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(20,30,30,0.35);
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 0 12px rgba(22,255,214,.25);
  z-index: 200;
}

.header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.header-nav a,
.dropdown-btn {
  color: #ddebe8;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, text-shadow 0.2s;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  vertical-align: middle;
}

.header-nav a:hover,
.dropdown-btn:hover {
  color: #0ce0b9;
  text-shadow: 0 0 8px rgba(22,255,214,0.9);
}

.dropdown { position: relative; }

.dropdown-content {
  position: absolute;
  top: 100%; left: 0;
  display: none;
  flex-direction: column;
  background: rgba(20,30,30,0.6);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 0 12px rgba(22,255,214,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  min-width: 180px;
  animation: dropdownOpen 0.3s ease forwards;
}

.dropdown.open .dropdown-content { display: flex; }

.dropdown-content a {
  padding: 12px 18px;
  color: #eafffb;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.dropdown-content a:hover {
  background: rgba(22,255,214,0.15);
  color: #16ffd6;
}

/* Login button (desktop) */
.login-btn {
  padding: 8px 20px;
  background: rgba(22,255,214,0.15);
  border: 1px solid rgba(22,255,214,0.5);
  border-radius: 10px;
  color: #eafffb;
  cursor: pointer;
  transition: all 0.3s ease;
}
.login-btn:hover {
  background: rgba(22,255,214,0.25);
  box-shadow: 0 0 12px rgba(22,255,214,0.6);
  color: #16ffd6;
}

/* dropdown animation */
@keyframes dropdownOpen {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* header tweaks for medium screens */
@media (max-width: 768px) {
  .glass-header {
    padding: 0 16px;
    height: 60px;
  }
  .header-nav {
    gap: 16px;
  }
  .header-nav a,
  .dropdown-btn {
    font-size: 13px;
  }
  .login-btn {
    padding: 6px 14px;
    font-size: 12px;
  }
}

/* very small */
@media (max-width: 480px) {
  .glass-header {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 6px 4px;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .login-btn {
    margin-top: 4px;
    font-size: 12px;
    padding: 5px 8px;
  }
}

/* ========== SUBMIT BUTTON (MAIN) ========== */
.submit-wrap {
  margin-top: 20px;
  text-align: center;
}

.submit-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  color: #0b1f1c;
  text-shadow: 0 1px 2px rgba(255,255,255,0.35);
  background: linear-gradient(135deg,#16ffd6,#00a3ff);
  box-shadow: 0 0 18px rgba(22,255,214,.35), inset 0 0 0 rgba(0,0,0,0);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease, filter .2s ease, opacity .2s ease;
}

.submit-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(22,255,214,.6), 0 8px 22px rgba(0,163,255,.35);
}

.submit-btn:active{
  transform: scale(.98);
  box-shadow: 0 0 26px rgba(22,255,214,.75) inset;
}

.submit-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
  filter:grayscale(.15) saturate(.7);
}

/* mobile submit smaller */
@media (max-width:600px){
  .submit-btn{ font-size:15px; padding:12px 14px; border-radius:12px; }
}

/* ========== MIN HINT ========== */
.min-hint{
  margin-top:6px;
  font-size:12px;
  color:#a7ffee;
  opacity:.85;
}
.min-hint.error{
  color:#ff8a8a;
  text-shadow:0 0 8px rgba(255,77,77,.7);
}

/* ========== FAQ BUTTONS ========== */
.faq-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.faq-buttons a {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid #00c896;
  border-radius: 8px;
  color: #00c896;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  min-width: 140px;
  text-align: center;
}

.faq-buttons a:hover {
  background: #00c896;
  color: #1a1a1a;
  box-shadow: 0 0 15px rgba(0, 200, 150, 0.7);
}

@media (max-width: 768px) {
  .faq-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .faq-buttons a {
    width: 100%;
    font-size: 15px;
    padding: 12px;
  }
}

/* ========== DEV MODE BUTTON ========== */
.admin-login-btn{
  position:fixed;
  bottom:12px;
  right:12px;
  padding:8px 14px;
  font-size:13px;
  color:#00ffc3;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(22,255,214,.4);
  border-radius:8px;
  cursor:pointer;
  box-shadow:0 0 10px rgba(22,255,214,.4);
  transition:.2s;
  z-index:9999;
  opacity:.5;
}
.admin-login-btn:hover{ opacity:1 }
body.dev-mode .admin-login-btn{ color:#111; background:#00ffc3 }
body.dev-mode .modal-content{ outline:2px dashed #00ffc3; outline-offset:4px }

/* ========== GLASS BLOCK / BUTTON ========== */
.glass-block {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(0, 255, 255, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  color: #fff;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-button {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(0, 255, 255, 0.4);
  color: white;
  padding: 10px 16px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.03);
}

/* disabled generic */
.disabled-btn {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.5);
}

/* ========== PAYMENT DETAILS BLOCK ========== */
#paymentDetails {
  display: none;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  font-size: 15px;
  color: #fff;
  animation: fadeIn 0.3s ease-in-out;
}

#paymentDetails b {
  color: #ccc;
}

.pay-info-line {
  margin-bottom: 6px;
  font-weight: 500;
}

.pay-action-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

#confirmPaymentBtn {
  background: #20c997;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

#confirmPaymentBtn:hover {
  background: #18b288;
}

.support-btn {
  background: transparent;
  border: 1px solid #fff;
  padding: 10px 18px;
  border-radius: 10px;
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.support-btn:hover {
  background: white;
  color: black;
}

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

/* ========== STUB / Р·Р°РіР»СѓС€РєР° ========== */
.stub-glass {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: opacity 0.2s ease-in-out;
}
.stub-glass.hidden {
  opacity: 0;
  pointer-events: none;
}
.stub-window {
  position: relative;
  min-width: 280px;
  max-width: 320px;
  padding: 24px 28px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  animation: popIn 0.25s ease;
}
.stub-window h3 {
  margin-top: 8px;
  margin-bottom: 6px;
  font-weight: 600;
}
.stub-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: #ff0000;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}
.stub-close:hover {
  opacity: 1;
  transform: scale(1.1);
}
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ========== MOBILE MENU ========== */

/* hide mobile menu on desktop */
@media (min-width: 769px) {
  #mobileMenu,
  .mobile-menu-btn {
    display: none !important;
  }
}

/* base state */
.mobile-menu-btn {
  display: none;
}

/* mobile behavior */
@media (max-width: 768px) {
  /* СЃРєСЂС‹РІР°РµРј desktop-РЅР°РІРёРіР°С†РёСЋ Рё РїСЂР°РІС‹Р№ Р±Р»РѕРє РІ С€Р°РїРєРµ РїРѕР»РЅРѕСЃС‚СЊСЋ */
  .header-nav,
  .header-right {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

 /* бургер-кнопка — фиксировано снизу слева на всех устройствах */
@media (max-width: 768px) {
  .mobile-menu-btn {
    position: fixed;
    left: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));

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

    font-size: 28px;
    color: #16ffd6;
    cursor: pointer;
    padding: 10px 14px;

    z-index: 3000;

    background: rgba(12, 32, 32, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(0,255,255,0.6);
    box-shadow:
      0 0 18px rgba(0,255,255,0.6),
      0 0 32px rgba(0,255,255,0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* важно: отключаем старые значения */
    top: auto !important;
    right: auto !important;
  }
}


  .mobile-menu {
  position: fixed;
  top: 0;
  left: -300px; /* как и было */
  width: 260px;
  height: 100%;
  background: rgba(20,30,30,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(22,255,214,0.4);
  box-shadow: 0 0 20px rgba(22,255,214,0.3);
  padding: 70px 20px 20px;

  /* 🔥 новый супер-плавный transition */
  transition: left 0.4s ease-in-out;

  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu.open {
  left: 0;
}


  .mobile-menu a,
  .submenu-btn {
    color: #eafffb;
    font-size: 16px;
    padding: 10px 4px;
    text-decoration: none;
    border-bottom: 1px solid rgba(22,255,214,0.25);
  }

  .menu-close {
    position: absolute;
    right: 10px;
    top: 12px;
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 24px;
    cursor: pointer;
  }

  .mobile-submenu .submenu-content {
    display: none;
    flex-direction: column;
    margin-left: 10px;
    border-left: 1px solid rgba(22,255,214,0.25);
    padding-left: 10px;
  }

  .mobile-submenu.open .submenu-content {
    display: flex;
  }

  .submenu-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 16px;
  }
}

/* hide header login button on mobile (РґСѓР±Р»РёСЂСѓРµС‚СЃСЏ Р±СѓСЂРіРµСЂРѕРј) */
@media (max-width: 768px) {
  #loginBtn {
    display: none !important;
  }
}.menu-close {
    display: none !important;
}
/* Скрыть toast по умолчанию */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 999999;
}

/* Когда показывается */
.toast.show {
    opacity: 1;
}
.mobile-submenu .submenu-content {
    display: none;
}

.mobile-submenu .submenu-content.open {
    display: block;
}
/* --- Мобильное подменю "О нас" фикс --- */
.mobile-submenu {
    width: 100%;
}

.mobile-submenu .submenu-btn {
    width: 100%;
    text-align: left;
    padding: 12px 0;
    font-size: 18px;
    background: transparent;
    border: none;
    color: #fff;
}

.mobile-submenu .submenu-content {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding-left: 10px;
}

.mobile-submenu .submenu-content.open {
    display: flex;
}

.mobile-submenu .submenu-content a {
    display: block;
    padding: 8px 0;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.hidden {
  display: none !important;
}
/* скрываем бургер, когда открыто меню */
body.menu-open .mobile-menu-btn {
    display: none !important;
}
body.menu-open #mobileMenuBtn {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
body.menu-open .mobile-menu-btn,
body.menu-open #mobileMenuBtn {
    display: none !important;
}
html, body {
    overflow-x: hidden;
}
.modal {
    z-index: 9999 !important;
}

.close-btn {
    z-index: 10000 !important;
    position: absolute;
}
.reserve-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

#reservesModal .modal-content {
  max-height: 80vh;
}
/* ===== МОДАЛКА РЕЗЕРВОВ ===== */
#reservesModal .modal-content {
    padding: 28px 24px;
    max-width: 420px;
    border-radius: 18px;
    background: rgba(20,30,30,0.35);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.reserve-item {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: space-between;
    color: #eafffb;
}

#reservesClose {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #ff4d4d;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}
#reservesModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#reservesModal.show {
    display: flex;
}

#reservesModal .modal-content {
    background: rgba(20,20,20,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    padding: 30px;
    max-width: 420px;
    width: 90%;
    border-radius: 18px;
    position: relative;
}

#reservesClose {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ff4d4d;
}


