/* ===== Calculator ===== */
.algo-calc-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.algo-calc-left,
.algo-calc-right {
  background: #f7f8fa;
  border-radius: 20px;
  padding: 24px 24px 22px;
}

.algo-calc-right {
  background: #f1f2f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.algo-calc-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 13px;
  color: #7b8494;
}

.algo-loyalty-picker {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #e8f4ff;
}

.algo-loyalty-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.algo-loyalty-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #556070;
}

.algo-loyalty-current {
  font-size: 12px;
  color: #4b5565;
}

.algo-loyalty-current strong {
  font-weight: 600;
  color: #111827;
}

.algo-loyalty-points {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16,24,40,0.07);
  font-size: 11px;
}

.algo-loyalty-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.loyalty-pill {
  border-radius: 999px;
  border: 1px solid #c0d3ea;
  background: #ffffff;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: #4b5565;
  cursor: pointer;
  transition: all 0.16s ease-out;
}

.loyalty-pill.active {
  background: #101828;
  color: #ffffff;
  border-color: #101828;
}

.algo-loyalty-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #101828;
  color: #e6ffef;
  white-space: nowrap;
}

.algo-plan-tabs-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7b8494;
  margin-bottom: 6px;
}

.algo-plan-tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  
}

.algo-plan-tab {
  border-radius: 999px;
  border: 1px solid #dde2ec;
  background: #ffffff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5565;
  cursor: pointer;
  transition: all 0.18s ease-out;
  width: 100%;
  text-align: center;
  white-space: nowrap;
    min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.algo-plan-tab.active {
  background: #101828;
  color: #ffffff;
  border-color: #101828;
  box-shadow: 0 0 0 1px rgba(16,24,40,0.1);
}

.algo-calc-subtitle {
  font-size: 14px;
  color: #7b8494;
  margin-bottom: 6px;
}

.algo-calc-future {
  font-size: 32px;
  font-weight: 700;
  color: #00a26b;
  margin-bottom: 10px;
}

.algo-calc-cta img {
  filter: invert(1);
  margin-right: 6px;
  position: relative;
  top: -1px;
  right: 110px;
}

.algo-result-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 14px;
}

.algo-result-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 !important;
  border-bottom: 1px dashed rgba(15,23,42,0.08);
}

.algo-result-list li:last-child { border-bottom: none; }

.algo-result-list span { color: #6b7280; }

.algo-result-list strong {
  color: #111827;
  font-weight: 600;
}

.algo-rate-row { margin-top: 4px; }

@media (max-width: 991px) {
  .algo-calc-wrapper {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

@media (max-width: 575px) {
  .algo-calc-left,
  .algo-calc-right {
    padding: 18px 16px;
  }

  .algo-calc-future { font-size: 26px; }
}

.strategies-cta .invest_but {
  max-width: 200px;
  width: 100%;
  margin:auto !important;
}

/* ===== Security ===== */
.security_section {
  padding: 80px 0;
  background: url("/assets/images/banner_bg2.webp") center center / cover no-repeat;
}

.security_wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: stretch;
}

.security_head { color: #e5e7eb; }

.security_head h3 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #f9fafb;
}

.security_head h3 span { color: #f97316; }

.security_head p {
  font-size: 14px;
  line-height: 1.7;
  color: #9ca3af;
  max-width: 420px;
}

.security_cta { margin-top: 24px; }

.security_cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.security_card {
  position: relative;
  border-radius: 18px;
  padding: 16px 18px 14px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(229, 231, 235, 1);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.55);
  color: #020617;
  overflow: hidden;
}

.security_card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.10), transparent 55%);
  pointer-events: none;
}

.security_card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.security_badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
  background: #020617;
}

.security_text h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #0f172a;
}

