/* ============================================================
   کارت آموز — استایل صفحات احراز هویت و پروفایل
   ============================================================ */

/* ---------- تب انتخاب روش ورود ---------- */
.kt-auth-tabs {
    display: flex;
    gap: 8px;
    background: #f0f4f8;
    border-radius: var(--radius-btn);
    padding: 5px;
    margin-bottom: 22px;
}

.kt-auth-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 10px;
    border-radius: 9px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.kt-auth-tab:hover { color: var(--primary-dark); }

.kt-auth-tab.active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(194, 132, 0, 0.14);
}

.kt-auth-tab i { font-size: 17px; }

/* ---------- نوار مراحل ---------- */
.kt-auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 26px;
}

.kt-auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 76px;
}

.kt-auth-step-num {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f4f8;
    color: #9aa0ab;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.kt-auth-step-label {
    font-family: var(--font-family);
    font-size: 12px;
    color: #9aa0ab;
    white-space: nowrap;
    transition: var(--transition);
}

.kt-auth-step.active .kt-auth-step-num {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 4px 14px rgba(194, 132, 0, 0.3);
}

.kt-auth-step.active .kt-auth-step-label {
    color: var(--primary-dark);
    font-weight: 700;
}

.kt-auth-step.done .kt-auth-step-num {
    background: #16a34a;
    color: #fff;
}

.kt-auth-step.done .kt-auth-step-label { color: #16a34a; }

.kt-auth-step-line {
    flex: 0 1 50px;
    height: 2px;
    background: #e8ecf1;
    border-radius: 2px;
    margin-bottom: 20px;
}

@media (max-width: 479px) {
    .kt-auth-step { min-width: 62px; }
    .kt-auth-step-label { font-size: 11px; }
    .kt-auth-step-line { flex-basis: 22px; }
}

/* ---------- نشان تأیید شماره ---------- */
.kt-verified-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: var(--radius-btn);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-family: var(--font-family);
    font-size: 14px;
    color: #15803d;
}

.kt-verified-badge i { font-size: 19px; }
.kt-verified-badge strong { letter-spacing: 1px; }

.kt-verified-change {
    margin-right: auto;
    font-size: 13px;
    color: var(--primary-dark) !important;
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- ارسال مجدد کد ---------- */
.kt-otp-resend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-family: var(--font-family);
    font-size: 13px;
    color: #8a8aaa;
}

.kt-otp-resend-link {
    color: var(--primary-dark) !important;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ورودی OTP همیشه دیده شود وقتی پنل نمایش داده می‌شود */
.kt-login-otp-input.kt-show,
.kt-register-otp-input.kt-show {
    display: block;
    max-height: none;
    opacity: 1;
    overflow: visible;
}

/* ---------- مرا به خاطر بسپار / پذیرش قوانین ---------- */
.kt-login-remember {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 4px;
    font-family: var(--font-family);
    font-size: 13.5px;
    color: var(--text-black);
    line-height: 1.9;
}

.kt-login-remember input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 4px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.kt-login-remember label { cursor: pointer; margin: 0; }
.kt-login-remember a { color: var(--primary-dark); font-weight: 600; }
.kt-login-remember a:hover { text-decoration: underline; }

/* ---------- راهنمای زیر فیلد ---------- */
.kt-field-hint {
    display: block;
    margin-top: 5px;
    font-family: var(--font-family);
    font-size: 11.5px;
    color: #9aa0ab;
}

/* ---------- کارت ثبت‌نام (بدون ستون تصویر) ---------- */
.kt-register-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-box);
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-main);
    border: 1px solid rgba(194, 132, 0, 0.15);
    overflow: hidden;
}

.kt-register-content { padding: 34px; }

@media (max-width: 575px) {
    .kt-register-content { padding: 22px 18px; }
}

/* ============================================================
   داشبورد کاربر
   ============================================================ */

.kt-profile-row {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

@media (max-width: 991px) {
    .kt-profile-row { grid-template-columns: minmax(0, 1fr); }
}

.kt-panel-card {
    background: var(--bg-box);
    border-radius: var(--radius-main);
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(194, 132, 0, 0.15);
}

.kt-panel-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 17px;
    color: var(--text-black);
    margin: 0 0 18px;
    padding-bottom: 13px;
    border-bottom: 2px solid var(--primary-light);
}

.kt-panel-card-title i { color: var(--primary); font-size: 20px; }

.kt-panel-card-title .kt-panel-card-action {
    margin-right: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
}

.kt-panel-card-title .kt-panel-card-action:hover { text-decoration: underline; }

/* ---------- منوی کناری پنل ---------- */
.kt-panel-menu {
    background: var(--bg-box);
    border-radius: var(--radius-main);
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(194, 132, 0, 0.15);
    margin-bottom: 22px;
}

.kt-panel-menu-section + .kt-panel-menu-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
}

.kt-panel-menu-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 700;
    color: #9aa0ab;
    margin-bottom: 8px;
    padding: 0 6px;
}

.kt-panel-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--text-black);
    transition: var(--transition);
}

.kt-panel-menu-item i { font-size: 18px; color: var(--primary); }

.kt-panel-menu-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.kt-panel-menu-item.active {
    background: var(--primary);
    color: #fff;
}

