:root { --tryton-red:#DC143C; --try-black:#0B0C10; --try-grey:#f3f4f6;}
#tryton-aff-dashboard { font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji"; color:#0B0C10; }
#tryton-aff-dashboard .tryton-title { font-size:28px; margin:10px 0 20px; }
.tryton-card-wrap { max-width:1000px; margin:10px auto; }
.tryton-coupon-box { background:#fff; border:1px solid #eee; border-radius:14px; padding:18px; display:inline-block; margin-bottom:16px; }
.tryton-coupon-label { color:#777; font-size:14px; }
.tryton-coupon-code { font-weight:700; font-size:16px; }
.tryton-stats { display:flex; gap:16px; margin:10px 0 10px; }
.tryton-stats .stat { background:#fff; border:1px solid #eee; border-radius:16px; padding:18px; flex:1; text-align:center; }
.tryton-stats .label { font-size:12px; color:#7b7b7b; letter-spacing:1px; }
.tryton-stats .val { font-size:26px; font-weight:800; color:var(--tryton-red); margin-top:6px; }
.tryton-links { margin:10px 0 18px; text-align:center; }
.tryton-center { text-align:center; }
.tryton-link { margin:0 8px; color:var(--tryton-red); text-decoration:none; }
.tryton-link:hover { text-decoration:underline; }
.tryton-table { width:100%; border-collapse:separate; border-spacing:0 8px; }
.tryton-table thead th { text-align:left; font-size:13px; color:#555; padding:8px; }
.tryton-table tbody tr { background:#fff; box-shadow:0 1px 0 rgba(0,0,0,.02), 0 1px 8px rgba(0,0,0,.05); }
.tryton-table td { padding:12px 10px; border-top:1px solid #eee; }
.tryton-popup { position:fixed; inset:0; background:rgba(0,0,0,.35); display:none; align-items:center; justify-content:center; z-index:99999; }
.tryton-popup.show { display:flex; }
.tryton-popup .inner { background:#fff; border-radius:16px; padding:20px; width:520px; max-width:92vw; }
.tryton-popup h3 { margin-top:0; }
.tryton-popup .content .row { padding:6px 0; border-bottom:1px dashed #eee; }


/* v2 visual upgrades */
#tryton-aff-dashboard .tryton-title { text-align:center; color: var(--tryton-red); font-weight:800; letter-spacing:0.3px; }
#tryton-aff-dashboard .tryton-subtitle { text-align:center; color: var(--try-black); opacity:0.85; margin-top:-6px; margin-bottom:16px; font-size:14px; }
.tryton-card-wrap .stat, .tryton-coupon-box, .tryton-table, .tryton-modal .box {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tryton-card-wrap .stat:hover, .tryton-coupon-box:hover, .tryton-table:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.tryton-modal .box { border-radius: 16px; }
.tryton-modal .box .header { border-bottom:1px solid #eee; padding-bottom:8px; }
.tryton-modal .box .content { max-height:60vh; overflow:auto; }


/* === Tryton Affiliate v2.1 Mobile & Popup Enhancements === */
@media (max-width:768px){
  #tryton-aff-dashboard { padding:10px; }
  .tryton-stats { flex-direction:column; gap:12px; }
  .tryton-stats .stat { width:100%; }
  .tryton-card-wrap { margin:0 auto; }
  table { font-size:14px; }
}
.tryton-modal { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; z-index:9999; }
.tryton-modal .box { background:#fff; border-radius:16px; padding:16px; max-width:90%; width:500px; box-shadow:0 10px 30px rgba(0,0,0,.15); animation:fadeIn .3s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px);} to {opacity:1; transform:translateY(0);} }
.tryton-modal .header { font-weight:700; font-size:18px; color:#DC143C; margin-bottom:10px; border-bottom:1px solid #eee; padding-bottom:6px; }
.tryton-modal .content { max-height:60vh; overflow:auto; }
.tryton-modal button.close { background:none; border:none; color:#DC143C; font-size:20px; float:right; cursor:pointer; }