.security_text p {
  font-size: 13px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

@media (max-width: 991.98px) {
  .security_section { padding: 60px 0; }
  .security_wrapper { grid-template-columns: 1fr; gap: 24px; }
  .security_head p { max-width: 100%; }
}

@media (max-width: 575.98px) {
  .security_head h3 { font-size: 22px; }
  .security_card { padding: 14px 14px 12px; border-radius: 16px; }
  .security_badge { width: 30px; height: 30px; font-size: 12px; }
}

/* ===== Referral + Loyalty Teaser ===== */
.home-referral{
  padding:70px 0 80px;
  background: url('/assets/images/invest_bg.png') center center / cover no-repeat;
  position:relative;
  overflow:hidden;
}

.home-ref-inner{
  position:relative;
  z-index:1;
  background:rgba(255,255,255,0.96);
  border-radius:24px;
  padding:26px 28px;
  box-shadow:0 24px 70px rgba(15,23,42,0.18);
  margin:0 auto;
}

/* stack spacing */
.home-referral--stack .home-loy-inner{
  position:relative;
  z-index:1;
  margin-top:14px;
  background:rgba(255,255,255,0.96);
  border-radius:24px;
  padding:26px 28px;
  box-shadow:0 24px 70px rgba(15,23,42,0.16);
  border:1px solid rgba(148,163,184,0.25);
}

.home-ref-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#6b7280;
  margin-bottom:8px;
}

.home-ref-title{
  font-size:24px;
  line-height:1.35;
  font-weight:600;
  color:#0f172a;
  margin-bottom:10px;
}

.home-ref-text{
  font-size:14px;
  color:#4b5563;
  max-width:560px;
  margin-bottom:10px;
}

.home-ref-bullets{
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.home-ref-bullets li{
  padding-left: 0;
  margin-bottom: 4px;
  position: static;
}

.home-ref-bullets li::before{ content: none !important; }

.home-ref-bullets strong{
  color: #0f766e;
  font-weight: 600;
}

.home-ref-card{
  background:#ffffff;
  border-radius:22px;
  padding:20px 22px 18px;
  border:1px solid rgba(148,163,184,0.5);
  box-shadow:0 20px 55px rgba(15,23,42,0.15);
  color:#0f172a;
}

.home-ref-card-header{ margin-bottom:10px; }

.home-ref-card-header h4{
  font-size:15px;
  font-weight:600;
  margin:4px 0 0;
  color:#0f172a;
}

.home-ref-chip{
  display:inline-flex;
  align-items:center;
  padding:3px 9px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.7);
  font-size:10px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#4b5563;
  background:#f9fafb;
}

.home-ref-levels{
  list-style:none;
  padding:0;
  margin:12px 0 6px;
  font-size:13px;
}

.home-ref-levels li{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:7px 0;
  border-bottom:1px dashed rgba(209,213,219,0.9);
}

.home-ref-levels li:last-child{ border-bottom:none; }

.home-ref-level-name{
  font-weight:600;
  color:#111827;
  display:block;
}

.home-ref-levels small{
  font-size:11px;
  color:#6b7280;
}

.home-ref-level-rate{
  font-weight:600;
  font-size:16px;
  color:#16a34a;
}

.home-ref-note{
  font-size:11px;
  color:#4b5563;
  margin-top:8px;
}

.home-ref-note strong{
  color:#0f766e;
  font-weight:600;
}

/* Loyalty right card */
.home-loy-card{
  background:#ffffff;
  border-radius:22px;
  padding:20px 22px 18px;
  border:1px solid rgba(148,163,184,0.5);
  box-shadow:0 20px 55px rgba(15,23,42,0.15);
  color:#0f172a;
}

.home-loy-table{
  margin-top:10px;
  border:1px solid rgba(148,163,184,0.35);
  border-radius:16px;
  overflow:hidden;
  background:#f9fafb;
}

.home-loy-row{
  display:grid;
  grid-template-columns: 1.2fr .7fr .8fr;
  gap:10px;
  padding:10px 12px;
  align-items:center;
  border-bottom:1px dashed rgba(209,213,219,0.95);
  font-size:13px;
  color:#374151;
}

