/* Islamic Accounts V2 — page layers on Homepage V2 + account-types table styles */

.isl-hero-sec{padding:28px 0 0;}
.isl-hero{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  min-height:440px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:56px 48px;
  direction:ltr;
  background:var(--bg);
  clip-path:inset(0 round 22px);
}
.isl-hero .bg-img{position:absolute;inset:0;z-index:0;}
.isl-hero .bg-img img{
  width:100%;height:100%;object-fit:cover;object-position:center;
  display:block;transform:scaleX(-1);
}
.isl-hero .bg-overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg, rgba(10,15,28,0.95) 0%, rgba(10,15,28,0.88) 32%, rgba(10,15,28,0.5) 56%, rgba(10,15,28,0.14) 78%, rgba(10,15,28,0.02) 100%);
}
.isl-hero .txt{
  position:relative;z-index:2;max-width:520px;min-width:0;
  direction:ltr;text-align:left;
}
.isl-badge{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;font-weight:600;color:var(--gold);
  background:rgba(227,181,73,0.12);border:1px solid var(--border-strong);
  padding:7px 16px;border-radius:100px;margin-bottom:18px;
}
.isl-hero h1{
  font-family:'Space Grotesk',sans-serif;
  font-size:clamp(2rem,4vw,2.9rem);line-height:1.2;font-weight:600;
  margin-bottom:16px;text-shadow:0 2px 16px rgba(0,0,0,0.5);
  overflow-wrap:break-word;
}
.isl-hero h1 .accent{color:var(--gold-2);}
.isl-hero p.sub{
  color:var(--text-mute);font-size:1.02rem;max-width:460px;
  margin-bottom:26px;text-shadow:0 1px 10px rgba(0,0,0,0.55);
}
.isl-hero .hero-ctas{margin-bottom:0;}
.isl-hero .btn-ghost{background:rgba(10,15,28,0.4);}
[dir="rtl"] .isl-hero{justify-content:flex-end;}
[dir="rtl"] .isl-hero .txt{direction:rtl;text-align:right;}
[dir="rtl"] .isl-hero .bg-img img{transform:none;}
[dir="rtl"] .isl-hero .bg-overlay{
  background:linear-gradient(270deg, rgba(10,15,28,0.95) 0%, rgba(10,15,28,0.88) 32%, rgba(10,15,28,0.5) 56%, rgba(10,15,28,0.14) 78%, rgba(10,15,28,0.02) 100%);
}

