/* Quiet, modern dashboard layer. Loaded last so it resolves older stacked themes. */
body.ca-club-panel{--ca-ink:#17383a;--ca-muted:#6f807d;--ca-line:#dde9e3;--ca-brand:#0a6063;--ca-lime:#c9f05a}
.ca-tour-replay{font:inherit;cursor:pointer}.ca-tour-replay .cic{width:14px;height:14px}

/* Club dashboard */
body.ca-dashboard-refresh .main{max-width:1440px;margin-inline:auto}
body.ca-dashboard-refresh .ds-work{border:1px solid rgba(208,226,217,.88);border-radius:22px;background:linear-gradient(145deg,#fff,#f7fbf9);box-shadow:0 12px 34px rgba(26,66,62,.07)}
body.ca-dashboard-refresh .ds-work-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
body.ca-dashboard-refresh .ds-work-item{min-height:76px;border-radius:16px;box-shadow:none}
body.ca-dashboard-refresh .ds-work-copy small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.ca-dashboard-refresh .ds-setup-collapsible{overflow:hidden;border:1px solid #e0eae5;border-radius:17px;background:rgba(255,255,255,.75)}
body.ca-dashboard-refresh .ds-setup-collapsible .ds-setup-head{cursor:pointer;list-style:none;margin:0;padding:12px 14px;background:transparent}
body.ca-dashboard-refresh .ds-setup-collapsible .ds-setup-head::-webkit-details-marker{display:none}
body.ca-dashboard-refresh .ds-setup-collapsible .ds-setup-head:after{content:'⌄';margin-right:auto;color:#78908a;transition:transform .2s ease}
body.ca-dashboard-refresh .ds-setup-collapsible[open] .ds-setup-head:after{transform:rotate(180deg)}
body.ca-dashboard-refresh .ds-setup-list{padding:0 10px 10px}
body.ca-dashboard-refresh .ds-kpis{gap:9px;margin-block:12px}
body.ca-dashboard-refresh .ds-kpi{min-height:96px;border:1px solid rgba(216,229,222,.82);border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 8px 24px rgba(24,60,58,.045)}
body.ca-dashboard-refresh .ds-kpi-icon{opacity:.84}
body.ca-dashboard-refresh .ds-actions{gap:8px;margin-block:12px}
body.ca-dashboard-refresh .ds-act{min-height:88px;border-color:#e2ece7;background:#fff;box-shadow:0 6px 18px rgba(25,65,61,.04)}
body.ca-dashboard-refresh .ds-act:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(25,65,61,.08)}
body.ca-dashboard-refresh .club-dashboard-main{gap:14px;align-items:start}
body.ca-dashboard-refresh .club-dashboard-main>.card,body.ca-dashboard-refresh .club-dashboard-main .card{box-shadow:0 8px 26px rgba(25,65,61,.05)}
body.ca-dashboard-refresh .ds-trend{opacity:.82}
.club-user-context.club-user-top{display:flex!important;margin:-5px 2px 10px!important;padding:7px 8px!important;border-radius:12px!important;background:#f5f9f1!important;border:1px solid #e0ead9!important;box-shadow:none!important}
.club-user-context.club-user-top>span{width:27px!important;height:27px!important;border-radius:9px!important;background:#e8f6c9!important}
.club-user-context.club-user-top div{display:flex!important;align-items:baseline;gap:6px;min-width:0}
.club-user-context.club-user-top b{font-size:10.5px!important}.club-user-context.club-user-top em{font-size:8.5px!important;color:#78877d!important}

/* Compact finance period control. */
.finance-filter-card{margin-bottom:12px!important}.finance-filter-card>.bd{padding:9px 11px!important}.finance-filter{display:grid!important;grid-template-columns:minmax(145px,220px) auto auto minmax(180px,1fr)!important;align-items:end!important;gap:7px!important}.finance-filter .fg{margin:0!important}.finance-filter label{margin-bottom:3px!important;font-size:9.5px!important}.finance-filter input{min-height:36px!important;padding:6px 9px!important}.finance-filter .btn{min-height:36px!important;padding:6px 11px!important}.finance-period{align-self:center;text-align:left;color:#788984;font-size:9.5px;white-space:nowrap}

/* Dedicated notification center */
.notification-center{display:grid;gap:14px}.notify-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px;border-radius:24px;background:linear-gradient(128deg,#073d42,#0b6868);color:#fff;box-shadow:0 18px 44px rgba(7,61,66,.18)}.notify-hero:after{content:"";position:absolute;z-index:-1;width:220px;height:220px;left:-80px;bottom:-150px;border-radius:50%;border:1px solid rgba(255,255,255,.14);box-shadow:0 0 0 38px rgba(255,255,255,.035),0 0 0 76px rgba(255,255,255,.025)}.notify-kicker{display:flex;align-items:center;gap:6px;color:#ddffa0;font-size:10px;font-weight:900}.notify-kicker .cic{width:15px;height:15px}.notify-hero h2{margin:5px 0 3px;font-size:clamp(18px,2.5vw,26px);color:#fff}.notify-hero p{max-width:650px;margin:0;color:rgba(255,255,255,.74);font-size:11.5px;line-height:1.9}.notify-hero .btn{flex:0 0 auto;background:#d8ff75;color:#17383a;border:0}.notify-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.notify-stats>div{padding:15px;border:1px solid #e0eae5;border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(24,60,58,.04)}.notify-stats b{display:block;color:#0a6063;font-size:20px}.notify-stats span{color:#71827e;font-size:10px}.notify-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px;align-items:start}.notify-grid .card{margin:0;box-shadow:0 10px 30px rgba(24,60,58,.055)}.notify-help{margin:0 0 13px;padding:10px 12px;border-radius:12px;background:#f4f8f6;color:#60736e;font-size:10.5px;line-height:1.85}.notify-counter{display:block;text-align:left;color:#84938f;font-size:9.5px}.notification-center textarea{resize:vertical;min-height:92px}

/* Player dashboard: stable logo, five clear destinations and calmer cards. */
#player-dashboard{background:linear-gradient(180deg,#f5faf7 0,#f8fafc 44%,#f4f7f6 100%)}
#player-dashboard .portal-card{max-width:1120px;margin-inline:auto}
#player-dashboard .topbar{gap:12px;border:1px solid rgba(214,229,221,.88)!important;border-radius:20px!important;background:rgba(255,255,255,.9)!important;box-shadow:0 10px 30px rgba(22,62,58,.06)!important}
#player-dashboard .pf-brand{display:flex;align-items:center;gap:11px;min-width:0}
#player-dashboard .pf-brand>div:last-child{min-width:0}
#player-dashboard .pf-brand-logo{position:relative!important;inset:auto!important;isolation:isolate;display:grid!important;place-items:center!important;flex:0 0 52px!important;width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;margin:0!important;padding:6px!important;box-sizing:border-box!important;overflow:hidden!important;transform:none!important}
#player-dashboard .pf-brand-logo:before,#player-dashboard .pf-brand-logo:after{display:none!important}
#player-dashboard .pf-brand-logo img{position:static!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;max-width:40px!important;max-height:40px!important;margin:auto!important;object-fit:contain!important;transform:none!important}
#player-dashboard .topbar h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px!important}
#player-dashboard .topbar p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#player-dashboard .nx-player-shell{margin-top:12px}
#player-dashboard .nx-player-nav{border:1px solid #dfeae4;background:rgba(255,255,255,.9);box-shadow:0 8px 25px rgba(22,62,58,.05)}
#player-dashboard .nx-player-panel{animation:caPanelIn .32s cubic-bezier(.22,1,.36,1)}
#player-dashboard .nx-panel-title{margin-bottom:10px;color:#244a48;font-size:12px}
#player-dashboard .pf-welcome{margin:0 0 12px;min-height:auto;border-radius:21px;background:linear-gradient(125deg,#073d42,#0a6767);box-shadow:0 14px 38px rgba(7,61,66,.14)}
#player-dashboard .pf-overview{gap:10px}
#player-dashboard .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:10px}
#player-dashboard .cards .stat{min-height:96px;border:1px solid #e0eae5;background:#fff;box-shadow:0 7px 22px rgba(24,60,58,.04)}
#player-dashboard .ca-slot-alerts{margin:0}
#player-dashboard .ca-slot-alerts .bd{padding:14px}
#player-dashboard .ca-push-device{background:linear-gradient(135deg,#f1f8e7,#f6fbf8)}
#player-dashboard .pf-money-note{margin-top:0}
#player-dashboard .nx-dock{backdrop-filter:blur(18px);background:rgba(255,255,255,.91)}
.bk-watch-notice{margin:0 0 10px;padding:10px 12px;border-radius:12px;background:#f4f7f6;color:#596e69;font-size:10.5px;text-align:center}.bk-watch-notice.ok{background:#eefbdd;color:#486700}.bk-watch-notice.warn{background:#fff7df;color:#805900}.bk-watch-notice.bad{background:#fff0f0;color:#9d3e3e}
#public-booking .bk-hero.bk-motion{position:relative;z-index:500!important;overflow:visible!important}#public-booking .bk-hero-top{position:relative;z-index:510}#public-booking .nx-menu{z-index:520!important}#public-booking .nx-menu-panel{z-index:530!important}

/* First-use tour */
.ca-tour-backdrop{position:fixed;inset:0;z-index:1190;background:rgba(6,23,28,.48);backdrop-filter:blur(2px);animation:caFadeIn .2s ease}.ca-tour-card{position:fixed;z-index:1200;right:50%;bottom:28px;transform:translateX(50%);width:min(440px,calc(100vw - 24px));box-sizing:border-box;padding:17px;border:1px solid rgba(218,233,225,.95);border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(6,29,32,.28);direction:rtl;color:#193b3d;animation:caTourIn .32s cubic-bezier(.22,1,.36,1)}.ca-tour-progress{display:flex;align-items:center;justify-content:space-between;color:#7b8c88;font-size:9.5px}.ca-tour-progress span:first-child{color:#658400;font-weight:900}.ca-tour-card h2{margin:8px 0 4px;font-size:16px;color:#173d3f}.ca-tour-card p{margin:0;color:#687b77;font-size:11px;line-height:1.9}.ca-tour-actions{display:flex;align-items:center;gap:7px;margin-top:14px}.ca-tour-actions button{border:0;border-radius:10px;padding:9px 12px;background:#173f43;color:#fff;font:850 10.5px Vazirmatn,Tahoma,sans-serif;cursor:pointer}.ca-tour-actions .secondary{background:#eef4f1;color:#49605a}.ca-tour-actions .skip{margin-right:auto;background:transparent;color:#84928f}.ca-tour-target{position:relative!important;z-index:1195!important;outline:4px solid rgba(216,255,117,.92)!important;outline-offset:5px!important;border-radius:16px!important;box-shadow:0 0 0 9px rgba(216,255,117,.16)!important}
@keyframes caPanelIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes caFadeIn{from{opacity:0}to{opacity:1}}@keyframes caTourIn{from{opacity:0;transform:translate(50%,18px) scale(.98)}to{opacity:1;transform:translate(50%,0) scale(1)}}

@media(max-width:900px){.notify-grid{grid-template-columns:1fr}.notify-stats{grid-template-columns:1fr 1fr}}
@media(max-width:640px){body.ca-dashboard-refresh .ds-kpis{grid-template-columns:1fr 1fr}body.ca-dashboard-refresh .ds-kpi{min-height:86px}body.ca-dashboard-refresh .ds-kpi-sub{display:none}.finance-filter{grid-template-columns:minmax(115px,1fr) auto auto!important}.finance-filter .btn{padding-inline:9px!important}.finance-period{grid-column:1/-1;text-align:right;margin-top:1px}.notify-hero{align-items:flex-start;flex-direction:column;padding:18px}.notify-hero .btn{width:100%;justify-content:center}.notify-stats>div{padding:12px}.notify-stats b{font-size:17px}#player-dashboard .portal-card{padding-inline:9px!important}#player-dashboard .topbar{align-items:center!important;padding:10px!important}#player-dashboard .pf-brand{max-width:calc(100% - 58px)}#player-dashboard .pf-brand-logo{flex-basis:44px!important;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;border-radius:14px!important}#player-dashboard .topbar h1{font-size:12px!important}#player-dashboard .topbar p{max-width:190px;font-size:9px!important}#player-dashboard .cards{grid-template-columns:1fr}#player-dashboard .cards .stat{min-height:auto}#player-dashboard .pf-welcome{padding:16px}.ca-tour-card{bottom:92px}}
@media(prefers-reduced-motion:reduce){#player-dashboard .nx-player-panel,.ca-tour-backdrop,.ca-tour-card{animation:none!important}body.ca-dashboard-refresh .ds-act:hover{transform:none}}
#public-booking .bk-cart-head{
  margin:0!important;
  padding:0 0 12px!important;
  background:transparent!important;
  border-radius:0!important;
  border-bottom:1px solid rgba(27,39,52,.09)!important;
  box-shadow:none!important;
}
#public-booking .bk-cart-head .bk-cart-ball{box-shadow:0 7px 16px rgba(132,177,0,.13)!important}
#public-booking .bk-cart-head .bk-cart-count{min-width:26px!important;height:26px!important}

/* Mobile data lists become native cards instead of nested horizontal scrollers. */
@media(max-width:600px){
  .card:has(.mobile-card-table)>.bd{padding:7px!important}
  .card:has(.mobile-card-table) .table-wrap{max-height:none!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .mobile-card-table{display:block!important;width:100%!important;min-width:0!important;border-spacing:0!important}
  .mobile-card-table thead{display:none!important}.mobile-card-table tbody{display:grid!important;gap:7px!important}
  .mobile-card-table tbody tr{display:grid!important;grid-template-columns:1fr 1fr;gap:6px 8px;padding:10px;border:1px solid #dfe9e4;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(29,64,59,.04)}
  .mobile-card-table tbody td{display:block!important;min-width:0!important;padding:4px 0!important;border:0!important;background:transparent!important;font-size:9.5px!important;line-height:1.5!important}
  .mobile-card-table tbody td:before{display:block;color:#84918d;font-size:8.5px;font-weight:800;margin-bottom:2px}
  .mobile-card-table tbody td:first-child{grid-column:1/-1;padding-bottom:7px!important;border-bottom:1px solid #edf2ef!important}.mobile-card-table tbody td:first-child:before{display:none}
  .mobile-card-table tbody td:last-child{grid-column:1/-1;padding-top:7px!important;border-top:1px solid #edf2ef!important}
  .mobile-card-table .muted{font-size:8.5px!important;line-height:1.45!important}.mobile-card-table .badge{font-size:8.5px!important;padding:3px 6px!important}
  .mobile-card-table td:last-child .actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px!important}
  .mobile-card-table td:last-child .actions .btn{width:100%!important;min-width:0!important;min-height:32px!important;height:32px!important;padding:0 6px!important;font-size:8.5px!important;gap:4px!important;box-shadow:none!important}
  .mobile-card-table td:last-child .actions .btn:after{content:attr(title)}
  .customer-mobile-cards td:nth-child(2):before{content:'نوع و تخفیف'}.customer-mobile-cards td:nth-child(3):before{content:'وضعیت مالی'}.customer-mobile-cards td:nth-child(4):before{content:'پورتال امن'}
  .class-mobile-cards td:nth-child(2):before{content:'مربی'}.class-mobile-cards td:nth-child(3):before{content:'زمین'}.class-mobile-cards td:nth-child(4):before{content:'برنامه'}.class-mobile-cards td:nth-child(5):before{content:'ظرفیت'}.class-mobile-cards td:nth-child(6):before{content:'هزینه'}
  .class-mobile-cards td:nth-child(4){grid-column:1/-1}.class-mobile-cards td:last-child .actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}.class-mobile-cards td:last-child .actions .btn:not([title]):after{content:''}
  .coachpay-mobile-cards td:nth-child(2):before{content:'جلسات'}.coachpay-mobile-cards td:nth-child(3):before{content:'ساعت'}.coachpay-mobile-cards td:nth-child(4):before{content:'نرخ/ساعت'}.coachpay-mobile-cards td:nth-child(5):before{content:'ناخالص'}.coachpay-mobile-cards td:nth-child(6):before{content:'کمیسیون'}.coachpay-mobile-cards td:nth-child(7):before{content:'خالص'}.coachpay-mobile-cards td:nth-child(8):before{content:'تسویه‌شده'}.coachpay-mobile-cards td:nth-child(9):before{content:'ثبت تسویه'}
  .coachpay-mobile-cards td:last-child form{display:grid!important;grid-template-columns:1fr auto;gap:6px!important}.coachpay-mobile-cards td:last-child input{width:100%!important;min-height:36px!important}.coachpay-mobile-cards td:last-child .btn{min-height:36px!important}
}

@media(max-width:600px){
  .card:has(.ca-mobile-list)>.bd{padding:7px!important}.card:has(.ca-mobile-list) .table-wrap{max-height:none!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .ca-mobile-list{display:block!important;width:100%!important;min-width:0!important;border-spacing:0!important}.ca-mobile-list thead{display:none!important}.ca-mobile-list tbody{display:grid!important;gap:7px!important}
  .ca-mobile-list tbody tr{display:grid!important;grid-template-columns:1fr 1fr;gap:6px 8px;padding:10px;border:1px solid #dfe9e4;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(29,64,59,.04)}
  .ca-mobile-list tbody td{display:block!important;min-width:0!important;padding:4px 0!important;border:0!important;background:transparent!important;font-size:9.5px!important;line-height:1.5!important;border-radius:0!important}
  .ca-mobile-list tbody td:before{content:attr(data-ca-label);display:block;color:#84918d;font-size:8.5px;font-weight:800;margin-bottom:2px}.ca-mobile-list tbody td:first-child{grid-column:1/-1;padding-bottom:7px!important;border-bottom:1px solid #edf2ef!important}.ca-mobile-list tbody td:last-child:has(.actions),.ca-mobile-list tbody td:last-child:has(form){grid-column:1/-1;padding-top:7px!important;border-top:1px solid #edf2ef!important}
  .ca-mobile-list tbody tr:has(.empty){display:block!important;padding:0;border:0;box-shadow:none}.ca-mobile-list tbody tr:has(.empty) td{display:block!important;border:0!important}.ca-mobile-list .muted{font-size:8.5px!important;line-height:1.45!important}.ca-mobile-list .badge{font-size:8.5px!important;padding:3px 6px!important}.ca-mobile-list .actions{flex-wrap:wrap!important;gap:5px!important}
}
