﻿/* ═══════════════════════════════════════════════════════════════
   EGYPT TECHNOLOGY — Main Stylesheet
   Black & Cyan Starfield Theme | RTL/LTR Support
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --bg-primary:    #020408;
  --bg-secondary:  #060C12;
  --bg-card:       #0A1520;
  --bg-card-hover: #0D1C2A;
  --bg-input:      #050A10;
  --border:        rgba(0,210,220,.15);
  --border-light:  rgba(255,255,255,.06);

  --blue:          #00D4FF;
  --blue-dark:     #00A8CC;
  --blue-light:    #33DDFF;
  --cyan:          #00FFE5;
  --cyan-light:    #66FFF0;
  --purple:        #8B5CF6;
  --green:         #10B981;
  --yellow:        #F59E0B;
  --red:           #EF4444;
  --orange:        #F97316;

  --text-primary:  #E8F8FF;
  --text-secondary:#8BB8CC;
  --text-muted:    #4A7080;

  --gradient:      linear-gradient(135deg, #00D4FF, #00FFE5);
  --gradient-dark: linear-gradient(135deg, #001520, #002030);
  --gradient-card: linear-gradient(135deg, rgba(0,212,255,.07), rgba(0,255,229,.04));

  --shadow-sm:     0 2px 8px rgba(0,0,0,.5);
  --shadow:        0 8px 32px rgba(0,0,0,.6);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.7);
  --shadow-blue:   0 8px 32px rgba(0,212,255,.2);
  --shadow-glow:   0 0 40px rgba(0,212,255,.15);

  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --font-ar:       'Tajawal', sans-serif;
  --font-en:       'Inter', sans-serif;

  --nav-height:    72px;
  --sidebar-w:     260px;
  --transition:    .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ar);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
body[lang="en"] { font-family: var(--font-en); }
body[dir="ltr"]  { direction: ltr; text-align: left; }
body[dir="rtl"]  { direction: rtl; text-align: right; }

a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-light); }
img { max-width: 100%; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ── Starfield Canvas ────────────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
/* Everything above the canvas */
.navbar, main, section, footer, .hero,
.container, .page-content { position: relative; z-index: 1; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #00A8CC; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p  { color: var(--text-secondary); }
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-blue    { color: var(--blue-light); }
.text-cyan    { color: var(--cyan); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-yellow  { color: var(--yellow); }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container      { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm   { max-width: 860px;  margin: 0 auto; padding: 0 24px; }
.container-fluid{ padding: 0 24px; }
.section        { padding: 100px 0; }
.section-sm     { padding: 60px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.flex     { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1  { gap: 8px; }
.gap-2  { gap: 16px; }
.gap-3  { gap: 24px; }
.gap-4  { gap: 32px; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  height: var(--nav-height);
  display: flex; align-items: center;
  background: rgba(2,4,8,.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(2,4,8,.98);
  box-shadow: var(--shadow);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.3rem; font-weight: 800;
  color: var(--text-primary);
}
.navbar-brand .logo-icon {
  width: 42px; height: 42px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: var(--shadow-blue);
  flex-shrink: 0;
}
.navbar-brand span.en { font-family: var(--font-en); letter-spacing: -0.5px; }
.navbar-menu { display: flex; align-items: center; gap: 8px; }
.navbar-menu a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: .93rem;
  font-weight: 500;
  transition: all var(--transition);
}
.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--cyan-light);
  background: rgba(0,212,255,.08);
  text-shadow: 0 0 12px rgba(0,212,255,.4);
}
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue-light); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
  margin: 5px 0;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* ── Video Background ────────────────────────────────────────── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* بيختفي لو مفيش فيديو */
  opacity: 1;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* طبقة تعتيم فوق الفيديو — قابلة للتعديل */
  background:
    linear-gradient(to bottom,
      rgba(2,4,8,.55) 0%,
      rgba(2,4,8,.35) 50%,
      rgba(2,4,8,.75) 100%),
    linear-gradient(to right,
      rgba(2,4,8,.5) 0%,
      transparent 60%);
}
/* نجوم فوق الفيديو */
.hero .hero-bg,
.hero .hero-grid,
.hero .container {
  z-index: 2;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,255,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0,255,229,.07) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 10% 60%, rgba(0,150,220,.06) 0%, transparent 50%),
    transparent;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 20px;
  font-size: .85rem;
  color: var(--cyan-light);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0,212,255,.1);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}
.hero h1 { margin-bottom: 20px; font-weight: 900; }
.hero p  { font-size: 1.1rem; margin-bottom: 36px; max-width: 540px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: .83rem; color: var(--text-muted); margin-top: 2px; }
.hero-visual {
  position: absolute;
  inset-inline-end: 0; top: 50%;
  transform: translateY(-50%);
  width: 45%;
  opacity: .06;
  pointer-events: none;
}

