.lm-platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.lm-plat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--form-border-color, rgba(0,0,0,0.12));
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.lm-plat .ic { display: inline-flex; align-items: center; justify-content: center; width: 18px; flex-shrink: 0; }
.lm-plat .ic i { font-size: 16px; }
.lm-plat .ic img { max-width: 18px; max-height: 18px; border-radius: 4px; }
.lm-plat:hover { border-color: var(--bg-filter-btn); }
.lm-plat.active {
  background: var(--bg-filter-btn);
  border-color: var(--bg-filter-btn);
  color: #fff;
}
@media (max-width: 600px) {
  .lm-plat { padding: 7px 12px; font-size: 12.5px; }
}

/* ---- searchable category dropdown ---- */
.nv-catdd { position: relative; }
.nv-catdd-btn {
  width: 100%; height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-input); border: 1.5px solid var(--form-border-color, rgba(0,0,0,0.12)); border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-family: inherit; color: var(--text-primary);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nv-catdd-btn:hover { border-color: var(--bg-filter-btn); }
.nv-catdd.open .nv-catdd-btn { border-color: var(--bg-filter-btn); box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.nv-catdd-btn .cur { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nv-catdd-btn .cur .ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; flex-shrink: 0; }
.nv-catdd-btn .cur .ic img { max-width: 22px; max-height: 22px; border-radius: 6px; }
.nv-catdd-btn .cur .ic i { font-size: 18px; }
.nv-catdd-btn .cur .tx { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-catdd-btn .ar { color: var(--text-primary); opacity: 0.6; font-size: 12px; transition: transform .2s ease; }
.nv-catdd.open .nv-catdd-btn .ar { transform: rotate(180deg); }

.nv-catdd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--bg-input); border: 1px solid var(--form-border-color, rgba(0,0,0,0.12)); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2); overflow: hidden; display: none;
}
.nv-catdd.open .nv-catdd-menu { display: block; }
.nv-catdd-search { position: relative; padding: 10px; border-bottom: 1px solid var(--form-border-color, rgba(0,0,0,0.12)); }
.nv-catdd-search i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--text-primary); opacity: 0.6; font-size: 12px; }
.nv-catdd-search input { width: 100%; height: 38px; border: 1px solid var(--form-border-color, rgba(0,0,0,0.12)); border-radius: 8px; padding-left: 32px !important; font-size: 13.5px; outline: none; background: var(--bg-input); color: var(--text-primary); }
.nv-catdd-list { max-height: 300px; overflow-y: auto; padding: 6px; }
.nv-catdd-list .it { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; color: var(--text-primary); }
.nv-catdd-list .it:hover, .nv-catdd-list .it.active { background: rgba(0,0,0,0.06); }
.nv-catdd-list .it .ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; flex-shrink: 0; }
.nv-catdd-list .it .ic img { max-width: 22px; max-height: 22px; border-radius: 6px; }
.nv-catdd-list .it .ic i { font-size: 17px; }
.nv-catdd-list .it .tx { font-weight: 600; font-size: 13.5px; }
.nv-catdd-empty { display: none; text-align: center; color: var(--text-primary); opacity: 0.6; font-size: 12.5px; padding: 16px 10px; }

/* ---- Latest News card ---- */
.tn-news-list { max-height: 420px; overflow-y: auto; }
.tn-news-item { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--form-border-color, rgba(0,0,0,0.08)); }
.tn-news-item:last-child { border-bottom: none; }
.tn-news-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--bg-filter-btn); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tn-news-icon img { width: 24px; height: 24px; object-fit: contain; }
.tn-news-body { min-width: 0; }
.tn-news-title { font-weight: 700; font-size: 14.5px; color: var(--text-primary); margin-bottom: 4px; overflow-wrap: break-word; word-break: break-word; }
.tn-news-date { font-size: 12px; color: var(--text-primary); opacity: 0.6; margin-bottom: 6px; }
.tn-news-content { font-size: 13px; color: var(--text-primary); opacity: 0.85; line-height: 1.55; overflow-wrap: break-word; word-break: break-word; max-width: 100%; }
.tn-news-content * { max-width: 100%; }

