/* ── GT Eesti Pro Display ── */
@font-face {
  font-family: 'GTEestiProDisplay';
  src: url('../fonts/gteestiprodisplay_thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'GTEestiProDisplay';
  src: url('../fonts/gteestiprodisplay_light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'GTEestiProDisplay';
  src: url('../fonts/gteestiprodisplay_regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'GTEestiProDisplay';
  src: url('../fonts/gteestiprodisplay_medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'GTEestiProDisplay';
  src: url('../fonts/gteestiprodisplay_bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'GTEestiProDisplay';
  src: url('../fonts/gteestiprodisplay_ultrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'GTEestiProDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
}

html,
body {
  background: #ffffff;
  color: #111;
  min-height: 100vh;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  padding-bottom: 100px;
}

/* ── HEADER ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  background: #fff;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 5px;
}


.header-title {
  font-size: 18px;
  font-weight: 500;
  color: #1b1b1b;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 5px;
}
.lang-btn {
  background: #1c1c1c;
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 12px 27px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.nav-btn {
  border: none;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 39px;
  width: 39px;
  padding: 0;
  background-color: #1c1c1c;
  cursor: pointer;
  flex-shrink: 0;
}
.lang-divider {
  color: #888;
  margin: 0 2px;
}

.lang-en {
  color: #bbb;
}

/* ── GREETING ── */
.greeting {
  padding: 20px 25px 10px;
}

.greeting-line1 {
  font-size: 31px;
  font-weight: 600;
  color: #000000;
  line-height: 1.2;
}

.greeting-line2 {
  font-size: 31px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

/* ── BALANCE CARD ── */
.balance-card {
  margin: 14px 10px;
  background: #1c1c1c;
  border-radius: 20px;
  padding: 30px;
}

.balance-label {
  font-size: 13px;
  color: #fff;
  font-weight: 400;
  margin-bottom: 10px;
}

.balance-amount {
  font-size: 38px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0px;
  line-height: 1;
  margin-bottom: 16px;
}

.balance-currency {
  font-size: 30px;
  font-weight: 500;
  margin-left: 2px;
}

.balance-btns {
  gap: 7px;
}

.btn-topup {
  width: 41%;
  flex: 0;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 14px;
  padding: 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-topup:active {
  opacity: 0.8;
}

.btn-subscribe {
  width: 57%;
  flex-wrap: nowrap;
  flex-direction: 0;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 14px;
  padding: 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-subscribe:active {
  opacity: 0.8;
}

/* ── SECTION ── */
.section {
  margin: 8px 0 0;
  padding: 0 10px;
}

.section-header {
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  margin-top: 25px;
}

.section-title {
  font-size: 16px;
  font-weight: 500;
  color: #111;
}

/* Добавить */
.btn-add {
  background: #1c1c1c;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px 24px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-add:active {
  opacity: 0.75;
}

/* ── VPN CARD ── */
.vpn-card {
  margin-bottom: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.17);
}

.vpn-card-top {
  justify-content: space-between;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.vpn-name {
  font-size: 19px;
  font-weight: 600;
  color: #111;
}

.badge-instr {
  background: #ffead2;
  color: #f6a64a;
  border: 1px solid #f6a64a;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1;
}

.badge-instr img {
  display: block;
  flex-shrink: 0;
}

.badge-instr:active {
  background: #ddd;
}

.vpn-link {
  display: block;
  font-size: 12px;
  color: #111;
  text-decoration: underline;
  margin-bottom: 16px;
  font-weight: 400;
  cursor: pointer;
}

.vpn-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.vpn-left {
  flex: 1;
}

.vpn-days {
  font-size: 13px;
  color: #000;
  font-weight: 400;
  display: block;
  margin-bottom: 8px;
}

.progress-track {
  height: 6px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #1c1c1c;
  border-radius: 10px;
  transition: width 0.4s ease;
}

.btn-extend {
  background: #1c1c1c;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px 24px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.btn-extend:active {
  opacity: 0.75;
}

/* ── REFERRALS ── */
.btn-copy-ref {
  border-radius: 12px;
  padding: 8px 24px;
  font-size: 11px;
  font-weight: 500;
  background: #1c1c1c;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.btn-copy-ref:active {
  opacity: 0.75;
}

.ref-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 30px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  margin-bottom: 16px;
}

.ref-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ref-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1c1c1c;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ref-user-info {
  flex: 1;
}

.ref-username {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.ref-id {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.ref-total {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.ref-tx-list {
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-tx {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ref-tx-name {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.ref-tx-date {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

.ref-tx-amount {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1b1b1b;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 4px max(20px, env(safe-area-inset-bottom));
  z-index: 100;
}

/* Bottom nav item style */
.bottom-nav .nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 16px;
  flex: 1;
  height: auto;
  padding: 10px 6px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  color: #666;
  font-family: inherit;
  transition: background 0.18s, color 0.18s;
  position: relative;
}

.bottom-nav .nav-btn img {
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.18s;
}

.bottom-nav .nav-btn span {
  color: #666;
  transition: color 0.18s;
  letter-spacing: 0.2px;
}

/* Active state — pill highlight */
.bottom-nav .nav-btn.active {
  background: #2e2e2e;
}

.bottom-nav .nav-btn.active img {
  opacity: 1;
}

.bottom-nav .nav-btn.active span {
  color: #ffffff;
  font-weight: 600;
}

.bottom-nav .nav-btn:active {
  background: #252525;
}

.nav-btn.active {
  color: #fff;
}

/* ── HEADER DROPDOWN ── */
.header-menu-wrap {
  position: relative;
}

.header-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  min-width: 220px;
  padding: 8px;
  z-index: 500;
  animation: dropdownFadeIn 0.18s ease;
}

.header-dropdown.open {
  display: block;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.header-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  transition: background 0.12s;
  cursor: pointer;
  font-family: inherit;
}

.header-dropdown-item:hover,
.header-dropdown-item:active {
  background: #f5f5f7;
}

.header-dropdown-item svg {
  flex-shrink: 0;
  color: #555;
}

.header-dropdown-item--muted {
  color: #888;
  font-size: 13px;
  font-weight: 400;
}

.header-dropdown-item--muted svg {
  color: #aaa;
}

.header-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 6px 8px;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #f1c1c1;
  color: #e33e3e;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #e33e3e;
  font-size: 12px;
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: #e2f6ea;
  color: #157347;
  border: 1px solid #157347;
}

/* ── FADE IN ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ── PAGES & TARIFFS ── */
.tariffs-list,
.topup-list {
  padding: 0 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tariff-card,
.topup-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.tariff-card.ultra {
  border: 1px solid #111;
}

.tariff-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.tariff-name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.tariff-price {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.tariff-desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

.btn-buy {
  width: 100%;
  background: #1c1c1c;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-buy:active {
  opacity: 0.8;
}

.tariff-options {
  display: flex;
  gap: 8px;
}

.btn-opt {
  flex: 1;
  background: #f0f0f0;
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-opt:active {
  background: #ddd;
}

/* Topup Cards */
.topup-card {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s, border-color 0.2s;
  box-sizing: border-box;
}

.topup-card.active {
  border-color: #ccc;
}

.topup-card:active {
  transform: scale(0.98);
}

.topup-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.topup-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topup-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.topup-desc {
  font-size: 12px;
  color: #666;
}


/* ── SUPPORT PAGE ── */
.support-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 24px 40px;
  text-align: center;
  gap: 14px;
}

.support-icon {
  font-size: 56px;
  margin-bottom: 4px;
}

.support-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.support-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.support-command {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  width: 100%;
  text-align: center;
}

.support-hint {
  font-size: 12px;
  color: #888;
}

.support-hint em {
  font-style: italic;
  color: #666;
}

.btn-open-bot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1c;
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  margin-top: 8px;
  transition: opacity 0.15s;
  cursor: pointer;
}

.btn-open-bot:active {
  opacity: 0.8;
}

/* ── NEW KEY & LINK BLOCKS ── */
.vpn-key-block,
.ref-link-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f7;
  border: 1px solid #dedede;
  border-radius: 14px;
  padding: 6px 14px;
  margin-top: 10px;
  margin-bottom: 14px;
  gap: 12px;
}

.vpn-key-preview,
.ref-link-preview {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.btn-copy-key,
.btn-copy-ref {
  background: #1c1c1c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 20px;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  flex-shrink: 0;
}

.btn-copy-key:active,
.btn-copy-ref:active {
  opacity: 0.8;
}

/* ── CONNECT DEVICE BUTTON ── */
.btn-connect {
  width: 100%;
  background: #1c1c1c;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 14px;
}

.btn-connect:active {
  opacity: 0.8;
}

/* ── PROMO CARD ── */
.promo-card {
  margin: 14px 10px;
  background: #fff;
  border-radius: 20px;
  padding: 22px 25px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.07);
}

.promo-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
}

.promo-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.promo-input-group input {
  flex: 1;
  background: #f5f5f7;
  border: 1px solid #dedede;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #111;
  outline: none;
  font-weight: 500;
  transition: border-color 0.2s;
}

.promo-input-group input:focus {
  border-color: #1c1c1c;
}

.btn-promo-apply {
  background: #1c1c1c;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-promo-apply:active {
  opacity: 0.8;
}