/* ====== CSS Variables (exactly from file 1) ====== */
:root{
  color-scheme: dark;
  --site-max: 1400px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --bg-main: #08101d;
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --bg-elevated-2: rgba(255, 255, 255, 0.06);
  --text-main: #edf5ff;
  --muted: #b7c4d8;
  --brand: #00e5ff;
  --brand-2: #2bf7b0;
  --brand-dark: #041018;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.18);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.28);
  --line-soft: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --focus-ring: 0 0 0 3px rgba(0, 229, 255, 0.22);
  --transition-smooth: cubic-bezier(0.2, 0.9, 0.4, 1);
}

html[data-theme="light"]{
  color-scheme: light;
  --bg-main: #f4f7fb;
  --bg-elevated: rgba(255,255,255,.78);
  --bg-elevated-2: rgba(255,255,255,.92);
  --text-main: #0f172a;
  --muted: #526076;
  --shadow-soft: 0 10px 35px rgba(15,23,42,.08);
  --shadow-strong: 0 20px 60px rgba(15,23,42,.16);
  --line-soft: rgba(15,23,42,.10);
  --line-strong: rgba(15,23,42,.14);
  --surface-soft: rgba(15,23,42,.04);
  --surface-hover: rgba(15,23,42,.07);
  --focus-ring: 0 0 0 3px rgba(0,146,255,.16);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background:
    radial-gradient(circle at top left, rgba(0,229,255,.08), transparent 26%),
    radial-gradient(circle at bottom right, rgba(43,247,176,.05), transparent 28%),
    var(--bg-main);
  color:var(--text-main);
  font-family:"IRANSans", sans-serif;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  position: relative;
  min-height: 100vh;
  padding: 1rem 0.75rem;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 40%, rgba(0,229,255,0.08), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(43,247,176,0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: subtleMove 18s infinite alternate ease-in-out;
}
@keyframes subtleMove {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.container, .header, .section, .footer { position: relative; z-index: 10; }
.container{
  width: min(100%, var(--site-max));
  margin-inline: auto;
}

.glass{
  border:1px solid var(--line-soft);
  box-shadow:var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--bg-elevated);
}

.header{
  position:sticky;
  top:12px;
  z-index:1100;
  margin: 14px 0 24px;
  border-radius:22px;
  padding:12px 14px;
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:14px;
  background:rgba(7, 12, 24, .74);
  border:1px solid var(--line-strong);
}
html[data-theme="light"] .header{ background:rgba(255,255,255,.78); }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.brand-logo-wrap{
  width:52px; height:52px;
  border-radius:14px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line-soft);
  overflow:hidden;
}
.brand img{ width:100%; height:100%; object-fit:contain; }
.brand-mark{
  width:100%; height:100%;
  display:grid; place-items:center;
  font-weight:900; font-size:1rem; color:var(--brand);
  background: radial-gradient(circle at top right, rgba(0,229,255,.18), transparent 40%), linear-gradient(135deg, rgba(0,229,255,.06), rgba(43,247,176,.08));
}
.brand .t1{ font-weight:900; font-size:1.05rem; white-space:nowrap; }
.brand .t2{ font-size:.82rem; opacity:.82; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nav{ display:flex; gap:8px; flex-wrap:wrap; }
.nav a{ text-decoration:none; color:inherit; padding:10px 14px; border-radius:12px; font-weight:700; white-space:nowrap; }
.nav a:hover{ background:var(--surface-soft); }
.nav .rfid{ background:rgba(0,229,255,.1); border:1px solid rgba(0,229,255,.18); }
.actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.theme-toggle{ min-width:46px; min-height:46px; display:inline-flex; align-items:center; justify-content:center; background:transparent; border:none; color:inherit; cursor:pointer; border-radius:999px; }
.mobile-menu-toggle{ display:none; min-width:46px; min-height:46px; border-radius:14px; background:rgba(255,255,255,.06); align-items:center; justify-content:center; font-size:1.1rem; cursor:pointer; border:none; color:inherit; }
@media (max-width: 992px) { .nav { display: none; } .mobile-menu-toggle { display: inline-flex; } .actions .theme-toggle { display: none; } .header { grid-template-columns: auto 1fr auto auto; } }
.mobile-nav{ position:fixed; top:0; right:0; width:min(88vw,380px); height:100vh; background:rgba(8,13,26,.96); transform:translateX(100%); transition:transform .28s; z-index:1700; padding:18px; overflow-y:auto; backdrop-filter:blur(20px); }
.mobile-nav.open{ transform:translateX(0); }
.mobile-nav-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.54); opacity:0; pointer-events:none; transition:opacity .24s; z-index:1600; }
.mobile-nav-backdrop.open{ opacity:1; pointer-events:auto; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; padding:10px 18px; border-radius:14px;
  border:1px solid var(--line-soft); background:rgba(255,255,255,.05);
  color:inherit; text-decoration:none; font-weight:800;
  transition:all 0.2s var(--transition-smooth); cursor:pointer;
}
.btn:hover{ transform:translateY(-2px); background:rgba(255,255,255,.08); }
.btn-primary{
  color:var(--brand-dark); border-color:rgba(0,229,255,.18);
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow:0 10px 28px rgba(0,229,255,.20);
}
.btn-primary:hover{ background:linear-gradient(135deg, #19edff, #49ffc1); }

.hero-section {
  text-align: center; padding: 36px 28px; margin-top: 20px;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
}
.hero-icon {
  width: 70px; height: 70px; margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(43,247,176,0.1));
  border-radius: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--brand);
  border: 1px solid rgba(0,229,255,0.3);
}
.hero-section h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 900; margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, var(--brand), var(--brand-2));
  background-clip: text; -webkit-background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.hero-description { max-width: 720px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; color: var(--muted); }
