/* Zajil.Pro — Premium homepage (dark cinematic mockup) */

html[data-home-design="premium"] {
  background: #080d14;
  overflow-x: hidden;
  max-width: 100%;
}

html[data-home-design="premium"] body.bb-home {
  background: #080d14;
  color: #e8edf2;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

html[data-home-design="premium"] #home-classic { display: none !important; }
html[data-home-design="classic"] #home-premium { display: none !important; }

.zp-premium {
  --zp-gold: #d4af37;
  --zp-gold-soft: #f3d052;
  --zp-gold-glow: rgba(212, 175, 55, 0.35);
  --zp-dark: #04080e;
  --zp-panel: rgba(17, 28, 46, 0.45);
  --zp-panel-2: rgba(22, 36, 54, 0.5);
  --zp-border: rgba(212, 175, 55, 0.15);
  --zp-muted: #9bb0c5;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  background: var(--zp-dark);
  color: #e8edf2;
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* ─── Design switcher ─── */
.zp-design-switcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10, 15, 22, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.zp-design-switcher button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  color: #c5d0dc;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.zp-design-switcher button.is-active {
  background: linear-gradient(180deg, #e8c547, #d4af37);
  color: #0a1b2e;
}

/* ─── Header ─── */
.zp-premium-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--zp-border);
}

.zp-premium-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.zp-premium-logo img {
  height: 64px;
  max-width: 180px;
  object-fit: contain;
}

.zp-premium-nav {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.zp-premium-nav::-webkit-scrollbar { display: none; }

.zp-premium-header.eco-nav-open,
.zp-premium-header.eco-nav-open .zp-premium-header-inner,
.zp-premium-header.eco-nav-open .zp-premium-nav,
.zp-premium-header .zp-premium-nav:has(.eco-nav-dropdown.is-open),
.zp-premium-header .zp-premium-header-inner:has(.eco-nav-dropdown.is-open),
.zp-premium-header:has(.eco-nav-dropdown.is-open) {
  overflow: visible;
}

.zp-premium-header.eco-nav-open,
.zp-premium-header:has(.eco-nav-dropdown.is-open) {
  z-index: 120;
}

.zp-premium-nav .eco-nav-dropdown {
  flex-shrink: 0;
  position: relative;
}

.zp-premium-nav .eco-nav-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 12px;
  color: #b8c5d4;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
}

.zp-premium-nav .eco-nav-trigger:hover,
.zp-premium-nav .eco-nav-dropdown.is-open .eco-nav-trigger {
  color: var(--zp-gold-soft);
  background: rgba(212, 175, 55, 0.08);
}

.zp-premium-nav .eco-nav-trigger .eco-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.65em;
  opacity: 0.7;
}

.zp-premium-nav .eco-nav-dropdown.is-open .eco-nav-trigger .eco-chevron {
  transform: rotate(180deg);
}

.zp-premium-nav .eco-nav-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 220px;
  z-index: 130;
  display: none;
  padding: 0.35rem;
  border-radius: 12px;
  background: #162436;
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.zp-premium-nav .eco-nav-dropdown.is-open .eco-nav-panel {
  display: block;
}

.zp-premium-nav .eco-nav-panel .nav-link,
.zp-premium-nav .eco-nav-panel a {
  display: block;
  color: #dce4ec;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.zp-premium-nav .eco-nav-panel .nav-link:hover,
.zp-premium-nav .eco-nav-panel a:hover {
  color: #e8c547;
  background: rgba(212, 175, 55, 0.08);
}

.zp-premium-mobile-eco-toggle {
  width: 100%;
  text-align: right;
  border: 0;
  background: transparent;
  color: #dce4ec;
  font: inherit;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
}

.zp-premium-mobile-eco-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 8px 12px;
}

.zp-premium-mobile-eco-panel.hidden {
  display: none;
}

.zp-premium-mobile-eco-panel a {
  color: #8fa0b3;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
}

.zp-premium-mobile-eco-panel a:hover {
  color: #e8c547;
}

