/* =====================================================================
   همایون — صفحه‌های مربی در موبایل (تا ۷۶۸px). دسکتاپ دست‌نخورده است.
   ===================================================================== */
@media (max-width:768px){
html body.coach-m .header{background:rgba(15,10,11,.74)!important;backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);border-bottom:1px solid rgba(232,195,90,.25)}
html body.coach-m .container{padding-inline:.95rem}

/* ---------- عنوان صفحه‌های داخلی ---------- */
html body.coach-m .page-hero{position:relative;overflow:hidden;padding:5.2rem 0 2.3rem!important;text-align:center;border-radius:0 0 34px 34px;background:radial-gradient(80% 70% at 85% 0,rgba(232,195,90,.25),transparent 70%),linear-gradient(160deg,#7a1428,#2a0b12 70%,#140709)!important;border-bottom:1px solid rgba(232,195,90,.4);box-shadow:0 20px 40px -22px rgba(0,0,0,.9)}
html body.coach-m .page-hero::after{content:"";position:absolute;width:220px;height:220px;left:-70px;bottom:-110px;border-radius:50%;border:1px dashed rgba(232,195,90,.35)}
html body.coach-m .page-hero h1{font-size:1.45rem!important;line-height:1.6;background:linear-gradient(180deg,#fff,#f1d98a);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
html body.coach-m .page-hero h1 i{-webkit-text-fill-color:#f0d060;margin-left:.35rem}
html body.coach-m .page-hero p{font-size:.88rem;opacity:.9}

/* ---------- کارت‌ها و فرم‌ها ---------- */
html body.coach-m .admin-dashboard{padding-top:1.3rem!important}
html body.coach-m .admin-card{border-radius:26px!important;padding:1.1rem 1rem!important;background:linear-gradient(170deg,#241015,#120a0c)!important;border:1px solid rgba(232,195,90,.25)!important;box-shadow:0 20px 40px -24px rgba(0,0,0,.9)}
html body.coach-m .admin-card h3{font-size:1.05rem;display:flex;align-items:center;gap:.5rem}
html body.coach-m .admin-card h3 i{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;color:#2a1706;background:linear-gradient(145deg,#f8dc83,#c8962a);font-size:.95rem}
html body.coach-m .form-row{display:grid!important;grid-template-columns:1fr!important;gap:.2rem}
html body.coach-m .form-group input,html body.coach-m .form-group select,html body.coach-m .form-group textarea{border-radius:14px!important;padding:.8rem .95rem!important;font-size:16px!important}
html body.coach-m .btn{border-radius:16px;padding:.8rem 1.1rem}
html body.coach-m .btn-primary{background:linear-gradient(135deg,#f8dc83,#c8962a)!important;color:#2a1706!important;border:0;font-weight:800;box-shadow:0 12px 26px -10px rgba(232,195,90,.6)}
html body.coach-m .admin-dashboard .container>div[style*="flex-wrap"]{display:grid!important;grid-template-columns:1fr}
html body.coach-m .admin-dashboard .container>div[style*="flex-wrap"]>.btn{justify-content:center;width:100%}
html body.coach-m .admin-card :is(table){display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}

/* ---------- داشبورد مربی ---------- */
html body.coach-m .cdx-section{padding:84px 0 2rem!important;background:radial-gradient(70% 30% at 90% 0,rgba(139,26,43,.4),transparent 70%)!important}
.cdx{display:flex;flex-direction:column;gap:1.1rem}
.cdx-hero{display:flex!important;flex-direction:column;align-items:center;gap:1.7rem!important;padding:1.4rem 1rem 1.3rem!important;border-radius:32px!important;text-align:center;background:radial-gradient(90% 50% at 50% 0,rgba(232,195,90,.25),transparent 70%),linear-gradient(165deg,#6b0f1a,#2a0b12 62%,#140709)!important;box-shadow:0 28px 56px -22px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.12)}
.cdx-portrait{max-width:150px!important}
.cdx-arch{border-radius:999px!important;aspect-ratio:1!important}
.cdx-arch::before{border-radius:999px!important}
.cdx-badge{font-size:.72rem!important;bottom:-14px!important}
.cdx-info{align-items:center;gap:.8rem!important;width:100%}
.cdx-hello{justify-content:center}
.cdx-name{font-size:1.65rem!important;line-height:1.5!important;margin:0!important}
.cdx-chips{justify-content:center}
.cdx-chips span{font-size:.76rem!important;padding:.22rem .8rem!important}
.cdx-stats{grid-template-columns:repeat(4,1fr)!important;gap:.45rem!important;width:100%}
.cdx-stat{padding:.65rem .2rem!important;border-radius:16px!important;text-align:center}
.cdx-stat b{font-size:1.3rem!important}
.cdx-stat span{font-size:.66rem!important}
.cdx-stat>i{font-size:.8rem!important}
.cdx-next{width:100%;flex-wrap:wrap;text-align:right;border-radius:22px!important;gap:.7rem!important}
.cdx-next-go{width:100%;text-align:center}

/* دسترسی سریع: بنر ویژه + کاشی‌ها */
.cdx-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.7rem!important}
.cdx-act{min-height:132px!important;padding:1rem .95rem!important;border-radius:24px!important}
.cdx-act-feature{grid-column:1/-1!important;min-height:112px!important;flex-direction:row!important;align-items:center;gap:.9rem!important}
.cdx-act-feature .cdx-act-ic{margin:0!important;flex:none}
.cdx-act-feature h3{font-size:1.1rem}
.cdx-act:last-child{grid-column:1/-1!important;min-height:96px!important}
.cdx-act p{font-size:.74rem!important;line-height:1.7!important}
.cdx-act h3{font-size:.95rem!important}
.cdx-act-ic{width:46px!important;height:46px!important}

/* پنل‌ها */
.cdx-grid{display:flex!important;flex-direction:column;gap:1.1rem!important}
.cdx-side{display:flex;flex-direction:column;gap:1.1rem!important}
.cdx-panel{border-radius:28px!important;padding:1.1rem .95rem!important;background:linear-gradient(170deg,#241015,#120a0c)!important;border:1px solid rgba(232,195,90,.25)!important;box-shadow:0 20px 40px -24px rgba(0,0,0,.9)}
.cdx-head{margin-bottom:.9rem!important}
.cdx-head h3{font-size:1.05rem!important}
.cdx-toolbar{position:sticky;top:64px;z-index:5;margin:-.2rem -.3rem .9rem!important;padding:.5rem .3rem;border-radius:20px;background:rgba(18,10,12,.85);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.cdx-search input{padding:.8rem 2.6rem .8rem 1rem!important;font-size:16px!important}
.cdx-tabs{margin-inline:-.3rem!important;padding-inline:.3rem;scrollbar-width:none}
.cdx-tabs::-webkit-scrollbar{display:none}

/* بازیکنان: ۲ ستون، اولی بزرگ */
.cdx-players{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.7rem!important}
.cdx-pl{border-radius:22px!important}
.cdx-pl-ph{aspect-ratio:1/1!important}
.cdx-pl-ph b{min-width:30px!important;height:30px!important;font-size:.82rem}
.cdx-pl-body{padding:.65rem .75rem .2rem!important}
.cdx-pl-body h4{font-size:.9rem!important;margin-bottom:.3rem!important}
.cdx-pl-tags span{font-size:.66rem!important;padding:.1rem .5rem!important}
.cdx-pl-go{margin:.5rem .6rem .7rem!important;padding:.45rem .4rem!important;font-size:.76rem!important}
.cdx-pl:first-child{grid-column:1/-1}
.cdx-pl:first-child .cdx-pl-ph{aspect-ratio:16/10!important}
.cdx-pl:first-child .cdx-pl-body h4{font-size:1.1rem!important}

/* خط زمانی */
.cdx-tl-body{border-radius:18px!important}
.cdx-tl-item:hover .cdx-tl-body{transform:none}

/* ظهور نرم */
html.cm-ready .cdx-panel,html.cm-ready .cdx-act,html.cm-ready body.coach-m .admin-card{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
html.cm-ready .cm-in{opacity:1!important;transform:none!important}
}
@media (prefers-reduced-motion:reduce){html.cm-ready .cdx-panel,html.cm-ready .cdx-act,html.cm-ready body.coach-m .admin-card{opacity:1;transform:none;transition:none}}