.hero-badge {
  display: inline-flex; gap: 8px;
  background: rgba(0,229,255,0.12); padding: 6px 14px; border-radius: 60px;
  font-size: 0.8rem; margin-top: 18px; border: 1px solid rgba(0,229,255,0.2);
}

.grid4{ margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card{
  border-radius: 24px; padding: 22px 18px;
  background: rgba(5,20,30,0.7);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0,229,255,0.25);
  transition: all 0.3s var(--transition-smooth);
  cursor: pointer;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth), box-shadow 0.3s;
  will-change: transform;
}
.card.card-visible { opacity: 1; transform: translateY(0); }
.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand);
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,229,255,0.3);
  background: rgba(255,255,255,0.08);
}
html[data-theme="light"] .card:hover { background: rgba(255,255,255,0.95); }

.skeleton-card {
  background: linear-gradient(110deg, var(--surface-soft) 8%, rgba(255,255,255,0.08) 18%, var(--surface-soft) 33%);
  background-size: 200% 100%;
  animation: skeletonWave 1.2s linear infinite;
  border-radius: 24px; min-height: 210px;
}
@keyframes skeletonWave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.grid4.filtering-out {
  opacity: 0; transform: scale(0.98);
  transition: opacity 0.15s ease, transform 0.2s;
}

