.alert {
	background: rgba(220, 38, 38, 0.16);
	border: 1px solid rgba(220, 38, 38, 0.32);
	color: #fca5a5;
	padding: 1.3rem 1.9rem;
	border-radius: var(--radius-lg);
	margin-block-end: 2.8rem;
	font-weight: 600;
	backdrop-filter: blur(12px);
	text-align: center;
}

.section {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	padding: 2.4rem;
	margin-block-end: 2.8rem;
	box-shadow: var(--shadow-md);
	backdrop-filter: blur(18px);
	transition: var(--transition);
	opacity: 0;
	transform: translateY(40px);
}

.section.visible {
	opacity: 1;
	transform: translateY(0);
	transition: all .8s cubic-bezier(.22, 1, .36, 1);
}

.section:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 68px rgba(249, 115, 22, 0.18);
}

.section h2 {
	font-size: clamp(1.5rem, 4vw, 1.75rem);
	margin-block-end: 1.5rem;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

.section h3 {
  margin-bottom: 1rem;
}

.server-list {
	list-style: none;
	display: grid;
	gap: 0.9rem;
}

.server-list li {
	background: rgba(30, 41, 59, 0.42);
	padding: 1.1rem 1.5rem;
	border-radius: 14px;
	border: 1px solid var(--glass-border);
	transition: var(--transition);
}

.server-list li:hover {
	background: rgba(249, 115, 22, 0.14);
	border-color: rgba(249, 115, 22, 0.45);
	transform: translateX(6px);
}

.alert-banner {
	position: sticky;
	top: 15px;
	z-index: 999;
	margin-bottom: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(34, 197, 94, 0.15);
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #bbf7d0;
	padding: 16px 22px;
	border-radius: 16px;
	text-align: center;
	font-weight: 700;
	backdrop-filter: blur(14px);
	box-shadow: 0 0 25px rgba(34, 197, 94, 0.35);
}

.alert-icon {
	font-size: 1.2rem;
	animation: pulse 1.4s infinite;
}

.profile-link {
	color: var(--accent);
	font-weight: 700;
	text-decoration: none;
}

.profile-link:hover {
	color: #fed7aa;
	text-shadow: 0 0 12px #fed7aa80;
}

.link-box {
	display: inline-block;
	margin-block-start: 1.2rem;
	padding: 1rem 2.4rem;
	background: var(--gradient);
	color: white;
	font-weight: 700;
	border-radius: var(--radius-pill);
	text-decoration: none;
	box-shadow: var(--shadow-glow);
	transition: var(--transition);
}

.link-box:hover {
	transform: translateY(-5px) scale(1.05);
	box-shadow: 0 0 48px rgba(251, 146, 60, 0.55);
}

.apps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 2rem;
	margin-block-start: 2.2rem;
}

.app-card {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	padding: 2.2rem 1.8rem;
	text-align: center;
	transition: var(--transition);
	backdrop-filter: blur(14px);
}

.app-card:hover {
	transform: translateY(-12px);
	box-shadow: var(--shadow-glow);
	border-color: var(--accent);
}

.app-card h3 {
	font-size: 1.45rem;
	margin-block-end: 1.3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.9rem;
	flex-wrap: wrap;
}

.app-logo {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.55);
	background: rgba(255, 255, 255, 0.06);
}

.app-link {
	display: block;
	margin: 0.9rem 0;
	padding: 0.95rem;
	border-radius: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: var(--transition);
}

.app-link:not(.ios) {
	background: var(--gradient);
	color: white;
	box-shadow: 0 0 22px rgba(249, 115, 22, 0.32);
}

.app-link:not(.ios):hover {
	transform: scale(1.07);
	box-shadow: 0 0 40px rgba(251, 146, 60, 0.55);
}

.app-link.ios {
	background: rgba(30, 41, 59, 0.82);
	color: white;
	border: 1px solid var(--accent);
}

.app-link.ios:hover {
	background: rgba(249, 115, 22, 0.28);
}

hr {
	border: none;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--accent) 30%, transparent);
	margin: 2rem 0;
}


