/* /var/www/covex/site/gamma/assets/app.css */
:root{
  --bg0:#070b10;
  --bg1:#0b1320;
  --card:#0b1623cc;
  --card2:#0b1623e6;
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.14);
  --text:#eaf1ff;
  --muted:rgba(234,241,255,.70);
  --muted2:rgba(234,241,255,.55);
  --accent:#2bd08f;
  --danger:#ff5a6a;

  --shadow: 0 12px 50px rgba(0,0,0,.35);
  --radius: 22px;
  --radius2: 16px;

  --h: 62px;
  --ddz: 90;
}

html[data-theme="light"]{
  --bg0:#f6f7fb;
  --bg1:#eef1f7;
  --card:rgba(255,255,255,.82);
  --card2:rgba(255,255,255,.94);
  --stroke:rgba(10,25,45,.10);
  --stroke2:rgba(10,25,45,.14);
  --text:#0b1020;
  --muted:rgba(11,16,32,.65);
  --muted2:rgba(11,16,32,.52);
  --shadow: 0 12px 40px rgba(8,18,28,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(0,120,255,.22), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(0,255,170,.14), transparent 60%),
    radial-gradient(900px 900px at 60% 120%, rgba(255,160,80,.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.topbar{
  height: var(--h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 20px;
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(10,16,24,.35);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand__logo{
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 18px;
  line-height: 1;
}
.brand__sub{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity:.72;
}

.topbar__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.status{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.12);
}
.status__dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255,90,106,.14);
}
.status.is-online .status__dot{
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(43,208,143,.14);
}
.status__text{font-weight:600; opacity:.86}

.btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.12);
  color: var(--text);
  cursor:pointer;
  font-weight:600;
}
.btn:hover{border-color: var(--stroke2)}

.seg{
  display:flex;
  border:1px solid var(--stroke);
  border-radius: 999px;
  overflow:hidden;
  background: rgba(0,0,0,.10);
}
.seg__btn{
  height: 42px;
  padding: 0 14px;
  border:0;
  background: transparent;
  color: var(--text);
  cursor:pointer;
  font-weight:700;
  opacity:.72;
}
.seg__btn.is-active{
  opacity:1;
  background: rgba(255,255,255,.06);
}

.themePill{
  height: 42px;
  width: 104px;
  display:flex;
  padding: 4px;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.10);
  cursor:pointer;
}
.themePill__slot{
  flex:1;
  display:grid;
  place-items:center;
  border-radius: 999px;
  opacity:.65;
}
.themePill[data-active="light"] .themePill__slot[data-theme-mode="light"],
.themePill[data-active="dark"] .themePill__slot[data-theme-mode="dark"]{
  background: rgba(255,255,255,.08);
  opacity:1;
}

.wrap{
  max-width: 1120px;
  margin: 26px auto;
  padding: 0 16px 36px;
}

.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 18px;
  margin-bottom: 18px;
  position: relative;
}

.cardTitle{
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.cardSub{
  margin-top: 2px;
  opacity:.78;
  font-weight:700;
  letter-spacing:.04em;
}
.muted{color: var(--muted)}
.fieldLabel{
  display:block;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin: 10px 0 8px;
}
.fieldLabel--mt{ margin-top: 14px; }

.cardHead{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background: transparent;
  border:0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.cardHead__left{display:flex; flex-direction:column; gap:6px}
.cardMeta{display:flex; gap:8px; align-items:center; font-weight:700; color: var(--muted)}
.iconCircle{
  width: 44px; height: 44px;
  display:grid; place-items:center;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.12);
  font-size: 20px;
  font-weight: 900;
}

.cardBody{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
}

.ratesGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.rateTile{
  border:1px solid var(--stroke);
  border-radius: var(--radius2);
  padding: 12px 14px;
  background: rgba(0,0,0,.10);
}
.rateTile__k{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity:.68;
}
.rateTile__v{
  margin-top: 6px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.ratesFooter{
  margin-top: 16px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.selectNative select{
  height: 42px;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.08);
  color: var(--text);
  padding: 0 12px;
  font-weight:700;
}

.calcGrid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr 76px 1fr;
  gap: 18px;
  align-items: start;
}

.calcLeft, .calcRight{min-width:0}

.rowTitle{
  font-weight: 900;
  color: var(--muted);
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.rowTitle--spaced{ margin-top: 16px; }

.row{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  position: relative;
}

.ccyIcon{
  width: 56px; height: 56px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.08);
  display:grid;
  place-items:center;
  font-size: 22px;
  font-weight: 900;
}

.dd{ position: relative; }
.dd__btn{
  width:100%;
  height: 56px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.08);
  color: var(--text);
  padding: 0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
}
.dd__value{ font-size: 20px; font-weight: 900; letter-spacing: .02em; }
.dd__chev{ opacity:.7; font-weight:900; }

