/* DLTA4K IPTV — site header & footer (phase 1 of the redesign)
   Logical properties throughout, so the same rules serve RTL (ar) and LTR (en). */

:root {
  --dl-bg: #070b16;
  --dl-bg-2: #0b1226;
  --dl-surface: rgba(255, 255, 255, .05);
  --dl-line: rgba(255, 255, 255, .10);
  --dl-text: #f4f6fb;
  --dl-muted: rgba(244, 246, 251, .68);
  --dl-blue: #2f6bff;
  --dl-blue-2: #1746d8;
  --dl-green: #22c55e;
  --dl-green-2: #16a34a;
  --dl-radius: 12px;
  --dl-font: "Cairo", "Tajawal", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --dl-header-h: 72px;
}

.dl-container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.dl-header, .dl-topbar, .dl-footer, .dl-drawer { font-family: var(--dl-font); box-sizing: border-box; }
.dl-header *, .dl-topbar *, .dl-footer *, .dl-drawer * { box-sizing: border-box; }

/* ---------------------------------------------------------------- buttons */
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 1; text-decoration: none !important; border: 1px solid transparent; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; white-space: nowrap; }
.dl-btn:hover { transform: translateY(-1px); }
.dl-btn-primary { background: var(--dl-green); color: #fff !important; box-shadow: 0 8px 22px rgba(34, 197, 94, .28); }
.dl-btn-primary:hover { background: var(--dl-green-2); color: #fff !important; }
.dl-btn-ghost { background: transparent; color: var(--dl-text) !important; border-color: var(--dl-line); }
.dl-btn-ghost:hover { background: var(--dl-surface); }
.dl-btn-light { background: #fff; color: #0b1226 !important; }
.dl-btn-light:hover { background: #e9edf7; }
.dl-btn i { font-size: 16px; }

/* ----------------------------------------------------------------- topbar */
.dl-topbar { background: var(--dl-bg-2); color: var(--dl-muted); font-size: 12.5px; border-bottom: 1px solid var(--dl-line); }
.dl-topbar-inner { display: flex; justify-content: center; gap: 28px; min-height: 34px; align-items: center; flex-wrap: wrap; }
.dl-topbar span { display: inline-flex; align-items: center; gap: 7px; }
.dl-topbar i { color: var(--dl-blue); }

/* ----------------------------------------------------------------- header */
.dl-header { position: sticky; top: 0; z-index: 1000; background: rgba(7, 11, 22, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--dl-line); color: var(--dl-text); }
.admin-bar .dl-header { top: 32px; }
.dl-header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--dl-header-h); }
.dl-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.dl-brand img { height: 42px; width: auto; display: block; }

.dl-nav { flex: 1 1 auto; }
.dl-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.dl-dropdown { list-style: none; margin: 0; }
.dl-nav-item { position: relative; }
.dl-nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; color: var(--dl-text) !important; font-weight: 700; font-size: 14.5px; text-decoration: none !important; background: transparent; border: 0; cursor: pointer; font-family: inherit; transition: background .18s ease, color .18s ease; }
.dl-nav-link:hover, .dl-nav-item.is-active > .dl-nav-link { background: rgba(47, 107, 255, .16); color: #fff !important; }
.dl-nav-item.is-active > .dl-nav-link { box-shadow: inset 0 -2px 0 var(--dl-blue); border-radius: 10px 10px 4px 4px; }
.dl-nav-link i { font-size: 11px; opacity: .7; transition: transform .18s ease; }
.dl-nav-item.has-children.is-open .dl-nav-link i, .dl-nav-item.has-children:hover .dl-nav-link i { transform: rotate(180deg); }
.dl-dropdown { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 230px; background: #0e1730; border: 1px solid var(--dl-line); border-radius: 14px; padding: 8px; box-shadow: 0 22px 50px rgba(0, 0, 0, .45); display: none; flex-direction: column; gap: 2px; z-index: 5; }
.dl-nav-item.has-children:hover .dl-dropdown, .dl-nav-item.has-children.is-open .dl-dropdown, .dl-nav-item.has-children:focus-within .dl-dropdown { display: flex; }
.dl-dropdown li { list-style: none; }
.dl-dropdown a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--dl-text) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.dl-dropdown a:hover { background: rgba(47, 107, 255, .16); }

.dl-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.dl-pill { display: flex; align-items: center; }
.dl-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--dl-line); background: var(--dl-surface); color: var(--dl-text) !important; text-decoration: none !important; }
.dl-cart:hover { background: rgba(47, 107, 255, .16); }
.dl-cart-count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--dl-blue); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.dl-burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--dl-line); background: var(--dl-surface); padding: 10px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.dl-burger span { display: block; height: 2px; border-radius: 2px; background: var(--dl-text); transition: transform .2s ease, opacity .2s ease; }