.kt-panel-menu-item.active i { color: #fff; }

.kt-panel-menu-item .kt-menu-badge {
    margin-right: auto;
    background: rgba(194, 132, 0, 0.14);
    color: var(--primary-dark);
    border-radius: 20px;
    padding: 1px 9px;
    font-size: 11.5px;
    font-weight: 700;
}

.kt-panel-menu-item.active .kt-menu-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.kt-panel-menu-item.danger i { color: #dc2626; }
.kt-panel-menu-item.danger:hover { background: rgba(220, 38, 38, 0.1); color: #dc2626; }

/* ---------- کارت کاربر ---------- */
.kt-panel-user-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 100%);
    border-radius: var(--radius-main);
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 22px;
    border: 1px solid rgba(194, 132, 0, 0.3);
}

.kt-panel-user-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 12px;
}

.kt-panel-user-name {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    margin-bottom: 4px;
}

.kt-panel-user-mobile {
    font-family: var(--font-family);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.kt-panel-user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.kt-panel-user-stat-num {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 19px;
    color: var(--primary);
}

.kt-panel-user-stat-label {
    font-family: var(--font-family);
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- کارت‌های آمار داشبورد ---------- */
.kt-dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.kt-dash-stat {
    background: var(--bg-box);
    border-radius: var(--radius-main);
    padding: 20px 18px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 2px solid rgba(194, 132, 0, 0.2);
    transition: var(--transition);
}

.kt-dash-stat:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.kt-dash-stat-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 10px;
}

.kt-dash-stat-num {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 26px;
    color: var(--text-black);
    line-height: 1.3;
}

.kt-dash-stat-label {
    font-family: var(--font-family);
    font-size: 13px;
    color: #8a8aaa;
}

/* ---------- ردیف دورهٔ من ---------- */
.kt-my-course {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #f0f2f5;
    transition: var(--transition);
}

.kt-my-course + .kt-my-course { margin-top: 12px; }

.kt-my-course:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 22px rgba(194, 132, 0, 0.12);
}

.kt-my-course-img {
    width: 92px;
    height: 68px;
    object-fit: cover;
    border-radius: 11px;
    flex-shrink: 0;
}

.kt-my-course-body { flex: 1; min-width: 0; }

.kt-my-course-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-black);
    margin-bottom: 5px;
    display: block;
}

.kt-my-course-title:hover { color: var(--primary); }

.kt-my-course-meta {
    font-family: var(--font-family);
    font-size: 12.5px;
    color: #8a8aaa;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.kt-my-course-meta i { color: var(--primary); margin-left: 3px; }

.kt-progress-track {
    height: 7px;
    background: #f0f2f5;
    border-radius: 6px;
    overflow: hidden;
}

.kt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #e0a020 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.kt-progress-fill.done { background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%); }

.kt-my-course-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 10px;
    padding: 9px 17px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.kt-my-course-action:hover { background: var(--primary-dark); }

.kt-my-course-action.outline {
    background: transparent;
    color: var(--primary-dark) !important;
    border: 1px solid var(--primary);
}

.kt-my-course-action.outline:hover { background: var(--primary); color: #fff !important; }

@media (max-width: 575px) {
    .kt-my-course { flex-wrap: wrap; }
    .kt-my-course-img { width: 100%; height: 130px; }
    .kt-my-course-action { width: 100%; justify-content: center; }
}

/* ---------- جدول ساده ---------- */
.kt-table-wrap { overflow-x: auto; }

.kt-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-family);
    font-size: 13.5px;
    min-width: 520px;
}

.kt-table th {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
    text-align: right;
    padding: 12px 14px;
    white-space: nowrap;
}

.kt-table th:first-child { border-radius: 0 10px 10px 0; }
.kt-table th:last-child { border-radius: 10px 0 0 10px; }

.kt-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #f0f2f5;
    color: var(--text-black);
}

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

/* ---------- کارت آدرس ---------- */
.kt-address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.kt-address-card {
    border: 2px solid #f0f2f5;
    border-radius: 14px;
    padding: 16px;
    transition: var(--transition);
}

.kt-address-card:hover { border-color: rgba(194, 132, 0, 0.4); }

.kt-address-card.default {
    border-color: var(--primary);
    background: #fffdf7;
}

.kt-address-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e8ecf1;
}

.kt-address-card-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-black);
    display: flex;
    align-items: center;
    gap: 5px;
}

.kt-address-card-title i { color: var(--primary); font-size: 17px; }
.kt-address-card-head .kt-status-chip { margin-right: auto; }

.kt-address-card-body {
    font-family: var(--font-family);
    font-size: 13px;
    color: #4b5563;
    line-height: 2.1;
}

.kt-address-card-body i {
    color: var(--primary);
    margin-left: 5px;
    font-size: 14px;
}

.kt-address-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px dashed #e8ecf1;
}

.kt-address-card-actions a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 8px;
    background: #f0f4f8;
    color: var(--text-black);
    font-family: var(--font-family);
    font-size: 12.5px;
    font-weight: 600;
    transition: var(--transition);
}

.kt-address-card-actions a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.kt-address-card-actions a.danger { color: #dc2626; }
.kt-address-card-actions a.danger:hover { background: rgba(220, 38, 38, 0.1); color: #dc2626; }

/* ---------- برچسب وضعیت ---------- */
.kt-status-chip {
    display: inline-block;
    border-radius: 20px;
    padding: 3px 12px;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.kt-status-chip--ok      { background: rgba(22, 163, 74, 0.13);  color: #16a34a; }
.kt-status-chip--fail    { background: rgba(220, 38, 38, 0.11);  color: #dc2626; }
.kt-status-chip--pending { background: rgba(217, 119, 6, 0.13);  color: #d97706; }
.kt-status-chip--info    { background: rgba(194, 132, 0, 0.13);  color: var(--primary-dark); }
.kt-status-chip--muted   { background: #f0f2f5;                  color: #6b7280; }
