/* TelegramBlaster site, part 3: the affiliate programme. The earnings calculator and the
   affiliate page's own blocks. Same tokens, same grid, the calculator is a dark console like the suite stage. */

/* ---- the earnings calculator: a dark console. The sliders, what they add up to, and twelve months as bars ---- */
.earn { --focus: var(--sun); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: var(--r-xl); background: var(--ink); color: #fff; box-shadow: 0 50px 90px -44px rgba(43, 27, 61, .95); }
.earn::before { content: ""; position: absolute; z-index: -1; right: -12%; top: -46%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--grape); opacity: .55; filter: blur(100px); animation: drift 15s ease-in-out infinite alternate; }
.earn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.6px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(70% 80% at 75% 30%, #000, transparent); mask-image: radial-gradient(70% 80% at 75% 30%, #000, transparent); }
.earn-in { display: grid; gap: 20px; align-content: start; padding: clamp(22px, 3vw, 40px); border-right: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.earn-in h2, .earn-in h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -0.035em; }
.earn .slider { gap: 4px; color: #EDE4F7; } .earn .slider output { padding: 3px 12px; border-radius: 8px; background: var(--sun); color: var(--ink); font-weight: 500; }
/* the slider: a track that fills with light up to the thumb (--p, kept up to date by affiliate.js) */
.earn input[type="range"] { -webkit-appearance: none; appearance: none; height: 36px; background: transparent; cursor: pointer; }
.earn input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--sun) var(--p, 0%), rgba(255, 255, 255, .16) var(--p, 0%)); }
.earn input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 207, 74, .32), 0 6px 14px rgba(0, 0, 0, .5); transition: transform .2s var(--ease), box-shadow .2s; }
.earn input[type="range"]:hover::-webkit-slider-thumb, .earn input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(255, 207, 74, .32), 0 6px 14px rgba(0, 0, 0, .5); }
.earn input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); } .earn input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--sun); }
.earn input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 207, 74, .32), 0 6px 14px rgba(0, 0, 0, .5); }
.earn .fine { margin-top: 0; font-size: .84rem; color: #B5A6C9; }
.earn-out { display: grid; gap: 18px; align-content: center; padding: clamp(22px, 3vw, 40px); }
.earn-big { display: grid; gap: 6px; justify-items: start; } .earn-big span { font: 500 .78rem var(--mono); color: #C6B8D8; }
.earn-big b { font: 700 clamp(3.6rem, 2rem + 6vw, 6.4rem)/.86 var(--display); letter-spacing: -0.06em; color: var(--sun); font-variant-numeric: tabular-nums; }
.earn-out dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.earn-out dl div { padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .4s var(--ease), background-color .3s; }
.earn-out dl div:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .11); }
.earn-out dt { font: 700 clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem)/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: #9BE8C6; } .earn-out dl div + div dt { color: #B79CFF; }
.earn-out dd { margin-top: 6px; font-size: .86rem; line-height: 1.4; color: #D9CCE8; }

/* twelve months as bars that rise one after another; the month in hand glows and is named underneath */
.earn-chart { grid-column: 1 / -1; display: none; padding: 4px clamp(22px, 3vw, 40px) clamp(18px, 2.4vw, 28px); border-top: 1px solid rgba(255, 255, 255, .1); }
.js .earn-chart { display: block; }
.earn-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(4px, .9vw, 12px); align-items: end; height: clamp(110px, 12vw, 150px); padding-top: 20px; border-bottom: 1px solid rgba(255, 255, 255, .18); border-radius: 4px; }
.earn-bars:focus-visible { outline-offset: 6px; }
.earn-bars span { position: relative; display: block; height: 100%; cursor: pointer; }
.earn-bars i { position: absolute; inset: 0; border-radius: 6px 6px 0 0; background: linear-gradient(var(--sun), var(--coral)); opacity: .45; transform: scaleY(var(--h, 0)); transform-origin: 50% 100%; transition: transform .6s var(--ease) calc(var(--i, 0) * 30ms), opacity .25s; }
.js .earn:not(.in) .earn-bars i { transform: scaleY(0); }
.earn-bars span.on i { opacity: 1; }
.earn-bars span::after { content: attr(data-m); position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font: 500 .75rem var(--mono); color: #B5A6C9; }
.earn-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; margin-top: 34px; font-size: .92rem; }
.earn-chart figcaption [data-earn-out] { font-weight: 600; color: var(--sun); } .earn-hint { color: #B5A6C9; font-size: .84rem; }

/* ---- home page: the offer beside the calculator ---- */
.aff-home { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: center; }
.aff-home-copy { display: grid; gap: 16px; justify-items: start; }
.aff-home-copy .kicker { margin-bottom: 2px; } .aff-home-copy h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); }
.aff-home-copy .cta { margin-top: 6px; } .aff-home-copy .btn-link { min-height: 52px; }
/* on the home page the console is narrower: sliders and totals share the top half, the bars run underneath */
.aff-home .earn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aff-home .earn-in, .aff-home .earn-out { gap: 14px; padding: clamp(18px, 2.2vw, 28px); } .aff-home .earn .live-tag { display: none; }
.aff-home .earn-out dl { grid-template-columns: minmax(0, 1fr); gap: 8px; } .aff-home .earn-out dl div { padding: 12px 16px; }
.aff-home .earn-big b { font-size: clamp(3rem, 1.8rem + 3.4vw, 4.2rem); } .aff-home .earn-bars { height: clamp(84px, 8vw, 104px); }