.ev-search { margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.search-wrapper { flex: 2; min-width: 220px; }
.field {
  width: 100%; padding: 0.75rem 1rem; border-radius: 1rem;
  background: #0a1b26; border: 1.5px solid #2c4b62;
  color: #f0fcff; font-size: 0.95rem; font-family: inherit;
  transition: all 0.2s;
}
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,229,255,0.2); outline: none; }
.badge-filter { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 40px;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.05);
  font-size: .92rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s var(--transition-smooth); color: var(--muted);
}
.pill.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-dark); border-color: transparent;
  box-shadow: 0 6px 18px rgba(0,229,255,0.25); font-weight: 800;
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8);
  backdrop-filter: blur(16px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0; transition: visibility 0.2s, opacity 0.3s ease;
}
.modal-overlay.active { visibility: visible; opacity: 1; }
.modal-container {
  background: rgba(15,32,48,0.8); backdrop-filter: blur(16px);
  border-radius: var(--radius-xl); max-width: 950px; width: 90%;
  max-height: 85vh; overflow-y: auto;
  border: 1px solid var(--brand); box-shadow: var(--shadow-strong);
  transform: scale(0.92); transition: transform 0.4s var(--transition-smooth);
  direction: rtl;
}
.modal-overlay.active .modal-container { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 30px; border-bottom: 1px solid var(--line-soft); }
.modal-close { background: none; border: none; font-size: 32px; cursor: pointer; color: var(--muted); transition: 0.2s; line-height: 1; }
.modal-close:hover { color: var(--brand); transform: rotate(90deg); }
.modal-body { padding: 28px 30px; display: flex; flex-direction: column; gap: 24px; }
.modal-image { width: 100%; max-height: 340px; object-fit: contain; border-radius: 32px; background: rgba(0,0,0,0.3); padding: 16px; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 18px; background: var(--surface-soft); padding: 20px; border-radius: 32px; }
.spec-item { display: flex; align-items: center; gap: 12px; font-weight: bold; font-size: 1rem; }
.connector-badge-modal {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-dark); padding: 8px 18px; border-radius: 60px;
  display: inline-block; font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 10px 28px rgba(0,229,255,0.20);
}
.modal-description { line-height: 1.8; font-size: 1rem; color: var(--muted); }

.footer{
  margin: 32px 0 28px; padding: 20px 18px; border-radius: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  background: rgba(7,12,24,.76); border: 1px solid var(--line-soft);
}
html[data-theme="light"] .footer{ background:rgba(255,255,255,.82); }
.trust{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.badge{
  min-height:44px; display:flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:14px; border:1px solid var(--line-soft);
  background:rgba(255,255,255,.04); font-size:.92rem;
}
#enamad img{ width:auto; height:46px; object-fit:contain; border-radius:10px; }

.progress-bar-custom {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  width: 0%; z-index: 10000; transition: width 0.08s linear;
}
.back-to-top {
  position: fixed; bottom: 100px; left: 24px; width: 48px; height: 48px;
  border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-dark); display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer; opacity: 0; visibility: hidden;
  transition: all 0.3s var(--transition-smooth); z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 0 15px rgba(0,229,255,0.6); }

.mouse-glow {
  position: fixed; width: 400px; height: 400px; border-radius: 35%;
  background: radial-gradient(circle,
    rgba(0, 229, 255, 0.45) 0%,
    rgba(43, 247, 176, 0.18) 45%,
    transparent 75%);
  pointer-events: none; transform: translate(-50%, -50%);
  filter: blur(10px); z-index: 90; opacity: 0.65;
  transition: opacity 0.25s ease; will-change: left, top;
  mix-blend-mode: soft-light;
  animation: mouseGlowPulse 10s infinite alternate ease-in-out;
}
body:hover .mouse-glow { opacity: 0.85; }
@keyframes mouseGlowPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.75; }
}
html[data-theme="light"] .mouse-glow {
  background: radial-gradient(circle,
    rgba(0, 146, 255, 0.25) 0%,
    rgba(0, 229, 255, 0.1) 50%,
    transparent 80%);
  opacity: 0.5; mix-blend-mode: normal;
}
html[data-theme="light"] body:hover .mouse-glow { opacity: 0.7; }
@media (max-width: 768px) { .mouse-glow { display: none; } }

.notice { margin-top: 24px; text-align: center; opacity: 0.7; font-size: 0.85rem; }

@media (max-width: 768px) {
  .grid4 { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .hero-section { padding: 24px 18px; }
}
@media (max-width: 480px) { .grid4 { grid-template-columns: 1fr; } }