*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}
:root {
  --teal-deep:   #193341;
  --teal-mid:    #2c5a71;
  --teal-bright: #29768a;
  --teal-light:  #406d80;
  --accent:      #00e5c3;
  --accent-dim:  rgba(0, 229, 195, 0.15);
  --white:       #ffffff;
  --glass-bg:    #193341; /*#193e52;*/
  --glass-border:rgba(0, 229, 195, 0.3);
}
html, body {
  background: black;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--teal-deep);
  font-family: 'DM Mono', monospace;
  color: var(--white);
  outline: none;
}
a {
  color: white;
}
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(180deg, rgba(25,51,65,0.95) 0%, rgba(25,51,65,0) 100%);
  pointer-events: none;
}
#search {
  position: absolute;
  left: 280px;
  top: 8px;
  padding: 10px 0;
  right: 280px;
  background: none;
  border: none;
  z-index: 1010;
}
#search input {
  position: absolute;
  left: 0;
  top: 0;
  padding: 10px 0;
  right: 280px;
  color: white;
  background: none;
  border: none;
  z-index: 1010;
  font-size: 17px;
  height: 40px !important;
}
#origin-display {
  cursor: pointer;
}
#logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--white);
  cursor: pointer;
}
#logo span {
  color: var(--accent);
}
#tagline {
  position: absolute;
  bottom: 15px;
  right: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: calc(100% + 40px);
  cursor: crosshair;
  outline: none;
}
#map > div:first-child {
  background-color: #122834 !important;
}
#hint,#gohint {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  transition: opacity 0.4s;
}
#hint.hidden,#gohint.hidden { 
  opacity: 0; 
  pointer-events: none;
}
#origin-display {
  position: fixed;
  top: 8px;
  right: 7px;
  z-index: 101;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 14px 16px;
  max-width: 240px;
  animation: slideIn 0.5s ease-out 0.3s both;
}
#search input {
  left: 0px;
  top: 8px;
  right: 0px;
  padding: 10px 0;
  position: absolute;
  background: none;
  border: none;
  z-index: 1010;
  outline: none;
}
#origin-label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
button.gm-control-active {
  background: var(--glass-bg) !important;
}
button.gm-control-active img {
  filter: brightness(10) !important;
}
.gmnoprint > div {
  background-color: rgba(200,200,200,0)!important;
}
.gmnoprint > .gm-style-cc{
  background-color: rgba(200,200,200,0) !important;
}
#origin-location {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  line-height: 1.3;
  cursor: pointer;
}
#origin-location:hover {
  text-decoration: underline;
}
#popup, #popup-buy-teli {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
  min-width: 220px;
}
#popup-buy-teli {
  transform: scale(0.75) translate(81px, 132px);
  z-index: 0;
}
#popup.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#popup-buy-teli.visible {
  opacity: 1;
  transform: scale(0.75) translate(81px, 132px);
  pointer-events: auto;
}
#popup-inner, #popup-buy-inner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,229,195,0.06) inset;
  position: relative;
  min-width: 277px;
  /*margin: 11px -31px;*/
  overflow: hidden;
}
#popup-close-buy {
  transform: scale(0.75) translate(81px, 132px);
  z-index: 0;
}
#popup-buy-inner{
  padding: 0 !important;
}
#popup-inner::after,
#popup-buy-inner::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 24px;
  width: 14px;
  height: 14px;
  background: var(--glass-bg);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  transform: rotate(45deg);
  backdrop-filter: blur(18px);
}
#popup-label {
  position: relative;
  z-index: 4;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
