:root {
  /* ألوان حسب شعار Techno Media */
  --bg-main: #050608;
  --bg-alt: #0b0f15;
  --card: rgba(12, 10, 14, 0.96);
  --card-soft: rgba(22, 18, 24, 0.94);
  --border: rgba(255, 255, 255, 0.08);

  --accent: #8e1d24; /* الأحمر الغامق */
  --accent-2: #c63b3f; /* أحمر أفتح شوي */
  --accent-rgb: 142, 29, 36; /* rgb of --accent */
  --accent-2-rgb: 198, 59, 63; /* rgb of --accent-2 */

  --text: #f9f5f5;
  --muted: #b9b0b1;

  /* خففت الشادو شوي عشان الأداء بس لسه فخم */
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 14px 45px rgba(0, 0, 0, 0.85);
  --transition: 0.25s ease;
}

/* RESET بسيط */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(
    circle at top,
    #2a1518 0,
    #050608 55%,
    #020203 100%
  );
  color: var(--text);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

/* حاوية عامة */

.tm-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.tm-section {
  padding: 80px 0;
  position: relative;
}

.tm-section-head {
  text-align: center;
  margin-bottom: 30px;
}

.tm-section-head h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.tm-section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 540px;
  margin-inline: auto;
  font-size: 0.94rem;
}

/* الأزرار */

.tm-btn {
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
}

.tm-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9);
}

.tm-btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.95);
}

.tm-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
}

.tm-btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* HEADER */

.tm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 10, 0.96),
    rgba(5, 6, 10, 0.9)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tm-header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tm-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
  /*background: #8e1d24;*/
}

.tm-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tm-logo-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.tm-logo-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.tm-nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.tm-nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: var(--transition);
}

.tm-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: var(--transition);
}

.tm-nav a:hover {
  color: var(--text);
}

.tm-nav a:hover::after {
  width: 100%;
}

.tm-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.tm-menu-toggle span {
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

/* HERO */

.tm-hero {
  position: relative;
  padding-top: 70px;
  overflow: hidden;
 
}

.tm-hero-bg {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
      circle at top right,
      rgba(142, 29, 36, 0.6),
      transparent 55%
    ),
    radial-gradient(circle at top left, rgba(142, 29, 36, 0.3), transparent 60%),
    radial-gradient(
      circle at bottom,
      rgba(255, 255, 255, 0.03),
      transparent 75%
    );
  opacity: 0.7;
  pointer-events: none;
}

.tm-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  z-index: 1;
}

.tm-hero-text h1 {
  margin: 16px 0 46px;
  font-size: 2.4rem;
  line-height: 1.2;
}

.grad-text {
  background: linear-gradient(135deg, #ffffff, #ffd9dd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm-hero-text p {
  margin: 0 0 20px;
  max-width: 520px;
  color: var(--muted);
}

.tm-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  color: var(--muted);
}

.tm-hero-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3aff9a;
  box-shadow: 0 0 10px rgba(58, 255, 154, 0.9);
}

.tm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.tm-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

.tm-hero-meta strong {
  display: block;
  font-size: 1.1rem;
}

.tm-hero-meta span {
  color: var(--muted);
}



/* Hero Video – الوضع العادي (موبايل/تابلت) */

.tm-hero-video-wrapper {
  display: flex;
  justify-content: flex-end;
}

.tm-hero-video-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px 14px 16px;
  position: relative;
}

.tm-hero-video-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.tm-hero-video {
  width: 100%;
  border-radius: 14px;
  outline: none;
}

.tm-hero-video-note {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}

.tm-hero-sound-toggle:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* =======================
   REELS — شبكة ثابتة
   ======================= */

.tm-reels {
  background: radial-gradient(
    circle at top,
    rgba(142, 29, 36, 0.22),
    #050608 65%
  );
}

/* عنوان قسم الأعمال بالنص */
.tm-reels-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.tm-reels-head h2 {
  margin-bottom: 6px;
}

/* شبكة الريلز */
.tm-reels-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

/* كرت الريل (بدون لوجو خارجي) */
.tm-reel-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  will-change: transform;
}

