@font-face {
  font-family: "DanaFaNum";
  src: url("../../Font/DanaFaNum-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DanaFaNum";
  src: url("../../Font/DanaFaNum-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DanaFaNum";
  src: url("../../Font/DanaFaNum-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Scroll reveal animations */
.reveal { 
  opacity: 0; 
  transform: translateY(20px); 
  transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1), transform .6s cubic-bezier(0.4, 0, 0.2, 1); 
}
.reveal.reveal-show { 
  opacity: 1; 
  transform: none; 
}

/* Staggered animations for cards */
.intro-card {
  opacity: 1;
  transform: translateY(0);
}

.intro-card.reveal {
  opacity: 1;
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero, .btn, .card { transition: none !important; }
  .intro-card.reveal { opacity: 1 !important; }
}

/* Fallback for when JS doesn't load */
.no-js .reveal,
.no-js .intro-card.reveal {
  opacity: 1 !important;
  transform: none !important;
}

:root {
  /* Minimal palette */
  --black: #0a0a0a;          /* مشکی */
  --icy-white: #f3f6f7;      /* سفید یخی */
  --accent: #F77E2D;         /* نارنجی */

  --bg: var(--black);
  --text: var(--icy-white);
  --muted: #b9c3c5;          /* خاکستری خوانا روی مشکی */
  --primary: var(--accent);
  --primary-2: #f99a5c;      /* حالت hover روشن‌تر */
  --card: rgba(255,255,255,0.05);
  --stroke: rgba(255,255,255,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.55);
  --radius: 16px;
  --glass-blur: 12px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

/* Apply font globally */
html { font-family: "DanaFaNum", system-ui, -apple-system, Segoe UI, Roboto, Arial; }
body { margin: 0; font: inherit; line-height: 1.75; }
/* Ensure common elements inherit the font */
h1,h2,h3,h4,h5,h6,
button,input,select,textarea,
a,p,span,small,strong,em,code,pre,li,label,div {
  font: inherit;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* Glass utility */
.glass {
  background: var(--card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; margin: 16px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; }
.brand-text h1 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.brand-text p { margin: 0; font-size: .85rem; color: var(--muted); }

.top-nav { display: flex; gap: 12px; }
.top-nav a, .top-nav .nav-link { 
  padding: 8px 12px; 
  border-radius: 10px; 
  border: 1px solid transparent; 
  color: var(--text); 
  background: transparent; 
  cursor: pointer; 
  transition: all .2s ease;
  position: relative;
}
.top-nav a:hover, .top-nav .nav-link:hover { 
  background: rgba(255,255,255,0.06); 
  border-color: var(--stroke); 
  transform: translateY(-1px);
}

/* Dropdown indicator for nav items with menus */
.nav-item > .nav-link::after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 6px;
  transition: transform .2s ease;
  color: var(--muted);
}

.nav-item.open > .nav-link::after {
  transform: rotate(180deg);
}

.nav-item.open > .nav-link {
  background: rgba(247, 126, 45, 0.1);
  border-color: rgba(247, 126, 45, 0.3);
  color: var(--accent);
}
.nav-item { position: relative; }
.nav-item .menu { 
  position: absolute; 
  top: calc(100% + 12px); 
  left: 50%; 
  transform: translateX(-50%) translateY(-6px) scale(.98); 
  min-width: 240px; 
  padding: 12px; 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity .25s ease, transform .25s ease; 
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.nav-item.open .menu { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
.nav-item .menu a { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 12px 16px; 
  border-radius: 12px; 
  color: var(--text);
  text-decoration: none;
  transition: all .2s ease;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(-4px);
  animation: menuItemFadeIn .3s ease forwards;
}

@keyframes menuItemFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item .menu a:nth-child(1) { animation-delay: 0.05s; }
.nav-item .menu a:nth-child(2) { animation-delay: 0.1s; }
.nav-item .menu a:nth-child(3) { animation-delay: 0.15s; }
.nav-item .menu a:nth-child(4) { animation-delay: 0.2s; }
.nav-item .menu a img { 
  width: 20px; 
  height: 20px; 
  flex: 0 0 20px; 
  opacity: 0.8;
  transition: opacity .2s ease;
}
.nav-item .menu a:hover { 
  background: rgba(247, 126, 45, 0.15); 
  border-color: rgba(247, 126, 45, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 126, 45, 0.2);
}
.nav-item .menu a:hover img {
  opacity: 1;
}

/* Scroll lock when menu open */
body.nav-open { overflow: hidden; }

/* Backdrop when any nav menu is open */
#nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .18s ease; z-index: 25; }
#nav-backdrop.show { opacity: 1; pointer-events: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; margin: 24px 16px; padding: 32px; }
.hero #particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 900px; margin-inline: auto; text-align: center; }
.hero h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2vw + 1rem, 2rem); }
.hero p { margin: 0 0 16px; color: var(--muted); }
.hero .hero-actions { display: inline-flex; gap: 12px; }

/* Larger full hero for homepage */
.hero-full { margin: 0; border-radius: 0; min-height: clamp(60vh, 70vh, 78vh); }
.hero-full .hero-content { padding-top: 8vh; padding-bottom: 6vh; }

/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  padding: 10px 16px; 
  border-radius: 12px; 
  border: 1px solid var(--stroke); 
  color: var(--text); 
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; 
}

.btn.primary { 
  background: color-mix(in oklab, var(--accent) 24%, transparent); 
  border-color: color-mix(in oklab, var(--accent) 40%, transparent); 
}

.btn:hover, .btn:focus-visible { 
  transform: translateY(-1px); 
  box-shadow: 0 8px 18px rgba(0,0,0,0.35); 
  outline: none;
}

.btn:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(247, 126, 45, 0.3), 0 8px 18px rgba(0,0,0,0.35);
}

/* DNS Get Button with glowing hover effect */
.dns-get-btn {
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}

.dns-get-btn:hover {
  background: color-mix(in oklab, var(--accent) 35%, transparent);
  border-color: var(--accent);
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.4),
    0 0 20px rgba(247, 126, 45, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.dns-get-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left .6s ease;
}

.dns-get-btn:hover::before {
  left: 100%;
}

/* Sections */
.section { margin: 24px 16px; padding: 16px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-header h3 { margin: 0; font-size: 1.1rem; }

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion-item { border-radius: var(--radius); border: 1px solid var(--stroke); background: rgba(255,255,255,0.03); overflow: hidden; }
.accordion-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; cursor: pointer; }
.accordion-header .title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.accordion-header .icons { display: inline-flex; gap: 8px; opacity: .9; }
.accordion-header .chevron { transition: transform .2s ease; }
.accordion-item.open .chevron { transform: rotate(180deg); }
.accordion-content { display: none; padding: 10px; border-top: 1px solid var(--stroke); }
.accordion-item.open .accordion-content { display: block; }

/* List menu inside accordion */
.list-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255,255,255,0.02); cursor: pointer; }
.list-item:hover { background: rgba(255,255,255,0.05); }
.list-item .label { display: inline-flex; align-items: center; gap: 10px; }
.list-item .label img { width: 22px; height: 22px; }

/* Tabs */
.os-tabs { display: flex; gap: 8px; }
.os-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255,255,255,0.03); color: var(--text); cursor: pointer; }
.os-tab img { width: 18px; height: 18px; }
.os-tab.active { background: color-mix(in oklab, var(--accent) 14%, transparent); border-color: color-mix(in oklab, var(--accent) 40%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 20%, transparent); }