/* ---- Payment amount input-group (addfunds / manual gateway forms) ---- */
.dashboard .input-group { display: flex; align-items: stretch; height: 45px; background: var(--bg-input); border-radius: 10px; overflow: hidden; }
.dashboard .input-group .input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    background: var(--bg-filter-btn);
    flex-shrink: 0;
}
.dashboard .input-group .form-control {
    flex: 1;
    min-width: 0;
    height: 100%;
    border-radius: 0;
    background: transparent;
}
.dashboard .input-group:focus-within { box-shadow: 0 0 0 2px var(--text-primary); }
.dashboard.nightmode .input-group { background: var(--dark-bg-input); }
.dashboard.nightmode .input-group .form-control { color: #fff; }

/* ---- Payment method trust badges (login page) ---- */
.payment__images { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 32px; }
.pt-pay-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px 14px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-black, #232323);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pt-pay-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}
.pt-pay-badge .pt-pay-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--primary-gradient, linear-gradient(267deg, #bd2445 3.42%, #fc194a 91.65%));
    filter: drop-shadow(0px 3px 6px rgba(189, 36, 69, 0.35));
}
.pt-pay-badge .pt-pay-icon i { color: #fff; font-size: 15px; }
.dashboard.nightmode .pt-pay-badge,
body.noAuth.nightmode .pt-pay-badge { background: var(--dark-bg-input, #151428); color: #fff; border-color: rgba(255,255,255,0.08); }

/* ---- Reset password page ---- */
.pt-rp-wrap { padding-bottom: 60px; }
.pt-rp-help {
    display: flex;
    align-items: center;
    min-height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pt-rp-help:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); }
.pt-rp-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-gradient, linear-gradient(267deg, #bd2445 3.42%, #fc194a 91.65%));
    filter: drop-shadow(0px 4px 10px rgba(189, 36, 69, 0.3));
}
.pt-rp-help-icon i { color: #fff; font-size: 26px; }
.pt-rp-card { box-shadow: 0 10px 34px rgba(0,0,0,0.08); border: none; }
.pt-rp-icon { background: var(--primary-gradient, linear-gradient(267deg, #bd2445 3.42%, #fc194a 91.65%)) !important; filter: drop-shadow(0px 4px 10px rgba(189, 36, 69, 0.3)); }
.pt-rp-icon i { color: #fff !important; }

/* ---- Compact dashboard page header (icon + title + subtitle) ---- */
.tn-dash-header { display: flex; align-items: center; gap: 12px; padding: 20px 0 16px; }
.tn-dash-header__icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bg-secondary); color: #fff; font-size: 18px; flex-shrink: 0; }
.tn-dash-header__title { font-size: 22px; font-weight: 800; margin: 0; color: var(--text-primary); }
.tn-dash-header__subtitle { font-size: 13px; color: var(--text-primary); opacity: 0.65; margin: 2px 0 0; }

/* ---- Services catalog: premium redesign ---- */
#notLogin { padding-top: 100px; }
.dashboard #notLogin { padding-top: 20px; }

#table tr.catetitle,
#table tr.catetitle:nth-child(even),
#table tr.catetitle:nth-child(odd),
#table .catetitle td {
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  font-size: inherit;
  font-weight: normal;
  border-radius: 0;
}
.dashboard.nightmode #table tr.catetitle,
.dashboard.nightmode #table tr.catetitle:nth-child(even),
.dashboard.nightmode #table tr.catetitle:nth-child(odd),
.dashboard.nightmode #table .catetitle td {
  background: transparent;
}

#serv-table { border-collapse: separate; border-spacing: 0; }
#serv-table > :not(:first-child) { border-top: none; }
#serv-table thead th {
  background: var(--bg-secondary);
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
  border: none;
}
#serv-table thead th:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
#serv-table thead th:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
#serv-table thead::after { content: ""; display: table-row; height: 12px; }
.tn-svc-cat-header {
  display: flex; align-items: center;
  padding: 13px 18px;
  margin: 26px 0 12px;
  border-radius: 10px;
  background: rgb(255 230 235);
  border: 3px solid #f21b49;
  font-size: 16px; font-weight: 700;
  color: var(--text-black);
}
tbody tr:first-child .tn-svc-cat-header { margin-top: 0; }
.dashboard.nightmode .tn-svc-cat-header { background: rgba(255,255,255,0.05); color: #fff; }

.tn-svc-id-badge {
  display: inline-block;
  background: rgba(0,0,0,0.06);
  color: var(--text-black);
  font-weight: 700; font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}
.dashboard.nightmode .tn-svc-id-badge { background: rgba(255,255,255,0.1); color: #fff; }

.tn-svc-price { font-weight: 700; color: var(--text-black); }
.dashboard.nightmode .tn-svc-price { color: #fff; }

.tn-svc-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1.5px solid rgba(0,0,0,0.15);
  background: transparent;
  color: var(--text-black);
  font-weight: 600; font-size: 14px;
  transition: border-color .15s ease, color .15s ease;
}
.tn-svc-btn-outline:hover, .tn-svc-btn-outline:focus {
  border-color: var(--bg-filter-btn);
  color: var(--bg-filter-btn);
  text-decoration: none;
}
.dashboard.nightmode .tn-svc-btn-outline { border-color: rgba(255,255,255,0.18); color: #fff; }
.dashboard.nightmode .tn-svc-btn-outline:hover { border-color: var(--bg-filter-btn); color: var(--bg-filter-btn); }

#serv-table tbody tr:not(.catetitle):hover { background: rgba(0,0,0,0.025); }
.dashboard.nightmode #serv-table tbody tr:not(.catetitle):hover { background: rgba(255,255,255,0.04); }

.tn-svc-btn-order {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 6px;
  background: var(--primary-gradient, linear-gradient(267deg, #bd2445 3.42%, #fc194a 91.65%));
  color: #fff; font-size: 15px;
  box-shadow: none;
}
.tn-svc-btn-order:hover { color: #fff; opacity: 0.9; text-decoration: none; }

/* ---- Services table: card layout on small/medium screens ---- */
@media (max-width: 768px) {
  #serv-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  #serv-table, #serv-table tbody, #serv-table tbody tr, #serv-table tbody td {
    display: block;
    width: 100%;
  }

  #table tr.catetitle { margin: 0; }

  #serv-table tbody tr:not(.catetitle) {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 0 0 14px;
    overflow: hidden;
  }
  .dashboard.nightmode #serv-table tbody tr:not(.catetitle) {
    background: #1c1a33;
    border-color: rgba(255,255,255,0.08);
  }

  #serv-table tbody tr:not(.catetitle) td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-align: right;
    font-size: 13.5px;
  }
  .dashboard.nightmode #serv-table tbody tr:not(.catetitle) td { border-bottom-color: rgba(255,255,255,0.06); color: #fff; }
  #serv-table tbody tr:not(.catetitle) td:last-child { border-bottom: none; }

  #serv-table tbody tr:not(.catetitle) td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--bg-filter-btn);
    text-align: left;
    flex-shrink: 0;
  }

  #serv-table tbody tr:not(.catetitle) td.tn-svc-td-action {
    justify-content: center;
    background: rgba(0,0,0,0.02);
  }
  .dashboard.nightmode #serv-table tbody tr:not(.catetitle) td.tn-svc-td-action { background: rgba(255,255,255,0.03); }
  #serv-table tbody tr:not(.catetitle) td.tn-svc-td-action::before { content: none; }
  #serv-table tbody tr:not(.catetitle) td.tn-svc-td-action .tn-svc-btn-outline { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .tn-dash-header { padding: 14px 0 10px; gap: 10px; }
  .tn-dash-header__icon { width: 36px; height: 36px; font-size: 15px; }
  .tn-dash-header__title { font-size: 18px; }
  .tn-dash-header__subtitle { font-size: 12px; }

  .tn-svc-cat-header { padding: 10px 14px; margin: 18px 0 10px; font-size: 14px; }

  .tn-svc-id-badge { font-size: 11px; padding: 3px 8px; }
  .tn-svc-price { font-size: 13px; }
  .tn-svc-btn-outline { padding: 6px 12px; font-size: 12.5px; }
  .tn-svc-btn-order { width: 34px; height: 34px; font-size: 13px; }
}

/* ---- Page top title (blog, signup, resetpassword, services, ...) ---- */
.tn-page-hero { padding: 80px 0 40px; text-align: center; background: linear-gradient(135deg, var(--bg-filter-btn), var(--text-primary)); }
.tn-page-hero-title { color: #fff; font-size: 38px; font-weight: 800; margin: 0 0 12px; }
.tn-page-hero-desc { color: rgba(255,255,255,0.85); font-size: 16px; max-width: 560px; margin: 0 auto; }
@media (max-width: 576px) {
    .tn-page-hero { padding: 40px 0 28px; }
    .tn-page-hero-title { font-size: 28px; }
    .tn-page-hero-desc { font-size: 14px; }
}

/* Service search (new order): suggestion dropdown over every service */
.nv-search { position: relative; display: block; }
.nv-search > i.fa-search { position: absolute; left: 16px; top: 0; bottom: 0; display: flex; align-items: center; color: #94a3b8; font-size: 13px; pointer-events: none; z-index: 1; }
.nv-search > input, #nvServiceSearch.form-control { padding-left: 38px !important; }
.nv-svcsearch.open .nv-catdd-menu { display: block; }
.nv-svcsearch .nv-catdd-menu { top: calc(100% + 6px); }
.nv-svcsearch .nv-catdd-list { max-height: 550px; }