.isl-sec-narrow{max-width:700px;}
.isl-points{max-width:720px;margin:0 auto;}
.isl-points-spaced{margin-bottom:32px;}
.islamic-points{display:flex;flex-direction:column;gap:14px;}
.ipoint{
  display:flex;align-items:flex-start;gap:12px;
  padding:16px 18px;border-radius:var(--radius-sm);
  background:var(--surface);border:1px solid var(--border);
  font-size:14.5px;color:var(--text);line-height:1.55;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.ipoint svg{width:17px;height:17px;color:var(--teal);flex-shrink:0;margin-top:1px;}
.ipoint:hover{transform:translateY(-3px);border-color:var(--border-strong);}

.isl-diff{
  background:rgba(13,20,36,0.5);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.isl-eligibility{
  display:flex;gap:14px;align-items:flex-start;
  background:rgba(227,181,73,0.05);border:1px solid var(--border-strong);
  border-radius:var(--radius);padding:20px 24px;max-width:820px;margin:0 auto;
}
.isl-eligibility svg{width:20px;height:20px;color:var(--gold);flex-shrink:0;margin-top:2px;}
.isl-eligibility p{font-size:14px;color:var(--text-mute);line-height:1.6;margin:0;}
.isl-eligibility strong{color:var(--text);}

#tiers{scroll-margin-top:110px;overflow-x:clip;}
.isl-tiers-head{max-width:720px;}

.tier-tabs{
  display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:32px;
}
.tier-tab{
  font-family:'Inter',sans-serif;font-size:13.5px;font-weight:600;color:var(--text-mute);
  background:transparent;border:1px solid var(--border);border-radius:100px;
  padding:11px 24px;cursor:pointer;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.tier-tab:hover{border-color:var(--border-strong);color:var(--text);}
.tier-tab.active{
  background:linear-gradient(135deg,var(--gold-2),var(--gold-deep));
  color:#0A0F1C;border-color:transparent;
}
.tab-panel[hidden]{display:none!important;}
.tier-icon-wrap{display:flex;justify-content:center;margin-bottom:6px;}
.tier-icon{display:block;}

#tiers .tier-table th:nth-child(4),
#tiers .tier-table td:nth-child(4){
  background:rgba(227,181,73,0.10);
  border-left:1px solid var(--border-strong);
  border-right:1px solid var(--border-strong);
}
#tiers .tier-table .group-row td:nth-child(4),
#tiers .tier-table .group-row td{
  background:#1a2438;border-left:none;border-right:none;
}
#tiers .tier-table tbody tr:nth-child(odd):not(.group-row):not(.tier-cta-row) td:nth-child(4){
  background:rgba(227,181,73,0.13);
}
#tiers .tier-table tbody tr:nth-child(even):not(.group-row):not(.tier-cta-row) td:nth-child(4){
  background:rgba(227,181,73,0.10);
}
#tiers .tier-table thead th:nth-child(4){
  position:relative;padding-top:34px;background:rgba(227,181,73,0.12);
}
#tiers .tier-table thead th:nth-child(4) .tier-name-cell{color:var(--gold);}
.tier-badge{
  position:absolute;top:8px;left:50%;transform:translateX(-50%);
  background:linear-gradient(135deg,var(--gold-2),var(--gold-deep));color:#0A0F1C;
  font-family:'Inter',sans-serif;font-size:10px;font-weight:700;
  text-transform:uppercase;letter-spacing:.04em;
  padding:3px 10px;border-radius:100px;white-space:nowrap;
}
[dir="rtl"] #tiers .tier-table th:nth-child(4),
[dir="rtl"] #tiers .tier-table td:nth-child(4){
  border-left:1px solid var(--border-strong);
  border-right:1px solid var(--border-strong);
}

.isl-conditions-link{
  display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
  text-align:center;font-size:14px;color:var(--text-mute);margin-top:18px;
}
.isl-conditions-link a{color:var(--gold);font-weight:600;white-space:nowrap;}
.isl-conditions-link a:hover{text-decoration:underline;}

