
:root {
  --bg: #070711;
  --bg2: #101026;
  --card: rgba(255,255,255,.075);
  --card2: rgba(255,255,255,.115);
  --text: #fff;
  --muted: #b9b8cc;
  --line: rgba(255,255,255,.13);
  --brand: #472aa7;
  --brand2: #8b6dff;
  --gold: #f2c56f;
  --radius: 28px;
  --shadow: 0 24px 90px rgba(0,0,0,.42);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(71,42,167,.48), transparent 34rem),
    radial-gradient(circle at 90% 15%, rgba(242,197,111,.13), transparent 30rem),
    linear-gradient(180deg, var(--bg), #080813 45%, #06060e);
  color: var(--text);
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}
body[dir="rtl"] { font-family: "Tajawal", Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.header { position: sticky; top: 0; z-index: 100; background: rgba(7,7,17,.82); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.05em; font-size: 1.12rem; white-space: nowrap; }
body[dir="rtl"] .logo { letter-spacing: 0; }
.logo-mark { width: 48px; height: 48px; border-radius: 18px; background: linear-gradient(135deg, var(--brand2), var(--brand)); display: grid; place-items: center; box-shadow: 0 16px 42px rgba(71,42,167,.42); overflow: hidden; flex: 0 0 auto; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-weight: 800; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle,.menu-btn { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.07); border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 900; }
.menu-btn { width: 44px; height: 44px; border-radius: 16px; display: none; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 10px; margin: 5px auto; }
.section { padding: 86px 0; }
.hero {
  min-height: clamp(560px, calc(100vh - 76px), 860px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
  padding: clamp(54px, 8vw, 80px) 0;
}
.hero-copy {
  max-width: 650px;
}
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: clamp(.7rem, .9vw, .78rem); font-weight: 900; margin-bottom: 16px; }
h1, h2, h3 { letter-spacing: -.055em; }
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3 { letter-spacing: -.025em; }
h1 { font-size: clamp(2.8rem, 5vw, 5.6rem); line-height: 1.08; max-width: 900px; }
h2 { font-size: clamp(2rem, 3.4vw, 4.2rem); line-height: 1.08; }
p { color: var(--muted); line-height: 1.85; }
.hero-text { font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 700px; margin: 26px 0 34px; }
.actions { display: flex; gap: clamp(12px, 2vw, 18px); flex-wrap: wrap; }
.center-actions { justify-content: center; }
.btn { min-height: 50px; padding: 0 clamp(16px, 2vw, 22px); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; transition: transform .25s ease, background .25s ease, border-color .25s ease, filter .25s ease; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: linear-gradient(135deg, var(--brand2), var(--brand)); box-shadow: 0 18px 50px rgba(71,42,167,.42); }
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.06); }
.btn-order { background: linear-gradient(135deg, #f2c56f, #ff9f1c); color: #11111a; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 18px 45px rgba(242,197,111,.28); }
.hero-card { position: relative; min-height: 530px; display: grid; place-items: center; }
.dashboard { width: min(430px, 100%); border: 1px solid var(--line); border-radius: 38px; background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.045)); box-shadow: var(--shadow); backdrop-filter: blur(16px); padding: 28px; transform: rotate(-2deg); }
.dots { display: flex; gap: 7px; margin-bottom: 34px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.28); }
.dash-title { font-size: 2rem; font-weight: 900; margin-bottom: 18px; letter-spacing: -.055em; }
.line { height: 13px; border-radius: 50px; background: rgba(255,255,255,.13); margin: 12px 0; }
.line.w1 { width: 92%; } .line.w2 { width: 72%; }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 30px; }
.dash-grid div { min-height: 86px; border: 1px solid var(--line); background: rgba(255,255,255,.075); border-radius: 22px; display: grid; place-items: center; font-weight: 900; color: var(--muted); }
.float { position: absolute; border: 1px solid var(--line); background: rgba(255,255,255,.09); backdrop-filter: blur(16px); padding: 12px 17px; border-radius: 999px; font-weight: 900; box-shadow: var(--shadow); }
.float { will-change: transform, background, border-color; transition: background .22s ease, border-color .22s ease; }
.f1 { top: 86px; right: 0; } .f2 { bottom: 112px; left: 0; } .f3 { bottom: 58px; right: 42px; }
.heading { max-width: 820px; margin-bottom: 40px; }
.center-heading { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: 18px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.service-card,.group-card,.feature-card,.team-card { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 26px; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.service-card:hover,.group-card:hover,.feature-card:hover,.team-card:hover { transform: translateY(-6px); background: var(--card2); border-color: rgba(255,255,255,.24); }
.num { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: rgba(139,109,255,.16); color: var(--gold); font-weight: 900; margin-bottom: 24px; }
.service-card h3,.group-card h3,.feature-card h3,.team-card h3 { font-size: 1.42rem; margin-bottom: 12px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.stats { grid-template-columns: repeat(4, 1fr); padding-top: 0; }
.stat { border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: var(--card); }
.stat span { color: var(--muted); display: block; margin-bottom: 8px; }
.stat strong { font-size: 1.15rem; }
.partners-section .heading { text-align: center; }
.partners-window {
  overflow: hidden;
  position: relative;
  width: min(100%, 980px);
  padding-inline: 0;
}
.partners-window::before,
.partners-window::after {
  content: none !important;
  display: none !important;
}
.partners-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  align-items: stretch;
  width: max-content;
  animation: scrollPartners var(--scroll-duration, 20s) linear infinite;
  width: max-content;
}
.partner-card { border: 1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 28px; padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; transition: transform .25s ease, background .25s ease, border-color .25s ease; min-width: 300px; flex: 0 0 auto; }
/* .partner-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.1); border-color: rgba(139,109,255,.28); } */
.partner-logo { width: 84px; height: 84px; min-width: 84px; border-radius: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; overflow: hidden; position: relative; }
.partner-logo img { width: 68%; height: 68%; object-fit: contain; object-position: center; }
.partner-logo.no-image img { display: none; }
.partner-fallback { display: none; width: 100%; height: 100%; grid-area: 1 / 1; place-items: center; font-size: 1.4rem; font-weight: 900; color: var(--text); background: rgba(255,255,255,.09); }
.partner-logo.no-image .partner-fallback { display: grid; }
.partner-copy { display: grid; gap: 8px; }
.partner-title { font-size: 1.08rem; font-weight: 900; color: var(--text); line-height: 1.3; }
.partner-role { color: var(--muted); line-height: 1.7; }
@keyframes scrollPartners {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--partner-loop-width, 100%))); }
}
@media (max-width: 980px) {
  .services-grid,.stats,.feature-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-card { min-width: 280px; }
}
@media (max-width: 650px) {
  .partners-window { width: 100%; }
  .partners-window::before,
  .partners-window::after { display: none; }
  .partners-track { grid-auto-columns: minmax(100%, 1fr); }
  .partner-card { min-width: 100%; }
}
@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  .services-grid,.stats,.feature-grid,.video-grid,.team-grid,.social-links-grid { grid-template-columns: 1fr; }
  .work-items { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .work-thumb { scroll-snap-align: start; }
  .work-thumb img { width: 180px; height: 240px; aspect-ratio: auto; }
  .view-image-btn { width: 180px; }
  .group-card { overflow: hidden; }
  .float { display: none; }
  .dashboard { transform: none; }
  .card-actions .btn { width: 100%; }
  .memorial-card { grid-template-columns: 1fr; text-align: center; }
  .memorial-photo { margin: 0 auto; }
}
.cta-box {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(32px, 3vw, 48px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background: rgba(255,255,255,.05);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
  text-align: center;
}
.cta-box p { max-width: 660px; margin: 18px auto 28px; }
.contact-details { margin-top: 18px; color: var(--text); font-weight: 800; line-height: 1.7; }
.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); }
.footer-content { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-hero { padding: 74px 0 44px; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); max-width: 950px; }
.page-hero p { max-width: 780px; font-size: 1.08rem; margin-top: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.filter-chip { border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); border-radius: 999px; padding: 11px 15px; cursor: pointer; font-weight: 800; }
.filter-chip.active { background: linear-gradient(135deg, var(--brand2), var(--brand)); border-color: transparent; }
.groups-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
.group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.group-head-clean { align-items: center; }
.group-title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.group-title-row h3 { margin-bottom: 0; }
.group-link-icon,.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--gold); font-weight: 900; font-size: .95rem; cursor: pointer; }
.group-tag { color: var(--gold); border: 1px solid rgba(242,197,111,.24); background: rgba(242,197,111,.08); padding: 7px 10px; border-radius: 999px; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.work-items { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 16px; margin-top: 18px; align-items: start; }
.work-thumb { width: 100%; height: auto; padding: 0; background: transparent !important; border: 0; overflow: visible; display: flex; flex-direction: column; gap: 10px; }
.work-thumb.hidden,.video-card.hidden { display: none !important; }
.work-thumb img { width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: top center; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); pointer-events: none; }
.view-image-btn { width: 100%; min-height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); font-weight: 900; cursor: pointer; transition: .25s ease; }
.view-image-btn:hover { background: linear-gradient(135deg, var(--brand2), var(--brand)); transform: translateY(-2px); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.video-card { border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.video-card iframe { width: 100%; height: 100%; border: 0; }
.show-more { margin-top: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); border-radius: 999px; padding: 11px 16px; cursor: pointer; font-weight: 900; display: none; }
.empty-gallery { grid-column: 1 / -1; border: 1px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.045); border-radius: 18px; padding: 22px; color: var(--muted); text-align: center; font-weight: 800; }
.page-end-note { margin-top: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 20px; padding: 18px; }
.brand-tools { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 8px; color: var(--muted); font-weight: 800; }
.image-lightbox,.pdf-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.84); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: 22px; }
.image-lightbox.open,.pdf-lightbox.open { display: flex; }
.image-lightbox-content { position: relative; width: min(560px, 94vw); max-height: 92vh; display: grid; gap: 12px; }
.image-lightbox-content img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 22px; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 28px 90px rgba(0,0,0,.55); background: #111; }
.image-lightbox-close,.pdf-lightbox-close { position: absolute; top: -16px; inset-inline-end: -12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.12); color: white; font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(10px); z-index: 2; }
.lightbox-nav { display: flex; justify-content: space-between; gap: 12px; }
.lightbox-nav button { flex: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 12px; background: rgba(255,255,255,.08); color: white; font-weight: 900; cursor: pointer; }
.pdf-lightbox-content { position: relative; width: min(900px, 95vw); height: min(780px, 88vh); display: grid; gap: 12px; }
.pdf-lightbox-content iframe { width: 100%; height: 100%; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: #111; }
.pdf-lightbox-actions { display: flex; justify-content: flex-end; gap: 10px; }
.pdf-lightbox-open-link {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255,255,255,.08);
  color: white;
  font-weight: 900;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-top: 20px;
  padding-bottom: 4px;
}.about-profile { width: 148px; height: 148px; border-radius: 42px; display: grid; place-items: center; margin: 42px auto 0; background: rgba(255,255,255,.07); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.about-profile img { width: 100%; height: 100%; object-fit: cover; }
.team-grid { grid-template-columns: repeat(4, 1fr); }
.team-card { text-align: center; }
.team-avatar { width: 100px; height: 100px; border-radius:50px; display: grid; place-items: center; margin: 0 auto 18px; background: linear-gradient(135deg, var(--brand2), var(--brand)); font-weight: 900; font-size: 1.4rem; }
.memorial-card { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; border: 1px solid var(--line); border-radius: 38px; background: linear-gradient(135deg, rgba(71,42,167,.4), rgba(255,255,255,.055)); padding: clamp(26px, 5vw, 54px); box-shadow: var(--shadow); }
.memorial-photo { width: 170px; height: 170px; border-radius: 34px; background: rgba(255,255,255,.08); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.memorial-photo:empty::after { content: "رحمه الله"; color: var(--gold); font-weight: 900; }
.memorial-photo img { width: 100%; height: 100%; object-fit: cover; }
.fatiha { color: var(--gold); font-weight: 900; margin-top: 14px; }
.social-links-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.social-links-grid a { border: 1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 18px; padding: 16px; text-align: center; font-weight: 900; }
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 76px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; background: rgba(14,14,34,.98); border: 1px solid var(--line); border-radius: 22px; padding: 12px; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; border-radius: 14px; }
  .nav-links a:hover { background: rgba(255,255,255,.06); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 42%); padding: clamp(44px, 6vw, 72px) 0; }
  .hero-card { min-height: 480px; }
  .services-grid,.stats,.feature-grid { grid-template-columns: repeat(2, 1fr); }
  .groups-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .social-links-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding: 52px 0; gap: 32px; }
  .hero-card { min-height: 420px; }
  .hero-text { margin: 22px 0 28px; }
  .actions { justify-content: center; }
}

