@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');

html, body {
    font-family: 'Vazirmatn', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    direction: rtl;
    background: #f0f4f8;
    margin: 0;
    padding: 0;
}

/* ─── Login Shell ─────────────────────────────────── */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

/* ─── Login Wrapper New ───────────────────────────── */
.lw-new {
    min-height: 100vh;
    background: linear-gradient(160deg, #e0f2fe 0%, #f0fdf4 40%, #fdf4ff 100%);
    position: relative;
    overflow: hidden;
}

/* حباب‌های پس‌زمینه */
.lw-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    pointer-events: none;
}
.lw-blob--1 {
    width: 320px; height: 320px;
    background: #bae6fd;
    top: -80px; right: -80px;
}
.lw-blob--2 {
    width: 260px; height: 260px;
    background: #bbf7d0;
    bottom: 60px; left: -60px;
}
.lw-blob--3 {
    width: 200px; height: 200px;
    background: #e9d5ff;
    top: 45%; right: 10%;
}

/* کارت جدید */
.lc-new {
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9) !important;
    box-shadow: 0 8px 40px rgba(100,150,255,0.12), 0 2px 12px rgba(0,0,0,0.06) !important;
    position: relative; z-index: 1;
}

/* ─── Login Card ──────────────────────────────────── */
.login-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    text-align: center;
    animation: slideUp .4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Logo ────────────────────────────────────────── */
.login-logo {
    margin-bottom: 1rem;
}

.login-logo img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* ─── Title ───────────────────────────────────────── */
.login-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 .25rem;
}

.login-sub {
    font-size: .85rem;
    color: #6b7280;
    margin: 0 0 1.75rem;
}

/* ─── Form ────────────────────────────────────────── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.login-label {
    font-size: .85rem;
    font-weight: 500;
    color: #374151;
    text-align: right;
}

.login-input {
    width: 100%;
    padding: .75rem 1rem;
    font-size: 1.05rem;
    font-family: 'Vazirmatn', monospace;
    letter-spacing: 2px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    text-align: center;
    transition: border-color .2s;
    box-sizing: border-box;
    color: #111827;
}

.login-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,.15);
}

.login-input::placeholder {
    color: #9ca3af;
    letter-spacing: 1px;
    font-size: .9rem;
}

/* ─── Error ───────────────────────────────────────── */
.login-error {
    font-size: .82rem;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: .5rem .75rem;
    margin: 0;
    text-align: right;
}

/* ─── Button ──────────────────────────────────────── */
.login-btn {
    margin-top: .4rem;
    padding: .8rem;
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.login-btn:hover:not(:disabled) {
    opacity: .9;
    transform: translateY(-1px);
}

.login-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* ─── Spinner ─────────────────────────────────────── */
.login-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── OTP ────────────────────────────────────────────── */
.otp-hint {
    font-size: .85rem;
    color: #6b7280;
    margin: 0 0 .75rem;
    text-align: center;
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-bottom: .75rem;
}

.otp-box {
    width: 52px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    transition: border-color .2s;
    color: #111827;
    font-family: monospace;
}

.otp-box:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.otp-resend {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: #6b7280;
    margin-top: .5rem;
}

.btn-link-plain {
    background: none;
    border: none;
    padding: 0;
    color: #2563eb;
    font-size: .82rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link-plain:hover { color: #1d4ed8; }

/* ─── Role Cards ─────────────────────────────────────── */
.role-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: .75rem;
}

.role-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    text-align: right;
    transition: border-color .2s, background .2s;
    font-family: inherit;
    text-decoration: none;
    color: inherit;
}

.role-card:hover,
.role-card:visited,
.role-card:active {
    text-decoration: none;
    color: inherit;
}

.role-card.role-card--disabled {
    pointer-events: none;
    opacity: .55;
}

.role-switch-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem;
    margin-bottom: .5rem;
    color: #2563eb;
    font-size: .9rem;
    font-weight: 600;
    background: #eff6ff;
    border-radius: 12px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.role-switch-loading .login-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(37,99,235,.25);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: role-switch-spin .7s linear infinite;
}

@keyframes role-switch-spin {
    to { transform: rotate(360deg); }
}