.dd__menu{
  position: absolute;
  left:0;
  right:0;
  top: calc(100% + 10px);
  background: var(--card2);
  border:1px solid var(--stroke2);
  border-radius: 18px;
  box-shadow: var(--shadow);
  z-index: var(--ddz);
  overflow: hidden;
}
.dd__menuScroll{
  max-height: 260px;
  overflow-y: auto;
}
.dd__item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 14px;
  cursor:pointer;
  border-top: 1px solid rgba(255,255,255,.06);
}
html[data-theme="light"] .dd__item{ border-top: 1px solid rgba(10,25,45,.06); }
.dd__item:first-child{ border-top:0; }
.dd__item:hover{ background: rgba(255,255,255,.06); }
.dd__itemIcon{
  width: 34px; height: 34px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  display:grid; place-items:center;
  font-weight:900;
}
.dd__itemText{ display:flex; flex-direction:column; line-height:1.1; }
.dd__itemCode{ font-weight: 900; }
.dd__itemName{ font-size: 12px; opacity:.7; margin-top: 4px; }

.calcSwap{
  display:grid;
  place-items:center;
  padding-top: 36px; /* centers between rows visually */
}
.swapBtn{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.08);
  color: var(--text);
  cursor:pointer;
  font-size: 22px;
  font-weight: 900;
}
.swapBtn:hover{ border-color: var(--stroke2); }

.amt{
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.08);
  color: var(--text);
  padding: 0 16px;
  font-size: 34px;
  font-weight: 900;
  text-align: right;
  outline: none;
}

.calcHint{
  margin-top: 12px;
  text-align: right;
}
.calcRate{
  font-size: 18px;
  font-weight: 900;
  opacity: .86;
}

.divider{
  margin: 18px 0;
  height: 1px;
  background: var(--stroke);
}

.contacts__title{
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 10px;
}

.tg{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
}
.tg__icon{
  width: 34px; height: 34px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  display:grid; place-items:center;
  color: #33a9ff;
  background: rgba(0,0,0,.08);
}
.tg__muted{ color: var(--muted); font-weight: 700; }

.pillTabs{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pillTabs__btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.08);
  color: var(--text);
  cursor:pointer;
  font-weight: 800;
}
.pillTabs__btn.is-active{
  background: rgba(43,208,143,.18);
  border-color: rgba(43,208,143,.38);
}

.mapFrame{
  margin-top: 14px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.08);
}
.mapFrame iframe{
  width: 100%;
  height: 420px;
  border:0;
  display:block;
}

.footer{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: var(--muted);
  padding: 12px 4px;
}
.badge{
  border:1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  background: rgba(0,0,0,.10);
}

/* MOBILE */
@media (max-width: 860px){
  .ratesGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calcGrid{ grid-template-columns: 1fr; }
  .calcSwap{ padding-top: 0; }
  .swapBtn{ width: 62px; height: 62px; }
  .amt{ font-size: 28px; }
  .cardTitle{ font-size: 34px; }
}

@media (max-width: 520px){
  .topbar{ padding: 12px 12px; }
  .btn{ display:none; } /* optional */
  .ratesGrid{ grid-template-columns: 1fr; }
}