.zp-premium-nav a {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #b8c5d4;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.zp-premium-nav a:hover,
.zp-premium-nav a.is-active {
  color: var(--zp-gold-soft);
  background: rgba(212, 175, 55, 0.08);
}

.zp-premium-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.zp-premium-header-actions .zp-lang-select--premium,
.zp-premium-mobile-foot .zp-lang-select--premium {
  min-width: 4.5rem;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  background: rgba(8, 13, 20, 0.85);
  color: var(--zp-gold-soft, #e8c96a);
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.zp-premium-mobile-foot .zp-lang-mobile {
  width: 100%;
  margin-bottom: 8px;
}

.zp-premium-search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--zp-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--zp-gold);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.zp-premium-btn-outline {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  color: var(--zp-gold-soft);
  font-size: 12px;
  font-weight: 800;
  background: transparent;
}

.zp-premium-btn-gold {
  padding: 8px 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #e8c547, #d4af37);
  color: #0a1b2e;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* ─── Mobile menu ─── */
.zp-premium-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--zp-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--zp-gold);
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  flex-shrink: 0;
}

.zp-premium-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.zp-premium-mobile-backdrop.hidden { display: none; }

.zp-premium-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  width: min(320px, 88vw);
  height: 100%;
  background: #111c2e;
  border-left: 1px solid rgba(212, 175, 55, 0.2);
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}

.zp-premium-mobile-drawer:not(.hidden) {
  display: flex;
}

.zp-premium-mobile-drawer.hidden {
  display: none !important;
}

.zp-premium-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  color: #fff;
}

.zp-premium-mobile-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8c547;
  font-size: 18px;
  cursor: pointer;
}

.zp-premium-mobile-links {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zp-premium-mobile-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #dce4ec;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.zp-premium-mobile-links a:hover,
.zp-premium-mobile-links a.is-active {
  background: rgba(212, 175, 55, 0.12);
  color: #e8c547;
}

.zp-premium-mobile-foot {
  padding: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zp-premium-mobile-foot a {
  text-align: center;
  text-decoration: none;
}

.hidden { display: none !important; }

body.zp-mobile-nav-open { overflow: hidden; }

/* ─── Hero ─── */
.zp-premium-hero {
  position: relative;
  min-height: min(72vh, 640px);
  overflow: hidden;
}

.zp-premium-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 13, 20, 0.92) 0%, rgba(8, 13, 20, 0.55) 38%, rgba(8, 13, 20, 0.25) 58%, rgba(8, 13, 20, 0.65) 100%),
    linear-gradient(to top, #080d14 0%, transparent 35%),
    url("/assets/images/zajil/hero-race.jpg") center center / cover no-repeat;
}

.zp-premium-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 20px 56px;
  display: grid;
  grid-template-columns: 360px 1fr;
  grid-template-areas: "side main";
  gap: 32px;
  align-items: center;
  min-height: min(72vh, 640px);
}

.zp-premium-hero-flags-zone {
  position: absolute;
  top: 32px;
  left: 24px;
  z-index: 4;
  width: min(472px, 46vw);
  pointer-events: none;
}

.zp-premium-flags-panel {
  pointer-events: auto;
  padding: 10px 12px 12px;
  border-radius: 12px;
  background: rgba(8, 13, 20, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  transform: scale(0.78);
  transform-origin: top left;
}
.zp-premium-flags-panel:hover {
  transform: scale(0.78) translateY(-2px);
}

.zp-premium-hero-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
  align-self: center;
}

.zp-premium-hero-main {
  grid-area: main;
  align-self: end;
  text-align: right;
  padding-bottom: 16px;
}

.zp-premium-hero-quote {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 14px;
  font-weight: 700;
  color: var(--zp-gold);
  line-height: 1.6;
  letter-spacing: 0.02em;
  max-height: 220px;
}

.zp-premium-flags-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--zp-gold-soft);
  text-align: right;
}

.zp-premium-flags {
  display: grid;
  grid-template-columns: repeat(11, 36px);
  gap: 6px 5px;
  direction: ltr;
  justify-content: start;
}

.zp-flag-chip {
  display: block;
  width: 36px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.zp-flag-chip:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
  z-index: 2;
}

.zp-flag-chip .fi {
  display: block;
  width: 36px;
  height: 26px;
  line-height: 26px;
  font-size: 26px;
  border-radius: 5px;
  background-size: cover;
}

.zp-premium-hero-main h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.zp-premium-hero-main h1 em {
  display: block;
  font-style: normal;
  font-size: 0.45em;
  color: var(--zp-gold-soft);
  letter-spacing: 0.12em;
  margin-top: 8px;
}

.zp-premium-hero-sub {
  margin: 16px 0 0;
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-inline-start: auto;
  line-height: 1.65;
}

.zp-premium-hero-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
  justify-content: flex-end;
}

.zp-premium-hero-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--zp-muted);
  min-width: 56px;
  text-align: center;
}

.zp-premium-hero-icons a i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--zp-border);
  background: rgba(17, 28, 46, 0.75);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--zp-gold);
  transition: border-color 0.2s, background 0.2s;
}