/* ---- affiliate page ---- */
.aff-hero .hero-stage { margin-top: clamp(24px, 3.4vw, 44px); }
.aff-hero h1 { font-size: clamp(2.3rem, 1rem + 4.6vw, 4.1rem); }
.nav-links a.nav-home { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; } .nav-home .ic { transition: transform .4s var(--ease); } .nav-home:hover .ic { transform: translateY(-2px) scale(1.1); }

/* the four figures: an ink band under the calculator, each number in its own colour */
.aff-hero .figures { gap: 0; margin-top: 14px; overflow: hidden; border: 0; border-radius: var(--r-xl); background: var(--ink); color: #fff; box-shadow: 0 50px 90px -44px rgba(43, 27, 61, .95); }
.aff-hero .figures div, .aff-hero .figures div + div, .aff-hero .figures div:nth-child(odd) { display: grid; gap: 10px; align-content: start; padding: clamp(18px, 2.2vw, 28px); background: none; box-shadow: 1px 1px 0 rgba(255, 255, 255, .12); transition: background-color .3s; }
.aff-hero .figures div:hover { background: rgba(255, 255, 255, .06); }
.aff-hero .figures dt { font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.6rem); color: var(--sun); }
.aff-hero .figures div:first-child dt { color: #FF8A5C; } /* coral is too dark on the ink band */ .aff-hero .figures div:nth-child(2) dt { color: #3CCFB4; text-shadow: none; } .aff-hero .figures div:nth-child(3) dt { color: #FF8A5C; text-shadow: none; } .aff-hero .figures div:nth-child(4) dt { color: #B79CFF; text-shadow: none; }
.aff-hero .figures dd { margin: 0; color: #D9CCE8; }

/* 02 what you earn: a dark stage. The rate glows, a pulse runs from the customer's payment to yours, and the bonuses climb. */
.aff-earn { --focus: var(--sun); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); gap: clamp(10px, 1.4vw, 18px); padding: clamp(12px, 1.6vw, 22px); border-radius: var(--r-xl); background: var(--ink); color: #fff; box-shadow: 0 50px 90px -44px rgba(43, 27, 61, .95); }
.aff-earn::before, .aff-earn::after { content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(100px); opacity: .5; animation: drift 14s ease-in-out infinite alternate; }
.aff-earn::before { left: -14%; top: -50%; background: var(--coral); } .aff-earn::after { right: -10%; bottom: -60%; background: var(--grape); animation-delay: -6s; }
.aff-earn article { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); --glow: rgba(255, 207, 74, .16); transition: transform .5s var(--ease), background-color .3s; }
.aff-earn article:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .09); }
.aff-earn article > p { font-size: .97rem; color: #D9CCE8; } .aff-earn h3 { font-size: 1.28rem; }
.aff-rate::after { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--ang), rgba(255, 255, 255, .14) 0 55%, var(--sun) 72%, var(--coral) 86%, rgba(255, 255, 255, .14) 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: orbit 5s linear infinite; }
.aff-earn .aff-num { font: 700 clamp(4.4rem, 2.6rem + 6vw, 7rem)/.84 var(--display); letter-spacing: -0.06em; color: var(--sun); font-variant-numeric: tabular-nums; }
.aff-earn .aff-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .08); color: #fff; font-size: .93rem; }
.aff-sum i { position: relative; flex: 1 1 30px; min-width: 30px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.aff-sum i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 207, 74, .15), var(--sun)); } /* a still arrow of light: no endless flow */
.aff-sum b { font-family: var(--display); color: var(--sun); }
.aff-stones { display: grid; gap: 8px; margin-top: 4px; }
.aff-stones li { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); font-size: .92rem; color: #D9CCE8; transition: transform .4s var(--ease); }
.aff-stones li::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: 34%; background: linear-gradient(90deg, rgba(60, 207, 180, .4), transparent); }
.aff-stones li:nth-child(2)::before { width: 67%; background: linear-gradient(90deg, rgba(255, 138, 92, .42), transparent); } .aff-stones li:nth-child(n+3)::before { width: 100%; background: linear-gradient(90deg, rgba(255, 207, 74, .42), transparent); }
.aff-stones li:hover { transform: translateX(4px); } .aff-stones b { font: 700 1.25rem var(--display); letter-spacing: -0.03em; color: #3CCFB4; } .aff-stones li:nth-child(2) b { color: #FF8A5C; } .aff-stones li:nth-child(n+3) b { color: var(--sun); }
.aff-earn .aff-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 8px 8px 8px 18px; border-radius: 999px; border: 2px dashed rgba(255, 207, 74, .6); color: #fff; }
.aff-code span { font: 500 .95rem var(--mono); letter-spacing: .04em; } .aff-code b { padding: 6px 14px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 600 .86rem var(--display); white-space: nowrap; } .aff-code b span { font: inherit; letter-spacing: 0; }

/* 03 getting paid: four facts as cards that lift, beside a dark panel for the dashboard */
.aff-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(12px, 1.6vw, 20px); align-items: stretch; }
.aff-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.aff-facts li, .aff-rules li { overflow: hidden; display: grid; gap: 10px; align-content: start; padding: clamp(18px, 2.2vw, 26px); border-radius: var(--r-lg); background: rgba(255, 253, 249, .92); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.aff-facts li { --glow: rgba(213, 243, 230, .95); } .aff-rules li { --glow: rgba(255, 211, 206, .9); }
.aff-facts li.in, .aff-rules li.in, .aff-kit.in { transition: transform .5s var(--ease), opacity .8s var(--ease) var(--d, 0s), box-shadow .4s var(--ease), border-color .3s; }
.aff-facts li.in:hover, .aff-rules li.in:hover { transform: translateY(-5px); box-shadow: var(--sh-md); } .aff-rules li.in:hover { border-color: rgba(180, 35, 42, .3); }
.aff-facts .ic, .aff-rules .ic { width: 44px; height: 44px; padding: 12px; border-radius: 14px; transition: transform .5s var(--ease); }
.aff-facts .ic { background: linear-gradient(135deg, var(--teal-d), #12A69B); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 18px -10px rgba(12, 127, 119, .9); } .aff-facts li:hover .ic { transform: rotate(-8deg) scale(1.1); }
.aff-facts b, .aff-rules b { display: block; font: 600 1.15rem/1.25 var(--display); letter-spacing: -0.02em; } .aff-facts p, .aff-rules p { font-size: .96rem; color: var(--mute); }
.aff-kit { --focus: var(--sun); overflow: hidden; display: grid; gap: 16px; justify-items: start; align-content: start; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-xl); background: var(--ink); color: #fff; box-shadow: 0 50px 90px -44px rgba(43, 27, 61, .95); --glow: rgba(255, 207, 74, .14); }
.aff-kit::after { content: ""; position: absolute; z-index: -1; right: -20%; top: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--teal); opacity: .6; filter: blur(90px); animation: drift 14s ease-in-out infinite alternate; }
.aff-kit h3 { font-size: 1.4rem; letter-spacing: -0.035em; } .aff-kit > p { font-size: .97rem; color: #D9CCE8; } .aff-kit .ticks { color: #EDE4F7; } .aff-kit .ticks .ic { background: rgba(255, 255, 255, .12); color: var(--sun); }
.aff-kit .btn-link { min-height: 44px; color: #fff; } .aff-kit .btn-link:hover { color: var(--sun); }

/* 04 the rules: four cards, each numbered and marked with a cross that shakes when pointed at */
.aff-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); counter-reset: rule; }
.aff-rules li { counter-increment: rule; } .aff-rules li::after { content: counter(rule, decimal-leading-zero); position: absolute; right: 16px; top: 8px; font: 700 2.8rem/1 var(--display); letter-spacing: -0.05em; color: rgba(43, 27, 61, .08); transition: color .3s; }
.aff-rules li:hover::after { color: rgba(180, 35, 42, .3); }
.aff-rules .ic { background: var(--rose); color: var(--bot); } .aff-rules li:hover .ic { animation: aff-shake .5s var(--ease); } @keyframes aff-shake { 25% { transform: rotate(-9deg); } 60% { transform: rotate(7deg); } }

@media (max-width: 1000px) {
  .earn, .aff-home, .aff-two { grid-template-columns: minmax(0, 1fr); }
  .earn-in { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .aff-earn, .aff-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aff-rate { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .aff-earn, .aff-rules, .aff-facts { grid-template-columns: minmax(0, 1fr); } .aff-earn, .aff-kit, .aff-hero .figures { border-radius: var(--r-lg); }
  .earn-out dl, .aff-home .earn { grid-template-columns: minmax(0, 1fr); } .earn { border-radius: var(--r-lg); }
  .earn-bars span:nth-child(even)::after { content: ""; }
  .earn-hint { display: none; }
}