.tm-reel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 1);
}

.tm-reel-video-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.tm-reel-video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* الشارة الصغيرة فوق الفيديو */
.tm-reel-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(223, 214, 214, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* إخفاء اللوجو بالكامل لو كان موجود */
.tm-reel-logo-only,
.tm-reel-client-logo,
.tm-reel-info,
.tm-reel-client {
  display: none !important;
}

/* ريسبونسف الشبكة */

@media (max-width: 1024px) {
  .tm-reels-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .tm-reels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .tm-reel-card {
    padding: 6px;
  }

  .tm-reel-video {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .tm-reels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .tm-reel-card {
    padding: 4px;
  }
}

/* PARTNERS */

.tm-partners {
  background: #050608;
}

.tm-partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tm-partner-card {
  width: 150px;
  height: 70px;
  border-radius: var(--radius-md);
  background: var(--card-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.tm-partner-card img {
  max-width: 100%;
  max-height: 112;
  object-fit: contain;
}

/* CLIENTS SLIDER (Light, no cards) */
.tm-clients-slider {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* fading edges */
.tm-clients-slider::before,
.tm-clients-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 110px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tm-clients-slider::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
}

.tm-clients-slider::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
}

.tm-clients-track {
  display: flex;
  align-items: center;
  gap: 42px;
  will-change: transform;
  transform: translate3d(0,0,0);
}

/* each logo (no card) */
.tm-client-logo {
  flex: 0 0 auto;
  width: 170px;          /* عرض ثابت لكل عنصر */
  height: 80px;          /* ارتفاع ثابت */
  display: grid;
  place-items: center;
  opacity: 0.9;
  transition: 0.25s ease;
}

.tm-client-logo img {
  max-width: 150px;      /* يمنع الكبار من التمدد زيادة */
  max-height: 62px;      /* يتحكم بالطول */
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(1);   /* الأساس */
  filter: grayscale(1);
  transition: 0.25s ease;
}

/* Clients: show colors always */
.tm-client-logo img {
  filter: none !important;          /* يشيل الرمادي */
  opacity: 0.95;
  transition: 0.25s ease;
}

.tm-client-logo:hover img {
  opacity: 1;
  transform: scale(1.05);
}
.tm-client-logo.is-small img {
  transform: scale(2.18);
}

/* mobile */
@media (max-width: 768px) {
  .tm-clients-track { gap: 26px; }
  .tm-client-logo { height: 52px; }
  .tm-client-logo img { height: 44px; max-width: 135px; }
  .tm-clients-slider::before,
  .tm-clients-slider::after { width: 70px; }
}

/* =======================
   مودال أعمال العميل
   ======================= */

.tm-modal-client {
  max-width: 980px;
  width: 100%;
}

.tm-modal-client-header {
  margin-bottom: 16px;
}

.tm-modal-client-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tm-modal-client-brand img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: contain;
  background: #140d10;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tm-modal-client-brand h3 {
  margin: 0;
  font-size: 1.1rem;
}

.tm-modal-client-brand span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* شبكة الأعمال داخل المودال */
.tm-modal-client-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
  align-items: start;
}

/* كل صورة / فيديو ياخذ عرض العمود وارتفاعه الطبيعي */
.tm-modal-client-gallery img,
.tm-modal-client-gallery video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  background: #000;
}

/* ريسبونسف للمودال */
@media (max-width: 900px) {
  .tm-modal-client-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .tm-modal-client {
    max-width: 95vw;
  }

  .tm-modal-client-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* CONTACT */

.tm-contact {
  background: #050608;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tm-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: flex-start;
}

.tm-contact-text h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.tm-contact-text p {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.tm-contact-form {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow);
}

.tm-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tm-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.tm-form-group label {
  font-size: 0.82rem;
}

.tm-form-group input,
.tm-form-group textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 8, 12, 0.95);
  color: var(--text);
  padding: 7px 9px;
  font-size: 0.9rem;
  outline: none;
}

.tm-form-group input:focus,
.tm-form-group textarea:focus {
  border-color: var(--accent-2);
}

.tm-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.tm-form-note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* FOOTER */