@media (hover:hover) and (pointer:fine){
  #tiers .tier-table thead th:not(.row-label),
  #tiers .tier-table tbody tr:not(.group-row) td:not(.row-label){
    transition:background .2s ease;
  }
  #tiers .tier-table thead th:not(.row-label) .tier-name-cell{transition:color .2s ease;}
  #tiers .tier-table:has(th:nth-child(2):hover,td:nth-child(2):hover) thead th:nth-child(2),
  #tiers .tier-table:has(th:nth-child(3):hover,td:nth-child(3):hover) thead th:nth-child(3),
  #tiers .tier-table:has(th:nth-child(4):hover,td:nth-child(4):hover) thead th:nth-child(4),
  #tiers .tier-table:has(th:nth-child(5):hover,td:nth-child(5):hover) thead th:nth-child(5),
  #tiers .tier-table:has(th:nth-child(6):hover,td:nth-child(6):hover) thead th:nth-child(6),
  #tiers .tier-table:has(th:nth-child(7):hover,td:nth-child(7):hover) thead th:nth-child(7){
    background:rgba(227,181,73,0.16);
    box-shadow:inset 0 2px 0 0 var(--gold);
  }
  #tiers .tier-table:has(th:nth-child(2):hover,td:nth-child(2):hover) thead th:nth-child(2) .tier-name-cell,
  #tiers .tier-table:has(th:nth-child(3):hover,td:nth-child(3):hover) thead th:nth-child(3) .tier-name-cell,
  #tiers .tier-table:has(th:nth-child(4):hover,td:nth-child(4):hover) thead th:nth-child(4) .tier-name-cell,
  #tiers .tier-table:has(th:nth-child(5):hover,td:nth-child(5):hover) thead th:nth-child(5) .tier-name-cell,
  #tiers .tier-table:has(th:nth-child(6):hover,td:nth-child(6):hover) thead th:nth-child(6) .tier-name-cell,
  #tiers .tier-table:has(th:nth-child(7):hover,td:nth-child(7):hover) thead th:nth-child(7) .tier-name-cell{
    color:var(--gold-2);
  }
  #tiers .tier-table:has(th:nth-child(2):hover,td:nth-child(2):hover) tbody tr:not(.group-row):not(.tier-cta-row) td:nth-child(2),
  #tiers .tier-table:has(th:nth-child(3):hover,td:nth-child(3):hover) tbody tr:not(.group-row):not(.tier-cta-row) td:nth-child(3),
  #tiers .tier-table:has(th:nth-child(4):hover,td:nth-child(4):hover) tbody tr:not(.group-row):not(.tier-cta-row) td:nth-child(4),
  #tiers .tier-table:has(th:nth-child(5):hover,td:nth-child(5):hover) tbody tr:not(.group-row):not(.tier-cta-row) td:nth-child(5),
  #tiers .tier-table:has(th:nth-child(6):hover,td:nth-child(6):hover) tbody tr:not(.group-row):not(.tier-cta-row) td:nth-child(6),
  #tiers .tier-table:has(th:nth-child(7):hover,td:nth-child(7):hover) tbody tr:not(.group-row):not(.tier-cta-row) td:nth-child(7){
    background:rgba(227,181,73,0.10);
  }
}

@media(max-width:900px){
  .isl-hero{
    min-height:460px;padding:40px 28px 28px;
    justify-content:flex-start;align-items:flex-end;
  }
  [dir="rtl"] .isl-hero{justify-content:flex-start;}
  .isl-hero .bg-img img{
    transform:none;
    object-fit:cover;
    object-position:center 18%;
  }
  .isl-hero .bg-overlay,
  [dir="rtl"] .isl-hero .bg-overlay{
    background:linear-gradient(
      180deg,
      rgba(10,15,28,0.18) 0%,
      rgba(10,15,28,0.42) 16%,
      rgba(10,15,28,0.82) 38%,
      rgba(10,15,28,0.96) 58%,
      rgba(10,15,28,0.99) 100%
    );
  }
  .isl-badge,
  .isl-hero h1,
  .isl-hero p.sub{
    text-shadow:0 2px 18px rgba(0,0,0,0.75),0 1px 4px rgba(0,0,0,0.55);
  }
  .isl-hero .txt{max-width:100%;width:100%;}
  .isl-hero .hero-ctas{flex-direction:column;align-items:stretch;}
  .isl-hero .hero-ctas .btn,
  .isl-hero .hero-ctas ngp-auth-signup{width:100%;}
  .tier-tabs{
    justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;
    scrollbar-width:none;margin-left:-4px;margin-right:-4px;padding:0 4px 6px;
  }
  .tier-tabs::-webkit-scrollbar{display:none;}
  .tier-tab{flex:0 0 auto;padding:9px 16px;font-size:13px;}
  .isl-eligibility{padding:16px 18px;}
}

@media(max-width:640px){
  .isl-hero{padding:28px 18px 22px;min-height:440px;}
  .isl-hero .bg-img img{object-position:center 12%;}
  .isl-hero h1{font-size:28px;line-height:1.15;}
  .isl-sec-narrow.sec-head.center,
  .isl-tiers-head.sec-head.center{
    text-align:center;margin-left:auto;margin-right:auto;
  }
}
