/* Bareeq Affiliate — FAST + Mobile Perfect
   - NO horizontal scroll on mobile (table becomes cards)
   - Desktop keeps table scroll
   - Keeps colors (Dark + Neon)
*/

.aff-main{ padding: 22px 0 60px; }
.aff-wrap{ width: min(1120px, calc(100% - 34px)); margin-inline:auto; }
.aff-sec{ padding: 18px 0; }
.aff-hero{ padding: 34px 0 10px; }

.aff-hero__copy{
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.aff-hero__panel{
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(92,255,106,.18);
  background: linear-gradient(180deg, rgba(16,28,54,.70), rgba(14,23,43,.70));
  box-shadow: 0 18px 70px rgba(13,213,58,.10), 0 18px 60px rgba(0,0,0,.35);
}

.aff-kicker{ font-weight: 900; color: rgba(245,247,250,.55); margin: 0 0 8px; }
.aff-title{ margin: 0 0 10px; font-weight: 900; line-height: 1.06; font-size: clamp(28px, 4vw, 46px); }
.aff-sub{ margin: 0 0 14px; color: rgba(245,247,250,.75); }

.aff-bullets{ display:grid; gap: 10px; margin: 12px 0 16px; }
.ok{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.ok::before{
  content:"✓";
  width: 22px; height: 22px;
  display:grid; place-items:center;
  border-radius: 8px;
  background: rgba(92,255,106,.10);
  border: 1px solid rgba(92,255,106,.18);
  font-weight: 900;
  flex: 0 0 22px;
}
.aff-hero__cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }

.aff-panel__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.aff-badge{
  font-weight: 900; font-size: 12px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(92,255,106,.12);
  border: 1px solid rgba(92,255,106,.22);
}
.aff-mini{ color: rgba(245,247,250,.60); font-weight: 900; font-size: 12px; }

.aff-kpis{ display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; }
.mini{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 12px;
}
.mini__num{ font-weight: 900; font-size: 18px; }
.mini__lbl{ color: rgba(245,247,250,.62); font-weight: 900; font-size: 12px; margin-top: 2px; }

.aff-wallet{ margin-top: 12px; display:grid; gap: 8px; }
.aff-wallet__row{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.aff-wallet__label{ color: rgba(245,247,250,.60); font-weight: 900; font-size: 12.5px; }
.aff-wallet__value{ font-weight: 900; }

.aff-card{
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

.aff-h2{ margin:0 0 10px; font-weight: 900; }
.aff-h3{ margin:0 0 10px; font-weight: 900; }

.aff-ref{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.aff-ref input{
  flex: 1 1 320px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: var(--fg);
}

/* Link readability */
#refLink{
  direction:ltr;
  text-align:left;
  unicode-bidi: plaintext;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  -webkit-text-fill-color: rgba(245,247,250,.92);
}

.aff-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.aff-chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

.aff-grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }

/* Desktop table scroll */
.table-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.mt12{ margin-top:12px; }

.table{
  width:100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: auto;
  direction: rtl;
}
.table th, .table td{
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
  white-space: nowrap;
}

.table-cta{ display:flex; justify-content:flex-start; margin-top:12px; gap:10px; flex-wrap:wrap; }

/* Responsive */
@media (max-width: 980px){
  .aff-grid2{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .aff-kpis{ grid-template-columns: 1fr; }
  .aff-ref input{ flex: 1 1 100%; }
  .aff-hero__cta .btn{ width: 100%; justify-content:center; }
  .aff-actions .btn{ width: 100%; justify-content:center; }

  /* ✅ Mobile: convert table to cards (NO horizontal scroll => FAST) */
  .table-scroll{ overflow: hidden; border-radius: 16px; }
  .table{ min-width: 100%; width:100%; }

  .table thead{ display:none; }

  .table, .table tbody, .table tr, .table td{
    display:block;
    width:100%;
  }

  .table tr{
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 10px 12px;
  }

  .table td{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding: 8px 0;
    white-space: normal;
    text-align: start;
  }

  .table td::before{
    content: attr(data-label);
    color: rgba(245,247,250,.60);
    font-weight: 900;
  }

  .table-cta{ flex-direction: column; align-items: stretch; }
  .table-cta a, .table-cta button{ width:100%; justify-content:center; }
}
/* =========================================================
   Corporate Skin Override (Navy × Gold) — SAFE
   - No layout changes
   - Keeps mobile/table card behavior
   - Activates only when body[data-site="corp"] exists
========================================================= */
body[data-site="corp"] .aff-hero__panel{
  border: 1px solid rgba(212,175,55,.22);
  background: linear-gradient(180deg, rgba(11,18,32,.88), rgba(18,32,60,.76));
  box-shadow: 0 18px 70px rgba(212,175,55,.10), 0 18px 60px rgba(0,0,0,.35);
}

body[data-site="corp"] .ok::before{
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.22);
}

body[data-site="corp"] .aff-badge{
  background: rgba(212,175,55,.14);
  border: 1px solid rgba(212,175,55,.22);
}

body[data-site="corp"] .aff-hero__copy,
body[data-site="corp"] .aff-card,
body[data-site="corp"] .mini,
body[data-site="corp"] .aff-wallet__row,
body[data-site="corp"] .table-scroll{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

/* Make the "gold" feel present without breaking brand buttons */
body[data-site="corp"] .grad-text{
  background: linear-gradient(90deg, #D4AF37, #F3E2A1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-site="corp"] .aff-hero__panel .mini{
  border: 1px solid rgba(212,175,55,.16);
}

/* Links / focus feel */
body[data-site="corp"] :focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,175,55,.28);
}