@container (max-width: 600px) {
	.apps-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.topbar-inner {
		padding: 0.9rem 1.2rem;
	}

	.logo {
		font-size: 1.7rem;
	}

	.close-menu {
		top: 1.5rem;
		left: 1.5rem;
		font-size: 3rem;
		width: 60px;
		height: 60px;
	}

	.footer-logo {
		height: 54px;
	}
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */


@media (max-width: 520px) {
  .step-title {
    font-size: 1.35rem;
  }

  .step-number {
    width: 52px;
    height: 52px;
    font-size: 1.55rem;
  }

  .step-text {
    font-size: 1.08rem;
  }
}


@media (max-width: 480px) {
  .topbar-inner {
    padding: 0.9rem 1.3rem;
  }

  .logo {
    font-size: 1.9rem;
  }
    .close-menu {
    top: 1.5rem;
    left: 1.5rem;
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--accent);
    width: 60px;
    height: 60px;
    z-index: 2100;
    position: absolute;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-menu a:not(:last-child)::after {
    width: 70%;
    max-width: 200px;
  }

  .footer-logo {
    height: 55px;
  }
}

/* ================= VPN Country Slider ================= */

.vpn-slider {
  position: relative;
  overflow: hidden;
  height: 360px;
  touch-action: pan-y;
}

.vpn-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: blur(14px);
  transform: scale(0.96);
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.vpn-slide.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  position: relative;
  pointer-events: auto;
}

/* کارت کشور */
.vpn-country {
  text-align: center;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(249,115,22,0.2);
}

/* Scroll داخلی برای لیست سرورها */
.vpn-slide .server-list {
  flex: 1; /* پر کردن فضای باقیمانده */
  overflow-y: auto; /* scroll فقط داخل slide */
  padding: 0.5rem 0;
  display: flex;
  flex-wrap: wrap; /* ردیف‌بندی سرورها */
  gap: 0.5rem;
  justify-content: center;
}