.zp-premium-hero-icons a:hover i {
  border-color: var(--zp-gold);
  background: rgba(212, 175, 55, 0.12);
}

.zp-premium-hero-cta {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

.zp-premium-hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8c547, #c9a227);
  color: #0a1b2e;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35);
}

/* ─── Service cards ─── */
.zp-premium-services {
  max-width: 1400px;
  margin: -32px auto 0;
  padding: 0 20px 40px;
  position: relative;
  z-index: 5;
}

.zp-premium-services-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.zp-premium-svc {
  background: rgba(22, 36, 54, 0.45);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  padding: 18px 14px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}

.zp-premium-svc:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.zp-premium-svc i {
  font-size: 22px;
  color: var(--zp-gold);
  margin-bottom: 12px;
}

.zp-premium-svc h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.zp-premium-svc p {
  margin: 0;
  font-size: 11px;
  color: var(--zp-muted);
  line-height: 1.55;
  flex: 1;
}

.zp-premium-svc span {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--zp-gold-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Stats ─── */
.zp-premium-stats {
  border-block: 1px solid var(--zp-border);
  background: rgba(17, 28, 46, 0.5);
}

.zp-premium-stats-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  text-align: center;
}

.zp-premium-stat i {
  display: block;
  font-size: 22px;
  color: var(--zp-gold);
  margin-bottom: 8px;
}

.zp-premium-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.zp-premium-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--zp-muted);
  font-weight: 600;
}

/* ─── Content grid ─── */
.zp-premium-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 20px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr;
  gap: 20px;
}

.zp-premium-panel {
  background: rgba(17, 28, 46, 0.45);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s;
}

.zp-premium-panel:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.zp-premium-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--zp-border);
}

.zp-premium-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.zp-premium-panel-head a {
  font-size: 12px;
  font-weight: 700;
  color: var(--zp-gold);
}

.zp-premium-live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.zp-premium-live-table th,
.zp-premium-live-table td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zp-premium-live-table th {
  color: var(--zp-muted);
  font-weight: 700;
  font-size: 11px;
}

.zp-premium-live-table td { color: #dce4ec; }

.zp-premium-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
}

.zp-premium-live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: zp-pulse 1.2s infinite;
}

@keyframes zp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.zp-premium-auctions {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zp-premium-auction {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.zp-premium-auction:hover {
  border-color: var(--zp-border);
  background: rgba(212, 175, 55, 0.04);
  transform: scale(1.01);
}

.zp-premium-auction img {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #0a0f14;
}

.zp-premium-auction strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 4px;
}

.zp-premium-auction time {
  font-size: 11px;
  color: var(--zp-gold-soft);
  font-variant-numeric: tabular-nums;
}

.zp-premium-auction .price {
  font-size: 16px;
  font-weight: 900;
  color: var(--zp-gold);
  white-space: nowrap;
}

.zp-premium-auction .bid-btn {
  display: block;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8c547, #d4af37);
  color: #0a1b2e;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.zp-premium-ad {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background:
    linear-gradient(160deg, rgba(212, 175, 55, 0.08), transparent 50%),
    var(--zp-panel);
}

.zp-premium-ad img {
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.zp-premium-ad h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff;
}

.zp-premium-ad p {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--zp-muted);
  line-height: 1.6;
}

.zp-premium-footer {
  text-align: center;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--zp-border);
  color: var(--zp-muted);
  font-size: 14px;
}

.zp-premium-footer em {
  color: var(--zp-gold);
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .zp-premium-services-grid { grid-template-columns: repeat(4, 1fr); }
  .zp-premium-stats-inner { grid-template-columns: repeat(3, 1fr); }
  .zp-premium-content { grid-template-columns: 1fr; }
  .zp-premium-hero-flags-zone { width: min(380px, 52vw); }
  .zp-premium-flags { grid-template-columns: repeat(8, 34px); }
  .zp-flag-chip, .zp-flag-chip .fi { width: 34px; height: 24px; font-size: 24px; line-height: 24px; }
  .zp-premium-header-inner { flex-wrap: nowrap; }
}