.tm-footer {
  background: #050608;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 22px;
}

.tm-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.tm-footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.tm-footer-text {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 320px;
  margin: 4px 0 0;
}

.tm-footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

/* سطر الحقوق العادي */
.tm-footer-copy {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

/* سطر المطوّر */
.tm-footer-dev {
  font-size: 0.8rem;
  color: #aaa;
}

/* رابط اسمك بلون مميز */
.tm-footer-dev a {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
}

.tm-footer-dev a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  .tm-footer-inner {
    flex-direction: column;
    text-align: center;
        align-items: center;
  }

  .tm-footer-right {
    align-items: flex-start;
    text-align: left;
  }

  .tm-footer-logo{
  justify-content: center;
}
}



/* MODALS – عام */

.tm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 14px;
}

.tm-modal-backdrop.active {
  display: flex;
}

.tm-modal {
  background: #06060b;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: hidden;
  position: relative;
}

.tm-modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

/* Reel modal */

.tm-modal-reel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.8fr);
  gap: 14px;
  padding: 16px 18px 18px;
}

.tm-modal-video-wrap {
  background: #020203;
  border-radius: 16px;
  padding: 10px;
}

#reelModalVideo {
  width: 100%;
  max-height: 70vh;
  border-radius: 12px;
}

.tm-modal-reel-info {
  font-size: 0.9rem;
}

.tm-modal-client-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tm-modal-client-head img {
  width: 170px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
}

.tm-modal-client-head strong {
  display: block;
}

.tm-modal-client-head span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Client modal (النسخة القديمة اللي فيها تقسيم يمين/يسار – لو احتجتها) */

.tm-modal-client {
  padding: 14px 18px 18px;
}

.tm-modal-client-head-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 12px;
}

.tm-modal-client-head-main img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.tm-modal-client-head-main h3 {
  margin: 0;
}

.tm-modal-client-head-main span {
  font-size: 0.84rem;
  color: var(--muted);
}

.tm-modal-client-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: flex-start;
}

/* مودال كل الريلز */

.tm-modal-all-reels {
  padding: 16px 18px 20px;
}

.tm-modal-all-reels-inner h3 {
  margin: 4px 0 4px;
}

.tm-modal-all-reels-inner p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.tm-reels-grid-modal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
}