.vpn-slide .server-list li {
  flex: 0 0 100px; /* هر کارت سرور یک اندازه ثابت */
  list-style: none;
  text-align: center;
  font-weight: 700;
  background: rgba(30,41,59,0.5);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vpn-slide .server-list li {
  flex: 0 0 100px; /* هر کارت سرور یک اندازه ثابت */
  list-style: none;
  text-align: center;
  font-weight: 700;
  background: rgba(30,41,59,0.5);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vpn-flag-img {
  width: 58px;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  animation: neonPulse 2.4s infinite alternate;
}

.vpn-country-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.9;
}

/* Neon flag */
.vpn-flag {
  font-size: 3.4rem;
  margin-bottom: 0.5rem;
  animation: neonPulse 2.4s infinite alternate;
}

/* افکت نئون */
@keyframes neonPulse {
  0% {
    filter: drop-shadow(0 0 6px rgba(249,115,22,0.6))
            drop-shadow(0 0 12px rgba(249,115,22,0.4));
  }
  100% {
    filter: drop-shadow(0 0 18px rgba(251,146,60,1))
            drop-shadow(0 0 36px rgba(249,115,22,0.7));
  }
}

.vpn-country h3 {
  font-size: 1.45rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
    text-align: center;
  padding: 1rem;
}

.vpn-slide .server-list {
  flex: 1;
  overflow-y: auto; /* scroll داخلی */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

/* Servers */
.vpn-slide .server-list li {
  flex: 0 0 100px; /* اندازه ثابت کارت سرور */
  list-style: none;
  text-align: center;
  font-weight: 700;
  background: rgba(30,41,59,0.5);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.vpn-slide .server-list li:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(251,146,60,0.6);
}



.l2tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.l2tp-card {
  background: rgba(30,41,59,0.5);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 20px rgba(249,115,22,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.l2tp-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 28px rgba(251,146,60,0.4);
}

.l2tp-card .vpn-flag-img {
  width: 50px;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  animation: neonPulse 2.4s infinite alternate;
}

.l2tp-card .vpn-country-name {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.l2tp-card .server-address {
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.l2tp-card .protocols span {
  display: inline-block;
  margin: 0.1rem 0.3rem;
  font-size: 0.85rem;
  background: rgba(249,115,22,0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

.cisco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cisco-card {
  background: rgba(30,41,59,0.5);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 20px rgba(60,180,200,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cisco-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 28px rgba(60,180,200,0.4);
}

.cisco-card .vpn-flag-img {
  width: 50px;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  animation: neonPulse 2.4s infinite alternate;
}

.cisco-card .vpn-country-name {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.cisco-card .server-address {
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.cisco-card .protocols span {
  display: inline-block;
  margin: 0.1rem 0.3rem;
  font-size: 0.85rem;
  background: rgba(60,180,200,0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

.outline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.outline-card {
  background: rgba(20,30,60,0.5);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 20px rgba(60,180,255,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outline-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 28px rgba(60,180,255,0.4);
}

.outline-card .vpn-flag-img {
  width: 50px;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  animation: neonPulse 2.4s infinite alternate;
}

.outline-card .vpn-country-name {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.outline-card .server-address {
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.outline-card .protocols span {
  display: inline-block;
  margin: 0.1rem 0.3rem;
  font-size: 0.85rem;
  background: rgba(60,180,255,0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}


.announcement-section {
    --announce-glow: 0 0 35px rgba(249, 115, 22, 0.28);
    --important-red: #ef4444;
    --update-green: #10b981;
    --date-gray: #9ca3af;
}

.announcement-list {
    display: grid;
    gap: 1.8rem;
    padding: 0.4rem;
}

.announcement-item {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 22, 14, 0.92), rgba(20, 14, 8, 0.88));
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.55),
        inset 0 1px 1px rgba(251,146,60,0.08);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all 0.38s cubic-bezier(0.34, 1.2, 0.64, 1.35);
}

.announcement-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(249,115,22,0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.announcement-item:hover::before {
    opacity: 1;
}

.announcement-item:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: var(--announce-glow);
    border-color: rgba(251,146,60,0.55);
}

/* هدر اطلاعیه */
.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.3rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(251,146,60,0.25);
    flex-wrap: wrap;
    gap: 1rem;
}

.announcement-date {
    color: var(--date-gray);
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(55, 65, 81, 0.35);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}
/* تگ مهم */
.announcement-tag {
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-tag.important {
    background: var(--important-red);
    color: white;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.55);
    animation: importantPulse 2.2s infinite ease-in-out;
}

@keyframes importantPulse {
    0%, 100%   { box-shadow: 0 0 18px rgba(239,68,68,0.45); }
    50%        { box-shadow: 0 0 28px rgba(239,68,68,0.75); }
}

  .announcement-tag.general {
    background-color: #0077b6; /* آبی برای عمومی */
  }

  .announcement-tag.update {
    background-color: #2a9d8f; /* سبز برای به‌روزرسانی */
  }

/* متن اصلی اطلاعیه */
.announcement-item p {
    line-height: 1.9;
    font-size: 1.05rem;
    color: #f3f4f6;
    margin: 0;
}

.announcement-item strong {
    color: #fed7aa;
    font-weight: 700;
}

  @media (max-width: 768px) {
  .announcement-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .announcement-item {
    padding: 1rem;
  }
}

.app-logo {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-left: 6px;
}


.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}



/* لیست سرورها داخل اطلاعیه */
.announcement-item p strong + br + strong {
    display: block;
    margin: 1.1rem 0 0.6rem;
    font-size: 1.15rem;
    color: #fde68a;
}

/* آدرس سرورها */
.announcement-item p br + br {
    content: "";
    display: block;
    height: 0.8rem;
}

.announcement-item p:not(:last-child) {
    margin-bottom: 0.9rem;
}

/* آیکون‌های وضعیت */
.announcement-item p strong::after {
    content: " →";
    color: #6ee7b7;
    margin-right: 0.4rem;
    font-weight: normal;
}

/* ریسپانسیو */
@media (max-width: 640px) {
    .announcement-item {
        padding: 1.4rem 1.6rem;
    }
    
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }
    
    .announcement-tag {
        align-self: flex-start;
    }
}




.vpn-servers-section {
  padding: 3rem 1rem;
}

.premium-slider-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1600px;
}

.premium-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.premium-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateZ(-100px) rotateY(15deg) scale(0.92);
  transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

.premium-card.active {
  opacity: 1;
  transform: translateZ(0) rotateY(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.card-bg-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 40% 30%, rgba(249,115,22,0.18), transparent 70%);
  opacity: 0.6;
  transition: opacity 1s ease;
}

.premium-card.active .card-bg-glow { opacity: 1; }

.card-inner {
  height: 100%;
  background: rgba(30,22,14,0.72);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(251,146,60,0.32);
  border-radius: 28px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7),
              inset 0 0 40px rgba(251,146,60,0.08);
  position: relative;
  overflow: hidden;
}

.country-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-flag {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  border: 4px solid rgba(251,146,60,0.5);
  box-shadow: 0 16px 50px rgba(249,115,22,0.45);
  transition: all 0.6s ease;
  transform: translateZ(40px);
}

.premium-card:hover .hero-flag {
  transform: translateZ(60px) scale(1.08) rotate(4deg);
  border-color: rgba(251,146,60,0.85);
}

.country-hero h3 {
  font-size: 2.4rem;
  margin-top: 1.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


.servers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem 1.2rem;
}

.server-pill {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(251,146,60,0.25);
  border-radius: 14px;
  padding: 0.8rem 0.6rem;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: #fed7aa;
  text-align: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: all 0.35s ease;
  transform: translateZ(20px);
}

.server-pill:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(249,115,22,0.25) !important;
  box-shadow: 0 10px 25px rgba(249,115,22,0.3);
}

.premium-card:hover .server-pill {
  background: rgba(249,115,22,0.2);
  border-color: rgba(251,146,60,0.55);
  transform: translateZ(35px) translateY(-4px);
  box-shadow: 0 10px 25px rgba(249,115,22,0.3);
}

/* ناوبری */
/* ===== دکمه‌های اسلایدر - مدل مستطیلی باریک ===== */
.nav-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  color: #fb923c;
  font-size: 2.4rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  z-index: 20;
  padding: 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* افکت هاور */
.nav-arrow:hover {
  opacity: 1;
  background: rgba(249, 115, 22, 0.25);
  color: white;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
}

/* دکمه قبلی (چپ) */
.nav-arrow.prev {
  left: 0;
  border-radius: 0 16px 16px 0;
  border-right: 2px solid rgba(251, 146, 60, 0.3);
}

/* دکمه بعدی (راست) */
.nav-arrow.next {
  right: 0;
  border-radius: 16px 0 0 16px;
  border-left: 2px solid rgba(251, 146, 60, 0.3);
}

/* آیکون‌ها به صورت کاراکتر ساده (مقیاس‌پذیر) */
.nav-arrow.prev::after {
  content: "‹";
  line-height: 1;
  transform: scale(1.2);
  display: inline-block;
}

.nav-arrow.next::after {
  content: "›";
  line-height: 1;
  transform: scale(1.2);
  display: inline-block;
}

/* موبایل: باریک‌تر و شفاف‌تر */
@media (max-width: 768px) {
  .nav-arrow {
    width: 44px;
    font-size: 2rem;
    background: rgba(5, 5, 10, 0.6);
    backdrop-filter: blur(4px);
  }
  .nav-arrow.prev {
    border-radius: 0 12px 12px 0;
  }
  .nav-arrow.next {
    border-radius: 12px 0 0 12px;
  }
}

@media (max-width: 480px) {
  .nav-arrow {
    width: 38px;
    font-size: 1.8rem;
  }
}

.slider-progress {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.progress-dot {
  width: 16px;
  height: 16px;
  background: rgba(251,146,60,0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.5s ease;
}

.progress-dot.active {
  background: var(--gradient);
  transform: scale(1.5);
  box-shadow: 0 0 25px rgba(249,115,22,0.7);
}

/* بهبود hero و badges برای L2TP */
.protocol-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(251,146,60,0.15);
  color: #fed7aa;
  border: 1px solid rgba(251,146,60,0.35);
}

.badge.l2tp { background: rgba(34,197,94,0.18); color: #86efac; border-color: rgba(34,197,94,0.4); }
.badge.sstp { background: rgba(59,130,246,0.18); color: #93c5fd; border-color: rgba(59,130,246,0.4); }
.badge.pptp { background: rgba(249,115,22,0.18); color: #fed7aa; border-color: rgba(249,115,22,0.4); }

/* موبایل */
@media (max-width: 768px) {
  .premium-slider { height: 620px; perspective: 1200px; }
  .hero-flag { width: 110px; height: 110px; }
  .country-hero h3 { font-size: 2rem; }
  .nav-arrow { width: 60px; height: 60px; font-size: 2.4rem; }
  .prev { left: 10px; }
  .next { right: 10px; }
}


/* برای Cisco */
.badge.cisco {
  background: rgba(59,130,246,0.25); /* آبی قوی */
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,0.5);
}

/* برای Outline */
.badge.outline {
  background: rgba(249,115,22,0.18);
  color: #fed7aa;
  border-color: rgba(249,115,22,0.4);
}

/* کارت‌های Outline کمی متفاوت برای تمایز */
#outlineSlider .premium-card .card-inner {
  background: rgba(30,22,14,0.72);
  border-color: rgba(251,146,60,0.32);
}

#outlineSlider .card-bg-glow {
  background: radial-gradient(circle at 40% 30%, rgba(249,115,22,0.18), transparent 70%);
}




/* فعال‌سازی اسکرول عمودی برای لیست سرورها در موبایل */
@media (max-width: 768px) {
  .servers-container {
    max-height: 280px;        /* حداکثر ارتفاع لیست */
    overflow-y: auto;         /* فعال‌سازی اسکرول عمودی */
    padding-left: 8px;        /* فاصله برای اسکرول بار */
    gap: 0.6rem;              /* کاهش فاصله بین آیتم‌ها */
    scrollbar-width: thin;    /* اسکرول بار باریک برای فایرفاکس */
    scrollbar-color: #fb923c #2d1a0e; /* رنگ اسکرول بار */
  }

  /* استایل اسکرول بار برای مرورگرهای مبتنی بر وب‌کیت (کروم، سافاری) */
  .servers-container::-webkit-scrollbar {
    width: 6px;
  }
  .servers-container::-webkit-scrollbar-track {
    background: #2d1a0e;
    border-radius: 10px;
  }
  .servers-container::-webkit-scrollbar-thumb {
    background: #fb923c;
    border-radius: 10px;
  }
  .servers-container::-webkit-scrollbar-thumb:hover {
    background: #f97316;
  }
}

/* بهبود نمایش سرورها در L2TP و Cisco برای موبایل */
@media (max-width: 768px) {
  /* افزایش فاصله بین آیتم‌ها و حداقل عرض */
  .servers-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem 1.2rem;
  }

  .server-pill {
    font-size: 1rem;
    padding: 0.9rem 0.5rem;
    word-break: break-word;
    white-space: normal;
    text-align: center;
    border-width: 1.2px;
  }
}

@media (max-width: 480px) {
  .servers-container {
    grid-template-columns: 1fr; /* تک‌ستون برای نمایش کامل هر آدرس */
    gap: 0.9rem;
  }

  .server-pill {
    padding: 1rem 0.8rem;
    font-size: 1.05rem;
  }
}

.search-box {
  margin: 1.2rem 0 1.8rem;
  text-align: center;
}

.section-search {
  width: 100%;
  max-width: 460px;
  padding: 0.9rem 1.3rem;
  font-size: 1.05rem;
  border: 1.5px solid rgba(251, 146, 60, 0.35);
  border-radius: 999px;
  background: rgba(30, 22, 14, 0.68);
  color: #fed7aa;
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
}

.section-search:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.18);
}

.section-search::placeholder {
  color: rgba(251, 146, 60, 0.65);
}

/* وقتی چیزی تایپ می‌شود */
.section-search:not(:placeholder-shown) {
  background: rgba(30, 22, 14, 0.82);
}

/* استایل لینک‌های مهم در اطلاعیه */
.important-links {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center; /* یا flex-start اگر می‌خواهید چپ‌چین باشد */
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.site-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.site-btn:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #00aaff);
    color: white;
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #0077b6, #0099dd);
}

.link-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.archive-btn {
    display: inline-block;
    padding: 0.95rem 2.2rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
    transition: all 0.32s ease;
}

.archive-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(79, 70, 229, 0.55);
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}

.announcement-archive-link {
    margin-top: 2.5rem;
}

/* === بهینه‌سازی قوی iOS / موبایل === */
@media (max-width: 768px) {
    .premium-slider-wrapper {
        perspective: none !important;
    }

    .premium-card,
    .card-inner,
    .hero-flag,
    .server-pill {
        transform: none !important;
        transition: opacity 0.3s ease !important;
        will-change: auto !important;
        backface-visibility: visible !important;
    }

    .premium-slider {
        height: auto !important;
        min-height: 480px;
    }

    /* غیرفعال کردن کامل 3D و blurهای سنگین */
    .section,
    .premium-card .card-inner,
    .announcement-item,
    .app-card,
    .card-bg-glow {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    }

    /* ساده‌سازی سرورها در موبایل */
    .servers-container {
        max-height: 260px;
        overflow-y: auto;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    }

    /* کاهش انیمیشن‌های غیرضروری */
    * {
        animation-play-state: paused !important; /* فقط موقتی برای تست */
    }
}


/* === بهینه‌سازی فوق قوی iOS / WebKit === */
@media (max-width: 768px) {
    /* غیرفعال کردن کامل افکت‌های سنگین */
    .premium-slider-wrapper,
    .premium-slider {
        perspective: none !important;
        transform: none !important;
        height: auto !important;
        min-height: 520px;
        overflow: visible !important;
    }

    .premium-card {
        position: relative !important;           /* مهم */
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        pointer-events: auto !important;
        z-index: auto !important;
    }

    .premium-card:not(.active) {
        display: none !important;                /* فقط کارت فعال نمایش داده بشه */
    }

    .card-inner,
    .card-bg-glow {
        transform: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
        transition: none !important;
    }

    .hero-flag {
        transform: none !important;
        transition: none !important;
    }

    .server-pill {
        transform: none !important;
        transition: none !important;
    }

    /* حذف blurهای باقی‌مانده */
    .section,
    .announcement-item,
    .app-card,
    .alert-banner,
    .topbar,
    .mobile-menu {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* ساده‌سازی کامل انیمیشن‌ها */
    * {
        animation-duration: 0.01s !important;
        transition-duration: 0.2s !important;
    }

    .nav-arrow {
        backdrop-filter: none !important;
        background: rgba(0,0,0,0.6) !important;
    }
}