.home-loy-row:last-child{ border-bottom:none; }

.home-loy-head{
  background:#ffffff;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#6b7280;
  border-bottom:1px solid rgba(209,213,219,0.9);
}

.home-loy-tier b{
  display:inline-block;
  min-width: 28px;
  font-weight:700;
  color:#111827;
}

.home-loy-bonus{
  font-weight:700;
  color:#16a34a;
}

@media(max-width:991px){
  .home-referral{ padding:56px 0 64px; }
  .home-ref-inner,
  .home-referral--stack .home-loy-inner{ padding:22px 20px; }
  .home-ref-title{ font-size:22px; }
}

@media(max-width:576px){
  .home-ref-inner,
  .home-referral--stack .home-loy-inner{ padding:20px 18px 18px; }
  .home-ref-title{ font-size:20px; }
  .home-loy-row{
    grid-template-columns: 1fr .6fr .7fr;
    font-size:12px;
  }
}

/* ===== Strategies & Loyalty Tiers ===== */
.algorixy-strategies { padding: 80px 0 90px; }

.algorixy-strategies .alg-subtitle{
  max-width: 720px;
  margin: 8px auto 32px;
  font-size: 14px;
  color: #6b7280;
}

.alg-strategies-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}


.alg-strategy-card{
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alg-plan-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 6px;
}

.alg-plan-title{
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.alg-plan-copy{
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 10px;
}

.alg-rate-row{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(209, 213, 219, 0.7);
  margin-top: 2px;
}

.alg-rate-label{
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 2px;
}

.alg-rate-main{
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.alg-rate-big{
  font-size: 28px;
  font-weight: 600;
  color: #111827;
}

.alg-rate-suffix{
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.alg-rate-meta{ font-size: 12px; color: #6b7280; }

.alg-rate-meta-block{
  font-size: 12px;
  color: #4b5563;
  text-align: right;
}

.alg-rate-meta-block strong{ font-weight: 600; color: #111827; }

.alg-effective-row{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(209, 213, 219, 0.9);
  font-size: 12px;
  color: #6b7280;
}

.alg-effective-math{ font-weight: 600; color: #111827; }
.alg-effective-math .alg-total-val{ color: #10b981; }

.alg-small-note{
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.alg-loyalty-block{
  margin-top: 12px;
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.alg-loyalty-header h3{
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111827;
}

.alg-loyalty-header p{
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 12px;
}

.alg-loyalty-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.alg-tier-card{
  position: relative;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.alg-tier-card:hover{
  border-color: #a7f3d0;
  background: #ecfdf5;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.15);
}

.alg-tier-card.is-active{
  border-color: #16a34a;
  background: #022c22;
  box-shadow: 0 12px 26px rgba(21, 128, 61, 0.45);
}

.alg-tier-card.is-active .alg-tier-name,
.alg-tier-card.is-active .alg-tier-range,
.alg-tier-card.is-active .alg-tier-bonus span{
  color: #ecfdf5;
}

.alg-tier-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.alg-tier-pill{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: #111827;
  color: #ffffff;
}

.alg-tier-name{
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.alg-tier-range{ font-size: 11px; color: #6b7280; }

.alg-tier-bonus{ font-size: 12px; color: #10b981; }
.alg-tier-bonus span{ font-weight: 600; }

@media (max-width: 1199px){
  .alg-strategies-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
  .alg-rate-meta-block{ text-align: left; }
}

@media (max-width: 991px){
  .algorixy-strategies{ padding: 60px 0 70px; }
  .alg-strategies-grid{ grid-template-columns: 1fr; }
  .alg-loyalty-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px){
  .alg-loyalty-grid{ grid-template-columns: 1fr; }
  .alg-strategy-card,
  .alg-loyalty-block{ padding: 18px 16px 16px; }
  .alg-rate-big{ font-size: 24px; }
}
@media (max-width: 991px){
  .algo-plan-tab-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px){
  .algo-plan-tab-list{ grid-template-columns: 1fr; }
}

