/* ===================================================
   CLUB MANAGEMENT — MOBILE-FIRST CSS
   =================================================== */

/* ===== Modal System ===== */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
    backdrop-filter: blur(2px);
}
.modal-custom {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: calc(100% - 32px);
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 700;
    font-size: 15px;
    color: #1a1f36;
    flex-shrink: 0;
}
.modal-custom-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.modal-custom-footer {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}
.btn-close-custom {
    background: none;
    border: none;
    cursor: pointer;
    color: #8898aa;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
    transition: background .15s, color .15s;
}
.btn-close-custom:hover { background: #f4f5f7; color: #e74c3c; }

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    direction: rtl;
    background: #f0f2f5;
    color: #2d3748;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */
.club-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* ===================================================
   SIDEBAR — hidden on mobile, fixed on desktop
   =================================================== */
.club-sidebar {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 260px;
    z-index: 500;
    /* Mobile: off-screen */
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.club-sidebar.sidebar-open {
    transform: translateX(0);
}

/* Overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

.club-sidebar.sidebar-open .sidebar-overlay {
    display: block;
}

.sidebar-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: -1px 0 0 #e8ecf0, -4px 0 16px rgba(0,0,0,0.06);
    overflow-y: auto;
}

/* Desktop: always visible */
@media (min-width: 992px) {
    .club-sidebar {
        transform: translateX(0) !important;
    }
    .sidebar-overlay { display: none !important; }
    .club-main { margin-right: 260px; }
}

/* ===== Sidebar Brand ===== */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px;
    border-bottom: 1px solid #f0f2f5;
    flex-shrink: 0;
}

.brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #f7b731, #f0932b);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: white; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(247,183,49,0.4);
}

/* لوگو باشگاه در sidebar */
.sidebar-logo-img {
    width: 44px; height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: #f4f6f8;
    flex-shrink: 0;
    border: 1px solid #e8ecf0;
}
.sidebar-logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #f7b731, #f0932b);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; flex-shrink: 0;
}
.sidebar-brand-text { flex: 1; min-width: 0; }
.sidebar-club-name {
    font-size: 13px; font-weight: 700; color: #1a1f36;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-role-name {
    font-size: 11px; color: #94a3b8; margin-top: 1px;
}

/* لوگو کوچک در topbar موبایل */
.topbar-club-logo {
    width: 32px; height: 32px;
    object-fit: contain; border-radius: 8px;
    background: #f4f6f8;
    border: 1px solid #e8ecf0;
}

/* کاربر در topbar */
.topbar-user {
    display: flex; align-items: center; gap: 8px; cursor: default;
}

