/* ─────────────────────────────────────────
   Reset
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─────────────────────────────────────────
   Page  (desktop default)
───────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background: #F5F5F5;
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 60px;
  min-height: 100vh;
}

/* ─────────────────────────────────────────
   Desktop Tab Navigation
───────────────────────────────────────── */
.tab-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 24px;
}

.tab-tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  height: 22px;
}

.tab {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  color: #37AEE2;   /* currentColor flows into SVG icons */
}

.tab__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* SVG icons use currentColor — inherits from .tab */
.tab__icon img {
  width: 22px;
  height: 22px;
  color: inherit;
}

.tab__label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0.13px;
  text-transform: uppercase;
  color: #37AEE2;
}

.tab-divider {
  width: 2px;
  height: 10px;
  background: rgba(142, 142, 148, 0.5);
  border-radius: 10px;
  flex-shrink: 0;
}

/* Active indicator — sits under ПРОКСИ */
.tab-indicator {
  width: 94px;
  height: 2px;
  background: #37AEE2;
  border-radius: 10px;
}

/* ─────────────────────────────────────────
   Card
───────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 0;
  gap: 14px;
  width: 600px;
  min-width: 600px;
  background: #FFFFFF;
  border: 2px solid rgba(142, 142, 148, 0.2);
  border-radius: 30px;
}

/* ─────────────────────────────────────────
   Card Header
───────────────────────────────────────── */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.card-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  width: 100%;
  min-height: 24px;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 24px;
  letter-spacing: -0.02px;
  color: #111111;
  flex-grow: 1;
}

.card-desc-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  width: 100%;
}

.card-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.06px;
  color: #111111;
  flex-grow: 1;
}

/* ─────────────────────────────────────────
   Divider
───────────────────────────────────────── */
.divider {
  align-self: stretch;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0px 1px 1px rgba(142, 142, 148, 0.25);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   Proxy List
───────────────────────────────────────── */
.proxy-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

/* ─────────────────────────────────────────
   Proxy Item
───────────────────────────────────────── */
.proxy-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

/* Country Label */
.proxy-country {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 26px 0 16px;
  gap: 10px;
  width: 100%;
  min-height: 20px;
}

.proxy-country span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.06px;
  color: #111111;
}

/* Buttons Row */
.proxy-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  width: 100%;
  height: 44px;
}

/* URL Field */
.proxy-url-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  flex-grow: 1;
  min-width: 0;
  height: 44px;
  background: rgba(142, 142, 148, 0.15);
  border: 2px solid rgba(142, 142, 148, 0.75);
  box-shadow: inset 0px 0px 8px rgba(142, 142, 148, 0.8);
  border-radius: 20px;
  overflow: hidden;
}

.proxy-url-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0.03px;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  min-width: 0;
}

/* ─────────────────────────────────────────
   Share Button
───────────────────────────────────────── */
.btn-share {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  gap: 12px;
  width: 124px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(142, 142, 148, 0.15);
  border: 2px solid rgba(142, 142, 148, 0.75);
  box-shadow: inset 0px 0px 8px rgba(142, 142, 148, 0.8);
  border-radius: 20px;
  cursor: pointer;
  color: #111111;
}

.btn-share:hover {
  background: rgba(142, 142, 148, 0.25);
}

/* Desktop: show text, hide icon */
.share-icon {
  display: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.share-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0.03px;
  color: #111111;
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   Connect Button
───────────────────────────────────────── */
.btn-connect {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 11px 16px;
  gap: 4px;
  width: 139px;
  height: 44px;
  flex-shrink: 0;
  background: #0A84FF;
  border: 2px solid rgba(0, 0, 0, 0.75);
  box-shadow: inset 0px 0px 32px rgba(255, 255, 255, 0.8);
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  text-align: center;
  letter-spacing: -0.04px;
  color: #FFFFFF;
  white-space: nowrap;
}

.btn-connect:hover {
  background: #0070E0;
}

/* ─────────────────────────────────────────
   Card Footer
───────────────────────────────────────── */
.card-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  width: 100%;
  min-height: 20px;
}

.footer-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.06px;
  color: #111111;
  flex-grow: 1;
}

.blender-link {
  color: #37AEE2;
  text-decoration: none;
}

.blender-link:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────
   Bottom Nav  (hidden on desktop)
───────────────────────────────────────── */
.bottom-nav {
  display: none;
}

/* ─────────────────────────────────────────
   Mobile  ≤ 600px
───────────────────────────────────────── */
@media (max-width: 600px) {

  /* White page on mobile */
  body {
    background: #FFFFFF;
  }

  .page {
    padding: 40px 0 90px;  /* no horizontal padding — card owns its 10px margins */
  }

  /* Hide desktop tab nav */
  .tab-nav {
    display: none;
  }

  /* Card stretches to screen width minus 10px margins on each side */
  .card {
    width: calc(100% - 20px);
    min-width: unset;
    max-width: unset;
  }

  /* Share button: icon only */
  .btn-share {
    width: 52px;
    padding: 12px;
    gap: 0;
  }

  .share-text {
    display: none;
  }

  .share-icon {
    display: block;
  }

  /* Bottom Nav */
  .bottom-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 29px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 393px;
    height: 49px;
    padding: 0;
  }

  .bottom-tab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1;
    height: 49px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
  }

  .bottom-tab__icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
  }

  .bottom-tab__label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    letter-spacing: 0.08px;
    color: #37AEE2;
  }

  .bottom-tab__label--inactive {
    color: #111111;
  }

  /* Active icon: blue (#37AEE2 hardcoded in SVG — no filter needed) */
  .bottom-icon--active {
    filter: none;
  }

  /* Inactive icon: desaturate + darken → ≈ #111111 */
  .bottom-icon--inactive {
    filter: brightness(0);
  }

}