@media (max-width: 540px) {
  .hero { padding: 44px 0; }
  .hero-text { font-size: clamp(.98rem, 2.4vw, 1.05rem); }
  h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  h2 { font-size: clamp(1.75rem, 6vw, 2.8rem); }
  .hero-card { min-height: 380px; }
}
@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  .services-grid,.stats,.feature-grid,.video-grid,.team-grid,.social-links-grid { grid-template-columns: 1fr; }
  .work-items { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .work-thumb { scroll-snap-align: start; }
  .work-thumb img { width: 180px; height: 240px; aspect-ratio: auto; }
  .view-image-btn { width: 180px; }
  .group-card { overflow: hidden; }
  .float { display: none; }
  .dashboard { transform: none; }
  .card-actions .btn { width: 100%; }
  .memorial-card { grid-template-columns: 1fr; text-align: center; }
  .memorial-photo { margin: 0 auto; }
}
@media (max-width: 420px) {
  .work-items { grid-auto-columns: 165px; }
  .work-thumb img { width: 165px; height: 220px; }
  .view-image-btn { width: 165px; }
}


/* V3 logo fix: use the actual Bariq icon without an extra fake background */
.logo-mark {
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.logo-mark img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  pointer-events: none !important;
}
.about-profile img {
  object-fit: contain !important;
  background: transparent !important;
}