/* Re-skin the currency + language pills so they match the header. */
.dl-header .dl-currency select, .dl-header .trp-language-item__current { background-color: var(--dl-surface) !important; border-color: var(--dl-line) !important; border-radius: 10px !important; box-shadow: none !important; }
.dl-header .dl-currency select:hover, .dl-header .trp-language-item__current:hover { background-color: rgba(47, 107, 255, .16) !important; }
.dl-header .trp-shortcode-switcher__wrapper { --bg: rgba(255,255,255,.05); --bg-hover: rgba(47,107,255,.16); --border-radius: 10px; }

/* ----------------------------------------------------------------- drawer */
.dl-drawer { position: fixed; inset: 0; z-index: 1000001; }
.dl-drawer[hidden] { display: none; }
.dl-drawer-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .7); backdrop-filter: blur(3px); }
.dl-drawer-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(340px, 88vw); background: #0b1226; color: var(--dl-text); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0, 0, 0, .5); animation: dl-slide .22s ease; }
@keyframes dl-slide { from { transform: translateX(var(--dl-slide, 40px)); opacity: 0; } to { transform: none; opacity: 1; } }
[dir="rtl"] .dl-drawer-panel { --dl-slide: -40px; }
.dl-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--dl-line); }
.dl-drawer-head img { height: 34px; width: auto; }
.dl-drawer-close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--dl-line); background: var(--dl-surface); color: var(--dl-text); cursor: pointer; font-size: 16px; }
.dl-drawer-nav { flex: 1 1 auto; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.dl-drawer-link, .dl-drawer-sub { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; color: var(--dl-text) !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.dl-drawer-link:hover, .dl-drawer-sub:hover, .dl-drawer-link.is-active { background: rgba(47, 107, 255, .16); }
.dl-drawer-group { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.dl-drawer-label { padding: 10px 14px 4px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--dl-muted); text-transform: uppercase; }
.dl-drawer-sub { font-size: 14px; font-weight: 600; padding-inline-start: 26px; }
.dl-drawer-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--dl-line); display: grid; gap: 8px; }
body.dl-drawer-open { overflow: hidden; }

/* Hide whatever earlier header/footer markup is still in the page. */
.elementor-location-header, .elementor-location-footer, footer[data-elementor-type="footer"], header[data-elementor-type="header"], .elementor-widget-html .dlta-footer { display: none !important; }

/* ----------------------------------------------------------------- footer */
.dl-footer { background: radial-gradient(900px 380px at 88% 0%, rgba(47, 107, 255, .20), transparent 60%), linear-gradient(180deg, var(--dl-bg-2) 0%, var(--dl-bg) 100%); color: var(--dl-text); border-top: 1px solid var(--dl-line); padding: 0 0 22px; margin-top: 40px; }
.dl-footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 32px; margin-top: -32px; border-radius: 22px; background: linear-gradient(135deg, var(--dl-blue-2), var(--dl-blue)); box-shadow: 0 24px 60px rgba(23, 70, 216, .35); }
.dl-footer-cta h2 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; color: #fff; }
.dl-footer-cta p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 15px; max-width: 560px; }
.dl-footer-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-footer-cta .dl-btn { min-height: 46px; padding: 0 22px; }