.brand-name { color: #1a1f36; font-weight: 700; font-size: 16px; }
.brand-sub  { color: #94a3b8; font-size: 11px; }

/* ===== Sidebar Nav ===== */
.sidebar-nav { flex: 1; padding: 10px 8px; overflow-y: auto; }

.nav-section-title {
    color: #b0bec5;
    font-size: 10px; font-weight: 600;
    letter-spacing: 1px;
    padding: 4px 12px;
    text-transform: uppercase;
}

/* ── اکاردئون (details/summary) ── */
.acc-group { margin-bottom: 2px; }
.acc-group summary { list-style: none; }
.acc-group summary::-webkit-details-marker { display: none; }

.acc-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border-radius: 10px;
    color: #64748b; font-size: 13px;
    cursor: pointer; user-select: none;
    transition: background 0.15s, color 0.15s;
}
.acc-header:hover { background: #f4f7f5; color: #1a1f36; }
.acc-has-active { color: #00937a; }
.acc-group[open] > .acc-header { color: #00937a; }

.acc-header-left { display: flex; align-items: center; gap: 10px; }
.acc-icon { font-size: 16px; width: 20px; text-align: center; }
.acc-title { font-weight: 500; }

.acc-arrow {
    font-size: 10px; color: #b0bec5;
    transition: transform 0.2s;
    margin-right: auto;
    margin-left: 0;
    flex-shrink: 0;
}
.acc-group[open] > summary .acc-arrow { transform: rotate(-90deg); color: #00b894; }

.acc-body {
    padding: 2px 0 4px 10px;
    border-right: 2px solid #e8f8f3;
    margin-right: 18px;
    margin-bottom: 4px;
}

.nav-item-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.18s;
    margin-bottom: 2px;
}

.nav-item-link:hover { background: #f4f7f5; color: #1a1f36; text-decoration: none; }
.nav-item-link.active {
    background: #e8f8f3;
    color: #00937a;
    font-weight: 600;
    box-shadow: none;
}

.nav-item-icon { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.nav-item-link.active .nav-item-icon { font-size: 18px; }

.nav-item-grayed {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    color: #c0cdd8;
    font-size: 13px; font-weight: 500;
    border-radius: 10px; cursor: not-allowed;
    user-select: none;
}

.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid #f0f2f5;
    color: #94a3b8;
    font-size: 13px; cursor: pointer;
    transition: color 0.2s; flex-shrink: 0;
}
.sidebar-footer:hover { color: #1a1f36; }

/* ===================================================
   TOPBAR
   =================================================== */
.club-main { display: flex; flex-direction: column; min-height: 100vh; flex: 1; min-width: 0; overflow-x: hidden; }

.club-topbar {
    background: white;
    padding: 0 16px;
    height: 56px;
    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;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .club-topbar { padding: 0 28px; height: 64px; }
}

.club-topbar-title {
    font-weight: 600; color: #1a1f36; font-size: 14px;
}
@media (min-width: 992px) { .club-topbar-title { font-size: 16px; } }

.hamburger-btn {
    background: none; border: none; cursor: pointer;
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #1a1f36;
    transition: background 0.2s;
}
.hamburger-btn:hover { background: #f0f2f5; }

.brand-icon-top {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #f7b731, #f0932b);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: white;
}

.avatar-circle {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #00b894, #00937a);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 600; font-size: 14px;
    flex-shrink: 0;
}

/* آواتار کاربر — مربعی با گوشه ملایم */
.user-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b894, #00937a);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,184,148,.25);
}
.user-avatar.sm {
    width: 36px; height: 36px;
    border-radius: 50%;
}
.user-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.user-avatar .avatar-initials {
    color: white; font-weight: 700; font-size: 15px; line-height: 1;
    font-family: inherit;
}
.user-avatar.sm .avatar-initials { font-size: 12px; }

/* ===================================================
   CONTENT AREA
   =================================================== */
.club-content {
    padding: 16px 12px;
    flex: 1;
    /* Extra bottom padding for mobile bottom-nav */
    padding-bottom: 80px;
}

@media (min-width: 992px) {
    .club-content { padding: 28px 32px 28px; }
}

/* ===================================================
   BOTTOM NAVIGATION (mobile only)
   =================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    z-index: 300;
    /* Safe area for notch phones */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-item {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i { font-size: 20px; }

button.bottom-nav-item {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.bottom-nav-item.active {
    color: #00b894;
}

.bottom-nav-item.active i {
    font-size: 22px;
}

/* ===================================================
   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;
}
@media (min-width: 992px) { .page-title { font-size: 22px; } }

.page-subtitle { color: #8898aa; font-size: 12px; margin-top: 2px; }

/* ===================================================
   STAT CARDS
   =================================================== */
.stat-card {
    background: white;
    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%;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (min-width: 992px) {
    .stat-card { padding: 24px; border-radius: 16px; }
    .stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
}

.stat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: white;
    margin-bottom: 12px;
}
@media (min-width: 992px) { .stat-icon { width: 52px; height: 52px; font-size: 22px; margin-bottom: 16px; } }

.stat-value { font-size: 22px; font-weight: 700; color: #1a1f36; line-height: 1; margin-bottom: 4px; }
@media (min-width: 992px) { .stat-value { font-size: 28px; } }

.stat-label { color: #8898aa; font-size: 12px; }

/* Color gradients */
.bg-gradient-blue   { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.bg-gradient-green  { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.bg-gradient-orange { background: linear-gradient(135deg, #f7971e, #ffd200); }
.bg-gradient-purple { background: linear-gradient(135deg, #00b894, #00937a); }
.bg-gradient-red    { background: linear-gradient(135deg, #f093fb, #f5576c); }
.bg-gradient-teal   { background: linear-gradient(135deg, #4481eb, #04befe); }

/* ===================================================
   DATA CARD
   =================================================== */
.data-card {
    background: white;
    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;
}
@media (min-width: 992px) { .data-card { border-radius: 16px; } }

.data-card-header {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; flex-wrap: wrap;
}
@media (min-width: 992px) { .data-card-header { padding: 18px 24px; } }

.data-card-title { font-size: 14px; font-weight: 600; color: #1a1f36; }
@media (min-width: 992px) { .data-card-title { font-size: 16px; } }

.data-card-body { padding: 16px; }
@media (min-width: 992px) { .data-card-body { padding: 20px 24px; } }

/* ===================================================
   TABLE — horizontal scroll on mobile
   =================================================== */
.table-responsive-club {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.club-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 520px; /* forces horizontal scroll on mobile */
}

.club-table thead th {
    background: #f8f9fc;
    color: #8898aa;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.club-table tbody td {
    padding: 12px 12px;
    border-bottom: 1px solid #f0f2f5;
    color: #525f7f; font-size: 13px;
    vertical-align: middle;
}

.club-table tbody tr:last-child td { border-bottom: none; }
.club-table tbody tr:hover td { background: #f8f9fc; }

/* ===================================================
   MOBILE CARD LIST (alternative to table on mobile)
   =================================================== */
.mobile-card-list { display: flex; flex-direction: column; gap: 10px; padding: 12px; }

.mobile-item-card {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e9ecef;
}

.mobile-item-title { font-weight: 600; color: #1a1f36; font-size: 14px; margin-bottom: 4px; }
.mobile-item-sub   { color: #8898aa; font-size: 12px; margin-bottom: 10px; }
.mobile-item-row   { display: flex; justify-content: space-between; align-items: center; }
.mobile-item-actions { display: flex; gap: 8px; }

/* ===================================================
   FORM PANEL
   =================================================== */
.form-panel {
    background: #f8f9fc;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}
@media (min-width: 992px) { .form-panel { padding: 24px; border-radius: 16px; margin-bottom: 20px; } }

.form-panel-title {
    font-size: 14px; font-weight: 600; color: #1a1f36;
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn-club-primary {
    background: linear-gradient(135deg, #00b894, #00937a);
    color: white; border: none;
    padding: 9px 18px;
    border-radius: 10px; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    min-height: 40px;
}
.btn-club-primary:hover, .btn-club-primary:active {
    opacity: 0.9; color: white;
    box-shadow: 0 4px 12px rgba(0,184,148,0.4);
}

.btn-club-success {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #1a1f36; border: none;
    padding: 9px 18px; border-radius: 10px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px;
}
.btn-club-success:hover { opacity: 0.9; color: #1a1f36; }

.btn-sm-icon {
    width: 34px; height: 34px;
    border-radius: 8px; border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; transition: all 0.2s;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.btn-edit   { background: #e8f4fd; color: #1991eb; }
.btn-edit:hover   { background: #1991eb; color: white; }
.btn-delete { background: #fde8e8; color: #e74c3c; }
.btn-delete:hover { background: #e74c3c; color: white; }
.btn-view   { background: #e8fdf0; color: #2ecc71; }
.btn-view:hover   { background: #2ecc71; color: white; }

/* ===================================================
   SEARCH BOX
   =================================================== */
.search-box { position: relative; }

.search-box input {
    padding: 8px 14px 8px 36px;
    border-radius: 10px; border: 1px solid #e9ecef;
    font-size: 13px; width: 100%; min-width: 140px;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background: #f8f9fc;
    transition: all 0.2s;
    height: 38px;
}
.search-box input:focus {
    outline: none; border-color: #00b894;
    background: white; box-shadow: 0 0 0 3px rgba(0,184,148,0.1);
}
.search-box .search-icon {
    position: absolute; left: 10px; top: 50%;
    transform: translateY(-50%); color: #adb5bd; font-size: 14px;
    pointer-events: none;
}

/* ===================================================
   FORM CONTROLS
   =================================================== */
.form-control, .form-select {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    border-radius: 10px; border-color: #dee2e6;
    font-size: 14px; height: 42px;
}
.form-control:focus, .form-select:focus {
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0,184,148,0.12);
}
textarea.form-control { height: auto; }
.form-label { font-size: 12px; font-weight: 500; color: #525f7f; margin-bottom: 5px; }

/* ===================================================
   BADGES
   =================================================== */
.badge-active   { background: #d4edda; color: #155724; }
.badge-inactive { background: #f8d7da; color: #721c24; }
.badge-pending  { background: #fff3cd; color: #856404; }
.badge-success  { background: #00b894; color: #fff; }

/* ===================================================
   ACTIVITY FEED
   =================================================== */
.activity-item {
    display: flex; align-items: center;
    padding: 10px 16px; border-bottom: 1px solid #f0f2f5; gap: 12px;
}
@media (min-width: 992px) { .activity-item { padding: 10px 24px; } }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ===================================================
   MORE MENU CARDS (mobile /more page)
   =================================================== */
.more-menu-card {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; padding: 24px 12px;
    background: white; border-radius: 16px;
    text-decoration: none; color: #1a1f36;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.more-menu-card:hover, .more-menu-card:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    color: #1a1f36; text-decoration: none;
}
.more-menu-icon {
    width: 54px; height: 54px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white;
}
.more-menu-label { font-size: 13px; font-weight: 600; text-align: center; }

/* ===================================================
   UTILS
   =================================================== */
.text-money  { font-weight: 600; color: #2ecc71; }
.empty-state { text-align: center; padding: 40px 20px; color: #adb5bd; }
.empty-state i { font-size: 40px; display: block; margin-bottom: 12px; }

/* ===================================================
   BLAZOR ERROR UI
   =================================================== */
#blazor-error-ui {
    background: #e74c3c; bottom: 70px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    display: none; left: 0; padding: 12px 20px;
    position: fixed; width: 100%; z-index: 9999;
    color: white; font-family: 'Vazirmatn', 'Tahoma', sans-serif; text-align: center;
}
@media (min-width: 992px) { #blazor-error-ui { bottom: 0; } }
#blazor-error-ui .reload { color: #ffd200; margin: 0 8px; font-weight: 600; }
#blazor-error-ui .dismiss { cursor: pointer; margin-right: 16px; }

/* ===================================================
   VALIDATION
   =================================================== */
.valid.modified:not([type=checkbox]) { outline: 1px solid #2ecc71; }
.invalid { outline: 1px solid #e74c3c; }
.validation-message { color: #e74c3c; font-size: 12px; }

/* ===================================================
   LOGIN PAGE
   =================================================== */
.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2318 0%, #1b3d2b 50%, #0f2318 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 36px 28px;
    width: 100%; max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #f7b731, #f0932b);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: white;
    margin: 0 auto 14px;
    box-shadow: 0 8px 24px rgba(247,183,49,0.4);
}

.login-logo-title {
    font-size: 18px; font-weight: 700; color: #1a1f36;
}

.login-logo-sub {
    font-size: 12px; color: #8898aa; margin-top: 4px;
}

.login-step-title {
    font-size: 14px; font-weight: 600; color: #525f7f;
    text-align: center; margin-bottom: 20px;
}

.login-input {
    height: 52px; border-radius: 12px;
    border: 2px solid #e9ecef;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    font-size: 16px;
    transition: border-color 0.2s;
}

.login-input:focus {
    border-color: #00b894;
    box-shadow: 0 0 0 4px rgba(0,184,148,0.12);
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #00b894, #00937a);
    color: white; border: none;
    height: 50px; border-radius: 12px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 8px;
}

.login-btn:hover:not(:disabled) {
    opacity: 0.9; transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,184,148,0.4);
}

.login-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.login-error {
    background: #fde8e8; color: #c0392b;
    border-radius: 8px; padding: 8px 12px;
    font-size: 13px; margin-bottom: 12px;
    text-align: center;
}

.role-list { display: flex; flex-direction: column; gap: 10px; }

.role-item {
    display: flex; align-items: center;
    padding: 14px 16px; border-radius: 12px;
    border: 2px solid #e9ecef; background: white;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
    width: 100%; text-align: right;
    color: #1a1f36;
}

.role-item:hover {
    border-color: #00b894;
    background: #f8f0ff;
    transform: translateX(-2px);
}

/* ===================================================
   BOOTSTRAP RTL OVERRIDES
   =================================================== */
.me-1 { margin-left: .25rem !important; margin-right: 0 !important; }
.me-2 { margin-left: .5rem  !important; margin-right: 0 !important; }
.me-3 { margin-left: 1rem   !important; margin-right: 0 !important; }
.ms-1 { margin-right: .25rem !important; margin-left: 0 !important; }
.ms-2 { margin-right: .5rem  !important; margin-left: 0 !important; }
.ms-3 { margin-right: 1rem   !important; margin-left: 0 !important; }
.ms-auto { margin-right: auto !important; margin-left: 0 !important; }
.text-start { text-align: right !important; }
.text-end   { text-align: left  !important; }
.float-start { float: right !important; }
.float-end   { float: left  !important; }
.border-start { border-right: 1px solid !important; border-left: 0 !important; }

/* ===================================================
   AUTH PAGES — Login / OTP / Register
   =================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00b894 0%, #00937a 100%);
    padding: 16px;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    text-align: center;
}

.auth-logo { margin-bottom: 12px; }
.auth-logo img { width: 80px; height: 80px; object-fit: contain; border-radius: 14px; }

.auth-logo-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #00b894, #00937a);
    border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 32px; color: #fff;
    margin-bottom: 16px;
}

.auth-title { font-size: 22px; font-weight: 800; color: #1a1f36; margin-bottom: 6px; }
.auth-sub   { font-size: 13px; color: #8898aa; margin-bottom: 20px; }

.input-group-auth { position: relative; }
.auth-input-icon {
    position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
    color: #8898aa; font-size: 18px; pointer-events: none; z-index: 2;
}
.auth-input {
    padding-right: 44px !important;
    border-radius: 12px !important;
    height: 50px !important;
    font-size: 16px !important;
    border: 2px solid #e8ecf0 !important;
    font-family: monospace;
    letter-spacing: 1px;
    direction: ltr;
    text-align: center;
}
.auth-input:focus { border-color: #00b894 !important; box-shadow: 0 0 0 3px rgba(0,184,148,.15) !important; }

.auth-btn {
    width: 100%;
    height: 50px;
    border-radius: 12px !important;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    background: linear-gradient(135deg, #00b894, #00937a) !important;
    border: none !important;
    margin-top: 8px;
}
.auth-btn:hover:not(:disabled) { opacity: .92; }
.auth-btn:disabled { opacity: .6; }

.auth-footer { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-link { color: #00b894; font-weight: 600; text-decoration: none; font-size: 13px; }
.auth-link:hover { text-decoration: underline; }

/* OTP digits */
.otp-inputs-row {
    display: flex; gap: 10px; justify-content: center;
    direction: ltr; margin: 8px 0 16px;
}
.otp-digit {
    width: 60px; height: 64px;
    border: 2px solid #e8ecf0; border-radius: 14px;
    text-align: center; font-size: 26px; font-weight: 700;
    font-family: monospace; color: #1a1f36;
    transition: border-color .2s, box-shadow .2s;
}
.otp-digit:focus { border-color: #00b894 !important; box-shadow: 0 0 0 3px rgba(0,184,148,.15) !important; outline: none; }

/* Role selection */
.role-list { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.role-item {
    display: flex; align-items: center; gap: 12px;
    border: 2px solid #e8ecf0; border-radius: 14px; padding: 14px;
    background: #fff; cursor: pointer; transition: all .2s;
    text-align: right; width: 100%;
}
.role-item:hover { border-color: #00b894; background: #f0fdf8; }
.role-item.selected { border-color: #00b894; background: #f0fdf8; }
.role-item-logo { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f4f6f8; display: flex; align-items: center; justify-content: center; }
.role-item-logo img { width: 100%; height: 100%; object-fit: contain; }
.role-item-body { flex: 1; min-width: 0; }
.role-item-club { font-weight: 700; font-size: 14px; color: #1a1f36; }
.role-item-name { font-size: 12px; color: #00b894; margin-top: 2px; }
.role-item-license { font-size: 11px; color: #aaa; direction: ltr; margin-top: 2px; }

/* Register type selection */
.register-type-list { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.register-type-btn {
    display: flex; align-items: center; gap: 12px;
    border: 2px solid #e8ecf0; border-radius: 14px; padding: 14px;
    background: #fff; cursor: pointer; transition: all .2s; width: 100%;
}
.register-type-btn:hover { border-color: #00b894; background: #f0fdf8; }
.register-type-btn.active { border-color: #00b894; background: #f0fdf8; }
.rt-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.rt-body { flex: 1; text-align: right; }
.rt-title { font-weight: 700; font-size: 14px; color: #1a1f36; }
.rt-sub   { font-size: 12px; color: #8898aa; margin-top: 2px; }

/* Logo upload */
.logo-preview-box {
    width: 150px; height: 150px; border: 2px dashed #d0d5dd;
    border-radius: 16px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; overflow: hidden;
    background: #fafbfc;
}
.logo-upload-btn {
    position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #00b894, #00937a);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 13px; cursor: pointer;
}

/* Section divider */
.section-divider {
    font-weight: 700; font-size: 13px; color: #00b894;
    border-bottom: 2px solid #e8faf5; padding-bottom: 6px;
    margin-bottom: 4px;
}
.fw-600 { font-weight: 600; }

/* Steps */
.steps-container { display: flex; flex-direction: column; gap: 0; }
.step-item {
    display: flex; gap: 14px; position: relative;
    padding-bottom: 24px;
}
.step-item:last-child { padding-bottom: 0; }
.step-circle {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; border: 2px solid #e0e0e0;
    background: #fff; color: #bbb; position: relative; z-index: 1;
}
.step-item.done .step-circle { background: #28a745; border-color: #28a745; color: #fff; }
.step-item.active .step-circle { background: #00b894; border-color: #00b894; color: #fff; box-shadow: 0 0 0 4px rgba(0,184,148,.2); }

.step-connector {
    position: absolute; right: 19px; top: 40px;
    width: 2px; height: calc(100% - 40px);
    background: #e0e0e0;
}
.step-item.done + .step-item .step-connector,
.step-item.done .step-connector { background: #28a745; }
.step-item.active .step-connector { background: linear-gradient(#00b894, #e0e0e0); }

.step-body { flex: 1; padding-top: 8px; }
.step-title { font-weight: 700; font-size: 14px; color: #1a1f36; }
.step-desc  { font-size: 12px; color: #8898aa; margin-top: 2px; }

/* Text green helper */
.text-purple { color: #00937a !important; }


/* ===== تقویم شمسی (JdpInline) ===== */
.jdp { width: 282px; font-family: inherit; direction: rtl; user-select: none; }

.jdp-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.jdp-nav-btn {
    background: #f1f5f9; border: none; border-radius: 8px;
    width: 32px; height: 32px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; color: #475569;
    transition: background .15s;
}
.jdp-nav-btn:hover:not(:disabled) { background: #e2e8f0; }
.jdp-nav-btn:disabled { opacity: .3; cursor: default; }
.jdp-title { font-size: 14px; font-weight: 700; color: #1e293b; }

.jdp-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}
.jdp-weekdays span {
    text-align: center; font-size: 11px; font-weight: 600;
    color: #94a3b8; padding: 4px 0;
}

.jdp-days {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.jdp-day {
    aspect-ratio: 1; border: none; border-radius: 8px; background: transparent;
    font-size: 12px; font-family: inherit; cursor: pointer; color: #334155;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s, color .12s;
}
.jdp-day:hover:not(.dis) { background: #d1faf0; color: #00937a; }
.jdp-day.sel { background: #00b894; color: #fff; font-weight: 700; }
.jdp-day.dis { color: #cbd5e1; cursor: default; }

