/* AFILIERE — carduri gri, centrate; fiecare nivel are emblema și o nuanță discretă proprie (--tier) */
.af-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.af-stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.af-stat small { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.af-stat b { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 22px; font-weight: 780; letter-spacing: .02em; }
.af-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-raised); color: var(--text-soft); }
.af-ico svg { width: 20px; height: 20px; }
.af-code button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-raised); color: var(--muted); cursor: pointer; }
@media (hover: hover) { .af-code button:hover { color: var(--text); } }
.af-code button svg { width: 15px; height: 15px; }

.af-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.af-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 16px 16px; border: 1px solid var(--border-strong); border-radius: 18px; text-align: center;
           background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--tier) 10%, transparent) 0%, transparent 70%), var(--surface); box-shadow: var(--shadow); }
.af-card.is-next { border-color: color-mix(in srgb, var(--tier) 55%, var(--border-strong)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier) 25%, transparent), var(--shadow); }
.af-flag { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, var(--tier) 18%, var(--surface-raised)); color: var(--text); font-size: 9.5px; font-weight: 800; letter-spacing: .06em; }
.af-head { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.af-emb { width: 74px; height: 74px; margin-bottom: 6px; color: var(--tier); filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--tier) 22%, transparent)); }
.af-emb-bg { stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.af-emb-g { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.af-n { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .14em; }
.af-card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 820; letter-spacing: .08em; }
.af-need { padding: 5px 14px; border: 1px solid color-mix(in srgb, var(--tier) 45%, var(--border-strong)); border-radius: 99px; background: var(--surface-raised); color: var(--text); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.af-desc { min-height: 78px; margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.55; }
.af-money { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); }
.af-money > div { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 0 4px; }
.af-money > div + div { border-left: 1px solid var(--border-strong); }
.af-money svg { width: 18px; height: 18px; color: var(--tier); }
.af-money small { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.af-money b { max-width: 100%; font-size: clamp(16px, 1.25vw, 21px); font-weight: 820; font-variant-numeric: tabular-nums; white-space: nowrap; }
.af-money em { color: var(--muted); font-size: 10.5px; font-style: normal; font-weight: 600; }
.af-prog { padding: 11px 12px; border: 1px solid var(--border); border-radius: 14px; }
.af-prog-h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 750; }
.af-prog-h span { display: flex; align-items: center; gap: 6px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; }
.af-prog-h svg { width: 15px; height: 15px; }
.af-bar { height: 6px; margin: 9px 0 8px; overflow: hidden; border-radius: 99px; background: var(--border-strong); }
.af-bar span { display: block; height: 100%; border-radius: inherit; background: var(--tier); }
.af-prog small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.af-prog small b { color: var(--text); }
.af-lock { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: auto; padding: 11px 12px; border-radius: 14px; background: var(--surface-soft); }
.af-lock b { display: flex; align-items: center; gap: 7px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.af-lock svg { width: 15px; height: 15px; color: var(--muted); }
.af-lock small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.af-info { display: grid; grid-template-columns: auto 1.4fr 1fr; gap: 18px; align-items: start; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); }
.af-info p { margin: 0 0 8px; color: var(--text-soft); font-size: 13px; line-height: 1.6; }
.af-info a { color: #38bdf8; font-weight: 700; text-decoration: none; }

@media (max-width: 1400px) { .af-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .af-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .af-strip { grid-template-columns: 1fr 1fr; } .af-info { grid-template-columns: 1fr; } }
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1400px) { .af-grid { grid-template-columns: 1fr; } .af-strip { grid-template-columns: 1fr 1fr; gap: 8px; } .af-stat { padding: 12px; } .af-stat b { font-size: 18px; } .af-desc { min-height: 0; } .af-money b { font-size: 20px; } }


/* textul de jos pe toată lățimea + caseta verde „Scrie-ne pe Telegram” */
.af-info { grid-template-columns: auto 1fr; }
.af-join { margin-top: 14px; }

/* nivel atins */
.af-card.is-done { border-color: color-mix(in srgb, var(--tier) 45%, var(--border-strong)); }
.af-done b { color: #4ade80; } .af-done svg { color: #4ade80 !important; }

/* PARTENERIAT: sold, pașii, bonusul pe card, calculator + reguli */
.af-wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.3fr; gap: 12px; align-items: center; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.af-w { display: flex; align-items: center; gap: 12px; }
.af-w small { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.af-w b { display: block; margin-top: 3px; font-size: 20px; font-weight: 780; font-variant-numeric: tabular-nums; }
.af-w-out { display: flex; flex-direction: column; gap: 6px; }
.af-w-out .button { width: 100%; min-height: 40px; }
.af-w-out .button:disabled { opacity: .45; cursor: not-allowed; }
.af-w-out small { color: var(--muted); font-size: 11.5px; line-height: 1.4; text-align: center; }

.af-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 780; letter-spacing: .02em; }
.af-box h3 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--text-soft); }