/* Animations */
.fade-in { animation: fade-in .5s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* DNS page */
.dns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dns-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.dns-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dns-flag { width: 28px; height: 21px; border-radius: 4px; object-fit: cover; border: 1px solid var(--stroke); }
.dns-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(255,255,255,0.04); font-size: .86rem; }
.badge.ok { background: rgba(176,212,210,0.14); border-color: color-mix(in oklab, var(--accent) 35%, transparent); }
.badge.total { background: rgba(255,255,255,0.06); }
.badge.busy { background: rgba(255,172,172,0.12); border-color: rgba(255,172,172,0.28); }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { padding: 14px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.35); border-color: color-mix(in oklab, var(--accent) 30%, transparent); }
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-header img { width: 22px; height: 22px; }
.card h4 { margin: 0; font-size: 1.02rem; }
.card p { margin: 4px 0 12px; color: var(--muted); font-size: .95rem; }
.card-actions { display: flex; gap: 8px; }

/* Intro Section */
.intro-section { margin: 32px 16px; }
.intro-section .section-header { text-align: center; margin-bottom: 32px; opacity: 1; }
.intro-section .section-header h3 { font-size: 1.8rem; margin-bottom: 8px; color: var(--text); opacity: 1; }
.intro-section .section-header p { color: var(--muted); font-size: 1.1rem; margin: 0; opacity: 1; }

