/* ── 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: 80px;
}

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

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

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.header-title {
  font-size: 12px;
  font-weight: 500;
  color: #111;
}

.lang-btn {
  background: #1c1c1c;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 27px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.lang-divider { color: #888; margin: 0 2px; }
.lang-en { color: #bbb; }

/* ── GREETING ── */
.greeting {
  padding: 20px 25px 4px;
}
.greeting-line1 {
  font-size: 27px;
  font-weight: 600;
  color: #000000;
  line-height: 1.2;
}
.greeting-line2 {
  font-size: 27px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

/* ── BALANCE CARD ── */
.balance-card {
  margin: 14px 10px;
background: #1c1c1c;
border-radius: 20px;
padding: 25px 30px 25px;
}
.balance-label {
  font-size: 10px;
color: #fff;
font-weight: 400;
margin-bottom: 10px;
}
.balance-amount {
  font-size: 30px;
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: 11px;
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: 11px;
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 {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.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: #e8e8e8;
  color: #555;
  border: none;
  border-radius: 8px;
padding: 5px 14px;
font-size: 9px;
font-weight: 400;
  cursor: pointer;
  transition: background 0.15s;
}
.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;
  padding: 10px 0 max(12px, env(safe-area-inset-bottom));
  z-index: 100;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 8px;
  transition: color 0.2s;
  font-family: inherit;
}
.nav-btn.active { color: #fff; }
.nav-btn:not(.active):hover { color: #aaa; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  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);
}

/* ── FADE IN ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.balance-card, .vpn-card, .ref-card {
  animation: fadeUp 0.35s ease both;
}

/* ── 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);
  animation: fadeUp 0.35s ease both;
}

.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;
  transition: transform 0.1s;
}

.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;
  animation: fadeUp 0.35s ease both;
}
.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; }