/* cifra pașilor (ca la DESPRE) */
.af-num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; background: var(--graphite, #2a2f37); color: #fff; font-size: 20px; font-weight: 900;
          box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 4px 10px rgb(0 0 0 / 35%); }
:root:not([data-theme="light"]) .af-num { color: #111418; }

.af-box { padding: 18px 20px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }

/* simulatorul */
.af-sim-sub { margin: -4px 0 12px; color: var(--muted); font-size: 12.5px; }
.af-sim-in { display: grid; gap: 8px; }
.af-sim-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-raised); }
.af-sim-row span b { display: block; font-size: 13.5px; letter-spacing: .06em; }
.af-sim-row span em { color: var(--muted); font-size: 11.5px; font-style: normal; }
.af-stepper { display: flex; align-items: center; gap: 4px; }
.af-stepper button { width: 34px; height: 34px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 18px; font-weight: 800; cursor: pointer; }
@media (hover: hover) { .af-stepper button:hover { border-color: var(--text-soft); } }
.af-stepper input { width: 64px; height: 34px; padding: 0 4px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.af-stepper input::-webkit-inner-spin-button, .af-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.af-sim-lv { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 14px 0 10px; padding: 10px; border: 1px solid color-mix(in srgb, var(--tier) 55%, var(--border-strong)); border-radius: 12px;
             background: color-mix(in srgb, var(--tier) 9%, var(--surface-raised)); }
.af-sim-lv small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.af-sim-lv b { color: var(--tier); font-size: 20px; font-weight: 900; letter-spacing: .06em; }
.af-sim-lv em { font-style: normal; font-weight: 800; }
.af-sim-out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.af-sim-out > div { padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); text-align: center; }
.af-sim-out small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.af-sim-out b { display: block; margin-top: 3px; font-size: 20px; font-weight: 850; font-variant-numeric: tabular-nums; }
.af-sim-out .af-hl { border-color: rgb(74 222 128 / 45%); background: rgb(74 222 128 / 7%); }
.af-sim-out .af-hl b { color: #4ade80; }
.af-sim-next { margin: 10px 0 0; color: var(--text-soft); font-size: 12.5px; text-align: center; }
.af-sim-next b { color: var(--text); }

/* mesajul de sus: cum câștigi */
.af-intro-g { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; margin-top: 14px; }
.af-intro-g > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); text-align: center; }
.af-intro-g small { display: flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.af-intro-g svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.af-intro-g b { font-size: 24px; font-weight: 880; font-variant-numeric: tabular-nums; }
.af-intro-g em { color: var(--muted); font-size: 11.5px; font-style: normal; }
.af-intro-top { border-color: color-mix(in srgb, var(--tier) 55%, var(--border)) !important; background: color-mix(in srgb, var(--tier) 9%, var(--surface-raised)) !important; }
.af-intro-top b { color: var(--tier); font-size: 21px; }
@media (max-width: 900px) { .af-intro-g { grid-template-columns: 1fr 1fr; } .af-intro-top { grid-column: 1 / -1; } }

@media (max-width: 1000px) {
  .af-wallet { grid-template-columns: 1fr 1fr; } .af-w-out { grid-column: 1 / -1; }
}

/* comutatorul RECOMANDĂRI | PARTENERIAT BROKER (stilul de la DESPRE | TUTORIAL), pe toată lățimea; pe telefon textul încape pe un rând */
.af-tabs { max-width: none; }
@media (max-width: 600px) { #page-affiliate .af-tabs button { padding: 0 6px; font-size: 11.5px; letter-spacing: .02em; white-space: nowrap; } }

/* BONUS LICENȚE: 3 casete sus, 4 cuburi (BASIC / PRO / NELIMITAT / TOTAL), carduri pe modelul cu titlu metalic */
.af-strip3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-cubes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.af-cube { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 2.3; padding: 12px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.af-cube small { color: var(--text-soft); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.af-cube b { font-size: clamp(30px, 3vw, 44px); font-weight: 850; line-height: 1.05; font-variant-numeric: tabular-nums; }
.af-cube em { color: var(--muted); font-size: 11.5px; font-style: normal; font-weight: 650; }
.af-c-pro { border-color: color-mix(in srgb, #7dd3fc 45%, var(--border-strong)); }
.af-c-unlimited { border-color: color-mix(in srgb, #fde68a 50%, var(--border-strong)); }
.af-c-total { border-color: color-mix(in srgb, #4ade80 45%, var(--border-strong)); background: color-mix(in srgb, #4ade80 6%, var(--surface)); }
.af-c-total b { color: #4ade80; }

.af-grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-card2 { gap: 12px; border-color: color-mix(in srgb, var(--tier) 55%, var(--border-strong)); }
.af-head2 { display: flex; align-items: center; gap: 10px; }
.af-head2 i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tier) 60%, transparent)); }
.af-head2 i:last-child { transform: scaleX(-1); }
.af-head2 .af-emb { width: 60px; height: 60px; margin: 0; }
.af-card2 .af-title { margin: 0; font-size: clamp(30px, 2.6vw, 40px); font-weight: 900; letter-spacing: .06em; line-height: 1.05;
            background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--tier) 75%, #fff) 45%, color-mix(in srgb, var(--tier) 80%, #000) 100%);
            -webkit-background-clip: text; background-clip: text; color: transparent; }
.af-card2 .af-need { align-self: center; padding: 6px 26px; border-color: color-mix(in srgb, var(--tier) 70%, var(--border-strong)); }
.af-month { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 14px 14px; border: 1px solid color-mix(in srgb, var(--tier) 40%, var(--border)); border-radius: 16px;
            background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 10%, var(--surface-raised)), var(--surface-raised)); }
.af-month small, .af-chest-txt small { display: flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.af-month svg, .af-chest-txt svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--tier); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.af-month > b { font-size: 46px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.af-month > span { font-size: 15px; color: var(--text-soft); }
.af-month > span b { color: var(--text); font-variant-numeric: tabular-nums; }
.af-month em { color: var(--muted); font-style: normal; font-size: 12px; }
.af-month p { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }

/* bonus unic: cufărul se deschide la apăsare */
.af-chest { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; width: 100%; padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--tier) 60%, var(--border-strong)); border-radius: 14px;
            background: var(--surface-raised); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
@media (hover: hover) { .af-chest:hover { border-color: var(--tier); } }
.af-chest.open { border-style: solid; background: color-mix(in srgb, var(--tier) 8%, var(--surface-raised)); }
.af-chest-box { position: relative; display: grid; place-items: center; width: 64px; height: 56px; }
.af-chest-ico { width: 56px; height: 50px; overflow: visible; fill: color-mix(in srgb, var(--tier) 16%, transparent); stroke: var(--tier); stroke-width: 2.2; stroke-linejoin: round; }
.af-lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
@media (hover: hover) { .af-chest:not(.open):hover .af-lid { transform: rotate(-6deg); } }
.af-chest.open .af-lid { transform: rotate(-32deg) translateY(-2px); }
.af-chest-pct { position: absolute; left: 50%; top: 26px; padding: 2px 7px; border-radius: 99px; background: var(--tier); color: #0b0d10; font-size: 13px; font-weight: 900;
                opacity: 0; transform: translate(-50%, 6px) scale(.6); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.af-chest.open .af-chest-pct { opacity: 1; transform: translate(-50%, -26px) scale(1); }
.af-chest-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.af-chest-txt > span { font-size: 14px; color: var(--text-soft); }
.af-chest-txt > span b { color: var(--text); font-variant-numeric: tabular-nums; }
.af-chest-tap { color: var(--tier); font-size: 11px; font-style: normal; font-weight: 750; letter-spacing: .04em; }
.af-chest.open .af-chest-tap { display: none; }
.af-chest-got { display: none; color: var(--text-soft); font-size: 11.5px; font-style: normal; line-height: 1.4; }
.af-chest.open .af-chest-got { display: block; animation: af-pop .35s ease; }
.af-chest.is-locked { cursor: default; }
.af-chest.is-locked .af-chest-ico { opacity: .55; }
.af-chest.is-locked .af-chest-tap { color: var(--muted); }
@media (hover: hover) { .af-chest.is-locked:hover { border-color: color-mix(in srgb, var(--tier) 60%, var(--border-strong)); } }
@media (hover: hover) { .af-chest.is-locked:hover .af-lid { transform: none; } }
.af-chest-lk { position: absolute; right: 0; bottom: 2px; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); }
.af-chest-lk svg { width: 12px; height: 12px; fill: none; stroke: var(--text-soft); stroke-width: 2; }
.af-chest.shake .af-chest-box { animation: af-shake .45s ease; }
@keyframes af-shake { 20%, 60% { transform: translateX(-4px) rotate(-4deg); } 40%, 80% { transform: translateX(4px) rotate(4deg); } }
@keyframes af-pop { from { opacity: 0; transform: translateY(-4px); } }

.af-card2 .af-wallet, .af-grid2 + .af-wallet { margin-top: 16px; }

@media (max-width: 1400px) { .af-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .af-cubes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .af-strip3 { grid-template-columns: 1fr; } }
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1400px) { .af-grid2 { grid-template-columns: 1fr; } .af-strip3 { grid-template-columns: 1fr; } .af-cube { aspect-ratio: auto; padding: 14px 10px; } }

/* PANOU ADMIN → „De plătit” (parteneri) */
.pp-box { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; padding: 14px 18px; border: 1px solid rgb(74 222 128 / 45%); border-radius: 16px; background: var(--surface); }
.pp-box > small { color: var(--text-soft); }
.pp-item { display: grid; grid-template-columns: 1.4fr .8fr 1.6fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); }
.pp-item.is-wait { opacity: .7; }
.pp-who, .pp-bal { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-who span, .pp-who em, .pp-bal em, .pp-bal small { color: var(--muted); font-size: 12px; font-style: normal; }
.pp-bal b { font-size: 20px; font-weight: 820; color: #4ade80; font-variant-numeric: tabular-nums; }
.pp-act { display: grid; grid-template-columns: 100px 1fr auto; gap: 8px; }
.pp-act input { min-height: 34px; }
.pp-act .button { min-height: 34px; padding: 0 12px; white-space: nowrap; }
.pp-act .button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 900px) { .pp-item { grid-template-columns: 1fr; } .pp-act { grid-template-columns: 90px 1fr; } .pp-act .button { grid-column: 1 / -1; } }

/* „Cum funcționează”: o casetă care se deschide (pagina rămâne curată) */
.af-howbox { margin-bottom: 16px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.af-howbox summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.af-howbox summary::-webkit-details-marker { display: none; }
.af-howbox summary b { display: block; font-size: 15px; }
.af-howbox summary small { display: block; color: var(--muted); font-size: 12px; }
.af-howbox summary > span:nth-child(2) { flex: 1; min-width: 0; }
.af-chev { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--text-soft); stroke-width: 2; transition: transform .2s; }
.af-howbox[open] .af-chev { transform: rotate(180deg); }
.af-howbody { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 16px; animation: af-pop .3s ease; }
.af-howlead, .af-howtxt p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.6; }
.af-howtxt p + p { margin-top: 8px; }
.af-intro-g { grid-template-columns: 1fr 1.4fr; margin-top: 0; }

/* pașii, cu săgețile care pâlpâie între ei */
.af-flow-row { display: flex; flex-direction: column; gap: 0; }
.af-fstep { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface-raised); }
.af-fstep b { font-size: 14px; }
.af-fstep p { margin: 2px 0 0; color: var(--text-soft); font-size: 12.5px; line-height: 1.45; }
.af-num { flex: 0 0 auto; width: 34px; height: 34px; margin: 0; font-size: 17px; }
.af-rules { margin: 0; padding: 0; list-style: none; }
.af-rules li { position: relative; margin-bottom: 8px; padding-left: 20px; color: var(--text-soft); font-size: 13px; line-height: 1.55; }
.af-rules li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px rgb(74 222 128 / 50%); }