.dl-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding: 48px 0 30px; }
.dl-footer-brand img { height: 44px; width: auto; margin-bottom: 14px; }
.dl-footer-brand p { margin: 0 0 16px; color: var(--dl-muted); font-size: 14.5px; line-height: 1.9; max-width: 460px; }
.dl-footer-badges { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.dl-footer-badges li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--dl-line); background: var(--dl-surface); font-size: 12.5px; font-weight: 700; }
.dl-footer-badges i { color: var(--dl-blue); }
.dl-social { display: flex; gap: 8px; }
.dl-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--dl-line); background: var(--dl-surface); display: inline-flex; align-items: center; justify-content: center; color: var(--dl-text) !important; text-decoration: none !important; transition: background .18s ease, transform .18s ease; }
.dl-social a:hover { background: var(--dl-blue); transform: translateY(-2px); }

.dl-footer-col h3 { margin: 0 0 14px; font-size: 15px; font-weight: 900; color: #fff; }
.dl-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.dl-footer-col a { color: var(--dl-muted) !important; text-decoration: none !important; font-size: 14.5px; transition: color .18s ease, padding .18s ease; }
.dl-footer-col a:hover { color: #fff !important; padding-inline-start: 4px; }
.dl-contact-list a { display: inline-flex; align-items: center; gap: 9px; }
.dl-contact-list i { color: var(--dl-green); width: 16px; text-align: center; }
.dl-footer-sub { display: block; margin: 18px 0 10px; font-size: 12.5px; font-weight: 800; color: var(--dl-muted); }
.dl-payments { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 6px !important; }
.dl-payments li { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--dl-line); background: var(--dl-surface); font-size: 12px; font-weight: 700; color: var(--dl-text); }

.dl-footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--dl-line); font-size: 12.5px; color: var(--dl-muted); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .dl-nav-link { padding: 10px 10px; font-size: 14px; }
  .dl-cta span { display: none; }
  .dl-cta { width: 42px; padding: 0; }
  .dl-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .dl-nav { display: none; }
  .dl-burger { display: flex; }
  .dl-header-inner { gap: 10px; min-height: 64px; }
  .dl-brand img { height: 36px; }
  .dl-cta { display: none; }
}
@media (max-width: 767px) {
  .dl-topbar { display: none; }
  .dl-actions { gap: 6px; }
  .dl-cart { width: 36px; height: 36px; }
  .dl-header .trp-language-item__current .trp-language-item-name { display: none; }
  .dl-footer-cta { padding: 22px 18px; margin-top: -24px; }
  .dl-footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 24px; }
  .dl-footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .dl-pill-currency { display: none; }
}

/* Elementor's global button styling (blue fill, uppercase, letter-spacing)
   leaks onto our <button>s; pin them back. */
.dl-header button.dl-nav-link, .dl-burger, .dl-drawer-close { text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; line-height: 1 !important; }
.dl-header button.dl-nav-link { background: transparent !important; border: 0 !important; padding: 10px 14px !important; font-size: 14.5px !important; font-weight: 700 !important; color: var(--dl-text) !important; border-radius: 10px !important; }
.dl-header button.dl-nav-link:hover, .dl-nav-item.is-active > button.dl-nav-link, .dl-nav-item.is-open > button.dl-nav-link { background: rgba(47, 107, 255, .16) !important; }
.dl-burger, .dl-drawer-close { background: var(--dl-surface) !important; border: 1px solid var(--dl-line) !important; color: var(--dl-text) !important; border-radius: 10px !important; }
.dl-burger { padding: 11px 10px !important; width: 42px !important; height: 42px !important; }
.dl-burger:hover, .dl-drawer-close:hover { background: rgba(47, 107, 255, .16) !important; }
.dl-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.dl-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dl-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1100px) { .dl-header button.dl-nav-link { padding: 10px 10px !important; font-size: 14px !important; } }