/* ── Section Header ──────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 20px;
  font-size: .8rem;
  color: var(--blue-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p  { max-width: 560px; margin: 0 auto; }
[dir="rtl"] .section-header p { margin: 0 auto; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  border-color: rgba(0,212,255,.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px;
  background: rgba(0,212,255,.12);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition);
}
.card:hover .card-icon {
  background: rgba(0,212,255,.2);
  box-shadow: 0 0 20px rgba(0,212,255,.3);
}

/* ── Service Cards ───────────────────────────────────────────── */
.service-card { position: relative; overflow: hidden; }
.service-card .card-num {
  position: absolute;
  top: 20px; inset-inline-end: 24px;
  font-size: 3rem; font-weight: 900;
  color: rgba(0,212,255,.06);
  line-height: 1;
  font-family: var(--font-en);
}

/* ── Pricing Cards ───────────────────────────────────────────── */
.pricing-card { text-align: center; }
.pricing-card.featured {
  border-color: rgba(0,212,255,.5);
  background: linear-gradient(135deg, rgba(0,212,255,.12), rgba(0,255,229,.08));
  box-shadow: var(--shadow-blue), 0 0 0 1px rgba(0,212,255,.3);
}
.pricing-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--gradient);
  border-radius: 20px;
  font-size: .75rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 16px;
}
.pricing-price {
  font-size: 3rem; font-weight: 800;
  font-family: var(--font-en);
  color: var(--text-primary);
  line-height: 1;
  margin: 8px 0 4px;
}
.pricing-price .currency { font-size: 1.2rem; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-price .period   { font-size: .9rem; color: var(--text-muted); font-weight: 400; }
.pricing-features { text-align: start; margin: 24px 0; }
.pricing-features li {
  padding: 8px 0;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border-light);
  font-size: .9rem;
  color: var(--text-secondary);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { color: var(--green); font-size: .75rem; }
.pricing-features li .cross { color: var(--text-muted); font-size: .75rem; }

/* ── Project Cards ───────────────────────────────────────────── */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: all var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-img {
  width: 100%; height: 220px;
  background: var(--gradient-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative; overflow: hidden;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(11,18,33,.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-body { padding: 22px; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.project-tag {
  padding: 3px 10px;
  background: rgba(0,212,255,.1);
  border-radius: 12px;
  font-size: .75rem;
  color: var(--blue-light);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: .93rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,.3);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,.4);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(0,212,255,.4);
  color: var(--blue-light);
}
.btn-outline:hover {
  background: rgba(0,212,255,.1);
  border-color: var(--blue);
  color: var(--blue-light);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  color: var(--text-primary);
}
.btn-danger  { background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.3); }
.btn-success { background: rgba(16,185,129,.15); color: var(--green); border: 1px solid rgba(16,185,129,.3); }
.btn-warning { background: rgba(245,158,11,.15); color: var(--yellow); border: 1px solid rgba(245,158,11,.3); }
.btn-sm { padding: 6px 14px; font-size: .83rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-icon { padding: 10px; width: 40px; height: 40px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group  { margin-bottom: 20px; }
.form-label  { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 500; color: var(--text-secondary); }
.form-control {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: .93rem;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
}
.form-control:focus  { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,212,255,.15); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-control:disabled { opacity: .6; cursor: not-allowed; }
.form-hint { margin-top: 6px; font-size: .8rem; color: var(--text-muted); }
.form-error{ margin-top: 6px; font-size: .8rem; color: var(--red); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .77rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-primary   { background: rgba(0,212,255,.15); color: #33DDFF; border: 1px solid rgba(0,212,255,.25); }
.badge-success   { background: rgba(16,185,129,.15);  color: #34D399; border: 1px solid rgba(16,185,129,.25); }
.badge-warning   { background: rgba(245,158,11,.15);  color: #FCD34D; border: 1px solid rgba(245,158,11,.25); }
.badge-danger    { background: rgba(239,68,68,.15);   color: #F87171; border: 1px solid rgba(239,68,68,.25); }
.badge-info      { background: rgba(0,255,229,.15);   color: #22D3EE; border: 1px solid rgba(0,255,229,.25); }
.badge-secondary { background: rgba(100,116,139,.15); color: #94A3B8; border: 1px solid rgba(100,116,139,.25); }
.badge-purple    { background: rgba(139,92,246,.15);  color: #A78BFA; border: 1px solid rgba(139,92,246,.25); }

/* ── Alerts / Flash ──────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border-inline-start: 3px solid;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: .93rem;
}
.alert-success { background: rgba(16,185,129,.1);  color: #34D399; border-color: var(--green); }
.alert-danger  { background: rgba(239,68,68,.1);   color: #F87171; border-color: var(--red); }
.alert-warning { background: rgba(245,158,11,.1);  color: #FCD34D; border-color: var(--yellow); }
.alert-info    { background: rgba(0,212,255,.1);  color: #33DDFF; border-color: var(--blue); }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-light); }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  font-size: .82rem; font-weight: 600; letter-spacing: .5px;
  color: var(--text-muted); text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: .9rem;
  color: var(--text-secondary);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
[dir="rtl"] thead th, [dir="rtl"] tbody td { text-align: right; }
[dir="ltr"] thead th, [dir="ltr"] tbody td { text-align: left; }

/* ── Wiki ────────────────────────────────────────────────────── */
.wiki-sidebar { width: 280px; flex-shrink: 0; }
.wiki-main    { flex: 1; min-width: 0; }
.wiki-cat {
  margin-bottom: 8px;
}
.wiki-cat-title {
  padding: 8px 14px;
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--text-muted);
}
.wiki-cat-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: .9rem;
  transition: all var(--transition);
}
.wiki-cat-link:hover, .wiki-cat-link.active {
  background: rgba(0,212,255,.1);
  color: var(--blue-light);
}
.wiki-article {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.wiki-article h1 { font-size: 1.8rem; margin-bottom: 16px; }
.wiki-article h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.wiki-article h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.wiki-article p  { margin-bottom: 16px; }
.wiki-article ul, .wiki-article ol {
  list-style: disc; padding-inline-start: 24px; margin-bottom: 16px;
}
.wiki-article ol  { list-style: decimal; }
.wiki-article li  { margin-bottom: 6px; color: var(--text-secondary); }
.wiki-article code {
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.2);
  padding: 2px 6px; border-radius: 4px;
  font-size: .88em; font-family: 'Courier New', monospace;
  color: var(--cyan-light);
}
.wiki-article pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px; overflow-x: auto; margin-bottom: 16px;
}
.wiki-article pre code { background: none; border: none; padding: 0; }
.wiki-article blockquote {
  border-inline-start: 3px solid var(--blue);
  padding: 12px 20px;
  margin: 16px 0;
  background: rgba(0,212,255,.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

/* ── Stats / Numbers ─────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; inset-inline-start: 0;
  height: 3px; width: 40%;
  background: var(--gradient);
  border-radius: 2px;
  opacity: .6;
}
.stat-card:hover { border-color: rgba(0,212,255,.3); box-shadow: var(--shadow-blue); }
.stat-value {
  font-size: 2.2rem; font-weight: 800;
  font-family: var(--font-en);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: .83rem; color: var(--text-muted); }
.stat-change {
  font-size: .78rem; font-weight: 600;
  padding: 2px 8px; border-radius: 12px;
  margin-top: 10px; display: inline-block;
}
.stat-up   { background: rgba(16,185,129,.12); color: var(--green); }
.stat-down { background: rgba(239,68,68,.12);  color: var(--red); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 0;
}
.footer-brand .logo-icon {
  width: 48px; height: 48px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  margin-bottom: 16px;
}
.footer h4 { color: var(--text-primary); margin-bottom: 20px; font-size: .95rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--blue-light); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
  transition: all var(--transition);
}
.social-btn:hover { background: rgba(0,212,255,.15); border-color: var(--blue); color: var(--blue-light); }
.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .83rem; color: var(--text-muted); margin: 0; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; align-items: center; }
.page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); font-size: .85rem;
  color: var(--text-secondary); transition: all var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: rgba(0,212,255,.15); border-color: var(--blue);
  color: var(--blue-light);
}

/* ── Misc ────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border-light); margin: 24px 0; }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(0,212,255,.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.tooltip { position: relative; }
.tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 120%; inset-inline-start: 50%; transform: translateX(-50%);
  background: rgba(15,26,46,.98); border: 1px solid var(--border-light);
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: .78rem; white-space: nowrap; color: var(--text-primary);
  pointer-events: none; z-index: 99;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .navbar-menu { display: none; }
  .hamburger { display: block; }
  .navbar-menu.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--nav-height); inset-inline: 0;
    background: rgba(2,4,8,.98); backdrop-filter: blur(20px);
    padding: 16px; border-bottom: 1px solid var(--border-light);
    gap: 4px;
  }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns .btn { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Animations ──────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Ticket Chat Style ───────────────────────────────────────── */
.chat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-messages { padding: 24px; max-height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.chat-msg { display: flex; gap: 14px; align-items: flex-start; }
.chat-msg.mine { flex-direction: row-reverse; }
.chat-msg.mine [dir="rtl"] { flex-direction: row; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff;
}
.chat-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.6;
}
.chat-msg.mine .chat-bubble {
  background: rgba(0,212,255,.12);
  border-color: rgba(0,212,255,.25);
  color: var(--text-primary);
}
.chat-msg.internal .chat-bubble {
  background: rgba(245,158,11,.08);
  border-color: rgba(245,158,11,.2);
  border-style: dashed;
}
.chat-meta { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }
.chat-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
}

