:root{
  --bg: #0b0c10;
  --panel: rgba(255,255,255,.05);
  --panel2: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.55);
  --muted2: rgba(255,255,255,.40);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 22px;
  --radius2: 16px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue";
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(124,58,237,.20), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(59,130,246,.18), transparent 55%),
    radial-gradient(900px 600px at 55% 90%, rgba(16,185,129,.12), transparent 55%),
    var(--bg);
  background-attachment: fixed, fixed, fixed, fixed;
  color: var(--text);
}

a{ color: inherit; text-decoration:none; }

.noScroll{ overflow:hidden; }
[hidden]{ display:none !important; }

.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.15));
  border-bottom: 1px solid var(--border);
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  min-width: 260px;
}
.avatar{
  width:44px;height:44px;
  border-radius: 14px;
  overflow:hidden;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.avatar img{
  width:100%;height:100%;
  object-fit: cover;
  display:block;
}
.brandName{
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 16px;
  line-height: 1.1;
}
.brandSub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.topMid{
  flex: 1;
  display:flex;
  justify-content: center;
}
.topRight{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width: 220px;
}

.searchWrap{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.search{
  width: 360px;
  max-width: 46vw;
  border:0;
  outline:0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.search::placeholder{ color: var(--muted2); }

.currencyWrap{
  display:flex;
  align-items:center;
  gap: 8px;
  padding-left: 6px;
}
.currencySelect{
  width: 120px;
  min-width: 120px;
  padding-top: 9px;
  padding-bottom: 9px;
  border-radius: 999px;
}

.btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  user-select:none;
  font-weight: 650;
}
.btn:hover{ background: rgba(255,255,255,.12); transform: translateY(-1px); }
.btn:active{ transform: translateY(0px) scale(.99); }
.btn.ghost{ background: rgba(255,255,255,.04); }
.btn.small{ padding: 8px 12px; font-weight: 650; }
.btn.danger{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.25);
}
.btn.danger:hover{ background: rgba(239,68,68,.18); }

.btn:disabled,
.input:disabled,
.select:disabled{
  opacity: .55;
  cursor: not-allowed;
}

.iconBtn{
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}

.layout{
  display:grid;
  grid-template-columns: 290px 1fr;
  gap: 14px;
  padding: 14px;
  max-width: 1300px;
  margin: 0 auto;
}

.sidebar{
  position: sticky;
  top: 78px;
  align-self: start;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 20px 70px rgba(0,0,0,.28);
}

.sideTitle{
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .3px;
  margin: 4px 0 10px;
  color: rgba(255,255,255,.88);
}

.categoryList{
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.catBtn{
  width:100%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 16px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content: space-between;
  transition: background .2s ease, transform .12s ease, border-color .2s ease;
}
.catBtn:hover{
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.catBtn.active{
  background: rgba(124,58,237,.18);
  border-color: rgba(124,58,237,.35);
}

.count{
  color: var(--muted);
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}

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

.field{
  display:flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.input, .select, .textarea, .fakeInput{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
  font-size: 13px;
}

.select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.65) 50%),
    linear-gradient(135deg, rgba(255,255,255,.65) 50%, transparent 50%),
    linear-gradient(to right, rgba(255,255,255,.08), rgba(255,255,255,.03));
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px),
    calc(100% - 40px) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 18px;
  background-repeat: no-repeat;
}
.select:hover{
  background-color: rgba(255,255,255,.06);
}
.select:focus{
  border-color: rgba(124,58,237,.45);
  box-shadow: 0 0 0 3px rgba(124,58,237,.18);
}

.input:focus, .textarea:focus, .fakeInput:focus{
  border-color: rgba(124,58,237,.45);
  box-shadow: 0 0 0 3px rgba(124,58,237,.18);
}

.textarea{
  min-height: 92px;
  resize: vertical;
}

.fakeInput{
  display:flex;
  align-items:center;
  min-height: 40px;
  color: rgba(255,255,255,.88);
}

.row{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 12px;
}

.content{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0,0,0,.30);
  overflow:hidden;
}

.contentHead{
  padding: 18px 18px 6px;
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
}