/* داخل المودال نخلي الكرت ياخذ عرض كامل العمود */
.tm-reels-grid-modal .tm-reel-card {
  min-width: 0;
  max-width: 100%;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .tm-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-hero-video-wrapper {
    justify-content: flex-start;
  }

  .tm-contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-modal-reel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-modal-client-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-reels-grid-modal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .tm-nav {
    position: absolute;
    inset-inline: 0;
    top: 68px;
    background: #050608;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    padding: 10px 18px 14px;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .tm-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .tm-header-cta {
    display: none;
  }

  .tm-menu-toggle {
    display: flex;
  }

  

  .tm-footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .tm-section {
    padding: 60px 0;
  }

  .tm-hero-text h1 {
    font-size: 2rem;
  }

  .tm-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-modal-client-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-clients-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-reels-grid-modal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .tm-reels-grid-modal {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================
   HERO DESKTOP – فيديو فل عرض تحت الهيدر
   ========================= */
@media (min-width: 1024px) {

  /* سكشن الهيرو نفسه */
  .tm-hero {
    position: relative !important;
    padding-top: 120px !important;   /* مسافة تحت الهيدر */
    padding-bottom: 160px !important;
    overflow: hidden !important;
    height: 665px;
  }

  /* نخلي الجريد عمود واحد: النص فوق الفيديو */
  .tm-hero-grid {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    row-gap: 40px !important;
  }

  .tm-hero-text {
    max-width: 560px !important;
    margin-left: auto !important; /* يكبس النص على اليمين */
  }

  /* English pages: keep hero text left-aligned */
  body:not(.is-ar) .tm-hero-text,
  html[lang="en"] .tm-hero-text {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    direction: ltr !important;
  }

  /* الفيديو شريط عريض خلف النص، بعرض الشاشة الكاملة */
  .tm-hero-video-wrapper {
    position: absolute !important;
    top: -120px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    height: 555px !important;
    z-index: 1 !important;
    pointer-events: none !important;
    display: block !important;
  }

  .tm-hero-video-card {
    width: 100% !important;
    height: 120% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 26px !important;
    border: none !important;
    box-shadow: none !important;
    background: #000 !important;
    opacity: 0.22 !important;          /* خفة الفيديو تحت النص */
    overflow: hidden !important;
  }

  .tm-hero-video-label,
  .tm-hero-video-note {
    display: none !important;
  }

  .tm-hero-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;      /* يغطي الشريط كله */
    filter: blur(0.3px) !important;
  }

  /* زر الصوت يظل فوق الفيديو */
  .tm-hero-sound-toggle {
    position: absolute !important;
    bottom: 12px !important;
    left: 18px !important;
    z-index: 3 !important;
    pointer-events: auto !important;
  }
}

.tm-hero-video-card {
  position: relative;
}

/* زر تشغيل الصوت فوق الفيديو */
.tm-hero-sound-toggle {
  pointer-events: auto;
  position: absolute;
  top: 3px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  font-size: 0.8rem;
  background: rgb(217 101 101);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tm-hero-sound-toggle:hover {
  background: rgba(0, 0, 0, 0.85);
}


/* ===== Fix Header on Small Screens ===== */
@media (max-width: 600px) {

  .tm-header-inner{
    gap: 10px;
  }

  /* اللوجو يمين الهيدر بشكل مرتب */
  .tm-logo{
    gap: 8px;
    min-width: 0;
    flex: 1;
    
  }

  .tm-logo-img{
    width: 34px;
    height: 34px;
  }

  .tm-logo-text{
    min-width: 0;
    line-height: 1.1;
    align-items: flex-end;
  }

  /* نخلي الاسم بسطر واحد وما يلف */
  .tm-logo-title{
    font-size: 0.95rem;
    white-space: nowrap;
  }

  /* السطر الصغير نخفيه بالموبايل (أفضل شكل) */
  .tm-logo-sub{
    display: none;
  }

  /* زر المنيو ثابت وما يخرب الهيدر */
  .tm-menu-toggle{
    flex: 0 0 auto;
  }
}

/* لو بدك تخلي السطر الصغير يظهر بس أصغر بدل ما ينخفي */
@media (max-width: 420px) {
  .tm-logo-title{ font-size: 0.9rem; }
  /* إذا بدك ترجع sub بدل الإخفاء: احذف display:none فوق وحط التالي:
  .tm-logo-sub{ display:block; font-size:0.62rem; white-space: nowrap; }
  */
}


/* =========================
   SERVICES Sticky Stack
========================= */

.tm-services-stack{
  position: relative;
  background: radial-gradient(circle at top, rgba(142, 29, 36, 0.20), rgba(5, 6, 8, 1) 65%);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ✅ مهم: أي overflow على parents بيكسر sticky */
.tm-services-stack,
.tm-services-stack .tm-container,
.tm-stack-wrap{
  overflow: visible !important;
}

.tm-stack-wrap{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  perspective: 1400px;
}

/* ✅ مساحة تمرير تكفي لتبديل الخدمات */
.tm-stack-steps{
  height: 320vh; /* زيد/قلل حسب عدد الخدمات */
}

/* كل step يعطي سكرول */
.stack-step{
  height: 80vh;
}

/* ===== Card ===== */
.tm-stack-card{
  position: sticky;
  top: 92px; /* حسب ارتفاع الهيدر */
  z-index: 20;

  background: linear-gradient(180deg, rgba(12,10,14,0.94), rgba(12,10,14,0.88));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 26px;
  box-shadow: 0 22px 90px rgba(0,0,0,0.92);
  padding: 18px 18px 16px;
  overflow: hidden;

  transform-style: preserve-3d;
  will-change: transform;
}

/* Glow layer */
.tm-stack-glow{
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(520px 200px at 20% 20%, rgba(198, 59, 63, 0.22), transparent 60%),
    radial-gradient(520px 200px at 80% 80%, rgba(142, 29, 36, 0.22), transparent 60%);
  pointer-events: none;
  opacity: 0.95;
  filter: blur(0.2px);
}

.tm-stack-card > *{
  position: relative;
  z-index: 1;
}

/* top */
.tm-stack-card-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tm-stack-icon{
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 35px rgba(0,0,0,0.55);
}

.tm-stack-icon i{
  font-size: 1.1rem;
}

.tm-stack-top-text{
  display:flex;
  align-items:center;
  gap: 10px;
}

.tm-stack-badge{
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(198, 59, 63, 0.14);
  border: 1px solid rgba(198, 59, 63, 0.25);
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}

.tm-stack-counter{
  font-size: 0.78rem;
  color: rgba(255,255,255,0.70);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
}

.tm-services-stack h3{
  margin: 10px 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.tm-services-stack p{
  margin: 0 0 12px;
  color: rgba(185,176,177,1);
  font-size: 0.95rem;
  line-height: 1.7;
}

.tm-stack-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction: column;
  gap: 9px;
}

.tm-stack-list li{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
}

.tm-stack-list li::before{
  content:"";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(142,29,36,0.95), rgba(198,59,63,0.95));
  box-shadow: 0 10px 24px rgba(0,0,0,0.6);
  flex: 0 0 auto;
}

/* actions */
.tm-stack-actions{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tm-stack-nav{
  display:flex;
  gap: 8px;
}

.tm-stack-nav-btn{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: 0.22s ease;
}

.tm-stack-nav-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
}

/* ===== Premium flip animation ===== */
.tm-stack-card.is-flipping{
  animation: tmStackFlip 520ms cubic-bezier(.2,.9,.2,1);
}

@keyframes tmStackFlip{
  0%   { transform: rotateX(0deg) translateZ(0); }
  40%  { transform: rotateX(18deg) translateY(-6px) translateZ(0); }
  70%  { transform: rotateX(-10deg) translateY(2px) translateZ(0); }
  100% { transform: rotateX(0deg) translateZ(0); }
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .tm-stack-card{ top: 84px; }
  .tm-stack-steps{ height: 280vh; }
  .stack-step{ height: 70vh; }
}

@media (max-width: 600px){
  .tm-stack-card{
    top: 78px;
    padding: 14px 14px 12px;
    border-radius: 22px;
  }
  .tm-stack-icon{ width: 46px; height: 46px; border-radius: 16px; }
  .tm-services-stack h3{ font-size: 1.05rem; }
  .tm-services-stack p{ font-size: 0.92rem; }
  .tm-stack-counter, .tm-stack-badge{ font-size: 0.72rem; }
}

/* =========================
   SERVICES — Three-card layout (override)
   ========================= */

/* hide legacy sticky stack if still present */
.tm-services-stack .tm-stack-wrap{ display: none; }

.tm-services-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.tm-service-card{
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
}

.tm-service-card .tm-stack-card-top{ display:flex; gap:12px; align-items:center; }

.tm-service-card .tm-stack-icon{
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.tm-service-card h3{ margin:0; font-size:1.05rem; }
.tm-service-card p{ margin:0; color:var(--muted); flex:1; }

.tm-service-card ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }

.tm-service-card li{ font-size:0.95rem; color: rgba(255,255,255,0.92); }

.tm-service-card li::before{ content:""; width:8px; height:8px; border-radius:50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display:inline-block; margin-inline-end:10px; transform:translateY(2px); }

.tm-service-card .tm-btn{ align-self:flex-start; }

@media (max-width: 900px){
  .tm-services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px){
  .tm-services-grid{ grid-template-columns: 1fr; }
}



/* =========================
   Premium Language Switch (Responsive + RTL-safe)
   ========================= */

.tm-lang-switch{
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  display:inline-flex;
  align-items:center;
}

/* track */
.tm-lang-track{
  position:relative;
  width:116px;
  height:40px;
  border-radius:999px;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  overflow:hidden;

  /* subtle maroon background (matches logo accents) */
  background: linear-gradient(180deg, rgba(var(--accent-rgb),0.06), rgba(var(--accent-2-rgb),0.04));
  border:1px solid rgba(var(--accent-rgb),0.16);
  box-shadow:0 10px 24px rgba(0,0,0,0.35);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.tm-lang-track::before{
  content:"";
  position:absolute;
  inset:0;
   background: radial-gradient(520px 180px at 20% 20%, rgb(30 0 9 / 18%), #ae818100 55%), radial-gradient(520px 180px at 80% 80%, rgb(116 20 27), #ffffff00 55%);
  pointer-events:none;
}  

.tm-lang-opt{
  position:relative;
  z-index:1;
  text-align:center;
  font-weight:800;
  font-size:12px;
  letter-spacing:1px;
  color:rgba(255,255,255,0.75);
  user-select:none;
}

/* knob */
.tm-lang-knob{
  position:absolute;
  top:4px;
  left:4px; /* EN default */
  right:auto;
  width:calc(50% - 8px);
  height:calc(100% - 8px);
  border-radius:999px;

  display:grid;
  place-items:center;
  z-index: 3; /* sit above options to prevent bleed-through */

  /* darker / more opaque knob so underlying label doesn't show through */
  background: linear-gradient(135deg, rgba(10,12,15,0.86), rgba(20,22,26,0.78));
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 10px 18px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  transition:left 220ms ease, right 220ms ease, transform 220ms ease;
}

.tm-lang-active{
  font-weight:900;
  font-size:12px;
  letter-spacing:1px;
  color:#fff;
  text-shadow:none;
  position:relative;
  z-index:4;
}

/* Ensure knob text is always fully visible and not dimmed */
.tm-lang-switch .tm-lang-knob .tm-lang-active{
  color:#fff;
  opacity:1;
  text-shadow:none;
}

/* Maroon knob background matching the logo */
.tm-lang-switch.is-en .tm-lang-knob,
.tm-lang-switch.is-ar .tm-lang-knob,
.tm-lang-switch .tm-lang-knob{
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.96), rgba(var(--accent-2-rgb),0.92));
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 10px 18px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.02);
} 

/* Highlight the current language label and dim the other one */
/* Fallbacks for when HTML lang attr is used */
html[lang="en"] .tm-opt-en { color: rgba(255,255,255,0.95); font-weight:900; }
html[lang="en"] .tm-opt-ar { color: rgba(255,255,255,0.45); }
html[lang="ar"] .tm-opt-ar { color: rgba(255,255,255,0.95); font-weight:900; }
html[lang="ar"] .tm-opt-en { color: rgba(255,255,255,0.45); }

/* Localized: prefer the switch state class for reliability (applies after fallbacks) */
.tm-lang-switch.is-en .tm-opt-en { color: rgba(255,255,255,0.95); font-weight:900; }
.tm-lang-switch.is-en .tm-opt-ar { color: rgba(255,255,255,0.45); }
.tm-lang-switch.is-ar .tm-opt-ar { color: rgba(255,255,255,0.95); font-weight:900; }
.tm-lang-switch.is-ar .tm-opt-en { color: rgba(255,255,255,0.45); }

/* Knob placement using switch classes (most specific) */
.tm-lang-switch.is-en .tm-lang-knob { left: 4px; right: auto; }
.tm-lang-switch.is-ar .tm-lang-knob { left: auto; right: 4px; }

/* RTL-safe fallbacks */
html[dir="rtl"] .tm-lang-knob { left: auto; right: 4px; }
body.is-ar .tm-lang-knob { left: auto; right: 4px; }

/* Hover / focus */
.tm-lang-switch:hover .tm-lang-track{
  border-color:rgba(var(--accent-rgb),0.28);
}
.tm-lang-switch:focus-visible .tm-lang-track{
  outline:2px solid rgba(255,255,255,0.25);
  outline-offset:3px;
}

/* =========================
   Mobile Header Fix (Perfect Placement)
   ========================= */

.tm-header-inner{
  position:relative;
  min-height:64px;          /* مهم: يضمن مساحة للسويتش والمينو */
  padding-top:10px;         /* مساحة داخلية */
  padding-bottom:10px;
}

/* موبايل */
@media (max-width: 820px){

  .tm-header-cta{ display:none; }

  /* ثبّت السويتش بمكانه */
  .tm-lang-switch{
    position:absolute;
    top:12px;
    inset-inline-start:12px;
    z-index:1006;

    /* لا تستخدم scale (بيخرب على بعض الأجهزة) */
    transform:none;
  }

  /* على RTL خلّي origin منطقي */
  html[dir="rtl"] .tm-lang-switch{
    transform-origin: top right;
  }
  html[dir="ltr"] .tm-lang-switch{
    transform-origin: top left;
  }

  /* زر المينو */
  .tm-menu-toggle{
    position:absolute;
    top:14px;
    inset-inline-end:12px;
    z-index:1007;
  }

  /* اللوغو بالنص */
  .tm-logo{
    margin:0 auto;
    padding-top:2px;
  }

  /* ضمان عدم تزاحم العناصر */
  .tm-header-actions{
    display:contents;
  }

  /* حجم السويتش بالموبايل */
  .tm-lang-track{
    width:92px;
    height:34px;
  }
  .tm-lang-opt,
  .tm-lang-active{
    font-size:11px;
    letter-spacing:0.6px;
  }
  .tm-lang-knob{
    top:3px;
    left:3px;
    width:calc(50% - 6px);
    height:calc(100% - 6px);
  }
  /* AR (mobile): place knob on right */
  body.is-ar .tm-lang-knob{
    left: auto;
    right: 3px;
  }
}

.tm-lang-switch.is-ar .tm-lang-knob { transform: translateX(-116%); }

/* أصغر شاشات (موبايل صغير جداً) */
@media (max-width: 420px){
  .tm-lang-track{ width:84px; height:32px; }
  .tm-lang-opt, .tm-lang-active{ font-size:10px; }
}


/* =========================
   MOBILE HEADER LAYOUT (FIX) — NO ABSOLUTE
   ========================= */

/* على الموبايل/تابلت */
@media (max-width: 820px) {

  /* الغي الارتفاع الثابت بالموبايل */
  .tm-header-inner{
    height: auto !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important; /* switch | logo | menu */
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  /* خلي العناصر تطلع من .tm-header-actions بدون تزاحم */
  .tm-header-actions{
    display: contents !important;
  }

  /* CTA مخفي */
  .tm-header-cta{ display:none !important; }

  /* السويتش: على طرف البداية حسب dir تلقائي */
  .tm-lang-switch{
    position: static !important;
    justify-self: start !important;
    z-index: 1;
  }

  /* المينو: على طرف النهاية حسب dir تلقائي */
  .tm-menu-toggle{
    display: flex !important;
    position: static !important;
    justify-self: end !important;
    z-index: 1;
  }

  /* اللوغو بالنص */
  .tm-logo{
    margin: 5px !important;
    justify-self: center !important;
    padding-top: 0 !important;
  }

  /* صغّر السويتش بالموبايل */
  .tm-lang-track{
    width: 92px !important;
    height: 34px !important;
  }
  .tm-lang-opt,
  .tm-lang-active{
    font-size: 11px !important;
    letter-spacing: 0.6px !important;
  }
  .tm-lang-knob{
    top: 3px !important;
    left: 3px !important;
    width: calc(50% - 6px) !important;
    height: calc(100% - 6px) !important;
  }
  /* AR (mobile layout): place knob on right */
  body.is-ar .tm-lang-knob{
    left: auto !important;
    right: 3px !important;
  }

  /* ✅ مهم جداً: لأن الهيدر صار dynamic
     خلي قائمة الموبايل تنزل تحت الهيدر مباشرة */
  .tm-nav{
    top: 100% !important; /* بدل 68px */
  }
}

/* أصغر شاشات */
@media (max-width: 420px){
  .tm-lang-track{ width: 84px !important; height: 32px !important; }
  .tm-lang-opt, .tm-lang-active{ font-size: 10px !important; }
}



/* =========================
   Reels/Designs Toggle (Premium)
========================= */
.tm-media-toggle{
  margin-top: 14px;
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.tm-toggle-btn{
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.78);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.tm-toggle-btn:hover{
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.tm-toggle-btn.active{
  color: #fff;
  background: linear-gradient(135deg, rgba(142,29,36,0.95), rgba(198,59,63,0.75));
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

/* views */
.tm-media-view{ display:none; }
.tm-media-view.is-active{ display:block; }

/* =========================
   Designs Grid (Same vibe as reels)
========================= */
.tm-designs-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.tm-design-card{
  border: 0;
  padding: 6px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
  text-align: center;
}

.tm-design-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 60px rgba(0,0,0,1);
}

.tm-design-card img{
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

/* responsive like reels */
@media (max-width: 768px){
  .tm-designs-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tm-design-card{ padding: 6px; }
}
@media (max-width: 480px){
  .tm-designs-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tm-design-card{ padding: 4px; }
}

/* =========================
   Design Modal (Fast + clean)
========================= */
.tm-modal-design{ width: min(980px, 100%); }
.tm-modal-design-inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px 16px;
}

.tm-modal-design-media{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #020203;
  border: 1px solid rgba(255,255,255,0.08);
}

#designModalImg{
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity .18s ease;
}

.tm-img-skeleton{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  background-size: 260px 100%;
  animation: tmShimmer 1.1s infinite linear;
  opacity: 0;
}

.tm-img-skeleton.is-on{ opacity: 1; }

@keyframes tmShimmer{
  0%{ background-position: -260px 0; }
  100%{ background-position: calc(260px + 100%) 0; }
}

.tm-modal-design-meta{
  color: rgba(255,255,255,0.85);
}
.tm-modal-design-meta strong{
  display:block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.tm-modal-design-meta p{
  margin:0;
  color: var(--muted);
  font-size: .9rem;
}


/* ===== Modal Nav (Prev/Next) ===== */
.tm-modal-design{ position: relative; }

.tm-modal-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
  backdrop-filter: blur(10px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.tm-modal-nav:hover{
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-50%) scale(1.04);
}

.tm-modal-prev{ left: 12px; }
.tm-modal-next{ right: 12px; }

.tm-modal-counter{
  display: inline-block;
  margin-top: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

@media (max-width: 560px){
  .tm-modal-nav{ width: 40px; height: 40px; }
  .tm-modal-prev{ left: 8px; }
  .tm-modal-next{ right: 8px; }
}

/* =========================
   Modal Close Button FIX
========================= */

.tm-modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px; /* يمين EN / يسار AR */
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 9999; /* 👈 أهم سطر */
  backdrop-filter: blur(10px);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.tm-modal-close i {
  font-size: 18px;
}

.tm-modal-close:hover {
  background: rgba(0,0,0,0.75);
  border-color: rgba(255,255,255,0.35);
  transform: scale(1.05);
}

/* موبايل */
@media (max-width: 560px) {
  .tm-modal-close {
    top: 10px;
    inset-inline-end: 10px;
    width: 38px;
    height: 38px;
  }

  .tm-modal-close i {
    font-size: 16px;
  }
}




/* =========================
   STATS SECTION
   ========================= */

.tm-stats {
  padding: 70px 0;
  background: transparent;
}

.tm-stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap; /* مهم: ما ينزل سطرين */
}

/* عنصر واحد */
.tm-stat {
  flex: 1;
  min-width: 0; /* يمنع الكسر */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* الأيقونة */
.tm-stat i {
  font-size: 22px;
  color: #92252e;
  opacity: 0.9;
}

/* الرقم */
.tm-stat-number {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* النص */
.tm-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap; /* ما ينزل */
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 1024px) {
  .tm-stat-number {
    font-size: 28px;
  }

  .tm-stat-label {
    font-size: 12px;
  }

  .tm-stat i {
    font-size: 20px;
  }
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 640px) {
  .tm-stats {
    padding: 40px 0;
  }

  .tm-stats-grid {
    gap: 14px;
  }

  .tm-stat i {
    font-size: 18px;
  }

  .tm-stat-number {
    font-size: 22px;
  }

  .tm-stat-label {
    font-size: 11px;
  }
}

a {
  text-decoration: none; /* يشيل الخط */
  color: inherit;        /* يخلي اللون نفس النص */
}

