* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", "Tahoma", sans-serif;
  background: #f4f4f5;
  direction: rtl;
  padding: 20px;
}

/* ─────────────────────────────NAVBAR───────────────────────────── */

.navbar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  position: sticky;
  top: 20px;
  z-index: 100;
}

.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 900px;
  justify-content: space-between;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 50px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 100%;
  fill: white;
}

.logo-text {
  font-size: 17px;
  font-weight: 800;
  color: #111;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.navbar-links a,
.navbar-links .nav-item {
  text-decoration: none;
  color: #52525b;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links .nav-item:hover {
  background: #e8f4fd;
  color: #0088cc;
}

.navbar-links a.active {
  background: #e8f4fd;
  color: #0088cc;
  font-weight: 600;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e4e4e7;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #555;
}

.nav-icon-btn:hover {
  background: #e8f4fd;
  border-color: #0088cc;
  color: #0088cc;
}

.nav-icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.btn-nav-start {
  background: linear-gradient(135deg, #00b3cc, #0088cc);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  box-shadow: 0 2px 10px rgba(0, 98, 255, 0.28);
  white-space: nowrap;
}

.btn-nav-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 98, 255, 0.4);
}

.mobile-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e4e4e7;
  background: white;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
  fill: #52525b;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 99;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-content a {
  text-decoration: none;
  color: #52525b;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s;
}

.mobile-menu-content a:hover {
  background: #e8f4fd;
  color: #0088cc;
}

.mobile-menu-content a.active {
  background: #e8f4fd;
  color: #0088cc;
  font-weight: 600;
}

@media (max-width: 768px) {
  .navbar-wrapper {
    top: 10px;
    padding: 0 10px;
  }

  .navbar {
    border-radius: 20px;
    padding: 8px 12px;
  }

  .navbar-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .btn-nav-start {
    display: none;
  }
}

/* ─────────────────────────────CONTAINER───────────────────────────── */

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  padding: 32px 28px;
  border-radius: 24px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* ─────────────────────────────HEADER───────────────────────────── */

.header {
  text-align: center;
  margin-bottom: 36px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 12px;
  color: #71717a;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

/* ─────────────────────────────GRID───────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

/* ─────────────────────────────BOX (CARD)───────────────────────────── */

.box {
  background: white;
  border-radius: 20px;
  padding: 0;
  border: 1.5px solid #e4e4e7;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition:
    transform 0.28s,
    box-shadow 0.28s;
}

.box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
}

.box-title {
  background: #f4f4f5;
  padding: 12px 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  border-bottom: 1.5px solid #e4e4e7;
}

.yellow-header {
  background: linear-gradient(135deg, #fef3c7, #fde047);
  color: #854d0e;
}

.orange-header {
  background: linear-gradient(135deg, #00b3cc, #0088cc);
  color: white;
}

.gray-header {
  background: linear-gradient(135deg, #a1a1aa, #71717a);
  color: white;
}

.orange-box {
  background: #fff7ed;
  border-color: #fed7aa;
}

/* ─────────────────────────────PACKAGE NAME───────────────────────────── */

.package-name {
  background: #f4f4f5;
  padding: 8px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #52525b;
  margin: 14px 16px 10px;
  border-radius: 10px;
}

/* ─────────────────────────────TABLE───────────────────────────── */

table {
  width: calc(100% - 32px);
  margin: 0 16px 14px;
  border-collapse: collapse;
  font-size: 12px;
  border-radius: 10px;
  overflow: hidden;
}

td {
  border: 1px solid #e4e4e7;
  padding: 8px 6px;
  text-align: center;
}

.header-row td {
  background: #f4f4f5;
  font-weight: 600;
  color: #52525b;
  font-size: 11.5px;
}

.yellow-row td {
  background: #fef3c7;
  color: #854d0e;
}

.green-row td {
  background: #dcfce7;
  color: #166534;
}

.blue-row td {
  background: #dbeafe;
  color: #1e40af;
}

/* ─────────────────────────────NOTE───────────────────────────── */

.note {
  font-size: 10.5px;
  color: #71717a;
  line-height: 1.5;
  padding: 0 16px 14px;
  background: #fafafa;
  margin: 0 16px 14px;
  border-radius: 8px;
  padding: 10px 12px;
}

/* ─────────────────────────────FOOTER───────────────────────────── */

.footer {
  border-top: 1.5px solid #e4e4e7;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logos {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-logos img {
  width: 90px;
  height: auto;
  border-radius: 8px;
}

.footer-info {
  text-align: center;
}

.footer-info p {
  font-size: 13px;
  color: #52525b;
  margin: 4px 0;
  font-weight: 500;
}

.footer-text {
  font-size: 12px;
  color: #71717a;
  max-width: 600px;
  line-height: 1.6;
}

.footer-text p {
  margin: 4px 0;
}

/* ─────────────────────────────RESPONSIVE───────────────────────────── */

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .navbar-links {
    display: none;
  }
  .footer {
    flex-direction: column;
    text-align: center;
  }
}

/* ─────────────────────────────PAGE WRAPPER───────────────────────────── */

.page-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 44px 24px 70px;
}

/* ─────────────────────────────CARDS GRID───────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.card {
  background: white;
  border-radius: 22px;
  padding: 24px 22px 22px;
  border: 1.5px solid #e4e4e7;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none; /* حذف underline لینک */
  color: inherit; /* رنگ متن طبیعی */
  cursor: pointer;
  outline: 2px solid transparent; /* outline پیش‌فرض شفاف */
  outline-offset: 3px;
  transition:
    transform 0.28s,
    box-shadow 0.28s,
    outline-color 0.22s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

/* featured حالت پیش‌فرض */
.card.featured {
  background: linear-gradient(150deg, #00b3cc 0%, #0088cc 100%);
  border: none;
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.38);
  transform: scale(1.03);
}

/* hover featured */
.card.featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 16px 42px rgba(255, 140, 0, 0.45);
  outline-color: rgba(255, 255, 255, 0.7);  /* outline سفید */
}

/* hover عادی */
.card:not(.featured):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  outline-color: #0088cc;          /* outline نارنجی */
}

/* Card top */
.card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.plan-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f4fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-icon svg {
  width: 18px;
  height: 18px;
  fill: #0088cc;
}

.card.featured .plan-icon {
  background: rgba(255, 255, 255, 0.25);
}

.card.featured .plan-icon svg {
  fill: white;
}

.card h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-top: 6px;
}

.card.featured h2 {
  color: white;
}

.card-desc {
  font-size: 13px;
  color: #71717a;
  line-height: 1.6;
}

.card.featured .card-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Divider */
.card-divider {
  height: 1px;
  background: #f0f0f0;
}

.card.featured .card-divider {
  background: rgba(255, 255, 255, 0.25);
}

/* ─────────────────────────────RESPONSIVE───────────────────────────── */

@media (max-width: 860px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card.featured {
    transform: scale(1);
  }
  .card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 580px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .navbar-links {
    display: none;
  }
}
