@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Almarai:wght@400;700;800&family=Alexandria:wght@600;700;800&display=swap');
/* =========================================================
   Taim Sukkar – shared theme
   Loaded last on every page so it can set the common look:
   teal primary, burgundy accent, Tajawal text, Alexandria headings.
   ========================================================= */
:root {
  --ts-primary: #027f85;
  --ts-primary-dark: #01666b;
  --ts-primary-light: #00a0a5;
  --ts-primary-tint: #e7f8fd;
  --ts-accent: #831c2f;
  --ts-accent-dark: #6b1626;
  --ts-accent-soft: #fbd0d1;
  --ts-coral: #f17b7d;
  --ts-ink: #111827;
  --ts-muted: #6b7280;
  --ts-line: #e5e7eb;
  --ts-surface: #ffffff;
  --ts-surface-2: #f3f4f6;
  --ts-bg: #ffffff;
  --ts-radius: 12px;
  --ts-radius-lg: 20px;
  --ts-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --ts-font: 'Tajawal', 'Almarai', 'Segoe UI', Tahoma, sans-serif;
  --ts-font-head: 'Alexandria', 'Tajawal', sans-serif;
}

/* dark mode – every page in the project uses one of these markers */
body.page-dark-mode,
body.dark,
body.dark-mode,
html.dark body,
html[data-theme='dark'] body {
  --ts-ink: #f9fafb;
  --ts-muted: #9ca3af;
  --ts-line: #1f2937;
  --ts-surface: #111827;
  --ts-surface-2: #0f1623;
  --ts-bg: #080c14;
  --ts-primary-tint: rgba(0, 160, 165, 0.12);
  --ts-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

body {
  font-family: var(--ts-font);
}

h1, h2, h3,
.section-title, .hero-title, .cta-title, .logo-text {
  font-family: var(--ts-font-head);
}

button, input, select, textarea {
  font-family: inherit;
}

::selection {
  background: var(--ts-primary);
  color: #fff;
}

a {
  -webkit-tap-highlight-color: transparent;
}

/* thin teal scrollbar like the reference site */
html {
  scrollbar-color: var(--ts-primary) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ts-primary); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- shared building blocks for the restyled pages ---------- */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: var(--ts-radius);
  border: 1.6px solid var(--ts-primary);
  background: var(--ts-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ts-btn:hover { background: var(--ts-primary-dark); border-color: var(--ts-primary-dark); transform: translateY(-1px); }
.ts-btn-outline { background: transparent; color: var(--ts-primary); }
.ts-btn-outline:hover { background: var(--ts-primary); color: #fff; }
.ts-btn-accent { background: var(--ts-accent); border-color: var(--ts-accent); }
.ts-btn-accent:hover { background: var(--ts-accent-dark); border-color: var(--ts-accent-dark); }
.ts-btn-light { background: var(--ts-primary-tint); border-color: transparent; color: var(--ts-primary); }
.ts-btn-light:hover { background: #fff; color: var(--ts-primary-dark); }
.ts-btn-lg { padding: 18px 56px; font-size: 16px; border-radius: 14px; }

/* round sun/moon switch */
.ts-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 78px;
  height: 36px;
  border-radius: 999px;
  background: var(--ts-coral);
  cursor: pointer;
  flex-shrink: 0;
}
.ts-theme-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ts-theme-toggle .ts-knob {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  transition: right 0.25s, background 0.25s;
}
.ts-theme-toggle .ts-ico { position: absolute; top: 50%; transform: translateY(-50%); font-size: 14px; line-height: 1; z-index: 1; }
.ts-theme-toggle .ts-ico-sun { right: 11px; color: var(--ts-accent); }
.ts-theme-toggle .ts-ico-moon { left: 11px; color: var(--ts-accent-soft); }
.ts-theme-toggle input:checked ~ .ts-knob { right: 46px; }
.ts-theme-toggle input:checked ~ .ts-ico-moon { color: var(--ts-ink); }
body.page-dark-mode .ts-theme-toggle { background: #374151; }
body.page-dark-mode .ts-theme-toggle .ts-ico-sun { color: #9ca3af; }

/* floating telegram button */
.ts-float-tg {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #37aee2, #1e96c8);
  box-shadow: 0 10px 25px rgba(30, 150, 200, 0.35);
  transition: transform 0.2s;
}
.ts-float-tg:hover { transform: scale(1.07); }
.ts-float-tg svg { width: 26px; height: 26px; fill: #fff; }
@media (max-width: 768px) { .ts-float-tg { bottom: 84px; width: 50px; height: 50px; } }

/* =========================================================
   Shared page chrome: header, banner, cards, footer
   ========================================================= */
.ts-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  width: min(1480px, calc(100% - 32px));
  margin: 14px auto 0;
  background: var(--ts-surface-2);
  border-radius: var(--ts-radius);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
  font-family: var(--ts-font);
  direction: rtl;
  text-align: right;
}
body.page-dark-mode .ts-header { background: #0f1623; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.ts-header-bar { display: flex; align-items: center; gap: 18px; padding: 12px 22px; }
.ts-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.ts-logo-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--ts-primary), var(--ts-primary-light));
  color: #fff; font-family: var(--ts-font-head); font-weight: 800; font-size: 14px; letter-spacing: 1px;
  transform: rotate(-6deg);
}
.ts-logo-words { display: flex; flex-direction: column; line-height: 1.25; }
.ts-logo-text { font-weight: 800; font-size: 16px; color: var(--ts-ink); }
.ts-logo-sub { font-size: 12px; color: var(--ts-muted); }
.ts-nav { display: flex; gap: 4px; margin-inline-start: 10px; }
.ts-nav a {
  padding: 8px 13px; border-radius: 10px;
  font-family: 'Almarai', var(--ts-font); font-weight: 700; font-size: 14.5px;
  color: var(--ts-muted); text-decoration: none; transition: color .2s, background .2s;
}
.ts-nav a:hover { color: var(--ts-primary); }
.ts-nav a.active { color: var(--ts-primary); background: var(--ts-primary-tint); }
.ts-header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.ts-header-actions .ts-btn { padding: 8px 22px; }
.ts-balance {
  display: flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  background: var(--ts-primary-tint); color: var(--ts-primary); font-weight: 800; font-size: 14px;
}
.ts-balance-label { font-size: 11px; opacity: .8; }
.ts-avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ts-accent); color: #fff; font-weight: 800; text-decoration: none;
}
.ts-menu-btn { display: none; background: none; border: none; color: var(--ts-ink); cursor: pointer; padding: 4px; }
.ts-progress { height: 4px; margin: 0 2px; border-radius: 0 0 var(--ts-radius) var(--ts-radius); background: #a5f3f5; overflow: hidden; }
body.page-dark-mode .ts-progress { background: #12333a; }
.ts-progress-bar { display: block; height: 100%; width: 0; background: var(--ts-primary); }
.ts-mobile-menu { display: none; padding: 6px 16px 14px; border-top: 1px solid var(--ts-line); }
.ts-mobile-menu a { display: block; padding: 12px 6px; font-weight: 700; color: var(--ts-ink); text-decoration: none; border-bottom: 1px solid var(--ts-line); }
.ts-mobile-menu a:last-child { border-bottom: none; }
.ts-mobile-menu a.active { color: var(--ts-primary); }
@media (max-width: 1050px) { .ts-nav { display: none; } .ts-menu-btn { display: block; } }
@media (max-width: 640px) {
  .ts-header { width: calc(100% - 20px); top: 10px; margin-top: 10px; }
  .ts-header-bar { padding: 10px 12px; gap: 8px; }
  .ts-logo-words, .ts-hide-sm, .ts-balance-label { display: none; }
  .ts-header-actions { gap: 7px; }
  .ts-header-actions .ts-btn { padding: 7px 13px; font-size: 13px; }
  .ts-theme-toggle { width: 62px; height: 32px; }
  .ts-theme-toggle .ts-knob { width: 24px; height: 24px; }
  .ts-theme-toggle input:checked ~ .ts-knob { right: 34px; }
}

/* teal banner at the top of inner pages */
.ts-hero {
  width: min(1480px, calc(100% - 32px));
  margin: 22px auto 0;
  border-radius: var(--ts-radius);
  background: linear-gradient(160deg, var(--ts-primary-light) 0%, var(--ts-primary) 55%, var(--ts-primary-dark) 100%);
  color: #fff;
  direction: rtl;
  text-align: right;
  overflow: hidden;
  position: relative;
}
.ts-hero::after {
  content: ''; position: absolute; width: 360px; height: 360px; left: -120px; top: -160px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08);
}
.ts-hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 52px 28px 60px; }
.ts-hero.is-compact .ts-hero-inner { padding: 30px 28px 34px; }
.ts-hero-back { display: inline-block; margin-bottom: 18px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; opacity: .92; }
.ts-hero-back:hover { opacity: 1; text-decoration: underline; }
.ts-hero-kicker { font-weight: 700; opacity: .9; margin-bottom: 6px; }
.ts-hero-title { font-family: var(--ts-font-head); font-size: clamp(26px, 4vw, 46px); font-weight: 800; line-height: 1.25; color: #fff; }
.ts-hero-sub { margin-top: 10px; max-width: 760px; font-size: 16px; line-height: 1.9; opacity: .95; }
.ts-hero-extra { margin-top: 18px; }

/* generic bordered card used on inner pages */
.ts-card {
  background: var(--ts-surface);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-radius);
  padding: 26px 28px;
}
.ts-card-title { font-family: var(--ts-font-head); color: var(--ts-primary); font-size: 22px; font-weight: 700; margin-bottom: 14px; }
body.page-dark-mode .ts-card-title { color: #5fd3d6; }

/* footer */
.ts-footer { margin-top: 60px; padding: 46px 20px 110px; border-top: 1px solid var(--ts-line); direction: rtl; text-align: right; font-family: var(--ts-font); }
.ts-footer-inner { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.ts-footer-copy { margin-top: 18px; font-weight: 800; font-size: 14px; color: var(--ts-ink); }
.ts-footer-col { display: flex; flex-direction: column; gap: 10px; }
.ts-footer-col h4 { color: var(--ts-accent); font-size: 16px; margin-bottom: 6px; }
body.page-dark-mode .ts-footer-col h4 { color: var(--ts-coral); }
.ts-footer-col a { color: var(--ts-ink); text-decoration: none; font-size: 15px; }
.ts-footer-col a:hover { color: var(--ts-primary); }
.ts-footer-contact { align-self: flex-start; padding: 11px 30px; border: 1.5px solid var(--ts-muted); border-radius: 6px; color: var(--ts-muted) !important; }
.ts-footer-contact:hover { border-color: var(--ts-primary); color: var(--ts-primary) !important; }
.ts-footer-phone { color: var(--ts-muted); }
@media (max-width: 900px) { .ts-footer-inner { grid-template-columns: 1fr 1fr; } .ts-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ts-footer-inner { grid-template-columns: 1fr; } }