.intro-cards-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 20px; 
  margin-bottom: 32px; 
}

.intro-card { 
  padding: 24px; 
  text-align: center; 
  transition: all .3s ease; 
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-2));
  opacity: 0;
  transition: opacity .3s ease;
}

.intro-card:hover::before { opacity: 1; }

.intro-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
  border-color: color-mix(in oklab, var(--accent) 40%, transparent); 
}

.intro-icon { 
  width: 64px; 
  height: 64px; 
  margin: 0 auto 16px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 50%; 
  background: rgba(255,255,255,0.08);
  transition: all .3s ease;
}

.intro-card:hover .intro-icon {
  background: rgba(255,255,255,0.12);
  transform: scale(1.1);
}

.intro-icon img { 
  width: 32px; 
  height: 32px; 
}

.intro-card h4 { 
  margin: 0 0 12px; 
  font-size: 1.2rem; 
  font-weight: 600;
  color: var(--text);
}

.intro-card p { 
  margin: 0; 
  color: var(--muted); 
  font-size: .95rem; 
  line-height: 1.6;
}

.intro-actions { 
  display: flex; 
  gap: 16px; 
  justify-content: center; 
  flex-wrap: wrap; 
}

.btn.large { 
  padding: 14px 24px; 
  font-size: 1.05rem; 
  font-weight: 600;
}

.btn.secondary { 
  background: rgba(255,255,255,0.06); 
  border-color: var(--stroke); 
  color: var(--text);
}

.btn.secondary:hover { 
  background: rgba(255,255,255,0.1); 
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
}

.btn.secondary {
  transition: all 0.3s ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-color: var(--stroke);
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255,255,255,0.03);
}

.btn img { 
  width: 18px; 
  height: 18px; 
}

/* Empty */
.empty-state { text-align: center; color: var(--muted); padding: 16px; }
.hidden { display: none; }

/* Loading overlay */
#loading { position: fixed; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, rgba(10,10,10,0.95), rgba(15,15,15,0.98)); backdrop-filter: blur(8px); z-index: 999; }
#loading .loader { position: relative; width: 80px; height: 80px; }
#loading .ring { position: absolute; border-radius: 50%; border: 2px solid transparent; }
#loading .ring:nth-child(1) { width: 80px; height: 80px; border-top-color: var(--accent); animation: spin 1.2s linear infinite; }
#loading .ring:nth-child(2) { width: 60px; height: 60px; top: 10px; left: 10px; border-right-color: var(--primary-2); animation: spin 1s linear infinite reverse; }
#loading .ring:nth-child(3) { width: 40px; height: 40px; top: 20px; left: 20px; border-bottom-color: rgba(247,126,45,0.6); animation: spin 0.8s linear infinite; }
#loading .ring:nth-child(4) { width: 20px; height: 20px; top: 30px; left: 30px; border-left-color: rgba(255,255,255,0.4); animation: spin 0.6s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
#loading .text { margin-top: 24px; color: var(--accent); font-size: 0.9rem; opacity: 0.8; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Mobile hamburger menu */
.hamburger { 
  display: none; 
  width: 44px; 
  height: 44px; 
  border-radius: 12px; 
  border: 1px solid var(--stroke); 
  background: rgba(255,255,255,0.06); 
  align-items: center; 
  justify-content: center; 
  cursor: pointer;
  transition: all .3s ease;
  position: relative; 
  z-index: 60; 
}

.hamburger:hover {
  background: rgba(255,255,255,0.1);
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
}

.hamburger span { 
  display: block; 
  width: 20px; 
  height: 2px; 
  background: var(--text); 
  position: relative;
  transition: all .3s ease;
}

.hamburger span::before, .hamburger span::after { 
  content: ""; 
  position: absolute; 
  left: 0; 
  width: 20px; 
  height: 2px; 
  background: var(--text);
  transition: all .3s ease;
}

.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }

/* Hamburger animation when menu is open */
.hamburger.active span {
  background: transparent;
}

.hamburger.active span::before {
  transform: rotate(45deg);
  top: 0;
}

.hamburger.active span::after {
  transform: rotate(-45deg);
  top: 0;
}

