/* ------------------------- Page Container & Title ------------------------- */
.vpn-page-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.vpn-page-title {
  text-align: center;
  font-size: 2.8rem;
  color: var(--text);
  margin-bottom: 30px;
  text-shadow: 0 0 15px var(--blue);
}

/* ------------------------- Tabs ------------------------- */
.vpn-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.vpn-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s;
  white-space: nowrap;
}

.vpn-tab.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 15px var(--blue-glow);
}

.vpn-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(61,161,240,0.25);
}

/* ------------------------- Setup Section ------------------------- */
.vpn-setup-container {
  max-width: 800px;
  margin: 0 auto 60px;
  width: 100%;
}

.setup-bubble {
  background: var(--panel);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

.setup-title {
  font-size: 2rem;
  text-align: center;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 12px rgba(61,161,240,0.5);
}

/* ------------------------- Setup Tabs ------------------------- */
.setup-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
}

.setup-tab {
  flex: 0 1 auto;
  min-width: 100px;
  max-width: 150px;
  background: var(--glass);
  color: #fff;
  border-radius: 16px;
  padding: 12px 10px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: all 0.25s;
  position: relative;
}

.setup-tab.active {
  background: var(--blue);
  box-shadow: 0 0 15px var(--blue-glow);
}

.setup-tab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 15px rgba(61,161,240,0.4);
}

.step-number {
  background: var(--blue);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 700;
  z-index: 2;
}

/* Arrows between steps */
.setup-tab::after {
  content: "→";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-weight: bold;
}

.setup-tab:last-child::after {
  display: none;
}

/* ------------------------- Steps Content ------------------------- */
.setup-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.setup-step {
  display: none; /* hide by default */
  width: 100%;
  max-width: 650px;
  background: var(--panel-glass);
  border-radius: 16px;
  padding: 30px 25px;
  color: #fff;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-sizing: border-box;
}

.setup-step.active {
  display: flex; /* only active step shows */
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.setup-step h3 {
  font-size: 1.5rem;
}

.setup-step p {
  font-size: 1rem;
  line-height: 1.4;
}

.setup-step ul {
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
}

.setup-step li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.setup-step li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ------------------------- Step Buttons ------------------------- */
.setup-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-small {
  padding: 10px 20px;
  min-width: 120px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-small:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 15px rgba(61,161,240,0.4);
}

/* ------------------------- Locations Section ------------------------- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
  width: 100%;
}

.location-card {
  background: linear-gradient(135deg, rgba(61,161,240,0.2), rgba(0,0,0,0.3));
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(61,161,240,0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-flag {
  width: 32px;
  border-radius: 4px;
}

.card-name {
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
}

.card-status {
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #fff;
}

.card-status.online { background: #4caf50; }
.card-status.offline { background: #f44336; }

.card-body {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  margin-bottom: 15px;
  width: 100%;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.progress-bar {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 6px;
  transition: width 0.5s;
}

.card-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight:700;
  text-decoration:none;
  text-align:center;
  transition:transform 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(61,161,240,0.3);
}

/* Step header: icon + title side by side */
.setup-step-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.step-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.setup-step h3 {
  font-size: 1.5rem;
  margin: 0;
  text-align: left;
}

/* Step description + button container */
.setup-step-desc {
  text-align: center;
  margin-top: 10px;
}

.setup-buttons {
  justify-content: center;
  margin-top: 15px;
}


.btn-small.secondary { background: rgba(61,161,240,0.5); }
.btn.coming-soon { background: rgba(255,255,255,0.15); color: #fff; cursor: default; }

/* ------------------------- Responsive ------------------------- */
@media(max-width:900px){
  .setup-tabs {flex-direction:column; gap:12px;}
  .setup-buttons {flex-direction:column; gap:12px;}
  .locations-grid {grid-template-columns:1fr; justify-items:center;}
  .setup-step {padding:20px; gap:15px;}
  .setup-tab::after {display:none;} /* remove arrows on mobile */
}