#popup-telibuy-label {
  user-select: none;
  position: relative;
  z-index: 4;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 1.06px;
}
#popup-buy-teli #popup-label {
  color: white;
  text-transform: none;
  font-size: 0.568rem;
  margin-bottom: 10px;
  margin-top: -5px;
}
#popup-label-time {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  font-weight: 300;
  float: right;
  position: relative;
  opacity: 1;
  bottom: -1px;
}
.right {
  float: right;
}
#popup-location, #popup-eth-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem; 
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.25;
  max-width: 240px; 
  position: relative;
  z-index: 3;
}
#popup-location.wider {
  max-width: 280px !important;
}
#popup-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
#popup-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1.27;
}
#popup-currency {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}
#popup-sub {
  position: relative;
  z-index: 5;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 16px;
}
#popup-sub.active {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 16px;
  text-align: center;
}
#popup-sub.address {
  margin-bottom: 5px;
  color: #d0f5ff9e;
  font-size: xx-small;
  text-align: center;
}
#popup-sub.hidden {
  display: none;
}
#popup-content button {
  position: relative;
  z-index: 11;
}
#popup-price-row svg {
  width: 280px;
  height: 200px;
  margin-top: -32px;
  margin-bottom: -17px;
  margin-left: 0px;
  z-index: -1;
}
#popup-content a {
  color: var(--accent);
  text-decoration: none;
}
#popup-content a:hover {
  color: #00ffd5;
  text-decoration: underline;
}
#popup-distance {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 229, 195, 0.7);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 229, 195, 0.15);
}
#popup-distance-value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  bottom: 1px;
}
#popup-pricing-note {
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
  font-style: italic;
}
.card-details-container {
    display: none;
}
.card-details-container.active {
    display: block;
}
.qr-code-container {
    /*display: none;*/
}
.qr-code-container.active {
    display: block;
}
#popup-btn,#popup-btn-cc-pay,#popup-btn-add {
  display: block;
  width: 100%;
  background: var(--accent);
  color: var(--teal-deep);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 1000px;
  padding: 11px 0;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
}
#popup-btn:hover,#popup-btn-cc-pay:hover,#popup-btn-add:hover {
  background: #00ffd5;
  transform: translateY(-1px);
}
#popup-close {
  position: absolute;
  top: 6px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
  z-index: 1000;
  padding: 8px 10px;
}
#popup-close:hover { 
  color: var(--white); 
}
.popup-close-btn {
  
}
#popup-spinner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  padding: 8px 0 4px;
}
#popup-buy-teli {
  z-index: 101;
  left: auto !important;
  bottom: 97px !important;
  top: auto !important;
  bottom: 71px !important;
  right: 34px !important;
}
.spinner-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s infinite ease-in-out;
}
.spinner-dot:nth-child(2) { 
  animation-delay: 0.2s; 
}
.spinner-dot:nth-child(3) { 
  animation-delay: 0.4s; 
}
#trade-price {
  cursor: pointer;
  position: absolute;
  z-index: 102;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 7px;
  margin: 0;
  opacity: 0;
  transition: 0ms;
}
#teli-trade-qr-code {
  cursor: pointer;
}
#grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}
#trade-price {
  user-select: none;
  cursor: pointer;
  bottom: 14px;
  left: auto;
  right: 33px;
  z-index: 102;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 900;
  text-shadow: 2px 1px 0 BLACK;
}
#trade-price.active {
  opacity: 1;
}
.break-codes {
  width: 182px;
  margin: auto;
  padding: 10px 15px;
  font-size: 9px;
  border: 2px solid #116968;
  margin-bottom: 13px;
  border-radius: 2px;
  box-shadow: 0 0 10px 0 lch(0 0 0 / 0.5);
  font-weight: bold;
  font-family: sans-serif;
  line-height: 13.7px;
  cursor: none;
  user-select: none;
}
.hidden {
    display: none;
}

#gohint {
  cursor: default;
}
#gohint  img {
  height: 23px;
}
#gohint .go-logo {
  padding-right: 53px;
  cursor: default;
}
.one-hour img {
  margin-left: 0;
  margin-bottom: -7px;
  margin-top: -7px;
}
/* 
 .gmnoprint {
    user-select: none;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    border-radius: 2px;
    cursor: pointer;
    background-color: var(--accent);
    width: 40px;
    height: 81px;
    border: 1px solid #116969;
    border-radius: 6px;
    overflow: hidden;
  }
  .gmnoprint > img {
    filter: brightness(10);
  }
*/
#search_address {
  position: absolute;
  height: 41px;
  outline: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: white;
  font-size: 15px;
  padding: 13px 13px 10px 13px;
  transition: 280ms;
  z-index: 100;
  bottom: auto;
  top: 12px;
  left: 240px;
  right: auto;
  width: 300px;
  border-radius: 10px;
  font-family: 'system', sans-serif;
  font-weight: 600;
  letter-spacing: 0.007em;
}

#search_address::placeholder {
  color: white;
  opacity:0.3;
  font-weight: 200;
}
#search-address {
  position: absolute;
  bottom: 0px;
  left: 0px;
  z-index: 1010;
  width: 100%;
  height: 50px;
}

.gm-bundled-control {
  display: none !important;
}
*{
  outline:none;
}

@media screen and (max-width: 530px) {
  #origin-display {
    /*
      top: 55px !important;
      left: 25px !important;
      right: auto !important;
    */
    display: none !important;
  }
  .gm-bundled-control {
    display: none !important;
  }
  .hide_mobile {
    display: none;
  }
  #trade-price {
    bottom: 6px;
    /*left: 0;*/
    /*right: 0;*/
    text-align: center;
    /*background: linear-gradient(0deg, rgba(25, 51, 65, 0.95) 0%, rgba(25, 51, 65, 0) 100%);*/
    margin: 0;
    padding: 7px 0 1px 0;
  }
  #popup-buy-inner {
    margin-bottom: -19px
  }
  #hint {
    max-width: 94% !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    text-align: center;
    padding: 10px 17px;
    border-radius: 25px;
    line-height: 16px;
    left: 10px;
    right: 10px;
    bottom: 24px;
    transform: none;
  }
  #hint.goteli {
    right: auto !important;
    max-width: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  /*#search_address {
    position: fixed;
    border-radius: 9px;
    bottom: 10px;
    top: auto;
    left: 10px;
    right: 10px;
    width: auto;
  }*/
  .go-hint {
    max-width: 94% !important;
    padding: 10px 11px !important;
    overflow: hidden !important;
  }
}