.role-card:hover { border-color: #93c5fd; background: #eff6ff; }

.role-card--active {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.role-card__logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.role-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role-card__logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.role-card__info {
    flex: 1;
}

.role-card__club {
    font-weight: 600;
    font-size: .92rem;
    color: #111827;
}

.role-card__role {
    font-size: .78rem;
    color: #6b7280;
    margin-top: 2px;
}

.role-card__check {
    color: #2563eb;
    font-size: 1.2rem;
    font-weight: 700;
}

.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.text-muted { color: #9ca3af; }

/* ══════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════ */

/* ─── Loading / Error ─────────────────────────────── */
.dash-loader {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #6b7280;
}

.dash-loader__ring {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.dash-error {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #6b7280;
    font-size: 1.5rem;
}

/* ─── Header ──────────────────────────────────────── */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.theme-girl { background: #fce7f3; }
.theme-boy  { background: #dbeafe; }

.dash-header__left {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.dash-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-avatar__icon {
    font-size: 1.8rem;
    color: #374151;
}

.dash-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 .2rem;
}

.dash-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    font-size: .78rem;
    color: #4b5563;
}

.dash-meta span { display: flex; align-items: center; gap: .25rem; }

.dash-logout {
    background: rgba(255,255,255,.6);
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #374151;
    cursor: pointer;
    flex-shrink: 0;
}

.dash-logout:hover { background: rgba(255,255,255,.9); }

/* ─── Quick Stats ─────────────────────────────────── */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .6rem;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

.dash-stat {
    background: #fff;
    border-radius: 12px;
    padding: .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.dash-stat__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dash-stat__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.dash-stat__label {
    font-size: .7rem;
    color: #9ca3af;
}

/* ─── Tabs ────────────────────────────────────────── */
.dash-tabs {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    margin-bottom: .75rem;
    scrollbar-width: none;
}

.dash-tabs::-webkit-scrollbar { display: none; }

.dash-tab {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .9rem;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    font-size: .82rem;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s;
}

.dash-tab--active {
    background: #fff;
    font-weight: 600;
}

/* ─── Content ─────────────────────────────────────── */
.dash-content {
    padding-bottom: 5rem;
}

.dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 3rem 1rem;
    color: #9ca3af;
    font-size: 1rem;
}

.dash-empty i { font-size: 2.5rem; }

/* ─── Movements ───────────────────────────────────── */
.equip-group {
    background: #fff;
    border-radius: 14px;
    margin-bottom: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.equip-group__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-right: 4px solid;
    background: #fafafa;
}

.equip-group__img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.equip-group__img-ph {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.equip-group__name {
    font-weight: 600;
    font-size: .92rem;
    color: #111827;
}

.equip-group__count {
    font-size: .75rem;
    color: #9ca3af;
}

.move-list { padding: .25rem 0; }

.move-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid #f9fafb;
}

.move-item:last-child { border-bottom: none; }

.move-item__img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.move-item__img-ph {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.move-item__info { flex: 1; min-width: 0; }

.move-item__name {
    font-size: .88rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.move-item__meta {
    display: flex;
    gap: .75rem;
    font-size: .75rem;
    margin-top: 2px;
    flex-wrap: wrap;
}

.move-item__coach { color: #9ca3af; }

.move-item__date {
    font-size: .72rem;
    color: #9ca3af;
    flex-shrink: 0;
    direction: ltr;
}

/* ─── Body Measurements ───────────────────────────── */
.bm-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .6rem;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .bm-cards { grid-template-columns: repeat(2, 1fr); }
}

.bm-card {
    border-radius: 12px;
    padding: 1rem .75rem;
    text-align: center;
}

.bm-card i { font-size: 1.3rem; display: block; margin-bottom: .4rem; }

.bm-card__val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    direction: ltr;
    margin-bottom: .15rem;
}

.bm-card__lbl { font-size: .72rem; color: #6b7280; }

.bm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}

.bm-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: #f3f4f6;
    border-radius: 20px;
    padding: .3rem .7rem;
    font-size: .78rem;
    color: #374151;
}

.section-title {
    font-size: .9rem;
    font-weight: 600;
    color: #374151;
    margin: .75rem 0 .5rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.bm-table-wrap { overflow-x: auto; border-radius: 10px; }

.bm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.bm-table th {
    background: #f9fafb;
    padding: .5rem .6rem;
    text-align: center;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.bm-table td {
    padding: .5rem .6rem;
    text-align: center;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.bm-status {
    border-radius: 20px;
    padding: 2px 8px;
    font-size: .75rem;
    font-weight: 500;
}

/* ─── Tuitions ────────────────────────────────────── */
.tuition-card {
    background: #fff;
    border-radius: 14px;
    margin-bottom: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    border-right: 4px solid #e5e7eb;
}

.tuition-card--paid   { border-right-color: #22c55e; }
.tuition-card--unpaid { border-right-color: #f59e0b; }

.tuition-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.tuition-month { font-weight: 700; font-size: .95rem; color: #111827; }

.tuition-badge {
    border-radius: 20px;
    padding: .2rem .7rem;
    font-size: .75rem;
    font-weight: 600;
}

.tuition-badge--paid   { background: #dcfce7; color: #16a34a; }
.tuition-badge--unpaid { background: #fef3c7; color: #d97706; }

.tuition-card__body { padding: .6rem 1rem; }

.tuition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem 0;
    font-size: .83rem;
}

.tuition-lbl { color: #6b7280; display: flex; align-items: center; gap: .3rem; }
.tuition-val { color: #111827; }

.tuition-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    padding: .65rem;
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.tuition-pay-btn:hover { opacity: .9; }

/* ─── Absences ────────────────────────────────────── */
.absence-count-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 20px;
    padding: .4rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .75rem;
}

.absence-list { display: flex; flex-direction: column; gap: .5rem; }

.absence-item {
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.absence-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.absence-info { flex: 1; }

.absence-date {
    font-size: .88rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: .3rem;
    direction: ltr;
    justify-content: flex-end;
}

.absence-coach {
    font-size: .78rem;
    color: #9ca3af;
    margin-top: 2px;
}

/* ─── Role Switch Button ──────────────────────────── */
.role-switch-btn {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .4rem;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: .6rem 1.25rem;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    z-index: 100;
    white-space: nowrap;
}

.role-switch-btn:hover { background: #374151; }

/* ─── Role Switch Sheet ──────────────────────────── */
.role-switch-overlay {
    position: fixed;
    inset: 0;
    bottom: 64px;
    background: rgba(0,0,0,.4);
    z-index: 600;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn .2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.role-switch-sheet {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 1.25rem 1rem 2rem;
    width: 100%;
    max-width: 480px;
    max-height: 100%;
    overflow-y: auto;
    animation: slideUp .25s ease;
}

.role-switch-sheet__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #f3f4f6;
}

.fw-bold { font-weight: 700; }

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ===================================================
   DASHBOARD — AdminClub Style (adapted for athlete)
   =================================================== */

/* ── Wrapper ── */
.dash-page {
    padding: 16px 12px 100px;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .dash-page { padding: 28px 24px 80px; }
}

/* ── Page Header ── */
.page-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px; flex-wrap: wrap;
}
.page-title {
    font-size: 18px; font-weight: 700; color: #1a1f36; margin: 0;
}
.page-subtitle { color: #8898aa; font-size: 12px; margin-top: 2px; }

/* ── User Avatar ── */
.user-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.user-avatar .avatar-initials {
    color: white; font-weight: 700; font-size: 16px; line-height: 1;
}

/* ── Stat Cards ── */
.stat-card {
    background: #d4f1e4;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.stat-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin-bottom: 8px;
    background: none !important;
}
.stat-value { font-size: 24px; font-weight: 700; color: #1a1f36; line-height: 1; margin-bottom: 4px; }
.stat-label { color: #8898aa; font-size: 12px; }

/* ── Data Card ── */
.data-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 16px;
}
.data-card-header {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
}
.data-card-title { font-size: 15px; font-weight: 600; color: #1a1f36; display: flex; align-items: center; gap: 8px; }
.data-card-body { padding: 0; }

/* ── Activity Item (for absences, tuitions list) ── */
.activity-item {
    display: flex; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid #f0f2f5; gap: 12px;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-size: 13px; font-weight: 500; color: #1a1f36; }
.activity-sub   { font-size: 12px; color: #8898aa; margin-top: 2px; }
.activity-end   { font-size: 12px; color: #8898aa; white-space: nowrap; flex-shrink: 0; }

/* ── Badges ── */
.badge-paid    { background: #d4edda; color: #155724; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.badge-unpaid  { background: #fff3cd; color: #856404; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 40px 20px; color: #adb5bd; }
.empty-state i { font-size: 40px; display: block; margin-bottom: 12px; }

/* ── Motivational Empty State ── */
.empty-motivate {
    padding: 20px 18px 22px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center;
}
.em-icon {
    width: 52px; height: 52px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.em-title {
    font-size: 14px; font-weight: 700; color: #1e293b;
}
.em-desc {
    font-size: 12px; color: #64748b; line-height: 1.8;
    max-width: 280px;
}
.em-cta {
    margin-top: 4px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600;
    border: 1.5px dashed; border-radius: 20px;
    padding: 6px 14px;
}

/* ── Movement group in data-card style ── */
.equip-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    background: #f8f9fc;
    border-bottom: 1px solid #f0f2f5;
}
.equip-header-img {
    width: 36px; height: 36px; border-radius: 8px;
    object-fit: cover; flex-shrink: 0;
}
.equip-header-ph {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.equip-name  { font-size: 13px; font-weight: 600; color: #1a1f36; }
.equip-count { font-size: 11px; color: #8898aa; }

/* ── Body Measurement summary cards (reuse bm-card) ── */
.bm-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px;
}
@media (max-width: 480px) {
    .bm-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
.bm-summary-card {
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
}
.bm-summary-card i   { font-size: 22px; display: block; margin-bottom: 6px; }
.bm-summary-val { font-size: 1.3rem; font-weight: 700; color: #1e293b; direction: ltr; margin-bottom: 3px; }
.bm-summary-lbl { font-size: 11px; color: #64748b; }

/* ── Role switch float button ── */
.role-switch-fab {
    position: fixed;
    bottom: 24px; left: 20px;
    z-index: 400;
    padding: 10px 18px;
    border-radius: 24px;
    border: none; cursor: pointer;
    font-size: 14px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    transition: transform .2s;
}
.role-switch-fab:hover { transform: translateY(-2px); }

/* ── هدر پروفایل ورزشکار ── */
.ath-header {
    padding-bottom: 18px;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
}
.ath-header-toprow {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 8px 14px 0;
}
.ath-header-btn {
    background: rgba(255,255,255,0.55); border: none; border-radius: 10px;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #475569; cursor: pointer; backdrop-filter: blur(4px);
    transition: background .15s;
}
.ath-header-btn:hover { background: rgba(255,255,255,0.8); }
.ath-header-avatar-wrap { margin-top: 10px; }
.ath-header-avatar-ring {
    width: 76px; height: 76px; border-radius: 50%;
    border: 3px solid; padding: 3px;
    background: rgba(255,255,255,0.6);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.ath-header-avatar-img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.ath-header-avatar-ph {
    width: 100%; height: 100%; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: white;
}
.ath-header-info { margin-top: 8px; text-align: center; direction: rtl; }
.ath-header-name { font-size: 15px; font-weight: 800; color: #1e293b; }
.ath-header-club { font-size: 11px; color: #475569; margin-top: 3px; }
.ath-header-role {
    display: inline-block; margin-top: 5px;
    background: rgba(255,255,255,0.6); border-radius: 20px;
    padding: 2px 10px; font-size: 10px; font-weight: 600; color: #475569;
    backdrop-filter: blur(4px);
}

/* ── Topbar (simple header for this layout) ── */
.dash-topbar {
    background: white;
    padding: 0 16px;
    height: 38px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    position: sticky; top: 0; z-index: 200;
    margin-bottom: 0;
}
.dash-topbar-title { font-size: 15px; font-weight: 700; color: #1a1f36; }
.dash-topbar-logout {
    background: none; border: none; cursor: pointer;
    font-size: 20px; color: #8898aa; padding: 6px;
    border-radius: 8px; transition: color .2s;
}
.dash-topbar-logout:hover { color: #e74c3c; }

/* ── Loader ── */
.dash-loader {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 60vh; gap: 16px; color: #8898aa;
}
.dash-loader__ring {
    width: 40px; height: 40px;
    border: 3px solid #e9ecef;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ── Chart Container ── */
.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
}
@media (min-width: 576px) {
    .chart-container { height: 310px; }
}

/* ===================================================
   COACH DASHBOARD — Bank Refah Style
   =================================================== */

/* ── Profile Header ── */
.coach-profile-header {
    padding-bottom: 28px;
    text-align: center;
    position: relative;
}

.coach-topbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 0;
}

.coach-topbtn {
    background: rgba(255,255,255,0.22);
    border: none;
    color: white;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s;
}
.coach-topbtn:hover { background: rgba(255,255,255,0.38); }

.coach-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 14px;
}

.coach-avatar-ring {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    overflow: hidden;
    background: #fff;
}

.coach-avatar-img  { width: 100%; height: 100%; object-fit: cover; }

.coach-avatar-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px; font-weight: 700; color: white;
}

.coach-profile-name {
    font-size: 20px; font-weight: 700; color: white;
    margin: 0 0 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.coach-profile-club {
    font-size: 13px; color: rgba(255,255,255,0.82);
    margin-bottom: 4px;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}

.coach-profile-role {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.22);
    color: white;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px; font-weight: 500;
    backdrop-filter: blur(4px);
    margin-top: 4px;
}

/* ── Feature Grid ── */
.coach-grid-wrap {
    background: #f0f4f8;
    border-radius: 24px 24px 0 0;
    margin-top: -16px;
    padding: 20px 14px 16px;
}

.coach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Card: white bg, colored icon, light tint bg ── */
.coach-menu-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 8px 12px;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    cursor: pointer;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform .15s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.coach-menu-card:active {
    transform: scale(0.94);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* آیکون تک‌رنگ در دایره با پس‌زمینه رنگی کم‌رنگ */
.coach-menu-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}

.coach-menu-label {
    font-size: 11.5px; font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.35;
}

@media (min-width: 380px) {
    .coach-menu-icon-wrap { width: 56px; height: 56px; font-size: 23px; border-radius: 16px; }
    .coach-menu-label { font-size: 12.5px; }
}

/* ── Bottom Navigation ── */
.coach-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 500;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.coach-bnav-item {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px;
    background: none; border: none;
    color: #6b7280;
    font-size: 10px; font-weight: 500;
    cursor: pointer;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 0;
    transition: color .2s;
}
.coach-bnav-item i    { font-size: 20px; }
.coach-bnav-item:hover { color: #374151; }
.coach-bnav-item--active { color: #1a1f36; font-weight: 700; }

/* دکمه مرکزی — لوگو باشگاه */
.coach-bnav-center-wrap {
    flex: 0 0 72px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}

.coach-bnav-center {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg,#667eea,#764ba2);
    box-shadow: 0 4px 16px rgba(102,126,234,0.45);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: absolute;
    bottom: 10px;
    transition: transform .15s;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}
.coach-bnav-center:active { transform: scale(0.93); }


/* ── Coach Chart Period Buttons ── */
.coach-chart-btn {
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #f8f9fc;
    color: #525f7f;
    font-size: 12px; font-weight: 500;
    cursor: pointer;
    font-family: 'Vazirmatn','Tahoma',sans-serif;
    transition: all .15s;
    white-space: nowrap;
}
.coach-chart-btn:hover { background: #e9ecef; }
.coach-chart-btn--active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102,126,234,0.35);
}

/* ── Admin Growth Chart Series Toggles ── */
.adm-series-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc; color: #64748b;
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all .15s;
    font-family: 'Vazirmatn','Tahoma',sans-serif;
}
.adm-series-btn--on {
    background: color-mix(in srgb, var(--sc) 12%, white);
    border-color: var(--sc);
    color: #1e293b;
}
.adm-series-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   Coach Movements Page
   ══════════════════════════════════════════ */
.mv-group {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    margin-bottom: 12px;
    overflow: hidden;
    transition: opacity .2s;
}
.mv-group--locked {
    opacity: .55;
}
.mv-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
    direction: rtl;
}
.mv-eq-avatar {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.mv-eq-avatar img { width:100%;height:100%;object-fit:cover;border-radius:12px; }
.mv-eq-name {
    font-size: 14px; font-weight: 700; color: #1e293b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mv-progress-wrap {
    display: flex; align-items: center; gap: 8px; margin-top: 5px;
}
.mv-progress-bar {
    flex: 1; height: 5px; background: #e2e8f0; border-radius: 4px; overflow: hidden;
}
.mv-progress-fill {
    height: 100%; border-radius: 4px; transition: width .4s ease;
}
.mv-progress-label {
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.mv-moves-list {
    border-top: 1px solid #f1f5f9;
    padding: 6px 14px 10px;
    display: flex; flex-direction: column; gap: 2px;
    direction: rtl;
}
.mv-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 6px;
    border-radius: 10px;
    transition: background .15s;
}
.mv-row--learned { background: #f0fdf4; }
.mv-row:hover { background: #f8fafc; }
.mv-row--learned:hover { background: #dcfce7; }
.mv-move-img {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.mv-move-img img { width:100%;height:100%;object-fit:cover;border-radius:10px; }
.mv-move-info { flex:1; min-width:0; }
.mv-move-name {
    font-size: 13px; font-weight: 600; color: #1e293b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mv-move-score {
    display: flex; align-items: center; gap: 3px;
    font-size: 11px; color: #94a3b8; margin-top: 2px;
}
.mv-toggle {
    width: 36px; height: 36px;
    border-radius: 50%; border: 2px solid;
    font-size: 15px; font-weight: 800; font-family: inherit;
    cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.mv-toggle--off {
    border-color: #e2e8f0; background: #f8fafc; color: #94a3b8;
}
.mv-toggle--on {
    border-color: #22c55e; background: #22c55e; color: #fff;
    box-shadow: 0 2px 8px rgba(34,197,94,.35);
}
.mv-toggle--disabled {
    opacity: .4; cursor: not-allowed;
}

/* ══════════════════════════════════════════
   Coach Classes Page
   ══════════════════════════════════════════ */
.cc-filter-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px 4px;
    direction: rtl;
}
.cc-filter-btn {
    flex: 1;
    padding: 8px 0;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.18s;
}
.cc-filter-btn--active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}
.cc-list {
    padding: 8px 16px 100px;
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cc-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cc-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cc-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.cc-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.cc-card-title-wrap {
    flex: 1;
    min-width: 0;
}
.cc-class-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cc-class-type {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.cc-day-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}
.cc-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cc-info-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 13px;
    color: #374151;
}
.cc-card-header--clickable {
    cursor: pointer;
    user-select: none;
}
.cc-chevron {
    font-size: 13px;
    flex-shrink: 0;
    transition: transform .2s;
}

/* ── لیست ورزشکاران داخل کارت ── */
.cc-athletes {
    border-top: 1px solid rgba(0,0,0,0.07);
    margin-top: 4px;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cc-athletes-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    font-size: 13px;
    color: #94a3b8;
}
.cc-spin {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: cc-rotate .7s linear infinite;
}
@keyframes cc-rotate { to { transform: rotate(360deg); } }
.cc-athletes-empty {
    padding: 10px 4px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}
.cc-athlete-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    margin-bottom: 8px;
    transition: box-shadow .15s;
}
.cc-athlete-row:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.10); }
.cc-ath-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.cc-ath-avatar img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
}
.cc-ath-info {
    flex: 1; min-width: 0;
}
.cc-ath-name {
    font-size: 14px; font-weight: 600; color: #1e293b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-ath-score {
    display: flex; align-items: center; gap: 3px;
    font-size: 12px; color: #94a3b8; margin-top: 2px;
}
.cc-ath-tuition {
    font-size: 12px; flex-shrink: 0;
}
.cc-ath-tuition--paid   { color: #22c55e; }
.cc-ath-tuition--unpaid { color: #ef4444; }

/* ── ردیف غایب ── */
.cc-athlete-row--absent {
    background: #fff1f2;
    border-color: #fecdd3;
}

/* ── ظرف دکمه‌های راست ── */
.cc-ath-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

/* ── دکمه ثبت حرکات ── */
.cc-action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 8px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 11px; font-family: inherit; color: #64748b;
    cursor: pointer; flex-shrink: 0;
    transition: all .18s;
    line-height: 1;
}
.cc-action-btn i { font-size: 16px; }
.cc-action-btn--move {
    border-color: #a78bfa;
    color: #7c3aed;
    background: #f5f3ff;
}
.cc-action-btn--move:hover { background: #ede9fe; }

/* ── دکمه غیبت/حاضر ── */
.cc-absent-btn {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 8px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 11px; font-family: inherit; color: #64748b;
    cursor: pointer; flex-shrink: 0;
    transition: all .18s;
    line-height: 1;
}
.cc-absent-btn i { font-size: 16px; }
.cc-absent-btn--active {
    background: #fff1f2;
    border-color: #ef4444;
    color: #ef4444;
}
.cc-absent-btn--disabled {
    opacity: .4; cursor: not-allowed;
}

/* ── دکمه ثبت غیبت ── */
.cc-submit-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; margin-top: 10px;
    padding: 12px;
    border-radius: 12px; border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff; font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(239,68,68,.35);
    transition: opacity .2s;
}
.cc-submit-btn:hover { opacity: .9; }
.cc-submit-btn--all-present {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 3px 10px rgba(34,197,94,.35);
}

/* ── بنر ثبت شده ── */
.cc-done-banner {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 10px; padding: 10px;
    background: #f0fdf4; border: 1px solid #86efac;
    border-radius: 10px; color: #16a34a; font-size: 13px; font-weight: 600;
}
.cc-submitted-badge {
    font-size: 11px; color: #94a3b8; flex-shrink: 0;
}

/* ═══════════════════════════════════════
   Bottom Sheet تأیید غیبت
   ═══════════════════════════════════════ */
.cc-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 900;
}
.cc-sheet {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 12px 16px 32px;
    z-index: 901;
    box-shadow: 0 -4px 24px rgba(0,0,0,.15);
    max-height: 80vh;
    display: flex; flex-direction: column;
}
.cc-sheet-handle {
    width: 40px; height: 4px;
    background: #e2e8f0; border-radius: 2px;
    margin: 0 auto 14px;
}
.cc-sheet-title {
    font-size: 15px; font-weight: 700; color: #1e293b;
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 12px; direction: rtl;
}
.cc-sheet-list {
    flex: 1; overflow-y: auto;
    display: flex; flex-direction: column; gap: 4px;
}
.cc-sheet-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid #f1f5f9;
    direction: rtl;
}
.cc-sheet-remove {
    background: none; border: none; color: #ef4444;
    font-size: 20px; cursor: pointer; padding: 4px;
    flex-shrink: 0; line-height: 1;
}
.cc-sheet-footer {
    display: flex; gap: 10px; margin-top: 14px;
}
.cc-sheet-cancel {
    flex: 1; padding: 12px; border-radius: 12px;
    border: 1.5px solid #e2e8f0; background: #f8fafc;
    font-size: 14px; font-family: inherit; color: #64748b; cursor: pointer;
}
.cc-sheet-confirm {
    flex: 2; padding: 12px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff; font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
    box-shadow: 0 3px 10px rgba(34,197,94,.35);
}
.cc-sheet-confirm:disabled { opacity: .7; cursor: not-allowed; }

/* ── Toast ── */
.cc-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    padding: 12px 20px; border-radius: 12px;
    font-size: 13px; font-weight: 600; font-family: inherit;
    display: flex; align-items: center; gap: 8px;
    z-index: 999; white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    animation: cc-fadein .25s ease;
    direction: rtl;
}
.cc-toast--ok  { background: #16a34a; color: #fff; }
.cc-toast--err { background: #dc2626; color: #fff; }
@keyframes cc-fadein { from { opacity:0; transform: translateX(-50%) translateY(12px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }

/* ── PreRegister – register type selection ── */
.register-type-list { display: flex; flex-direction: column; gap: 10px; }
.register-type-btn {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 2px solid #e5e7eb;
    border-radius: 14px; padding: 14px 16px;
    cursor: pointer; text-align: right; width: 100%;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.register-type-btn:hover { border-color: #3b82f6; box-shadow: 0 2px 8px rgba(59,130,246,.12); }
.register-type-btn.active { border-color: #3b82f6; box-shadow: 0 2px 12px rgba(59,130,246,.18); background: #f0f7ff; }
.register-type-btn .bi-check-circle-fill { margin-right: auto; flex-shrink: 0; font-size: 20px; }
.rt-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.rt-body { flex: 1; }
.rt-title { font-size: .95rem; font-weight: 700; color: #1e293b; }
.rt-sub { font-size: .78rem; color: #64748b; margin-top: 2px; }