.h1{
  font-weight: 950;
  font-size: 20px;
  letter-spacing: .3px;
}
.muted{ color: var(--muted); font-size: 12px; margin-top: 4px; }

.grid{
  padding: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ position: static; top:auto; }
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .topbar{
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 12px;
  }
  .brand{
    min-width: 0;
    width: 100%;
  }
  .topMid{
    width: 100%;
    justify-content: stretch;
  }
  .searchWrap{
    width: 100%;
  }
  .search{
    width: auto;
    max-width: none;
    flex: 1;
    min-width: 0;
  }
  .currencySelect{
    width: 110px;
    min-width: 110px;
  }
  .topRight{
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
  }
  .brandSub{
    display:none;
  }
}

.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: 22px;
  overflow:hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  position: relative;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
}

.cardImg{
  height: 170px;
  background: rgba(255,255,255,.03);
  position: relative;
  overflow:hidden;
}
.cardImg img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.cardImg.noImg{
  display:flex;
  align-items:center;
  justify-content:center;
}
.ph{
  color: rgba(255,255,255,.55);
  font-weight: 850;
  font-size: 12px;
  letter-spacing: .3px;
}

.badge{
  position:absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.cardActions{
  position:absolute;
  right: 10px;
  top: 10px;
  display:flex;
  gap: 8px;
}
.iconMini{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.30);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.iconMini:hover{ background: rgba(0,0,0,.42); }
.iconMini.danger{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
}
.iconMini.danger:hover{ background: rgba(239,68,68,.16); }

.cardBody{
  padding: 12px 12px 14px;
}
.cardTitle{
  font-weight: 950;
  font-size: 14px;
  letter-spacing: .2px;
  line-height: 1.2;
}
.cardDesc{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  min-height: 32px;
  line-height: 1.35;
}

.cardBottom{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.price{
  font-weight: 900;
  letter-spacing: .2px;
}

.footer{
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0,0,0,.14);
  font-size: 12px;
}

.addCard{ cursor:pointer; }
.plus{
  font-weight: 950;
  font-size: 44px;
  line-height: 1;
  color: rgba(255,255,255,.85);

  width: 86px;
  height: 86px;
  border-radius: 22px;
  border: 1px dashed rgba(255,255,255,.25);
  background: rgba(255,255,255,.03);

  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}

.boostCard .boostControls{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.boostCard.boostExpanded .cardBody{
  padding-bottom: 18px;
}
.boostBtns{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.boostBtn.active{
  background: rgba(124,58,237,.20);
  border-color: rgba(124,58,237,.35);
}
.boostMeta{
  font-size: 12px;
  color: rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.10);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.boostHint{
  margin-top: 8px;
}

.boostPriceBlock{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 10px 12px;
}
.boostPriceTitle{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 13px;
  color: rgba(255,255,255,.86);
}

.adminsList{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.adminRow{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.adminId{
  font-weight: 850;
  color: rgba(255,255,255,.88);
}

.empty{
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.02);
  border-radius: 22px;
  padding: 26px;
  text-align:center;
  grid-column: 1 / -1;
}
.emptyTitle{
  font-weight: 950;
  font-size: 15px;
  margin-bottom: 6px;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.70);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-weight: 750;
  font-size: 13px;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.modalWrap{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.modalWrap.open{
  opacity: 1;
  pointer-events: auto;
}

.modal{
  width: 520px;
  max-width: calc(100vw - 24px);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(10,10,14,.92);
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
  overflow:hidden;
}
.modal.large{ width: 760px; }
.modalHead{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.modalTitle{
  font-weight: 950;
  letter-spacing: .2px;
}
.modalBody{
  padding: 14px 16px;
  max-height: calc(100vh - 120px);
  overflow:auto;
}

.adminTitle{
  font-weight: 950;
  letter-spacing: .2px;
  margin-bottom: 10px;
}
.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field.full{ grid-column: 1 / -1; }
.row.full{ grid-column: 1 / -1; }

.adminBody.oneCol .formGrid{
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px){
  .modal.large{ width: 560px; }
  .formGrid{ grid-template-columns: 1fr; }
  .adminBody.oneCol .formGrid{ grid-template-columns: 1fr; }
}

.compactBoost.modal.large{ width: 640px; }
.compactBoost .modalHead{ padding: 10px 12px; }
.compactBoost .modalBody{ padding: 10px; max-height: calc(100vh - 120px); }
.compactBoost .adminTitle{ margin-bottom: 6px; }
.compactBoost .input,
.compactBoost .select,
.compactBoost .textarea,
.compactBoost .fakeInput{
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
}
.compactBoost .textarea{ min-height: 70px; }
.compactBoost .boostPriceBlock{ padding: 8px 10px; border-radius: 14px; }
.compactBoost .boostPriceTitle{ font-size: 12px; }
.compactBoost .field{ margin-top: 8px; }

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

.superAdminAvatar{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: block;
}

.superAdminName{
  font-weight: 850;
  font-size: 13px;
  line-height: 1.1;
  color: rgba(255,255,255,.92);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imgInputRow{
  display:flex;
  gap:10px;
  align-items:center;
}
.imgInputRow .input{
  flex:1;
}

.imgDrop{
  margin-top: 10px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  position: relative;
  min-height: 140px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
}
.imgDrop.drag{
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 0 3px rgba(124,58,237,.18);
}
.imgDrop.busy{
  opacity: .7;
  pointer-events: none;
}
.imgDropText{
  color: rgba(255,255,255,.75);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
}
.imgDropHint{
  margin-top: 6px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}
.imgPreview{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display:block;
}

.currencyWrap{
  position: relative;
  display:flex;
  align-items:center;
}

.nativeHidden{
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:1px;
  height:1px;
}

.cSelect{
  position: relative;
  display: inline-block;
  width: 120px;
  min-width: 120px;
}

.cSelect.wide{
  width: 100%;
  min-width: 0;
}

.cSelectBtn{
  width: 120px;
  min-width: 120px;
  padding: 9px 40px 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}

.cSelectBtn.wide{
  width: 100%;
  min-width: 0;
}

.cSelectBtn:hover{
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.cSelectBtn:active{
  transform: translateY(0px) scale(.99);
}

.cSelectVal{
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cSelectArrow{
  opacity: .75;
  font-size: 12px;
}

.cSelectMenu{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(10,10,14,.96);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  overflow: hidden;
  display: none;
  z-index: 9999;
}

.cSelect.open .cSelectMenu{
  display: block;
}

.cSelectItem{
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.cSelectItem:hover{
  background: rgba(255,255,255,.08);
}

.cSelectItem.active{
  background: rgba(124,58,237,.18);
  border-left: 3px solid rgba(124,58,237,.55);
}


.modalPair{
  display:flex;
  gap:14px;
  max-width: min(1200px, calc(100vw - 28px));
}

#adminModal .modal.large{
  width: min(760px, calc(100vw - 28px));
}

#adminModal .modal.priceModal{
  width: min(520px, calc(100vw - 28px));
}

.priceBody{
  padding-top: 14px;
}

.priceGroup{
  display:block;
}

@media (max-width: 980px){
  .modalPair{
    flex-direction: column;
  }
  #adminModal .modal.large,
  #adminModal .modal.priceModal{
    width: min(760px, calc(100vw - 28px));
  }
}

.nitroToggle{
  display:flex;
  gap:8px;
  justify-content:flex-start;
  align-items:center;
}


.nitroBtn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  padding:6px 20px;
  border-radius:10px;
  font-size:12px;
  line-height:1;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
  min-width: 90px;
}


.nitroBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}

.nitroBtn.on{
  background: rgba(122, 0, 212,.16);
  border-color: rgba(122, 0, 212,.34);
  color: rgba(235,250,255,.95);
}

/* FIX: add breathing room in Boost cards (desc -> buttons) */
.boostCard .cardDesc{
  margin-bottom: 8px !important;
}
.boostCard .boostBtns{
  margin-top: 8px !important;
}



/* Rates button */
.ratesBtn{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:inherit;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.ratesBtn:hover{ filter:brightness(1.1); }
.ratesBtn:active{ transform:translateY(1px); }

.fxHide{ display:none !important; }