/* 3 săgeți care pâlpâie (ca la DESPRE) */
.af-down { display: grid; justify-items: center; justify-self: center; padding: 8px 0 4px; }
.af-down i { display: block; width: 13px; height: 13px; margin-top: -5px; border-right: 4px solid var(--metal-strong, var(--text)); border-bottom: 4px solid var(--metal-strong, var(--text)); transform: rotate(45deg); opacity: .15; animation: af-blink 1.2s infinite; }
.af-down i:nth-child(2) { animation-delay: .2s; }
.af-down i:nth-child(3) { animation-delay: .4s; }
@keyframes af-blink { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .af-down i { animation: none; opacity: .8; } }
/* între carduri: doar când sunt unul sub altul (telefon / tabletă) */
.af-grid > .af-down { display: none; }
.af-strip .af-stat em { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-style: normal; font-weight: 650; }

/* simulatorul pe toată lățimea: alegerea în stânga, rezultatul în dreapta */
.af-sim { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin-top: 16px; }
.af-sim h3, .af-sim-sub { grid-column: 1 / -1; }
.af-sim .af-sim-lv { margin-top: 0; }
@media (max-width: 900px) { .af-sim { grid-template-columns: 1fr; } .af-sim .af-sim-lv { margin-top: 14px; } }

/* TELEFON / TABLETĂ: totul mai compact */
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1400px) {
  .af-grid { gap: 0; }
  .af-grid > .af-down { display: grid; }
  .af-strip3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .af-strip3 .af-stat:first-child { grid-column: 1 / -1; }
  .af-stat { gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .af-stat .af-ico { width: 34px; height: 34px; border-radius: 10px; }
  .af-stat .af-ico svg { width: 17px; height: 17px; }
  .af-stat b { margin-top: 2px; font-size: 16px; }
  .af-stat small { font-size: 11px; }
  .af-code button { width: 26px; height: 26px; }
  .af-cubes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
  .af-cube { padding: 9px 2px; border-radius: 12px; gap: 2px; }
  .af-cube small { font-size: 9.5px; letter-spacing: .03em; }
  .af-cube b { font-size: 22px; }
  .af-cube em { font-size: 9px; line-height: 1.2; }
  .af-howbox summary { padding: 10px 12px; }
  .af-howbody { padding: 0 12px 12px; }
  .af-card { gap: 10px; padding: 16px 14px 14px; border-radius: 16px; }
  .af-emb { width: 54px; height: 54px; margin-bottom: 2px; }
  .af-card h3 { font-size: 18px; margin-bottom: 4px; }
  .af-desc { font-size: 12.5px; }
  .af-money { padding: 9px 4px; }
  .af-money b { font-size: 18px; }
  .af-prog, .af-lock { padding: 9px 11px; }
  .af-head2 .af-emb { width: 48px; height: 48px; }
  .af-card2 .af-title { font-size: 26px; }
  .af-card2 .af-need { padding: 4px 18px; }
  .af-month { padding: 12px 10px 10px; }
  .af-month > b { font-size: 34px; }
  .af-month > span { font-size: 14px; }
  .af-chest { padding: 10px 12px; }
  .af-chest-box { width: 52px; height: 46px; }
  .af-chest-ico { width: 46px; height: 41px; }
  .af-wallet { padding: 12px; gap: 10px; }
  .af-w b { font-size: 17px; }
  .af-intro-g { grid-template-columns: 1fr; }
  .af-intro-top { grid-column: auto; }
}

/* simulatorul: 3 rezultate pe un rând (fără bonusul unic — rămâne surpriză în cufăr) */
.af-sim-out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* TELEFON: soldul și simulatorul compacte */
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1400px) {
  .af-wallet { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; }
  .af-w { flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .af-w .af-ico { display: none; }
  .af-w small { font-size: 10.5px; line-height: 1.2; }
  .af-w b { margin-top: 2px; font-size: 15px; }
  .af-w-out { grid-column: 1 / -1; gap: 4px; }
  .af-w-out .button { min-height: 36px; }
  .af-w-out small { font-size: 10.5px; }
  .af-sim { margin-top: 12px; padding: 12px; }
  .af-sim h3 { margin-bottom: 4px; font-size: 14px; }
  .af-sim-sub { margin: 0 0 8px; font-size: 11.5px; }
  .af-sim-in { gap: 6px; }
  .af-sim-row { padding: 5px 6px 5px 10px; border-radius: 10px; }
  .af-sim-row span b { font-size: 12.5px; }
  .af-sim-row span em { font-size: 10.5px; }
  .af-stepper button { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; }
  .af-stepper input { width: 48px; height: 30px; }
  .af-sim .af-sim-lv { margin: 10px 0 8px; padding: 6px; }
  .af-sim-lv b { font-size: 16px; }
  .af-sim-out { gap: 6px; }
  .af-sim-out > div { padding: 8px 4px; border-radius: 10px; }
  .af-sim-out small { font-size: 10px; line-height: 1.2; }
  .af-sim-out b { font-size: 15px; }
  .af-sim-next { margin-top: 8px; font-size: 11.5px; }
}

/* Bonus licențe: doar codul și nivelul, alături (invitații se văd oricum în cuburi) */
.af-strip2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1400px) {
  .af-strip2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .af-strip2 .af-stat { align-items: flex-start; }
  .af-strip2 .af-code { flex-wrap: wrap; }
}

/* LINK DE INVITAȚIE: fereastra de la „Copiază” (link + cod, fiecare cu butonul lui) */
.af-share { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: minmax(0, 440px); justify-content: center; align-items: center; padding: 16px; background: rgb(0 0 0 / 45%); }   /* centrată: linkul lung nu mai lățește fereastra */
.af-share-box { width: min(440px, 100%); padding: 18px 18px 20px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.af-share-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.af-share-head b { font-size: 17px; }
.af-share-x { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
@media (hover: hover) { .af-share-x:hover { color: var(--text); } }
.af-share-box p { margin: 6px 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.af-share-box small { display: block; margin: 10px 0 6px; color: var(--muted); font-size: 12px; }
.af-share-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-raised); }
.af-share-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--text); }
.af-share-row button { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .af-share-row button:hover { border-color: var(--muted); } }
.af-share-row button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
