/* ═══════════════════════════════════════
   MALIO — SHARED STYLES v1.0
   استفاده در: privacy, terms, about, contact, payment, dashboard
═══════════════════════════════════════ */

/* ─── Variables ─────────────────────── */
:root {
  --navy:       #0D1B2A;
  --navy-mid:   #1A2F45;
  --green:      #2EE8A5;
  --green-dark: #00A87E;
  --white:      #FFFFFF;
  --gray-50:    #F8FAF9;
  --gray-100:   #F0F4F2;
  --gray-200:   #E2EAE6;
  --gray-400:   #8A9BB0;
  --gray-600:   #4A5568;
  --red:        #FF4D6D;
  --blue:       #4D9FFF;
  --radius:     14px;
}

/* ─── Reset ─────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
}

/* ─── Nav ───────────────────────────── */
nav.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 5%;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
nav.main-nav > .nav-inner {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo em { color: var(--green); font-style: normal; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-link {
  font-size: 0.88rem;
  color: var(--gray-400);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: none;
}
@media(min-width: 768px) { .nav-link { display: block; } }
.nav-link:hover { color: var(--green); }
.btn-nav {
  background: var(--green);
  color: var(--navy);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-nav:hover { background: var(--white); color: var(--navy); }

/* ─── Page Header ───────────────────── */
.page-header {
  background: var(--navy);
  padding: 7rem 5% 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(46,232,165,0.07) 0%, transparent 70%);
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46,232,165,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,232,165,0.03) 1px, transparent 1px);
  background-size: 55px 55px;
}
.header-inner { position: relative; z-index: 2; max-width: 760px; }
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(46,232,165,0.1);
  border: 1px solid rgba(46,232,165,0.2);
  color: var(--green);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.page-header p { font-size: 0.95rem; color: var(--gray-400); }
.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gray-400);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

/* ─── Content Layout ────────────────── */
.content-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  max-width: 1060px;
  margin: 3rem auto;
  padding: 0 5%;
}
@media(max-width: 768px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ─── Sidebar ───────────────────────── */
.sidebar { position: sticky; top: 5rem; height: fit-content; }
.sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 0.15rem; }
.sidebar-nav a {
  font-size: 0.85rem;
  color: var(--gray-600);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-right: 2px solid transparent;
  display: block;
  border-radius: 0 6px 6px 0;
  transition: all 0.2s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--green);
  border-right-color: var(--green);
  background: rgba(46,232,165,0.05);
}

/* ─── Section Blocks ────────────────── */
.content { min-width: 0; }
.section-block {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-200);
}
.section-block:last-child { border-bottom: none; }
.section-block h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-block h2 .icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  background: rgba(46,232,165,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.section-block p {
  font-size: 0.93rem;
  color: var(--gray-600);
  margin-bottom: 0.9rem;
}
.section-block p:last-child { margin-bottom: 0; }
.section-block ul { list-style: none; margin: 0.8rem 0 0.9rem; }
.section-block ul li {
  font-size: 0.92rem;
  color: var(--gray-600);
  padding: 0.45rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-bottom: 1px solid var(--gray-100);
}
.section-block ul li:last-child { border: none; }
.section-block ul li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.section-block ul.x-list li::before { content: "✗"; color: var(--red); }

/* ─── Boxes ─────────────────────────── */
.highlight-box {
  background: rgba(46,232,165,0.06);
  border: 1px solid rgba(46,232,165,0.2);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}
.highlight-box p { color: var(--navy); font-size: 0.9rem; margin: 0; }
.highlight-box strong { color: var(--green); }

.warning-box {
  background: rgba(255,77,109,0.05);
  border: 1px solid rgba(255,77,109,0.2);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}
.warning-box p { color: var(--navy); font-size: 0.9rem; margin: 0; }

/* ─── Table ─────────────────────────── */
.plan-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.88rem; }
.plan-table th {
  background: var(--navy);
  color: var(--green);
  padding: 0.75rem 1rem;
  text-align: right;
  font-weight: 700;
}
.plan-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
}
.plan-table tr:last-child td { border: none; }
.plan-table tr:nth-child(even) td { background: var(--gray-100); }

/* ─── Contact Card ──────────────────── */
.contact-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}
.contact-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact-card p { color: var(--gray-400); font-size: 0.88rem; margin-bottom: 1.2rem; }
.contact-card a {
  display: inline-block;
  background: var(--green);
  color: var(--navy);
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.contact-card a:hover { background: var(--white); transform: translateY(-2px); }

/* ─── Footer ────────────────────────── */
footer.main-footer {
  background: #060D14;
  padding: 2rem 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4rem;
}
footer.main-footer > .footer-inner {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.footer-logo em { color: var(--green); font-style: normal; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }
.footer-copy { font-size: 0.78rem; color: var(--gray-400); }
@media(max-width: 600px) {
  footer.main-footer > .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ─── Sidebar scroll active ─────────── */
/* JS handles .active class on sidebar links */