@media (max-width: 760px) {
  .zp-premium-menu-btn { display: grid; }

  .zp-premium-nav { display: none !important; }

  .zp-premium-header {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .zp-premium-header,
  .zp-premium-header.eco-nav-open,
  .zp-premium-header:has(.eco-nav-dropdown.is-open),
  .zp-premium-header.eco-nav-open .zp-premium-header-inner,
  .zp-premium-header .zp-premium-header-inner:has(.eco-nav-dropdown.is-open) {
    overflow-x: clip !important;
  }

  .zp-premium-header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    direction: rtl;
  }

  .zp-premium-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .zp-premium-logo img {
    height: 50px;
    max-width: 140px;
  }

  .zp-premium-header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .zp-premium-hide-mobile { display: none !important; }

  .zp-premium-btn-gold {
    padding: 8px 14px;
    font-size: 11px;
  }

  .zp-premium-hero {
    min-height: auto;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .zp-premium-hero-bg {
    background:
      linear-gradient(180deg, rgba(8, 13, 20, 0.88) 0%, rgba(8, 13, 20, 0.72) 45%, rgba(8, 13, 20, 0.92) 100%),
      url("/assets/images/zajil/hero-race.jpg") center 30% / cover no-repeat;
  }

  .zp-premium-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px 16px 88px;
    min-height: auto;
    align-items: stretch;
  }

  .zp-premium-hero-side { display: none; }

  .zp-premium-hero-flags-zone {
    position: static;
    order: 1;
    width: 100%;
    pointer-events: auto;
  }

  .zp-premium-flags-panel {
    padding: 10px 12px 12px;
  }

  .zp-premium-flags-label {
    text-align: center;
    margin-bottom: 8px;
  }

  .zp-premium-flags {
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    justify-content: center;
    direction: ltr;
  }

  .zp-flag-chip {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
  }

  .zp-flag-chip .fi {
    width: 100%;
    height: 100%;
    font-size: 22px;
    line-height: 1;
  }

  .zp-premium-hero-main {
    order: 2;
    text-align: center;
    padding-bottom: 0;
  }

  .zp-premium-hero-main h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .zp-premium-hero-sub {
    margin: 12px auto 0;
    max-width: 100%;
    font-size: 14px;
  }

  .zp-premium-hero-icons {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 8px;
    justify-content: center;
  }

  .zp-premium-hero-icons a {
    min-width: 0;
    font-size: 10px;
  }

  .zp-premium-hero-cta {
    justify-content: center;
    margin-top: 18px;
    margin-bottom: 4px;
  }

  .zp-premium-hero-cta a {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 13px 20px;
  }

  .zp-premium-services {
    margin-top: 0;
    padding-top: 8px;
  }

  .zp-premium-services-grid { grid-template-columns: repeat(2, 1fr); }
  .zp-premium-stats-inner { grid-template-columns: repeat(2, 1fr); }

  .zp-design-switcher {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
  }

  html[data-home-design="premium"] .zp-premium {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .zp-premium::before,
  .zp-premium::after {
    display: none;
  }

  .zp-premium-hero-inner,
  .zp-premium-services,
  .zp-premium-stats,
  .zp-premium-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ─── Premium Ambient Background Light & Glow ─── */
.zp-premium::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.zp-premium::after {
  content: "";
  position: absolute;
  bottom: 25%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22, 36, 54, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ─── Featured Banners ─── */
.zp-premium-featured {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.zp-premium-featured-inner {
  display: flex;
  flex-direction: column;
  background: rgba(8, 13, 20, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  direction: rtl;
}
.zp-premium-featured-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}
.zp-premium-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.zp-premium-featured-inner:hover .zp-premium-featured-img-wrap img {
  transform: scale(1.05);
}
.zp-premium-featured-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}
.zp-featured-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.zp-featured-badge {
  font-size: 10px;
  font-weight: bold;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #000;
  padding: 2px 8px;
  border-radius: 12px;
}
.zp-featured-badge.upcoming {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
}
.zp-premium-featured-info h2 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.zp-premium-featured-info p {
  font-size: 11px;
  color: #8fa0b3;
  margin: 0;
  line-height: 1.4;
  max-height: 32px;
  overflow: hidden;
}
.zp-featured-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.zp-featured-stat-box .title {
  font-size: 9px;
  color: #556c85;
  margin-bottom: 2px;
}
.zp-featured-stat-box .value {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
}
.zp-featured-stat-box .value.price {
  color: #d4af37;
}
.zp-featured-stat-box .value.timer {
  font-family: monospace;
}
.zp-premium-featured-action {
  margin-top: 4px;
}
.zp-premium-featured-action a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #d4af37, #aa7c11);
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 11px;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
}
.zp-premium-featured-action a:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #f3cf58, #d4af37);
}

@media (max-width: 768px) {
  .zp-premium-featured {
    max-width: 100%;
    margin: 12px 0;
  }
}