@media (max-width: 768px) {
  .top-nav { 
    position: fixed; 
    top: 0; 
    left: 0;
    right: 0; 
    bottom: 0;
    width: 100vw;
    height: 100vh;
    padding: 80px 20px 20px; 
    background: rgba(10,10,10,0.98); 
    flex-direction: column; 
    gap: 12px; 
    transform: translateX(100%); 
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 40; 
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  .top-nav.open { transform: translateX(0); }
  .hamburger { display: inline-flex; }
  
  .top-nav a, .top-nav .nav-link { 
    display: block; 
    width: 100%; 
    text-align: start; 
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all .2s ease;
    margin-bottom: 4px;
  }
  
  .top-nav a:hover, .top-nav .nav-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: color-mix(in oklab, var(--accent) 20%, transparent);
  }
  
  .nav-item { width: 100%; }
  .nav-item .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .nav-item .nav-link::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform .2s ease;
    color: var(--muted);
  }
  
  .nav-item.open .nav-link::after {
    transform: rotate(180deg);
  }
  
  .nav-item .menu { 
    position: static; 
    top: auto; 
    inset: auto; 
    min-width: 100%; 
    padding: 12px; 
    gap: 6px; 
    opacity: 1; 
    transform: none; 
    pointer-events: auto; 
    display: none; 
    border-top: 1px solid var(--stroke); 
    margin-top: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
  }
  
  .nav-item.open .menu { display: flex; }
  
  .nav-item .menu a {
    padding: 12px 16px;
    margin: 0;
    border-radius: 10px;
    font-size: 1rem;
  }
  
  .nav-item .menu a img {
    width: 22px;
    height: 22px;
  }
  
  /* Close button for mobile menu */
  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    z-index: 50;
  }
  
  .mobile-menu-close:hover {
    background: rgba(255,255,255,0.1);
    border-color: color-mix(in oklab, var(--accent) 30%, transparent);
  }
  
  .mobile-menu-close::before,
  .mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: all .3s ease;
  }
  
  .mobile-menu-close::before {
    transform: rotate(45deg);
  }
  
  .mobile-menu-close::after {
    transform: rotate(-45deg);
  }
}

/* Status Indicators */
.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  position: relative;
}

.status-indicator.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-indicator.offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.status-indicator.warning {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.status-indicator.online::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Footer */
.site-footer { text-align: center; padding: 24px 16px; color: var(--muted); }
.footer-inner { display: grid; gap: 14px; align-items: start; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-title { font-weight: 700; color: var(--text); }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--stroke); border-radius: 10px; color: var(--text); background: rgba(255,255,255,0.03); }
.footer-link img { width: 16px; height: 16px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr 1fr; } }

/* Anti-scraping protection */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Disable image dragging */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

/* Re-enable pointer events for interactive elements */
button, a, input, textarea, select {
  pointer-events: auto;
}

/* Hide content from print */
@media print {
  * {
    display: none !important;
  }
  
  body::before {
    content: "چاپ این صفحه مجاز نیست";
    display: block !important;
    text-align: center;
    font-size: 24px;
    margin-top: 50vh;
  }
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .site-header { 
    flex-direction: row; 
    align-items: center; 
    gap: 12px; 
    margin: 12px;
    padding: 10px 14px;
  }
  
  .brand-text h1 { font-size: 1rem; }
  .brand-text p { font-size: 0.8rem; }
  .brand-logo { width: 36px; height: 36px; }
  
  .hero-full .hero-content { 
    padding-top: 4vh; 
    padding-bottom: 4vh; 
  }
  
  .hero h2 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  
  .intro-section { margin: 24px 12px; }
  .intro-section .section-header h3 { font-size: 1.5rem; }
  .intro-section .section-header p { font-size: 1rem; }
  
  .intro-cards-grid { 
    grid-template-columns: 1fr; 
    gap: 16px; 
  }
  
  .intro-card { padding: 20px; }
  .intro-icon { width: 56px; height: 56px; }
  .intro-icon img { width: 28px; height: 28px; }
  
  .intro-actions { 
    flex-direction: column; 
    align-items: center; 
  }
  
  .btn.large { 
    width: 100%; 
    max-width: 280px; 
    justify-content: center; 
  }
  
  .container { width: 95%; }
}

@media (max-width: 480px) {
  .intro-cards-grid { 
    grid-template-columns: 1fr; 
  }
  
  .hero-actions { 
    flex-direction: column; 
    gap: 8px; 
  }
  
  .hero-actions .btn { 
    width: 100%; 
    justify-content: center; 
  }
}