/* Hero float balance + hidden puzzle */
.float {
  animation: heroFloatDrift 7.5s cubic-bezier(.45,0,.2,1) infinite alternate;
  pointer-events: auto;
}
.f1 { animation-delay: 0s; }
.f2 { animation-delay: -2.5s; }
.f3 { animation-delay: -5s; }
@keyframes heroFloatDrift {
  from { translate: 0 0; }
  50% { translate: 0 -8px; }
  to { translate: 0 6px; }
}
.bariq-secret-puzzle,
.bariq-secret-puzzle * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}
.bariq-secret-puzzle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.puzzle-dropzone {
  position: absolute;
  width: 90px;
  height: 90px;
  top: 10px;
  left: 15%;
  transform: translateX(-50%) rotate(-2deg);
  border: 1px dashed rgba(242,197,111,.34);
  border-radius: 24px;
  opacity: .44;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,.035);
  pointer-events: none;
}
.puzzle-dropzone img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.9);
  opacity: .16;
}
.puzzle-dropzone .slot {
  position: absolute;
  width: 50%;
  height: 50%;
  border: 1px solid rgba(255,255,255,.06);
}
.puzzle-dropzone .s1 { top: 0; left: 0; border-radius: 20px 4px 4px 4px; }
.puzzle-dropzone .s2 { top: 0; right: 0; border-radius: 4px 20px 4px 4px; }
.puzzle-dropzone .s3 { bottom: 0; left: 0; border-radius: 4px 4px 4px 20px; }
.puzzle-dropzone .s4 { bottom: 0; right: 0; border-radius: 4px 4px 20px 4px; }
.puzzle-piece {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(242,197,111,.42);
  background: linear-gradient(135deg, rgba(242,197,111,.82), rgba(139,109,255,.72));
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  cursor: grab;
  pointer-events: auto;
  z-index: 6;
  opacity: .72;
  transition: opacity .22s ease, box-shadow .22s ease, filter .22s ease;
}
.puzzle-piece:hover,
.puzzle-piece.dragging { opacity: .95; filter: saturate(1.08); box-shadow: 0 18px 42px rgba(0,0,0,.34); }
.puzzle-piece.dragging { cursor: grabbing; transition: none; z-index: 30; }
.puzzle-piece.locked { 
  cursor: grab; 
  opacity: .88; 
  box-shadow: none; 
  pointer-events: auto; 
}
.puzzle-piece.p1 { top: 20px; left: -10%; border-radius: 16px 6px 7px 8px; }
.puzzle-piece.p2 { top: 170px; right: -30%; border-radius: 7px 16px 8px 6px; }
.puzzle-piece.p3 { bottom: 10px; left: 1%; border-radius: 8px 6px 7px 16px; }
.puzzle-piece.p4 { bottom: 5px; right: 5%; border-radius: 6px 8px 16px 7px; }
.hidden-offer-btn {
  position: absolute;
  left: 15%;
  top: 105px;
  transform: translateX(-50%) translateY(8px);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #ff9f1c);
  color: #11111a;
  box-shadow: 0 14px 40px rgba(242,197,111,.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  z-index: 7;
}
.hidden-offer-btn.is-visible {
  opacity: .96;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.partners-section {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
}
.partners-section .heading {
  width: min(820px, calc(100% - 36px));
  margin-inline: auto;
}
.partners-window {
  width: 100vw !important;
  max-width: none;
  margin-inline: auto;
  overflow: hidden;
}
.partners-track {
  padding-inline: max(18px, calc((100vw - 1160px) / 2));
  will-change: transform;
}
body[dir="rtl"] .partners-track { animation-direction: reverse; }
body[dir="ltr"] .partners-track { animation-direction: normal; }
.secret-offer-page .page-hero { min-height: calc(100vh - 190px); display: grid; align-content: center; }
.secret-offer-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055)); border-radius: 38px; padding: clamp(26px, 5vw, 54px); box-shadow: var(--shadow); max-width: 860px; }
.discount-code { display: inline-flex; margin: 22px 0 30px; padding: 12px 18px; border-radius: 999px; background: rgba(242,197,111,.14); border: 1px solid rgba(242,197,111,.32); color: var(--gold); font-weight: 900; letter-spacing: .05em; }
@media (max-width: 650px) {
  .float { display: block; animation-duration: 9s; padding: 10px 13px; font-size: .85rem; opacity: .76; }
  .f1 { top: 58px; right: 8px; }
  .f2 { bottom: 92px; left: 8px; }
  .f3 { bottom: 42px; right: 22px; }
  .puzzle-dropzone { width: 72px; height: 72px; top: 86px; }
  .puzzle-piece { width: 26px; height: 26px; opacity: .68; }
  .puzzle-piece.p1 { top: 112px; left: 18%; }
  .puzzle-piece.p2 { top: 150px; right: 14%; }
  .puzzle-piece.p3 { bottom: 142px; left: 12%; }
  .puzzle-piece.p4 { bottom: 106px; right: 20%; }
  .hidden-offer-btn { top: 170px; font-size: .76rem; }
  .partner-card { min-width: min(300px, calc(100vw - 42px)); }
}
@media (prefers-reduced-motion: reduce) {
  .float, .partners-track { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
