/* ============================================================
   M. WELS — Affiliate Programme Styles
   ============================================================ */

/* ---- Extra variables ---- */
:root {
  --btn-accent-bg: #CC0000;
  --btn-accent-hover: #AA0000;
}

/* ============ SHARED UTILITIES ============ */
.nav-active { color: var(--primary) !important; font-weight: 700 !important; }
.btn--sm { padding: 8px 14px; font-size: 0.82rem; }
.btn--accent { background: var(--accent); color: white; border-color: var(--accent); }
.btn--accent:hover { background: var(--btn-accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(204,0,0,.3); color: white; }
.pulse-anim-red { animation: pulseRed 2.5s infinite; }
@keyframes pulseRed { 0%,100%{ box-shadow: 0 0 0 0 rgba(204,0,0,.4); } 50%{ box-shadow: 0 0 0 14px rgba(204,0,0,0); } }
.gradient-text-red { background: linear-gradient(135deg, var(--accent), #FF6B6B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-green { color: var(--success) !important; }
.hidden { display: none !important; }
.toast { position: fixed; bottom: 28px; right: 28px; background: var(--dark); color: white; padding: 14px 22px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; z-index: 9999; box-shadow: var(--shadow-lg); transition: var(--transition); }
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }

/* ============ AFFILIATE HERO ============ */
.aff-hero { padding: 140px 0 80px; position: relative; overflow: hidden; background: var(--dark); }
.aff-hero__bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(204,0,0,.12) 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(26,139,196,.08) 0%, transparent 50%); }
.aff-hero__inner { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; position: relative; z-index: 1; }
.aff-hero__content { flex: 1; min-width: 300px; max-width: 580px; }
.aff-hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(204,0,0,.15); color: #FF6B6B; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 16px; border-radius: 100px; margin-bottom: 24px; border: 1px solid rgba(204,0,0,.25); }
.aff-hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 900; color: white; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.aff-hero__content > p { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 28px; line-height: 1.7; }
.aff-hero__perks { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.perk { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 100px; padding: 8px 16px; color: rgba(255,255,255,.8); font-size: 0.85rem; }
.perk i { color: var(--primary-light); font-size: 0.8rem; }
.perk strong { color: white; }

/* Earnings Card */
.aff-hero__visual { flex: 1; min-width: 280px; display: flex; justify-content: center; }
.earnings-card { background: linear-gradient(145deg, #1A2D3D, #0D1A22); border: 1px solid rgba(26,139,196,.25); border-radius: var(--radius-xl); padding: 32px; width: 100%; max-width: 340px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ec-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ec-title { color: rgba(255,255,255,.55); font-size: 0.82rem; font-weight: 600; }
.ec-badge { background: rgba(34,197,94,.15); color: #22C55E; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; border: 1px solid rgba(34,197,94,.2); }
.ec-amount { font-size: 2.8rem; font-weight: 900; color: white; margin: 8px 0 20px; }
.ec-amount span { color: var(--success); }
.ec-stats { display: flex; gap: 20px; margin-bottom: 24px; }
.ec-stat { text-align: center; flex: 1; }
.ec-stat-n { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary-light); }
.ec-stat span { font-size: 0.75rem; color: rgba(255,255,255,.45); }
.ec-link-preview { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 12px 14px; color: rgba(255,255,255,.55); font-size: 0.82rem; }
.ec-link-preview i { color: var(--primary-light); }
.ec-link-preview strong { color: white; }

/* ============ HOW IT WORKS ============ */
.aff-how { padding: 90px 0; background: var(--light-1); }
.aff-steps { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; justify-content: center; }
.aff-step { flex: 1; min-width: 180px; max-width: 220px; text-align: center; padding: 24px 16px; position: relative; }
.aff-step__num { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; background: var(--primary); color: white; border-radius: 50%; font-size: 0.85rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.aff-step__icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 16px; margin: 24px auto 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; }
.aff-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.aff-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.aff-step__arrow { display: flex; align-items: center; padding: 0 4px; margin-top: 60px; color: var(--text-light); font-size: 1.1rem; }
@media (max-width: 640px) { .aff-step__arrow { display: none; } }

/* ============ TIERS ============ */
.aff-tiers { padding: 90px 0; background: white; }
.tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.tier-card { background: var(--light-1); border: 2px solid var(--light-2); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; position: relative; transition: var(--transition); }
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tier-featured { background: linear-gradient(145deg, #fff5f2, #ffe8e0); border-color: var(--accent); }
.tier-badge-top { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; font-size: 0.72rem; font-weight: 700; padding: 4px 14px; border-radius: 100px; white-space: nowrap; }
.tier-icon { font-size: 2rem; margin-bottom: 12px; }
.tier-bronze .tier-icon { color: #CD7F32; }
.tier-silver .tier-icon { color: #9CA3AF; }
.tier-gold .tier-icon { color: #F59E0B; }
.tier-platinum .tier-icon { color: #6B7280; }
.tier-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.tier-sales { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.tier-commission { font-size: 2.5rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.tier-card > p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.tier-tag { font-size: 0.75rem; font-weight: 600; background: rgba(26,139,196,.1); color: var(--primary); padding: 4px 12px; border-radius: 100px; display: inline-block; margin-bottom: 16px; }
.tier-perks { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.tier-perks li { font-size: 0.83rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.tier-perks i { color: var(--success); font-size: 0.72rem; flex-shrink: 0; }

/* ============ PRODUCT PREVIEWS ============ */
.aff-products-preview { padding: 90px 0; background: var(--light-1); }
.prod-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.prev-card { background: white; border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; border: 1px solid var(--light-2); transition: var(--transition); }
.prev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prev-emoji { font-size: 2.5rem; margin-bottom: 12px; }
.prev-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.prev-price { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.prev-comm { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2); border-radius: var(--radius); padding: 8px 12px; font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; justify-content: center; }
.prev-comm i { color: var(--success); }
.prev-comm strong { color: var(--success); }

/* ============ JOIN SECTION ============ */
.aff-join { padding: 90px 0; background: var(--dark); }
.aff-join__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.aff-join__info .join-logo { height: 56px; width: auto; margin-bottom: 24px; filter: brightness(0) invert(1); }
.aff-join__info h2 { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 12px; }
.aff-join__info > p { color: rgba(255,255,255,.55); margin-bottom: 28px; line-height: 1.7; }
.join-reasons { display: flex; flex-direction: column; gap: 12px; }
.jr { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.7); font-size: 0.9rem; }
.jr i { color: var(--success); font-size: 0.9rem; flex-shrink: 0; }

.aff-join__form { background: white; border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg); }
.join-form h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.join-form h3 i { color: var(--primary); }
.join-form__sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.jf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.jf-full { grid-column: 1 / -1; }
.already-member { text-align: center; margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); }
.already-member a { color: var(--primary); font-weight: 600; }

/* Success box */
.join-success { text-align: center; padding: 16px 0; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }
.join-success h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.join-success > p { color: var(--text-muted); margin-bottom: 24px; }
.your-link-box { background: var(--light-1); border-radius: var(--radius-lg); padding: 20px; border: 2px solid rgba(26,139,196,.2); margin-bottom: 24px; text-align: left; }
.your-link-box label { font-size: 0.82rem; font-weight: 700; color: var(--text-main); display: block; margin-bottom: 10px; }
.link-copy-row { display: flex; gap: 10px; }
.link-copy-row input { flex: 1; padding: 10px 12px; border: 2px solid var(--light-2); border-radius: var(--radius); font-size: 0.85rem; background: white; color: var(--text-main); outline: none; }
.your-code-row { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }
.your-code-row strong { color: var(--primary); font-size: 1rem; letter-spacing: 1px; }

/* ============ FAQ ============ */
.aff-faq { padding: 90px 0; background: var(--light-1); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: white; border: 1px solid var(--light-2); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.faq-item.open { border-color: rgba(26,139,196,.25); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; background: none; border: none; padding: 20px 24px; text-align: left; font-size: 0.97rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); transition: var(--transition); }
.faq-q:hover { color: var(--primary); }
.faq-item.open .faq-q { color: var(--primary); }
.faq-item.open .fa-chevron-down { transform: rotate(180deg); color: var(--primary); }
.faq-q i { transition: transform .25s ease; color: var(--text-muted); }
.faq-a { display: none; padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
.faq-a code { background: var(--light-1); padding: 2px 8px; border-radius: 4px; font-size: 0.85rem; color: var(--primary); }

/* ============ SHOP PAGE ============ */
.shop-hero { padding: 110px 0 50px; background: linear-gradient(160deg, #fff 55%, #EEF7FC 100%); }
.shop-hero__inner { text-align: center; }
.shop-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.shop-tab { padding: 10px 20px; border-radius: 100px; border: 2px solid var(--light-2); background: white; font-size: 0.87rem; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.shop-tab:hover { border-color: var(--primary); color: var(--primary); }
.shop-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

.shop-grid-section { padding: 50px 0 90px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.products-loading { grid-column: 1/-1; text-align: center; padding: 60px; color: var(--text-muted); font-size: 1.1rem; }

.prod-card { background: white; border-radius: var(--radius-lg); padding: 28px 22px; border: 1px solid var(--light-2); position: relative; transition: var(--transition); display: flex; flex-direction: column; gap: 10px; }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(26,139,196,.2); }
.prod-badge { position: absolute; top: 14px; right: 14px; background: var(--accent); color: white; font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.5px; }
.prod-emoji { font-size: 2.8rem; line-height: 1; }
.prod-cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
.prod-name { font-size: 1.05rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.prod-desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.prod-price { font-size: 1.4rem; font-weight: 900; color: var(--primary); }
.prod-commission { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2); border-radius: var(--radius); padding: 8px 12px; font-size: 0.78rem; color: #15803D; display: flex; align-items: center; gap: 6px; }
.prod-actions { margin-top: auto; }

/* Referral notices */
.ref-banner { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 12px 0; position: sticky; top: 76px; z-index: 99; }
.ref-banner__inner { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.ref-banner i { font-size: 1.1rem; flex-shrink: 0; }
.ref-banner span { font-size: 0.88rem; flex: 1; }
.ref-banner button { background: none; border: none; color: white; cursor: pointer; opacity: .7; font-size: 1rem; }
.shop-affiliate-notice { background: rgba(26,139,196,.08); border: 1px solid rgba(26,139,196,.2); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--text-muted); }
.shop-affiliate-notice i { color: var(--primary); flex-shrink: 0; }
.ref-code-inline { background: var(--primary); color: white; padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 0.85rem; }
.ref-notice-small { background: rgba(26,139,196,.07); border: 1px solid rgba(26,139,196,.15); border-radius: var(--radius); padding: 10px 14px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ref-notice-small i { color: var(--primary); }

/* ============ ORDER MODAL ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal { background: white; border-radius: var(--radius-xl); padding: 36px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); animation: fadeInUp .25s ease; }
.modal--success { text-align: center; max-width: 420px; }
.modal--success .success-icon { font-size: 3.5rem; color: var(--success); margin-bottom: 16px; }
.modal--success h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.modal--success p { color: var(--text-muted); margin-bottom: 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--light-1); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--light-2); }
.modal-product-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.modal-emoji { font-size: 2.5rem; }
.modal-product-header h3 { font-size: 1.1rem; font-weight: 800; }
.modal-price { font-size: 1.3rem; font-weight: 900; color: var(--primary); }
.modal-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.modal-divider { border: none; border-top: 1px solid var(--light-2); margin: 16px 0; }
.modal h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.modal-note { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* ============ DASHBOARD ============ */
.dashboard-body { background: #F0F5F9; }
.dash-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; }
.dash-login__card { background: white; border-radius: var(--radius-xl); padding: 44px 40px; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); text-align: center; border: 1px solid var(--light-2); }
.dash-login__logo { height: 56px; width: auto; margin: 0 auto 24px; }
.dash-login__card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.dash-login__card p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.92rem; }

.dash-topbar { background: white; border-bottom: 1px solid var(--light-2); padding: 12px 0; position: sticky; top: 76px; z-index: 99; box-shadow: var(--shadow-sm); }
.dash-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-welcome { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-welcome span { font-size: 0.88rem; color: var(--text-muted); }
.dash-welcome strong { font-size: 1rem; font-weight: 700; color: var(--dark); }
.dash-tier { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; border: 1px solid currentColor; opacity: .85; }
.dash-topbar__actions { display: flex; gap: 10px; }
.dash-content { padding: 32px 24px 80px; max-width: 1100px; }

/* Link card */
.dash-link-card { background: white; border-radius: var(--radius-lg); padding: 24px 28px; border: 2px solid rgba(26,139,196,.15); display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.dlc-left { flex: 1; min-width: 240px; }
.dlc-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.dlc-label i { color: var(--primary); }
.dlc-link-row { display: flex; gap: 10px; }
.dlc-input { flex: 1; padding: 10px 12px; border: 2px solid var(--light-2); border-radius: var(--radius); font-size: 0.85rem; background: var(--light-1); color: var(--text-main); outline: none; }
.dlc-code { margin-top: 8px; font-size: 0.82rem; color: var(--text-muted); }
.dlc-code strong { color: var(--primary); font-size: 0.92rem; letter-spacing: 1px; }
.dlc-share { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.dlc-share-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.dlc-share-btns { display: flex; gap: 10px; }
.share-btn { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; transition: var(--transition); }
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.share-wa { background: #25D366; }
.share-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.share-fb { background: #1877F2; }
.share-tg { background: #0088CC; }

/* Stats */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.dstat { background: white; border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--light-2); transition: var(--transition); }
.dstat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dstat__icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: white; flex-shrink: 0; }
.dstat--blue .dstat__icon { background: var(--primary); }
.dstat--purple .dstat__icon { background: #8B5CF6; }
.dstat--red .dstat__icon { background: var(--accent); }
.dstat--green .dstat__icon { background: var(--success); }
.dstat--orange .dstat__icon { background: #F59E0B; }
.dstat--teal .dstat__icon { background: #0D9488; }
.dstat__num { font-size: 1.4rem; font-weight: 800; color: var(--dark); line-height: 1; }
.dstat__label { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }

/* Dash main grid */
.dash-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.dash-card { background: white; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--light-2); box-shadow: var(--shadow-sm); }
.dash-card--full { grid-column: 1 / -1; }
.dash-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--light-2); }
.dash-card__header h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dash-card__header h3 i { color: var(--primary); }

/* Activity */
.activity-list { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.activity-empty { text-align: center; padding: 32px; color: var(--text-muted); }
.activity-empty i { font-size: 2rem; display: block; margin-bottom: 10px; opacity: .4; }
.activity-empty p { font-size: 0.88rem; }
.activity-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--light-1); border: 1px solid var(--light-2); }
.ai-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.ai-info { flex: 1; }
.ai-info strong { display: block; font-size: 0.85rem; }
.ai-info span { font-size: 0.78rem; color: var(--text-muted); }
.ai-right { text-align: right; flex-shrink: 0; }
.ai-earn { display: block; font-size: 0.85rem; font-weight: 700; color: var(--success); }
.ai-date { font-size: 0.75rem; color: var(--text-muted); }

/* Promo Tools */
.promo-tools { display: flex; flex-direction: column; gap: 12px; }
.promo-tool { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--light-1); border-radius: var(--radius); border: 1px solid var(--light-2); transition: var(--transition); }
.promo-tool:hover { border-color: var(--primary); }
.pt-icon { width: 40px; height: 40px; border-radius: 10px; background: #25D366; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: white; flex-shrink: 0; }
.pt-info { flex: 1; }
.pt-info strong { display: block; font-size: 0.87rem; margin-bottom: 2px; }
.pt-info p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* Dash products */
.dash-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* Payout */
.dash-payout { }
.payout-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pi-row { background: var(--light-1); border-radius: var(--radius); padding: 12px 16px; }
.pi-row span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.pi-row strong { font-size: 0.95rem; font-weight: 700; color: var(--dark); }
.payout-edit { padding-top: 16px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .aff-join__inner { grid-template-columns: 1fr; }
  .aff-join__info { display: none; }
  .dash-main-grid { grid-template-columns: 1fr; }
  .payout-info { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .aff-hero { padding: 110px 0 60px; }
  .jf-grid { grid-template-columns: 1fr; }
  .jf-full { grid-column: 1; }
  .tiers-grid { grid-template-columns: 1fr 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dlc-link-row { flex-direction: column; }
  .modal-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .tiers-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
}


/* ===== Store backend / product media enhancements ===== */
.prod-img{width:100%;max-width:140px;height:140px;object-fit:cover;border-radius:18px;display:block;margin:0 auto 14px;background:#f8fafc;box-shadow:0 8px 20px rgba(2,6,23,.08)}
.prod-promo{display:inline-block;background:#ecfeff;color:#0f766e;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700;margin-bottom:10px}
.modal-actions{display:flex;gap:12px;flex-wrap:wrap}
.modal-actions .btn{flex:1 1 220px}
